Package org.jivesoftware.smack.packet
Class XmlEnvironment
- java.lang.Object
-
- org.jivesoftware.smack.packet.XmlEnvironment
-
public class XmlEnvironment extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XmlEnvironment.Builder
-
Field Summary
Fields Modifier and Type Field Description static XmlEnvironment
EMPTY
-
Constructor Summary
Constructors Constructor Description XmlEnvironment(String namespace)
XmlEnvironment(String namespace, String language)
XmlEnvironment(String namespace, String language, XmlEnvironment next)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XmlEnvironment.Builder
builder()
boolean
effectiveLanguageEquals(String language)
boolean
effectiveNamespaceEquals(String namespace)
static XmlEnvironment
from(XmlPullParser parser)
static XmlEnvironment
from(XmlPullParser parser, XmlEnvironment outerXmlEnvironment)
String
getEffectiveLanguage()
String
getEffectiveNamespace()
String
getEffectiveNamespaceOrUse(String namespace)
String
getLanguage()
String
getNamespace()
String
toString()
-
-
-
Field Detail
-
EMPTY
public static final XmlEnvironment EMPTY
-
-
Constructor Detail
-
XmlEnvironment
public XmlEnvironment(String namespace)
-
XmlEnvironment
public XmlEnvironment(String namespace, String language)
-
XmlEnvironment
public XmlEnvironment(String namespace, String language, XmlEnvironment next)
-
-
Method Detail
-
getNamespace
public String getNamespace()
-
getEffectiveNamespace
public String getEffectiveNamespace()
-
getEffectiveNamespaceOrUse
public String getEffectiveNamespaceOrUse(String namespace)
-
effectiveNamespaceEquals
public boolean effectiveNamespaceEquals(String namespace)
-
getLanguage
public String getLanguage()
-
getEffectiveLanguage
public String getEffectiveLanguage()
-
effectiveLanguageEquals
public boolean effectiveLanguageEquals(String language)
-
from
public static XmlEnvironment from(XmlPullParser parser)
-
from
public static XmlEnvironment from(XmlPullParser parser, XmlEnvironment outerXmlEnvironment)
-
builder
public static XmlEnvironment.Builder builder()
-
-