com.ctc.wstx.dtd
Class LargePrefixedNameSet

java.lang.Object
  extended by com.ctc.wstx.dtd.PrefixedNameSet
      extended by com.ctc.wstx.dtd.LargePrefixedNameSet

public final class LargePrefixedNameSet
extends PrefixedNameSet

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

Notes about usage:


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

Constructor Detail

LargePrefixedNameSet

public LargePrefixedNameSet(boolean nsAware,
                            PrefixedName[] names)
Method Detail

hasMultiple

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

contains

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

appendNames

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

Specified by:
appendNames in class PrefixedNameSet


Copyright © 2011 Codehaus. All Rights Reserved.