# com.bea.xml
XmlCursor.TokenType Class

public static final class XmlCursor.TokenType
extends `Object`

An enumeration that identifies the type of an XML token.

Hierarchy
  `Object`
  `XmlCursor.TokenType`

Enclosing interface
  `XmlCursor`

## Field Summary

`public static final `XmlCursor.TokenType`` | `ATTR` The singleton attribute token type
`public static final `XmlCursor.TokenType`` | `COMMENT` The singleton comment token type
`public static final `XmlCursor.TokenType`` | `END` The singleton end-element token type
`public static final `XmlCursor.TokenType`` | `ENDDOC` The singleton start-document token type
`public static final int` | `INT_ATTR` The attribute token.
`public static final int` | `INT_COMMENT` The comment token.
`public static final int` | `INT_END` The end-element token.
`public static final int` | `INT_ENDDOC` The end-document token.
`public static final int` | `INT_NAMESPACE` The namespace declaration token.
`public static final int` | `INT_NONE` No token.
`public static final int` | `INT_PROCINST` The processing instruction token.
`public static final int` | `INT_START` The start-element token.
`public static final int` | `INT_STARTDOC` The start-document token.
`public static final int` | `INT_TEXT` The text token.
`public static final `XmlCursor.TokenType`` | `NAMESPACE` The singleton namespace declaration token type
`public static final `XmlCursor.TokenType`` | `NONE` The singleton no-token type
`public static final `XmlCursor.TokenType`` | `PROCINST` The singleton processing instruction token type
`public static final `XmlCursor.TokenType`` | `START` The singleton start-element token type
`public static final `XmlCursor.TokenType`` | `STARTDOC` The singleton start-document token type
`public static final `XmlCursor.TokenType`` | `TEXT` The singleton text token type

## Method Summary

`public int` | `intValue`() Returns one of the INT_ values defined in this class.
`public boolean` | `isAnyAttr`() True if is attribute or namespace declaration token
`public boolean` | `isAttr`() True if is attribute token.
`public boolean` | `isComment`() True if is comment token.
`public boolean` | `isContainer`() True if is start-document or start-element token
`public boolean` | `isEnd`() True if is end-element token.
`public boolean` | `isEnddoc`() True if is end-document token.
`public boolean` | `isFinish`() True if is end-document or end-element token
`public boolean` | `isNamespace`() True if is namespace declaration token.
`public boolean` | `isNone`() True if no token.
`public boolean` | `isProcinst`() True if is processing instruction token.
`public boolean` | `isStart`() True if is start-element token.
`public boolean` | `isStartdoc`() True if is start-document token.
`public boolean` | `isText`() True if is text token.
`public `String`` | `toString`()

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

## Field Detail

### ATTR

    public static final XmlCursor.TokenType ATTR

  The singleton attribute token type

### COMMENT

    public static final XmlCursor.TokenType COMMENT

  The singleton comment token type

### END

    public static final XmlCursor.TokenType END

  The singleton end-element token type

### ENDDOC

    public static final XmlCursor.TokenType ENDDOC

  The singleton start-document token type

### INT_ATTR

    public static final int INT_ATTR

  The attribute token. See `XmlCursor.TokenType.intValue()```.

### INT_COMMENT

    public static final int INT_COMMENT

  The comment token. See `XmlCursor.TokenType.intValue()```.

### INT_END

    public static final int INT_END

  The end-element token. See `XmlCursor.TokenType.intValue()```.

### INT_ENDDOC

    public static final int INT_ENDDOC

  The end-document token. See `XmlCursor.TokenType.intValue()```.

### INT_NAMESPACE

    public static final int INT_NAMESPACE

  The namespace declaration token. See `XmlCursor.TokenType.intValue()```.

### INT_NONE

    public static final int INT_NONE

  No token. See `XmlCursor.TokenType.intValue()```.

### INT_PROCINST

    public static final int INT_PROCINST

  The processing instruction token. See `XmlCursor.TokenType.intValue()```.

### INT_START

    public static final int INT_START

  The start-element token. See `XmlCursor.TokenType.intValue()```.

### INT_STARTDOC

    public static final int INT_STARTDOC

  The start-document token. See `XmlCursor.TokenType.intValue()```.

### INT_TEXT

    public static final int INT_TEXT

  The text token. See `XmlCursor.TokenType.intValue()```.

### NAMESPACE

    public static final XmlCursor.TokenType NAMESPACE

  The singleton namespace declaration token type

### NONE

    public static final XmlCursor.TokenType NONE

  The singleton no-token type

### PROCINST

    public static final XmlCursor.TokenType PROCINST

  The singleton processing instruction token type

### START

    public static final XmlCursor.TokenType START

  The singleton start-element token type

### STARTDOC

    public static final XmlCursor.TokenType STARTDOC

  The singleton start-document token type

### TEXT

    public static final XmlCursor.TokenType TEXT

  The singleton text token type

## Method Detail

### intValue() Method

    public int intValue()

Returns one of the INT_ values defined in this class.

### isAnyAttr() Method

    public boolean isAnyAttr()

True if is attribute or namespace declaration token

### isAttr() Method

    public boolean isAttr()

True if is attribute token.

### isComment() Method

    public boolean isComment()

True if is comment token.

### isContainer() Method

    public boolean isContainer()

True if is start-document or start-element token

### isEnd() Method

    public boolean isEnd()

True if is end-element token.

### isEnddoc() Method

    public boolean isEnddoc()

True if is end-document token.

### isFinish() Method

    public boolean isFinish()

True if is end-document or end-element token

### isNamespace() Method

    public boolean isNamespace()

True if is namespace declaration token.

### isNone() Method

    public boolean isNone()

True if no token.

### isProcinst() Method

    public boolean isProcinst()

True if is processing instruction token.

### isStart() Method

    public boolean isStart()

True if is start-element token.

### isStartdoc() Method

    public boolean isStartdoc()

True if is start-document token.

### isText() Method

    public boolean isText()

True if is text token.

### toString() Method

    public String toString()

Overrides
  `Object.toString()`