Class SetData
- java.lang.Object
-
- org.jivesoftware.smackx.iot.control.element.SetData
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
SetBoolData
,SetDoubleData
,SetIntData
,SetLongData
public abstract class SetData extends Object implements ExtensionElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetData.Type
-
Constructor Summary
Constructors Modifier Constructor Description protected
SetData(String name, SetData.Type type, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElementName()
Returns the root element name.String
getName()
String
getNamespace()
Returns the root element XML namespace.SetData.Type
getType()
String
getValue()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
Returns the XML representation of this Element.-
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
-
-
-
-
Constructor Detail
-
SetData
protected SetData(String name, SetData.Type type, String value)
-
-
Method Detail
-
getType
public final SetData.Type getType()
-
getElementName
public final String getElementName()
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public final String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public final XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
Returns the XML representation of this Element.
-
-