An enumeration that identifies the type of an XML token.
| Field Summary |
|---|
| public static final int | INT_NONE | No token. See #intValue . |
| public static final int | INT_STARTDOC | The start-document token. See #intValue . |
| public static final int | INT_ENDDOC | The end-document token. See #intValue . |
| public static final int | INT_START | The start-element token. See #intValue . |
| public static final int | INT_END | The end-element token. See #intValue . |
| public static final int | INT_TEXT | The text token. See #intValue . |
| public static final int | INT_ATTR | The attribute token. See #intValue . |
| public static final int | INT_NAMESPACE | The namespace declaration token. See #intValue . |
| public static final int | INT_COMMENT | The comment token. See #intValue . |
| public static final int | INT_PROCINST | The processing instruction token. See #intValue . |
| public static final XmlCursor.TokenType | NONE | The singleton no-token type |
| public static final XmlCursor.TokenType | STARTDOC | The singleton start-document token type |
| public static final XmlCursor.TokenType | ENDDOC | The singleton start-document token type |
| public static final XmlCursor.TokenType | START | The singleton start-element token type |
| public static final XmlCursor.TokenType | END | The singleton end-element token type |
| public static final XmlCursor.TokenType | TEXT | The singleton text token type |
| public static final XmlCursor.TokenType | ATTR | The singleton attribute token type |
| public static final XmlCursor.TokenType | NAMESPACE | The singleton namespace declaration token type |
| public static final XmlCursor.TokenType | COMMENT | The singleton comment token type |
| public static final XmlCursor.TokenType | PROCINST | The singleton processing instruction token type |
| Method from org.apache.xmlbeans.XmlCursor$TokenType Summary: |
|---|
|
intValue, isAnyAttr, isAttr, isComment, isContainer, isEnd, isEnddoc, isFinish, isNamespace, isNone, isProcinst, isStart, isStartdoc, isText, toString |
| Method from org.apache.xmlbeans.XmlCursor$TokenType Detail: |
public int intValue() {
return _value;
}
Returns one of the INT_ values defined in this class. |
public boolean isAnyAttr() {
return this == NAMESPACE || this == ATTR;
}
True if is attribute or namespace declaration token |
public boolean isAttr() {
return this == ATTR;
}
True if is attribute token. |
public boolean isComment() {
return this == COMMENT;
}
True if is comment token. |
public boolean isContainer() {
return this == STARTDOC || this == START;
}
True if is start-document or start-element token |
public boolean isEnd() {
return this == END;
}
True if is end-element token. |
public boolean isEnddoc() {
return this == ENDDOC;
}
True if is end-document token. |
public boolean isFinish() {
return this == ENDDOC || this == END;
}
True if is end-document or end-element token |
public boolean isNamespace() {
return this == NAMESPACE;
}
True if is namespace declaration token. |
public boolean isNone() {
return this == NONE;
}
|
public boolean isProcinst() {
return this == PROCINST;
}
True if is processing instruction token. |
public boolean isStart() {
return this == START;
}
True if is start-element token. |
public boolean isStartdoc() {
return this == STARTDOC;
}
True if is start-document token. |
public boolean isText() {
return this == TEXT;
}
|
public String toString() {
return _name;
}
|