org.apache.xerces.impl
Class XMLScanner.AttrEntityStack
java.lang.Object
|
+--org.apache.xerces.impl.XMLScanner.AttrEntityStack
- Enclosing class:
- XMLScanner
- protected static class XMLScanner.AttrEntityStack
- extends java.lang.Object
A stack for keeping track of entity offsets and lengths in
attribute values. This stack adds the attribute entities to
a specified XMLAttribute object.
- Author:
- Andy Clark, IBM
Field Summary |
protected int |
fAttributeIndex
The index of the attribute where to add entities. |
protected org.apache.xerces.xni.XMLAttributes |
fAttributes
Attributes. |
protected int[] |
fEntityIndexes
The entity indexes on the stack. |
protected int |
fSize
The size of the stack. |
Method Summary |
void |
popAttrEntity(int endOffset)
Pops the current entity off of the stack and adds it to the
list of entities for the attribute in the XMLAttributes object. |
void |
pushAttrEntity(java.lang.String entityName,
int entityOffset)
Pushes a new entity onto the stack. |
void |
reset(org.apache.xerces.xni.XMLAttributes attributes,
int attrIndex)
Resets the attribute entity stack and sets the attributes
object to add entities to. |
int |
size()
Returns the size of the stack. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
fAttributes
protected org.apache.xerces.xni.XMLAttributes fAttributes
- Attributes.
fAttributeIndex
protected int fAttributeIndex
- The index of the attribute where to add entities.
fSize
protected int fSize
- The size of the stack.
fEntityIndexes
protected int[] fEntityIndexes
- The entity indexes on the stack.
XMLScanner.AttrEntityStack
protected XMLScanner.AttrEntityStack()
reset
public void reset(org.apache.xerces.xni.XMLAttributes attributes,
int attrIndex)
- Resets the attribute entity stack and sets the attributes
object to add entities to.
- Parameters:
attributes
- The attributes object where new attribute
entities are added.attrIndex
- The index of the attribute where to add
entities.
size
public int size()
- Returns the size of the stack.
pushAttrEntity
public void pushAttrEntity(java.lang.String entityName,
int entityOffset)
- Pushes a new entity onto the stack.
- Parameters:
entityName
- The entity name.entityOffset
- The entity offset.
popAttrEntity
public void popAttrEntity(int endOffset)
- Pops the current entity off of the stack and adds it to the
list of entities for the attribute in the XMLAttributes object.
- Parameters:
endOffset
- The entity's ending offset.
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.