Class NotificationMessageType

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

    public class NotificationMessageType
    extends Object
    implements Serializable, Cloneable, JaxbVisitable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode
    XML version of Message (in notifications module). Introduced in order to provide custom notifiers. EXPERIMENTAL

    Java class for NotificationMessageType complex type.

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

     <complexType name="NotificationMessageType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="from" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="to" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
             <element name="cc" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
             <element name="bcc" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
             <element name="subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="body" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="contentType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
             <element name="attachment" type="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}NotificationMessageAttachmentType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • NotificationMessageType

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

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

      • getFrom

        public String getFrom()
        Gets the value of the from property.
        Returns:
        possible object is String
      • setFrom

        public void setFrom​(String value)
        Sets the value of the from property.
        Parameters:
        value - allowed object is String
      • getTo

        public List<String> getTo()
        Gets the value of the to 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 JAXB object. This is why there is not a set method for the to property.

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

            getTo().add(newItem);
         

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

      • getCc

        public List<String> getCc()
        Gets the value of the cc 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 JAXB object. This is why there is not a set method for the cc property.

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

            getCc().add(newItem);
         

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

      • getBcc

        public List<String> getBcc()
        Gets the value of the bcc 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 JAXB object. This is why there is not a set method for the bcc property.

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

            getBcc().add(newItem);
         

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

      • getSubject

        public String getSubject()
        Gets the value of the subject property.
        Returns:
        possible object is String
      • setSubject

        public void setSubject​(String value)
        Sets the value of the subject property.
        Parameters:
        value - allowed object is String
      • getBody

        public String getBody()
        Gets the value of the body property.
        Returns:
        possible object is String
      • setBody

        public void setBody​(String value)
        Sets the value of the body property.
        Parameters:
        value - allowed object is String
      • 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
      • getAttachment

        public List<NotificationMessageAttachmentType> getAttachment()
        Gets the value of the attachment 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 JAXB object. This is why there is not a set method for the attachment property.

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

            getAttachment().add(newItem);
         

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

      • 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