Package com.ibm.fhir.model.resource
Class TestScript.Setup.Action.Operation
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.BackboneElement
-
- com.ibm.fhir.model.resource.TestScript.Setup.Action.Operation
-
- All Implemented Interfaces:
Visitable
- Enclosing class:
- TestScript.Setup.Action
public static class TestScript.Setup.Action.Operation extends BackboneElement
The operation to perform.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestScript.Setup.Action.Operation.Builderstatic classTestScript.Setup.Action.Operation.RequestHeaderHeader elements would be used to set HTTP headers.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement
modifierExtension
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static TestScript.Setup.Action.Operation.Builderbuilder()booleanequals(java.lang.Object obj)CodegetAccept()The mime-type to use for RESTful operation in the 'Accept' header.CodegetContentType()The mime-type to use for RESTful operation in the 'Content-Type' header.StringgetDescription()The description would be used by test engines for tracking and reporting purposes.IntegergetDestination()The server where the request message is destined for.BooleangetEncodeRequestUrl()Whether or not to implicitly send the request url in encoded format.StringgetLabel()The label would be used for tracking/logging purposes by test engines.TestScriptRequestMethodCodegetMethod()The HTTP method the test engine MUST use for this operation regardless of any other operation details.IntegergetOrigin()The server where the request message originates from.StringgetParams()Path plus parameters after [type].java.util.List<TestScript.Setup.Action.Operation.RequestHeader>getRequestHeader()Header elements would be used to set HTTP headers.IdgetRequestId()The fixture id (maybe new) to map to the request.FHIRDefinedTypegetResource()The type of the resource.IdgetResponseId()The fixture id (maybe new) to map to the response.IdgetSourceId()The id of the fixture used as the body of a PUT or POST request.IdgetTargetId()Id of fixture used for extracting the [id], [type], and [vid] for GET requests.CodinggetType()Server interaction or operation type.StringgetUrl()Complete request URL.booleanhasChildren()inthashCode()TestScript.Setup.Action.Operation.BuildertoBuilder()Create a new Builder from the contents of this Element-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement
getModifierExtension
-
-
-
-
Method Detail
-
getType
public Coding getType()
Server interaction or operation type.- Returns:
- An immutable object of type
Codingthat may be null.
-
getResource
public FHIRDefinedType getResource()
The type of the resource. See http://build.fhir.org/resourcelist.html.- Returns:
- An immutable object of type
FHIRDefinedTypethat may be null.
-
getLabel
public String getLabel()
The label would be used for tracking/logging purposes by test engines.- Returns:
- An immutable object of type
Stringthat may be null.
-
getDescription
public String getDescription()
The description would be used by test engines for tracking and reporting purposes.- Returns:
- An immutable object of type
Stringthat may be null.
-
getAccept
public Code getAccept()
The mime-type to use for RESTful operation in the 'Accept' header.- Returns:
- An immutable object of type
Codethat may be null.
-
getContentType
public Code getContentType()
The mime-type to use for RESTful operation in the 'Content-Type' header.- Returns:
- An immutable object of type
Codethat may be null.
-
getDestination
public Integer getDestination()
The server where the request message is destined for. Must be one of the server numbers listed in TestScript. destination section.- Returns:
- An immutable object of type
Integerthat may be null.
-
getEncodeRequestUrl
public Boolean getEncodeRequestUrl()
Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.- Returns:
- An immutable object of type
Booleanthat is non-null.
-
getMethod
public TestScriptRequestMethodCode getMethod()
The HTTP method the test engine MUST use for this operation regardless of any other operation details.- Returns:
- An immutable object of type
TestScriptRequestMethodCodethat may be null.
-
getOrigin
public Integer getOrigin()
The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.- Returns:
- An immutable object of type
Integerthat may be null.
-
getParams
public String getParams()
Path plus parameters after [type]. Used to set parts of the request URL explicitly.- Returns:
- An immutable object of type
Stringthat may be null.
-
getRequestHeader
public java.util.List<TestScript.Setup.Action.Operation.RequestHeader> getRequestHeader()
Header elements would be used to set HTTP headers.- Returns:
- An unmodifiable list containing immutable objects of type
TestScript.Setup.Action.Operation.RequestHeaderthat may be empty.
-
getRequestId
public Id getRequestId()
The fixture id (maybe new) to map to the request.- Returns:
- An immutable object of type
Idthat may be null.
-
getResponseId
public Id getResponseId()
The fixture id (maybe new) to map to the response.- Returns:
- An immutable object of type
Idthat may be null.
-
getSourceId
public Id getSourceId()
The id of the fixture used as the body of a PUT or POST request.- Returns:
- An immutable object of type
Idthat may be null.
-
getTargetId
public Id getTargetId()
Id of fixture used for extracting the [id], [type], and [vid] for GET requests.- Returns:
- An immutable object of type
Idthat may be null.
-
getUrl
public String getUrl()
Complete request URL.- Returns:
- An immutable object of type
Stringthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classBackboneElement
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public TestScript.Setup.Action.Operation.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element- Specified by:
toBuilderin classBackboneElement
-
builder
public static TestScript.Setup.Action.Operation.Builder builder()
-
-