Package org.jivesoftware.smack.packet
Class AbstractTextElement
- java.lang.Object
-
- org.jivesoftware.smack.packet.AbstractTextElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Direct Known Subclasses:
StanzaErrorTextElement
public abstract class AbstractTextElement extends Object implements ExtensionElement
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTextElement(String text, String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getElementName()
Returns the root element name.String
getLang()
Deprecated.usegetLanguage()
instead.String
getLanguage()
Returns the xml:lang of this XML element, or null if one has not been set.String
getText()
XmlStringBuilder
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
getNamespace, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractTextElement
protected AbstractTextElement(String text, String lang)
-
-
Method Detail
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getLanguage
public final String getLanguage()
Description copied from interface:XmlLangElement
Returns the xml:lang of this XML element, or null if one has not been set.- Specified by:
getLanguage
in interfaceFullyQualifiedElement
- Specified by:
getLanguage
in interfaceXmlLangElement
- Returns:
- the xml:lang of this XML element, or null.
-
getLang
@Deprecated public final String getLang()
Deprecated.usegetLanguage()
instead.Deprecated.- Returns:
- deprecated
-
-