com.thaiopensource.validate.nrl
Class FilteredAttributes

java.lang.Object
  extended by com.thaiopensource.validate.nrl.FilteredAttributes
All Implemented Interfaces:
Attributes

 class FilteredAttributes
extends Object
implements Attributes


Field Summary
private  Attributes attributes
           
private  IntSet indexSet
           
private  int[] reverseIndexMap
           
 
Constructor Summary
FilteredAttributes(IntSet indexSet, Attributes attributes)
           
 
Method Summary
 int getIndex(String qName)
           
 int getIndex(String uri, String localName)
           
 int getLength()
           
 String getLocalName(int index)
           
 String getQName(int index)
           
private  int getRealIndex(String qName)
           
private  int getRealIndex(String uri, String localName)
           
 String getType(int index)
           
 String getType(String qName)
           
 String getType(String uri, String localName)
           
 String getURI(int index)
           
 String getValue(int index)
           
 String getValue(String qName)
           
 String getValue(String uri, String localName)
           
private  int reverseIndex(int k)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

private final Attributes attributes

indexSet

private final IntSet indexSet

reverseIndexMap

private int[] reverseIndexMap
Constructor Detail

FilteredAttributes

public FilteredAttributes(IntSet indexSet,
                          Attributes attributes)
Method Detail

reverseIndex

private int reverseIndex(int k)

getLength

public int getLength()
Specified by:
getLength in interface Attributes

getURI

public String getURI(int index)
Specified by:
getURI in interface Attributes

getLocalName

public String getLocalName(int index)
Specified by:
getLocalName in interface Attributes

getQName

public String getQName(int index)
Specified by:
getQName in interface Attributes

getType

public String getType(int index)
Specified by:
getType in interface Attributes

getValue

public String getValue(int index)
Specified by:
getValue in interface Attributes

getIndex

public int getIndex(String uri,
                    String localName)
Specified by:
getIndex in interface Attributes

getIndex

public int getIndex(String qName)
Specified by:
getIndex in interface Attributes

getRealIndex

private int getRealIndex(String uri,
                         String localName)

getRealIndex

private int getRealIndex(String qName)

getType

public String getType(String uri,
                      String localName)
Specified by:
getType in interface Attributes

getValue

public String getValue(String uri,
                       String localName)
Specified by:
getValue in interface Attributes

getType

public String getType(String qName)
Specified by:
getType in interface Attributes

getValue

public String getValue(String qName)
Specified by:
getValue in interface Attributes