Class MetaData
- java.lang.Object
-
- org.jivesoftware.smackx.workgroup.MetaData
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class MetaData extends java.lang.Object implements ExtensionElement
MetaData stanza extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELEMENT_NAME
Element name of the stanza extension.static java.lang.String
NAMESPACE
Namespace of the stanza extension.
-
Constructor Summary
Constructors Constructor Description MetaData(java.util.Map<java.lang.String,java.util.List<java.lang.String>> metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementName()
Returns the root element name.java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getMetaData()
Get meta data.java.lang.String
getNamespace()
Returns the root element XML namespace.java.lang.String
toXML(XmlEnvironment enclosingNamespace)
-
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
-
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
Element name of the stanza extension.- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
Namespace of the stanza extension.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetaData
public MetaData(java.util.Map<java.lang.String,java.util.List<java.lang.String>> metaData)
-
-
Method Detail
-
getMetaData
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getMetaData()
Get meta data.- Returns:
- the Map of metadata contained by this instance
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public java.lang.String toXML(XmlEnvironment enclosingNamespace)
-
-