public class ConferenceInfoDocument.Endpoint
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addMedia(ConferenceInfoDocument.Media media)
Adds a copy of media to this Endpoint
|
ConferenceInfoDocument.Media |
addNewMedia(java.lang.String id)
Creates a new Media instance, adds it to this
Endpoint and returns it.
|
java.lang.String |
getEntity()
Returns the entity attribute of this Endpoint's
element.
|
ConferenceInfoDocument.Media |
getMedia(java.lang.String id)
Searches this Endpoint's associated Medias
and returns the one with id attribute id, or
null if one wasn't found.
|
java.util.List<ConferenceInfoDocument.Media> |
getMedias()
Returns the list of Medias which represent the
media children of this Endpoint's element.
|
ConferenceInfoDocument.State |
getState()
Returns the value of the state attribute of this
Endpoint's element
|
ConferenceInfoDocument.EndpointStatusType |
getStatus()
Returns the EndpointStatusType corresponding to the
status child of this Endpoint's element, or
null.
|
void |
removeMedia(java.lang.String id)
Removes a specific Media (the one with id id) from
this Endpoint.
|
void |
setEntity(java.lang.String entity)
Sets the entity attribute of this Endpoint's
element to entity
|
void |
setState(ConferenceInfoDocument.State state)
Sets the state attribute of this User's element to
state
|
void |
setStatus(ConferenceInfoDocument.EndpointStatusType status)
Sets the status child element of this Endpoint's
element.
|
public void setEntity(java.lang.String entity)
entity
- the value to set for the entity attribute.public java.lang.String getEntity()
public void setState(ConferenceInfoDocument.State state)
state
- the value to use for the state attribute.public ConferenceInfoDocument.State getState()
public void setStatus(ConferenceInfoDocument.EndpointStatusType status)
status
- the value to be used for the text content of the
status element.public ConferenceInfoDocument.EndpointStatusType getStatus()
public java.util.List<ConferenceInfoDocument.Media> getMedias()
public ConferenceInfoDocument.Media getMedia(java.lang.String id)
id
- The value of the id attribute to search
for.public ConferenceInfoDocument.Media addNewMedia(java.lang.String id)
id
- The value to use for the id attribute of the
new Media's element.public void addMedia(ConferenceInfoDocument.Media media)
media
- the Media to add a copy ofpublic void removeMedia(java.lang.String id)
id
- the id of the Media to remove.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.