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 QName
COMPLEX_TYPE
protected Object
content
protected String
contentFromFile
protected String
contentId
protected String
contentType
static ItemName
F_CONTENT
static ItemName
F_CONTENT_FROM_FILE
static ItemName
F_CONTENT_ID
static ItemName
F_CONTENT_TYPE
static ItemName
F_FILE_NAME
protected String
fileName
-
Constructor Summary
Constructors Constructor Description NotificationMessageAttachmentType()
Creates a newNotificationMessageAttachmentType
instance.NotificationMessageAttachmentType(NotificationMessageAttachmentType o)
Creates a newNotificationMessageAttachmentType
instance by deeply copying a givenNotificationMessageAttachmentType
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
NotificationMessageAttachmentType
clone()
Creates and returns a deep copy of this object.NotificationMessageAttachmentType
content(Object value)
NotificationMessageAttachmentType
contentFromFile(String value)
NotificationMessageAttachmentType
contentId(String value)
NotificationMessageAttachmentType
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)
NotificationMessageAttachmentType
fileName(String value)
Object
getContent()
Gets the value of the content property.String
getContentFromFile()
Gets the value of the contentFromFile property.String
getContentId()
Gets the value of the contentId property.String
getContentType()
Gets the value of the contentType property.String
getFileName()
Gets the value of the fileName property.int
hashCode()
int
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
void
setContent(Object value)
Sets the value of the content property.void
setContentFromFile(String value)
Sets the value of the contentFromFile property.void
setContentId(String value)
Sets the value of the contentId property.void
setContentType(String value)
Sets the value of the contentType property.void
setFileName(String value)
Sets the value of the fileName property.String
toString()
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 newNotificationMessageAttachmentType
instance.
-
NotificationMessageAttachmentType
public NotificationMessageAttachmentType(NotificationMessageAttachmentType o)
Creates a newNotificationMessageAttachmentType
instance by deeply copying a givenNotificationMessageAttachmentType
instance.- Parameters:
o
- The instance to copy.- Throws:
NullPointerException
- ifo
isnull
.
-
-
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:
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
-
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:
accept
in interfaceJaxbVisitable
-
clone
public NotificationMessageAttachmentType clone()
Creates and returns a deep copy of this object.
-
-