public class Message extends Object
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="body" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="type" type="{http://ws.rim.com/enterprise/admin}MessageType" minOccurs="0"/> <any/> </sequence> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<Object> |
any |
protected String |
body |
protected String |
subject |
protected MessageType |
type |
Constructor and Description |
---|
Message() |
Modifier and Type | Method and Description |
---|---|
List<Object> |
getAny()
Gets the value of the any property.
|
String |
getBody()
Gets the value of the body property.
|
String |
getSubject()
Gets the value of the subject property.
|
MessageType |
getType()
Gets the value of the type property.
|
void |
setBody(String value)
Sets the value of the body property.
|
void |
setSubject(String value)
Sets the value of the subject property.
|
void |
setType(MessageType value)
Sets the value of the type property.
|
protected String body
protected String subject
protected MessageType type
public String getBody()
String
public void setBody(String value)
value
- allowed object is String
public String getSubject()
String
public void setSubject(String value)
value
- allowed object is String
public MessageType getType()
MessageType
public void setType(MessageType value)
value
- allowed object is MessageType
public List<Object> getAny()
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 any
property.
For example, to add a new item, do as follows:
getAny().add(newItem);
Objects of the following type(s) are allowed in the list Object
Copyright © 2014. All rights reserved.