|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quartzdesk.service.msgrecv.v5_0.Message
public class Message
Java class for Message complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Message">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="body" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="createdAt" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
<element name="createdBy" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="attachments" type="{http://service.quartzdesk.com/msgrecv/v5_0}MessageAttachment" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected List<MessageAttachment> |
attachments
|
protected String |
body
|
protected Calendar |
createdAt
|
protected String |
createdBy
|
protected String |
subject
|
| Constructor Summary | |
|---|---|
Message()
|
|
| Method Summary | |
|---|---|
List<MessageAttachment> |
getAttachments()
Gets the value of the attachments property. |
String |
getBody()
Gets the value of the body property. |
Calendar |
getCreatedAt()
Gets the value of the createdAt property. |
String |
getCreatedBy()
Gets the value of the createdBy property. |
String |
getSubject()
Gets the value of the subject property. |
void |
setAttachments(List<MessageAttachment> attachments)
Sets the value of the attachments property. |
void |
setBody(String value)
Sets the value of the body property. |
void |
setCreatedAt(Calendar value)
Sets the value of the createdAt property. |
void |
setCreatedBy(String value)
Sets the value of the createdBy property. |
void |
setSubject(String value)
Sets the value of the subject property. |
Message |
withAttachments(Collection<MessageAttachment> values)
|
Message |
withAttachments(MessageAttachment... values)
|
Message |
withBody(String value)
|
Message |
withCreatedAt(Calendar value)
|
Message |
withCreatedBy(String value)
|
Message |
withSubject(String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String subject
protected String body
protected Calendar createdAt
protected String createdBy
protected List<MessageAttachment> attachments
| Constructor Detail |
|---|
public Message()
| Method Detail |
|---|
public String getSubject()
Stringpublic void setSubject(String value)
value - allowed object is
Stringpublic String getBody()
Stringpublic void setBody(String value)
value - allowed object is
Stringpublic Calendar getCreatedAt()
Stringpublic void setCreatedAt(Calendar value)
value - allowed object is
Stringpublic String getCreatedBy()
Stringpublic void setCreatedBy(String value)
value - allowed object is
Stringpublic List<MessageAttachment> getAttachments()
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 attachments property.
For example, to add a new item, do as follows:
getAttachments().add(newItem);
Objects of the following type(s) are allowed in the list
MessageAttachment
public Message withSubject(String value)
public Message withBody(String value)
public Message withCreatedAt(Calendar value)
public Message withCreatedBy(String value)
public Message withAttachments(MessageAttachment... values)
public Message withAttachments(Collection<MessageAttachment> values)
public void setAttachments(List<MessageAttachment> attachments)
attachments - allowed object is
MessageAttachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||