public class Presence extends Object
Java class for presence complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="presence">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="tuple" type="{urn:ietf:params:xml:ns:pidf}tuple" maxOccurs="unbounded" minOccurs="0"/>
<element name="note" type="{urn:ietf:params:xml:ns:pidf}note" maxOccurs="unbounded" minOccurs="0"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="entity" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Object> |
any |
protected String |
entity |
protected List<Note> |
note |
protected List<Tuple> |
tuple |
| Constructor and Description |
|---|
Presence() |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getAny()
Gets the value of the any property.
|
String |
getEntity()
Gets the value of the entity property.
|
List<Note> |
getNote()
Gets the value of the note property.
|
List<Tuple> |
getTuple()
Gets the value of the tuple property.
|
void |
setEntity(String value)
Sets the value of the entity property.
|
protected String entity
public List<Tuple> getTuple()
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 tuple property.
For example, to add a new item, do as follows:
getTuple().add(newItem);
Objects of the following type(s) are allowed in the list
Tuple
public List<Note> getNote()
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 note property.
For example, to add a new item, do as follows:
getNote().add(newItem);
Objects of the following type(s) are allowed in the list
Note
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
Element
public String getEntity()
StringCopyright © 2018. All rights reserved.