public abstract class Token extends Object implements IXMLUtilsConstants
Token
represents a string fragment from within the XML
document.DOCTYPE, NEW_LINE, TOKEN_TYPE_BOUNDED, TOKEN_TYPE_COMMENT, TOKEN_TYPE_DOCTYPE, TOKEN_TYPE_META, TOKEN_TYPE_UNBOUNDED, TOKEN_TYPE_WHITESPACE
Modifier | Constructor and Description |
---|---|
protected |
Token(String tokenString)
Constructs a Token instance using the given string representation of the
token.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getTokenString()
Returns the string representation of the token
|
protected abstract String |
getTokenTypeString() |
protected void |
setTokenString(String tokenString)
Allows the specialized tokens to manipulate the token string as needed.
|
String |
toDebugString()
Returns a string representation of this token including any specific
token related details along with it.
|
String |
toString()
Returns the string representation of this token.
|
protected Token(String tokenString)
tokenString
- the string representation of the token.public String toString()
n
tokens, then concatenating the
toString()
of each of these tokens in the give order will
result in the creation of the exact same XML document. If the token was
deleted, an empty string is returned.protected String getTokenString()
protected void setTokenString(String tokenString)
tokenString
- the string representation of the token that will be set from
this point onwards.public String toDebugString()
protected abstract String getTokenTypeString()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.