Class JingleError
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.element.JingleError
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public final class JingleError extends java.lang.Object implements ExtensionElement
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMESPACE
static JingleError
OUT_OF_ORDER
static JingleError
TIE_BREAK
static JingleError
UNKNOWN_SESSION
static JingleError
UNSUPPORTED_INFO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JingleError
fromString(java.lang.String value)
Returns a error instance associated with the String value.java.lang.String
getElementName()
Returns the root element name.java.lang.String
getMessage()
Returns the name of the Jingle error.java.lang.String
getNamespace()
Returns the root element XML namespace.java.lang.String
toString()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NAMESPACE
public static java.lang.String NAMESPACE
-
OUT_OF_ORDER
public static final JingleError OUT_OF_ORDER
-
TIE_BREAK
public static final JingleError TIE_BREAK
-
UNKNOWN_SESSION
public static final JingleError UNKNOWN_SESSION
-
UNSUPPORTED_INFO
public static final JingleError UNSUPPORTED_INFO
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Returns the name of the Jingle error.- Returns:
- the name of the error.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
fromString
public static JingleError fromString(java.lang.String value)
Returns a error instance associated with the String value.- Parameters:
value
- the input String.- Returns:
- the jingle error instance associated with the input String.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
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.
-
-