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>
attachment
protected List<String>
bcc
protected String
body
protected List<String>
cc
static QName
COMPLEX_TYPE
protected String
contentType
static ItemName
F_ATTACHMENT
static ItemName
F_BCC
static ItemName
F_BODY
static ItemName
F_CC
static ItemName
F_CONTENT_TYPE
static ItemName
F_FROM
static ItemName
F_SUBJECT
static ItemName
F_TO
protected String
from
protected String
subject
protected List<String>
to
-
Constructor Summary
Constructors Constructor Description NotificationMessageType()
Creates a newNotificationMessageType
instance.NotificationMessageType(NotificationMessageType o)
Creates a newNotificationMessageType
instance by deeply copying a givenNotificationMessageType
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
NotificationMessageType
attachment(NotificationMessageAttachmentType value)
NotificationMessageType
bcc(String value)
NotificationMessageAttachmentType
beginAttachment()
NotificationMessageType
body(String value)
NotificationMessageType
cc(String value)
NotificationMessageType
clone()
Creates and returns a deep copy of this object.NotificationMessageType
contentType(String value)
boolean
equals(Object object)
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)
NotificationMessageType
from(String value)
List<NotificationMessageAttachmentType>
getAttachment()
Gets the value of the attachment property.List<String>
getBcc()
Gets the value of the bcc property.String
getBody()
Gets the value of the body property.List<String>
getCc()
Gets the value of the cc property.String
getContentType()
Gets the value of the contentType property.String
getFrom()
Gets the value of the from property.String
getSubject()
Gets the value of the subject property.List<String>
getTo()
Gets the value of the to property.int
hashCode()
int
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
void
setBody(String value)
Sets the value of the body property.void
setContentType(String value)
Sets the value of the contentType property.void
setFrom(String value)
Sets the value of the from property.void
setSubject(String value)
Sets the value of the subject property.NotificationMessageType
subject(String value)
NotificationMessageType
to(String value)
String
toString()
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 newNotificationMessageType
instance.
-
NotificationMessageType
public NotificationMessageType(NotificationMessageType o)
Creates a newNotificationMessageType
instance by deeply copying a givenNotificationMessageType
instance.- Parameters:
o
- The instance to copy.- Throws:
NullPointerException
- ifo
isnull
.
-
-
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
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 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
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
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
- Specified by:
hashCode
in 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:
equals
in 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:
accept
in interfaceJaxbVisitable
-
clone
public NotificationMessageType clone()
Creates and returns a deep copy of this object.
-
-