|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SMEvent>
org.codehaus.staxmate.in.SMEvent
public enum SMEvent
| Enum Constant Summary | |
|---|---|
ATTRIBUTE
|
|
CDATA
|
|
COMMENT
|
|
DOCTYPE_DECL
|
|
END_DOCUMENT
|
|
END_ELEMENT
|
|
ENTITY_DECL
|
|
ENTITY_REF
|
|
IGNORABLE_WS
|
|
NAMESPACE_DECL
|
|
NOTATION_DECL
|
|
PROCESSING_INSTR
|
|
START_DOCUMENT
|
|
START_ELEMENT
|
|
TEXT
|
|
UNKNOWN
This is a placeholder event which should never be encountered during normal operation. |
|
| Method Summary | |
|---|---|
int |
getEventCode()
|
boolean |
hasLocalName()
This method returns true if it would be ok to call SMInputCursor.getLocalName()
of the iterator object, when it is positioned over this
event. |
boolean |
hasQName()
This method returns true if it would be ok to call SMInputCursor.getQName()
of the iterator object, when it is positioned over this
event. |
boolean |
hasText()
This method returns true if it would be ok to call SMInputCursor.getText()
of the iterator object, when it is positioned over this
event. |
boolean |
isElementEvent()
|
boolean |
isTextualEvent()
Textual events are events that consist of regular document text content: ignorable white space, CDATA segments, and other text. |
static SMEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SMEvent[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SMEvent START_DOCUMENT
public static final SMEvent END_DOCUMENT
public static final SMEvent START_ELEMENT
public static final SMEvent END_ELEMENT
public static final SMEvent TEXT
public static final SMEvent CDATA
public static final SMEvent IGNORABLE_WS
public static final SMEvent COMMENT
public static final SMEvent PROCESSING_INSTR
public static final SMEvent DOCTYPE_DECL
public static final SMEvent ENTITY_DECL
public static final SMEvent ENTITY_REF
public static final SMEvent NOTATION_DECL
public static final SMEvent ATTRIBUTE
public static final SMEvent NAMESPACE_DECL
public static final SMEvent UNKNOWN
| Method Detail |
|---|
public static SMEvent[] values()
for (SMEvent c : SMEvent.values()) System.out.println(c);
public static SMEvent valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int getEventCode()
public boolean isElementEvent()
public boolean isTextualEvent()
XMLStreamReader.getText() methods can
be called, and they can also be output using regular text
output methods.
Note that set of events for which this returns true is less than
that of hasText(); since this only includes "true" textual
events, not just events that have some associated text.
public boolean hasText()
SMInputCursor.getText()
of the iterator object, when it is positioned over this
event.
Note that set of events for which this returns true is
bigger than for which XMLStreamReader.hasText() returns
true; this because StaxMate has looser definition of contained
text. For example, true will be returned for Processing
Instructions, since the 'data' part of the processing instruction
is considered to be text by StaxMate.
public boolean hasLocalName()
SMInputCursor.getLocalName()
of the iterator object, when it is positioned over this
event.
public boolean hasQName()
SMInputCursor.getQName()
of the iterator object, when it is positioned over this
event.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||