com.ctc.wstx.dtd
Class LargeNameKeySet

java.lang.Object
  extended by com.ctc.wstx.dtd.NameKeySet
      extended by com.ctc.wstx.dtd.LargeNameKeySet

public final class LargeNameKeySet
extends NameKeySet

Implementation of NameKeySet suitable for storing large number of entries; basically anything above trivially small sets (4 or less).

Notes about usage:


Constructor Summary
LargeNameKeySet(boolean nsAware, NameKey[] names)
           
 
Method Summary
 void appendNames(java.lang.StringBuffer sb, java.lang.String sep)
          Method called by debug/error handling code, to get a list of all names contained.
 boolean contains(NameKey name)
           
 boolean hasMultiple()
           
 
Methods inherited from class com.ctc.wstx.dtd.NameKeySet
toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LargeNameKeySet

public LargeNameKeySet(boolean nsAware,
                       NameKey[] names)
Method Detail

hasMultiple

public boolean hasMultiple()
Specified by:
hasMultiple in class NameKeySet
Returns:
True if set contains more than one entry; false if not (empty or has one)

contains

public boolean contains(NameKey name)
Specified by:
contains in class NameKeySet
Returns:
True if the set contains specified name; false if not.

appendNames

public void appendNames(java.lang.StringBuffer sb,
                        java.lang.String sep)
Method called by debug/error handling code, to get a list of all names contained.

Specified by:
appendNames in class NameKeySet