Class JingleError
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.element.JingleError
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public final class JingleError extends Object implements ExtensionElement
-
-
Field Summary
Fields Modifier and Type Field Description static 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(String value)
Returns a error instance associated with the String value.String
getElementName()
Returns the root element name.String
getMessage()
Returns the name of the Jingle error.String
getNamespace()
Returns the root element XML namespace.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
-
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 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(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.
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
-