Class TestScript.Setup.Action.Operation

    • Method Detail

      • getType

        public Coding getType()
        Server interaction or operation type.
        Returns:
        An immutable object of type Coding that 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 FHIRDefinedType that 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 String that 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 String that 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 Code that 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 Code that 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 Integer that 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 Boolean that is non-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 Integer that 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 String that may be null.
      • getRequestId

        public Id getRequestId()
        The fixture id (maybe new) to map to the request.
        Returns:
        An immutable object of type Id that may be null.
      • getResponseId

        public Id getResponseId()
        The fixture id (maybe new) to map to the response.
        Returns:
        An immutable object of type Id that 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 Id that 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 Id that may be null.
      • getUrl

        public String getUrl()
        Complete request URL.
        Returns:
        An immutable object of type String that may be null.
      • accept

        public void accept​(java.lang.String elementName,
                           int elementIndex,
                           Visitor visitor)
        Description copied from interface: Visitable
        Accept 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:
        accept in interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object