org.idoox.xml
Class DeclaredPrefixesStack

java.lang.Object
  extended byorg.idoox.xml.DeclaredPrefixesStack

public class DeclaredPrefixesStack
extends java.lang.Object

This class represents a stack of declared namespace URI to prefix mapping.

Since:
4.0
Component:
Core

Field Summary
 int allocated
          number of allocated elements in the stack
 java.lang.String[] prefixes
          currently active prefixes
 java.lang.String[] prefixValues
          values of currently active prefixes
 java.lang.String[] previousPrefixValues
          their previous values which should be restored after the enclosing element finishes
 int used
          number of used elements in the stack
 
Constructor Summary
DeclaredPrefixesStack()
           
 
Method Summary
 void enlarge(int amount)
          Makes sure that used + amount < allocated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefixes

public java.lang.String[] prefixes
currently active prefixes


prefixValues

public java.lang.String[] prefixValues
values of currently active prefixes


previousPrefixValues

public java.lang.String[] previousPrefixValues
their previous values which should be restored after the enclosing element finishes


allocated

public int allocated
number of allocated elements in the stack


used

public int used
number of used elements in the stack

Constructor Detail

DeclaredPrefixesStack

public DeclaredPrefixesStack()
Method Detail

enlarge

public void enlarge(int amount)
Makes sure that used + amount < allocated

Parameters:
amount - the number items that the buffers should be enlarged by