Package com.thaiopensource.xml.tok
Class ContentToken
- java.lang.Object
-
- com.thaiopensource.xml.tok.Token
-
- com.thaiopensource.xml.tok.ContentToken
-
public class ContentToken extends Token
Represents information returned byTokenizer.tokenizeContent.
-
-
Constructor Summary
Constructors Constructor Description ContentToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAttributeNameEnd(int i)Returns the index following the last character of the name of the attribute indexi.intgetAttributeNameStart(int i)Returns the index of the first character of the name of the attribute indexi.intgetAttributeSpecifiedCount()Returns the number of attributes specified in the start-tag or empty element tag.intgetAttributeValueEnd(int i)Returns the index of the closing quote attribute indexi.intgetAttributeValueStart(int i)Returns the index of the character following the opening quote of attribute indexi.booleanisAttributeNormalized(int i)Returns true if attribute indexidoes not need to be normalized.-
Methods inherited from class com.thaiopensource.xml.tok.Token
getNameEnd, getRefChar, getRefCharPair, getTokenEnd, setNameEnd, setTokenEnd
-
-
-
-
Method Detail
-
getAttributeSpecifiedCount
public final int getAttributeSpecifiedCount()
Returns the number of attributes specified in the start-tag or empty element tag.
-
getAttributeNameStart
public final int getAttributeNameStart(int i)
Returns the index of the first character of the name of the attribute indexi.
-
getAttributeNameEnd
public final int getAttributeNameEnd(int i)
Returns the index following the last character of the name of the attribute indexi.
-
getAttributeValueStart
public final int getAttributeValueStart(int i)
Returns the index of the character following the opening quote of attribute indexi.
-
getAttributeValueEnd
public final int getAttributeValueEnd(int i)
Returns the index of the closing quote attribute indexi.
-
isAttributeNormalized
public final boolean isAttributeNormalized(int i)
Returns true if attribute indexidoes not need to be normalized. This is an optimization that allows further processing of the attribute to be avoided when it is known that normalization cannot change the value of the attribute.
-
-