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 java.lang.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(java.lang.String name, SetData.Type type, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementName()
Returns the root element name.java.lang.String
getName()
java.lang.String
getNamespace()
Returns the root element XML namespace.SetData.Type
getType()
java.lang.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(java.lang.String name, SetData.Type type, java.lang.String value)
-
-
Method Detail
-
getName
public final java.lang.String getName()
-
getValue
public final java.lang.String getValue()
-
getType
public final SetData.Type getType()
-
getElementName
public final java.lang.String getElementName()
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public final 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 final XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
Returns the XML representation of this Element.
-
-