Class NotificationMessageType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.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. EXPERIMENTALJava 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
-
-
Field Summary
Fields Modifier and Type Field Description protected List<NotificationMessageAttachmentType>attachmentprotected List<String>bccprotected Stringbodyprotected List<String>ccstatic QNameCOMPLEX_TYPEprotected StringcontentTypestatic ItemNameF_ATTACHMENTstatic ItemNameF_BCCstatic ItemNameF_BODYstatic ItemNameF_CCstatic ItemNameF_CONTENT_TYPEstatic ItemNameF_FROMstatic ItemNameF_SUBJECTstatic ItemNameF_TOprotected Stringfromprotected Stringsubjectprotected List<String>to
-
Constructor Summary
Constructors Constructor Description NotificationMessageType()Creates a newNotificationMessageTypeinstance.NotificationMessageType(NotificationMessageType o)Creates a newNotificationMessageTypeinstance by deeply copying a givenNotificationMessageTypeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(JaxbVisitor visitor)NotificationMessageTypeattachment(NotificationMessageAttachmentType value)NotificationMessageTypebcc(String value)NotificationMessageAttachmentTypebeginAttachment()NotificationMessageTypebody(String value)NotificationMessageTypecc(String value)NotificationMessageTypeclone()Creates and returns a deep copy of this object.NotificationMessageTypecontentType(String value)booleanequals(Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)NotificationMessageTypefrom(String value)List<NotificationMessageAttachmentType>getAttachment()Gets the value of the attachment property.List<String>getBcc()Gets the value of the bcc property.StringgetBody()Gets the value of the body property.List<String>getCc()Gets the value of the cc property.StringgetContentType()Gets the value of the contentType property.StringgetFrom()Gets the value of the from property.StringgetSubject()Gets the value of the subject property.List<String>getTo()Gets the value of the to property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)voidsetBody(String value)Sets the value of the body property.voidsetContentType(String value)Sets the value of the contentType property.voidsetFrom(String value)Sets the value of the from property.voidsetSubject(String value)Sets the value of the subject property.NotificationMessageTypesubject(String value)NotificationMessageTypeto(String value)StringtoString()Generates a String representation of the contents of this type.
-
-
-
Field Detail
-
from
protected String from
-
subject
protected String subject
-
body
protected String body
-
contentType
protected String contentType
-
attachment
protected List<NotificationMessageAttachmentType> attachment
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_FROM
public static final ItemName F_FROM
-
F_TO
public static final ItemName F_TO
-
F_CC
public static final ItemName F_CC
-
F_BCC
public static final ItemName F_BCC
-
F_SUBJECT
public static final ItemName F_SUBJECT
-
F_BODY
public static final ItemName F_BODY
-
F_CONTENT_TYPE
public static final ItemName F_CONTENT_TYPE
-
F_ATTACHMENT
public static final ItemName F_ATTACHMENT
-
-
Constructor Detail
-
NotificationMessageType
public NotificationMessageType()
Creates a newNotificationMessageTypeinstance.
-
NotificationMessageType
public NotificationMessageType(NotificationMessageType o)
Creates a newNotificationMessageTypeinstance by deeply copying a givenNotificationMessageTypeinstance.- Parameters:
o- The instance to copy.- Throws:
NullPointerException- ifoisnull.
-
-
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 isString
-
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
setmethod 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
setmethod 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
setmethod 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 isString
-
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 isString
-
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 isString
-
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
setmethod 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
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode
-
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:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals
-
from
public NotificationMessageType from(String value)
-
to
public NotificationMessageType to(String value)
-
cc
public NotificationMessageType cc(String value)
-
bcc
public NotificationMessageType bcc(String value)
-
subject
public NotificationMessageType subject(String value)
-
body
public NotificationMessageType body(String value)
-
contentType
public NotificationMessageType contentType(String value)
-
attachment
public NotificationMessageType attachment(NotificationMessageAttachmentType value)
-
beginAttachment
public NotificationMessageAttachmentType beginAttachment()
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
acceptin interfaceJaxbVisitable
-
clone
public NotificationMessageType clone()
Creates and returns a deep copy of this object.
-
-