Class NotificationMessageAttachmentType
- java.lang.Object
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.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 Summary
Fields Modifier and Type Field Description static QNameCOMPLEX_TYPEprotected Objectcontentprotected StringcontentFromFileprotected StringcontentIdprotected StringcontentTypestatic ItemNameF_CONTENTstatic ItemNameF_CONTENT_FROM_FILEstatic ItemNameF_CONTENT_IDstatic ItemNameF_CONTENT_TYPEstatic ItemNameF_FILE_NAMEprotected StringfileName
-
Constructor Summary
Constructors Constructor Description NotificationMessageAttachmentType()Creates a newNotificationMessageAttachmentTypeinstance.NotificationMessageAttachmentType(NotificationMessageAttachmentType o)Creates a newNotificationMessageAttachmentTypeinstance by deeply copying a givenNotificationMessageAttachmentTypeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(JaxbVisitor visitor)NotificationMessageAttachmentTypeclone()Creates and returns a deep copy of this object.NotificationMessageAttachmentTypecontent(Object value)NotificationMessageAttachmentTypecontentFromFile(String value)NotificationMessageAttachmentTypecontentId(String value)NotificationMessageAttachmentTypecontentType(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)NotificationMessageAttachmentTypefileName(String value)ObjectgetContent()Gets the value of the content property.StringgetContentFromFile()Gets the value of the contentFromFile property.StringgetContentId()Gets the value of the contentId property.StringgetContentType()Gets the value of the contentType property.StringgetFileName()Gets the value of the fileName property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)voidsetContent(Object value)Sets the value of the content property.voidsetContentFromFile(String value)Sets the value of the contentFromFile property.voidsetContentId(String value)Sets the value of the contentId property.voidsetContentType(String value)Sets the value of the contentType property.voidsetFileName(String value)Sets the value of the fileName property.StringtoString()Generates a String representation of the contents of this type.
-
-
-
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 newNotificationMessageAttachmentTypeinstance.
-
NotificationMessageAttachmentType
public NotificationMessageAttachmentType(NotificationMessageAttachmentType o)
Creates a newNotificationMessageAttachmentTypeinstance by deeply copying a givenNotificationMessageAttachmentTypeinstance.- Parameters:
o- The instance to copy.- Throws:
NullPointerException- ifoisnull.
-
-
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 isString
-
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 isObject
-
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 isString
-
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 isString
-
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 isString
-
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
-
contentType
public NotificationMessageAttachmentType contentType(String value)
-
content
public NotificationMessageAttachmentType content(Object value)
-
contentFromFile
public NotificationMessageAttachmentType contentFromFile(String value)
-
fileName
public NotificationMessageAttachmentType fileName(String value)
-
contentId
public NotificationMessageAttachmentType contentId(String value)
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
acceptin interfaceJaxbVisitable
-
clone
public NotificationMessageAttachmentType clone()
Creates and returns a deep copy of this object.
-
-