Package org.apache.xmlbeans
Class XmlCursor.TokenType
- java.lang.Object
-
- org.apache.xmlbeans.XmlCursor.TokenType
-
- Enclosing interface:
- XmlCursor
public static final class XmlCursor.TokenType extends java.lang.ObjectAn enumeration that identifies the type of an XML token.
-
-
Field Summary
Fields Modifier and Type Field Description static XmlCursor.TokenTypeATTRThe singleton attribute token typestatic XmlCursor.TokenTypeCOMMENTThe singleton comment token typestatic XmlCursor.TokenTypeENDThe singleton end-element token typestatic XmlCursor.TokenTypeENDDOCThe singleton start-document token typestatic intINT_ATTRThe attribute token.static intINT_COMMENTThe comment token.static intINT_ENDThe end-element token.static intINT_ENDDOCThe end-document token.static intINT_NAMESPACEThe namespace declaration token.static intINT_NONENo token.static intINT_PROCINSTThe processing instruction token.static intINT_STARTThe start-element token.static intINT_STARTDOCThe start-document token.static intINT_TEXTThe text token.static XmlCursor.TokenTypeNAMESPACEThe singleton namespace declaration token typestatic XmlCursor.TokenTypeNONEThe singleton no-token typestatic XmlCursor.TokenTypePROCINSTThe singleton processing instruction token typestatic XmlCursor.TokenTypeSTARTThe singleton start-element token typestatic XmlCursor.TokenTypeSTARTDOCThe singleton start-document token typestatic XmlCursor.TokenTypeTEXTThe singleton text token type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intintValue()Returns one of the INT_ values defined in this class.booleanisAnyAttr()True if is attribute or namespace declaration tokenbooleanisAttr()True if is attribute token.booleanisComment()True if is comment token.booleanisContainer()True 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 tokenbooleanisNamespace()True if is namespace declaration token.booleanisNone()True if no token.booleanisProcinst()True if is processing instruction token.booleanisStart()True if is start-element token.booleanisStartdoc()True if is start-document token.booleanisText()True if is text token.java.lang.StringtoString()
-
-
-
Field Detail
-
INT_NONE
public static final int INT_NONE
No token. SeeintValue().- See Also:
- Constant Field Values
-
INT_STARTDOC
public static final int INT_STARTDOC
The start-document token. SeeintValue().- See Also:
- Constant Field Values
-
INT_ENDDOC
public static final int INT_ENDDOC
The end-document token. SeeintValue().- See Also:
- Constant Field Values
-
INT_START
public static final int INT_START
The start-element token. SeeintValue().- See Also:
- Constant Field Values
-
INT_END
public static final int INT_END
The end-element token. SeeintValue().- See Also:
- Constant Field Values
-
INT_TEXT
public static final int INT_TEXT
The text token. SeeintValue().- See Also:
- Constant Field Values
-
INT_ATTR
public static final int INT_ATTR
The attribute token. SeeintValue().- See Also:
- Constant Field Values
-
INT_NAMESPACE
public static final int INT_NAMESPACE
The namespace declaration token. SeeintValue().- See Also:
- Constant Field Values
-
INT_COMMENT
public static final int INT_COMMENT
The comment token. SeeintValue().- See Also:
- Constant Field Values
-
INT_PROCINST
public static final int INT_PROCINST
The processing instruction token. SeeintValue().- See Also:
- Constant Field Values
-
NONE
public static final XmlCursor.TokenType NONE
The singleton no-token type
-
STARTDOC
public static final XmlCursor.TokenType STARTDOC
The singleton start-document token type
-
ENDDOC
public static final XmlCursor.TokenType ENDDOC
The singleton start-document token type
-
START
public static final XmlCursor.TokenType START
The singleton start-element token type
-
END
public static final XmlCursor.TokenType END
The singleton end-element token type
-
TEXT
public static final XmlCursor.TokenType TEXT
The singleton text token type
-
ATTR
public static final XmlCursor.TokenType ATTR
The singleton attribute token type
-
NAMESPACE
public static final XmlCursor.TokenType NAMESPACE
The singleton namespace declaration token type
-
COMMENT
public static final XmlCursor.TokenType COMMENT
The singleton comment token type
-
PROCINST
public static final XmlCursor.TokenType PROCINST
The singleton processing instruction token type
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
-
-