|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjabber.server.Message
public class Message
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice maxOccurs="unbounded" minOccurs="0"> <element ref="{jabber:server}subject"/> <element ref="{jabber:server}body"/> <element ref="{jabber:server}thread"/> </choice> <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> <element ref="{jabber:server}error" minOccurs="0"/> </sequence> <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" default="normal"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> <enumeration value="chat"/> <enumeration value="error"/> <enumeration value="groupchat"/> <enumeration value="headline"/> <enumeration value="normal"/> </restriction> </simpleType> </attribute> <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> </restriction> </complexContent> </complexType>
Field Summary | |
---|---|
protected List<Object> |
any
|
protected Error |
error
|
protected String |
from
|
protected String |
id
|
protected String |
lang
|
protected List<Object> |
subjectOrBodyOrThread
|
protected String |
to
|
protected String |
type
|
Constructor Summary | |
---|---|
Message()
|
Method Summary | |
---|---|
List<Object> |
getAny()
Gets the value of the any property. |
Error |
getError()
Gets the value of the error property. |
String |
getFrom()
Gets the value of the from property. |
String |
getId()
Gets the value of the id property. |
String |
getLang()
Gets the value of the lang property. |
List<Object> |
getSubjectOrBodyOrThread()
Gets the value of the subjectOrBodyOrThread property. |
String |
getTo()
Gets the value of the to property. |
String |
getType()
Gets the value of the type property. |
void |
setError(Error value)
Sets the value of the error property. |
void |
setFrom(String value)
Sets the value of the from property. |
void |
setId(String value)
Sets the value of the id property. |
void |
setLang(String value)
Sets the value of the lang property. |
void |
setTo(String value)
Sets the value of the to property. |
void |
setType(String value)
Sets the value of the type property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List<Object> subjectOrBodyOrThread
protected List<Object> any
protected Error error
protected String from
protected String id
protected String to
protected String type
protected String lang
Constructor Detail |
---|
public Message()
Method Detail |
---|
public List<Object> getSubjectOrBodyOrThread()
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 subjectOrBodyOrThread property.
For example, to add a new item, do as follows:
getSubjectOrBodyOrThread().add(newItem);
Objects of the following type(s) are allowed in the list
JAXBElement
<
String
>
Body
Subject
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
public Error getError()
Error
public void setError(Error value)
value
- allowed object is
Error
public String getFrom()
String
public void setFrom(String value)
value
- allowed object is
String
public String getId()
String
public void setId(String value)
value
- allowed object is
String
public String getTo()
String
public void setTo(String value)
value
- allowed object is
String
public String getType()
String
public void setType(String value)
value
- allowed object is
String
public String getLang()
String
public void setLang(String value)
value
- allowed object is
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |