public class Presence extends Object
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:component:connect}show"/> <element ref="{jabber:component:connect}status"/> <element ref="{jabber:component:connect}priority"/> </choice> <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> <element ref="{jabber:component:connect}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="subscribe"/> <enumeration value="subscribed"/> <enumeration value="unsubscribe"/> <enumeration value="unsubscribed"/> <enumeration value="unavailable"/> <enumeration value="probe"/> <enumeration value="error"/> </restriction> </simpleType> </attribute> <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Presence() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected Error error
protected String from
protected String id
protected String to
protected String type
protected String lang
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
<
String
>
Status
JAXBElement
<
Byte
>
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 void setId(String value)
value
- allowed object is
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
Copyright © 2020. All rights reserved.