Package org.jivesoftware.smack.xml
Enum XmlPullParser.Event
- java.lang.Object
-
- java.lang.Enum<XmlPullParser.Event>
-
- org.jivesoftware.smack.xml.XmlPullParser.Event
-
- All Implemented Interfaces:
Serializable
,Comparable<XmlPullParser.Event>
- Enclosing interface:
- XmlPullParser
public static enum XmlPullParser.Event extends Enum<XmlPullParser.Event>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMENT
END_DOCUMENT
END_ELEMENT
ENTITY_REFERENCE
IGNORABLE_WHITESPACE
OTHER
PROCESSING_INSTRUCTION
START_DOCUMENT
START_ELEMENT
TEXT_CHARACTERS
Replaces TEXT from XPP3.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlPullParser.Event
valueOf(String name)
Returns the enum constant of this type with the specified name.static XmlPullParser.Event[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
START_DOCUMENT
public static final XmlPullParser.Event START_DOCUMENT
-
END_DOCUMENT
public static final XmlPullParser.Event END_DOCUMENT
-
START_ELEMENT
public static final XmlPullParser.Event START_ELEMENT
-
END_ELEMENT
public static final XmlPullParser.Event END_ELEMENT
-
TEXT_CHARACTERS
public static final XmlPullParser.Event TEXT_CHARACTERS
Replaces TEXT from XPP3.
-
PROCESSING_INSTRUCTION
public static final XmlPullParser.Event PROCESSING_INSTRUCTION
-
COMMENT
public static final XmlPullParser.Event COMMENT
-
IGNORABLE_WHITESPACE
public static final XmlPullParser.Event IGNORABLE_WHITESPACE
-
ENTITY_REFERENCE
public static final XmlPullParser.Event ENTITY_REFERENCE
-
OTHER
public static final XmlPullParser.Event OTHER
-
-
Method Detail
-
values
public static XmlPullParser.Event[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XmlPullParser.Event c : XmlPullParser.Event.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlPullParser.Event valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-