Package org.apache.xmlbeans
Class XmlCursor.TokenType
java.lang.Object
org.apache.xmlbeans.XmlCursor.TokenType
- Enclosing interface:
XmlCursor
An enumeration that identifies the type of an XML token.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final XmlCursor.TokenTypeThe singleton attribute token typestatic final XmlCursor.TokenTypeThe singleton comment token typestatic final XmlCursor.TokenTypeThe singleton end-element token typestatic final XmlCursor.TokenTypeThe singleton start-document token typestatic final intThe attribute token.static final intThe comment token.static final intThe end-element token.static final intThe end-document token.static final intThe namespace declaration token.static final intNo token.static final intThe processing instruction token.static final intThe start-element token.static final intThe start-document token.static final intThe text token.static final XmlCursor.TokenTypeThe singleton namespace declaration token typestatic final XmlCursor.TokenTypeThe singleton no-token typestatic final XmlCursor.TokenTypeThe singleton processing instruction token typestatic final XmlCursor.TokenTypeThe singleton start-element token typestatic final XmlCursor.TokenTypeThe singleton start-document token typestatic final XmlCursor.TokenTypeThe singleton text token type -
Method Summary
Modifier and TypeMethodDescriptionintintValue()Returns one of the INT_ values defined in this class.booleanTrue if is attribute or namespace declaration tokenbooleanisAttr()True if is attribute token.booleanTrue if is comment token.booleanTrue if is start-document or start-element tokenbooleanisEnd()True if is end-element token.booleanisEnddoc()True if is end-document token.booleanisFinish()True if is end-document or end-element tokenbooleanTrue if is namespace declaration token.booleanisNone()True if no token.booleanTrue if is processing instruction token.booleanisStart()True if is start-element token.booleanTrue if is start-document token.booleanisText()True if is text token.toString()
-
Field Details
-
INT_NONE
public static final int INT_NONENo token. SeeintValue().- See Also:
-
INT_STARTDOC
public static final int INT_STARTDOCThe start-document token. SeeintValue().- See Also:
-
INT_ENDDOC
public static final int INT_ENDDOCThe end-document token. SeeintValue().- See Also:
-
INT_START
public static final int INT_STARTThe start-element token. SeeintValue().- See Also:
-
INT_END
public static final int INT_ENDThe end-element token. SeeintValue().- See Also:
-
INT_TEXT
public static final int INT_TEXTThe text token. SeeintValue().- See Also:
-
INT_ATTR
public static final int INT_ATTRThe attribute token. SeeintValue().- See Also:
-
INT_NAMESPACE
public static final int INT_NAMESPACEThe namespace declaration token. SeeintValue().- See Also:
-
INT_COMMENT
public static final int INT_COMMENTThe comment token. SeeintValue().- See Also:
-
INT_PROCINST
public static final int INT_PROCINSTThe processing instruction token. SeeintValue().- See Also:
-
NONE
The singleton no-token type -
STARTDOC
The singleton start-document token type -
ENDDOC
The singleton start-document token type -
START
The singleton start-element token type -
END
The singleton end-element token type -
TEXT
The singleton text token type -
ATTR
The singleton attribute token type -
NAMESPACE
The singleton namespace declaration token type -
COMMENT
The singleton comment token type -
PROCINST
The singleton processing instruction token type
-
-
Method Details
-
toString
-
intValue
public int intValue()Returns one of the INT_ values defined in this class. -
isNone
public boolean isNone()True if no token. -
isStartdoc
public boolean isStartdoc()True if is start-document token. -
isEnddoc
public boolean isEnddoc()True if is end-document token. -
isStart
public boolean isStart()True if is start-element token. -
isEnd
public boolean isEnd()True if is end-element token. -
isText
public boolean isText()True if is text token. -
isAttr
public boolean isAttr()True if is attribute token. -
isNamespace
public boolean isNamespace()True if is namespace declaration token. -
isComment
public boolean isComment()True if is comment token. -
isProcinst
public boolean isProcinst()True if is processing instruction token. -
isContainer
public boolean isContainer()True if is start-document or start-element token -
isFinish
public boolean isFinish()True if is end-document or end-element token -
isAnyAttr
public boolean isAnyAttr()True if is attribute or namespace declaration token
-