All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.jclark.xml.tok.ContentToken

java.lang.Object
   |
   +----com.jclark.xml.tok.Token
           |
           +----com.jclark.xml.tok.ContentToken

public class ContentToken
extends Token
Represents information returned by Encoding.tokenizeContent.

See Also:
tokenizeContent

Constructor Index

 o ContentToken()

Method Index

 o getAttributeNameEnd(int)
Returns the index following the last character of the name of the attribute index i.
 o getAttributeNameStart(int)
Returns the index of the first character of the name of the attribute index i.
 o getAttributeSpecifiedCount()
Returns the number of attributes specified in the start-tag or empty element tag.
 o getAttributeValueEnd(int)
Returns the index of the closing quote attribute index i.
 o getAttributeValueStart(int)
Returns the index of the character following the opening quote of attribute index i.
 o isAttributeNormalized(int)
Returns true if attribute index i does not need to be normalized.

Constructors

 o ContentToken
 public ContentToken()

Methods

 o getAttributeSpecifiedCount
 public final int getAttributeSpecifiedCount()
Returns the number of attributes specified in the start-tag or empty element tag.

 o getAttributeNameStart
 public final int getAttributeNameStart(int i)
Returns the index of the first character of the name of the attribute index i.

 o getAttributeNameEnd
 public final int getAttributeNameEnd(int i)
Returns the index following the last character of the name of the attribute index i.

 o getAttributeValueStart
 public final int getAttributeValueStart(int i)
Returns the index of the character following the opening quote of attribute index i.

 o getAttributeValueEnd
 public final int getAttributeValueEnd(int i)
Returns the index of the closing quote attribute index i.

 o isAttributeNormalized
 public final boolean isAttributeNormalized(int i)
Returns true if attribute index i does 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.


All Packages  Class Hierarchy  This Package  Previous  Next  Index