org.basex.query.up
Class NamePool

java.lang.Object
  extended by org.basex.query.up.NamePool

public final class NamePool
extends java.lang.Object

This class serves as a container for updated names.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 int size
          Number of entries.
 
Constructor Summary
NamePool()
           
 
Method Summary
 void add(QNm name, Type type)
          Adds an entry to the pool and increases its number of occurrence.
 void remove(ANode node)
          Adds an entry to the pool and decreases its number of occurrence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

public int size
Number of entries.

Constructor Detail

NamePool

public NamePool()
Method Detail

add

public void add(QNm name,
                Type type)
Adds an entry to the pool and increases its number of occurrence.

Parameters:
name - name
type - node type

remove

public void remove(ANode node)
Adds an entry to the pool and decreases its number of occurrence.

Parameters:
node - node