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 java.lang.Object implements ExtensionElement
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELEMENT
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTextElement(java.lang.String text, java.lang.String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getElementName()
Returns the root element name.java.lang.String
getLang()
Deprecated.usegetLanguage()
instead.java.lang.String
getLanguage()
Returns the xml:lang of this XML element, or null if one has not been set.java.lang.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 java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractTextElement
protected AbstractTextElement(java.lang.String text, java.lang.String lang)
-
-
Method Detail
-
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.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getText
public final java.lang.String getText()
-
getLanguage
public final java.lang.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 java.lang.String getLang()
Deprecated.usegetLanguage()
instead.Deprecated.- Returns:
- deprecated
-
-