Class JingleContent
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.packet.JingleContent
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class JingleContent extends Object implements ExtensionElement
Jingle content.
-
-
Constructor Summary
Constructors Constructor Description JingleContent(String creator, String name)
Creates a content description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addJingleTransport(JingleTransport transport)
Adds a JingleTransport type to the packet.void
addTransports(List<JingleTransport> transports)
Adds a list of transports to add to the packet.String
getCreator()
JingleDescription
getDescription()
Gets the description for this Jingle content.String
getElementName()
Returns the XML element name of the element.Iterator<JingleTransport>
getJingleTransports()
Returns an Iterator for the JingleTransports in the packet.int
getJingleTransportsCount()
Returns a count of the JingleTransports in the Jingle packet.List<JingleTransport>
getJingleTransportsList()
Returns a list for the JingleTransports in the packet.String
getName()
String
getNamespace()
Return the namespace.void
setDescription(JingleDescription description)
Sets the description for this Jingle content.String
toXML(XmlEnvironment enclosingNamespace)
Convert a Jingle description to XML.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NODENAME
public static final String NODENAME
- See Also:
- Constant Field Values
-
CREATOR
public static final String CREATOR
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JingleContent
public JingleContent(String creator, String name)
Creates a content description.- Parameters:
creator
- the creator.name
- the name.
-
-
Method Detail
-
getCreator
public String getCreator()
-
getElementName
public String getElementName()
Returns the XML element name of the element.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the XML element name of the element.
-
getNamespace
public String getNamespace()
Return the namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- The namespace
-
setDescription
public void setDescription(JingleDescription description)
Sets the description for this Jingle content.- Parameters:
description
- TODO javadoc me please The description
-
getDescription
public JingleDescription getDescription()
Gets the description for this Jingle content.- Returns:
- The description.
-
addJingleTransport
public void addJingleTransport(JingleTransport transport)
Adds a JingleTransport type to the packet.- Parameters:
transport
- TODO javadoc me please the JingleTransport to add.
-
addTransports
public void addTransports(List<JingleTransport> transports)
Adds a list of transports to add to the packet.- Parameters:
transports
- TODO javadoc me please the transports to add.
-
getJingleTransports
public Iterator<JingleTransport> getJingleTransports()
Returns an Iterator for the JingleTransports in the packet.- Returns:
- an Iterator for the JingleTransports in the packet.
-
getJingleTransportsList
public List<JingleTransport> getJingleTransportsList()
Returns a list for the JingleTransports in the packet.- Returns:
- a list for the JingleTransports in the packet.
-
getJingleTransportsCount
public int getJingleTransportsCount()
Returns a count of the JingleTransports in the Jingle packet.- Returns:
- the number of the JingleTransports in the Jingle packet.
-
toXML
public String toXML(XmlEnvironment enclosingNamespace)
Convert a Jingle description to XML.
-
-