Class NotificationMessageAttachmentType

  • All Implemented Interfaces:
    JaxbVisitable, Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

    public class NotificationMessageAttachmentType
    extends Object
    implements Serializable, Cloneable, JaxbVisitable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
    Message attachment for notifications. The content might be provided either directly (as arbitrary object) or by referencing a file.

    Java class for NotificationMessageAttachmentType complex type.

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

     <complexType name="NotificationMessageAttachmentType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="contentType" type="{http://www.w3.org/2001/XMLSchema}string"/>
             <choice>
               <element name="content" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
               <element name="contentFromFile" type="{http://www.w3.org/2001/XMLSchema}string"/>
             </choice>
             <element name="fileName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="contentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Field Detail

      • contentType

        protected String contentType
      • content

        protected Object content
      • contentFromFile

        protected String contentFromFile
      • fileName

        protected String fileName
      • contentId

        protected String contentId
      • COMPLEX_TYPE

        public static final QName COMPLEX_TYPE
      • F_CONTENT_TYPE

        public static final ItemName F_CONTENT_TYPE
      • F_CONTENT

        public static final ItemName F_CONTENT
      • F_CONTENT_FROM_FILE

        public static final ItemName F_CONTENT_FROM_FILE
      • F_FILE_NAME

        public static final ItemName F_FILE_NAME
      • F_CONTENT_ID

        public static final ItemName F_CONTENT_ID
    • Constructor Detail

      • NotificationMessageAttachmentType

        public NotificationMessageAttachmentType()
        Creates a new NotificationMessageAttachmentType instance.
      • NotificationMessageAttachmentType

        public NotificationMessageAttachmentType​(NotificationMessageAttachmentType o)
        Creates a new NotificationMessageAttachmentType instance by deeply copying a given NotificationMessageAttachmentType instance.
        Parameters:
        o - The instance to copy.
        Throws:
        NullPointerException - if o is null.
    • Method Detail

      • getContentType

        public String getContentType()
        Gets the value of the contentType property.
        Returns:
        possible object is String
      • setContentType

        public void setContentType​(String value)
        Sets the value of the contentType property.
        Parameters:
        value - allowed object is String
      • getContent

        public Object getContent()
        Gets the value of the content property.
        Returns:
        possible object is Object
      • setContent

        public void setContent​(Object value)
        Sets the value of the content property.
        Parameters:
        value - allowed object is Object
      • getContentFromFile

        public String getContentFromFile()
        Gets the value of the contentFromFile property.
        Returns:
        possible object is String
      • setContentFromFile

        public void setContentFromFile​(String value)
        Sets the value of the contentFromFile property.
        Parameters:
        value - allowed object is String
      • getFileName

        public String getFileName()
        Gets the value of the fileName property.
        Returns:
        possible object is String
      • setFileName

        public void setFileName​(String value)
        Sets the value of the fileName property.
        Parameters:
        value - allowed object is String
      • getContentId

        public String getContentId()
        Gets the value of the contentId property.
        Returns:
        possible object is String
      • setContentId

        public void setContentId​(String value)
        Sets the value of the contentId property.
        Parameters:
        value - allowed object is String
      • toString

        public String toString()
        Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals