Class Message

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Command, Query, Response, Signal

    @Generated(value="com.sun.tools.xjc.Driver",
               comments="JAXB RI v4.0.1",
               date="2022-12-21T00:11:33Z")
    public abstract class Message
    extends java.lang.Object
    implements java.io.Serializable

    Java class for Message complex type.

    The following schema fragment specifies the expected content contained within this class.

    
     <complexType name="Message">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element ref="{http://www.CIP4.org/JDFSchema_2_0}Header"/>
             <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <anyAttribute processContents='lax' namespace='##other'/>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.Object> any  
      protected Header header  
    • Constructor Summary

      Constructors 
      Constructor Description
      Message()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      java.util.List<java.lang.Object> getAny()
      Gets the value of the any property.
      Header getHeader()
      Gets the value of the header property.
      java.util.Map<javax.xml.namespace.QName,​java.lang.String> getOtherAttributes()
      Gets a map that contains attributes that aren't bound to any typed property on this class.
      int hashCode()  
      void setHeader​(Header value)
      Sets the value of the header property.
      Message withAny​(java.lang.Object... values)  
      Message withAny​(java.util.Collection<java.lang.Object> values)  
      Message withHeader​(Header value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • header

        @Generated(value="com.sun.tools.xjc.Driver",
                   comments="JAXB RI v4.0.1",
                   date="2022-12-21T00:11:33Z")
        protected Header header
      • any

        @Generated(value="com.sun.tools.xjc.Driver",
                   comments="JAXB RI v4.0.1",
                   date="2022-12-21T00:11:33Z")
        protected java.util.List<java.lang.Object> any
    • Constructor Detail

      • Message

        public Message()
    • Method Detail

      • getHeader

        @Generated(value="com.sun.tools.xjc.Driver",
                   comments="JAXB RI v4.0.1",
                   date="2022-12-21T00:11:33Z")
        public Header getHeader()
        Gets the value of the header property.
        Returns:
        possible object is Header
      • setHeader

        @Generated(value="com.sun.tools.xjc.Driver",
                   comments="JAXB RI v4.0.1",
                   date="2022-12-21T00:11:33Z")
        public void setHeader​(Header value)
        Sets the value of the header property.
        Parameters:
        value - allowed object is Header
      • getAny

        @Generated(value="com.sun.tools.xjc.Driver",
                   comments="JAXB RI v4.0.1",
                   date="2022-12-21T00:11:33Z")
        public java.util.List<java.lang.Object> getAny()
        Gets the value of the any property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the any property.

        For example, to add a new item, do as follows:

            getAny().add(newItem);
         

        Objects of the following type(s) are allowed in the list Object Element

        Returns:
        The value of the any property.
      • getOtherAttributes

        @Generated(value="com.sun.tools.xjc.Driver",
                   comments="JAXB RI v4.0.1",
                   date="2022-12-21T00:11:33Z")
        public java.util.Map<javax.xml.namespace.QName,​java.lang.String> getOtherAttributes()
        Gets a map that contains attributes that aren't bound to any typed property on this class.

        the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

        Returns:
        always non-null
      • withAny

        public Message withAny​(java.lang.Object... values)
      • withAny

        public Message withAny​(java.util.Collection<java.lang.Object> values)
      • equals

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

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