|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjabber.server.Presence
public class Presence
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}show"/> <element ref="{jabber:server}status"/> <element ref="{jabber:server}priority"/> </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"> <simpleType> <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> <enumeration value="error"/> <enumeration value="probe"/> <enumeration value="subscribe"/> <enumeration value="subscribed"/> <enumeration value="unavailable"/> <enumeration value="unsubscribe"/> <enumeration value="unsubscribed"/> </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> |
showOrStatusOrPriority
|
protected String |
to
|
protected String |
type
|
Constructor Summary | |
---|---|
Presence()
|
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> |
getShowOrStatusOrPriority()
Gets the value of the showOrStatusOrPriority 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> showOrStatusOrPriority
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 Presence()
Method Detail |
---|
public List<Object> getShowOrStatusOrPriority()
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 showOrStatusOrPriority property.
For example, to add a new item, do as follows:
getShowOrStatusOrPriority().add(newItem);
Objects of the following type(s) are allowed in the list
JAXBElement
<
Byte
>
JAXBElement
<
String
>
Status
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 |