com.ssx.xml.output.sinks
Class AttributesAdapter

java.lang.Object
  extended bycom.ssx.xml.output.sinks.AttributesAdapter
All Implemented Interfaces:
Attributes

public class AttributesAdapter
extends Object
implements Attributes

Adapt the AttributeList class used in the XmlOut framework to the SAX2 Attributes interface.


Constructor Summary
AttributesAdapter(AttributeList attributeList, List namespaceList)
          Create a new Adaptor using attributeList as the source.
 
Method Summary
 int getIndex(String qName)
           
 int getIndex(String uri, String localName)
           
 int getLength()
           
 String getLocalName(int index)
           
 String getQName(int index)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesAdapter

public AttributesAdapter(AttributeList attributeList,
                         List namespaceList)
Create a new Adaptor using attributeList as the source.

Parameters:
attributeList - The list of attributes.
namespaceList - The list of namespaces.
Method Detail

getLength

public int getLength()
Specified by:
getLength in interface Attributes
See Also:
Attributes.getLength()

getLocalName

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

getQName

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

getType

public String getType(int index)
Specified by:
getType in interface Attributes
See Also:
XML Schemas are not supported

getURI

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

getValue

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

getIndex

public int getIndex(String qName)
Specified by:
getIndex in interface Attributes
See Also:
Attributes.getIndex(java.lang.String)

getIndex

public int getIndex(String uri,
                    String localName)
Specified by:
getIndex in interface Attributes
See Also:
Attributes.getIndex(java.lang.String, java.lang.String)

getType

public String getType(String qName)
Specified by:
getType in interface Attributes
See Also:
XML Schemas are not supported

getValue

public String getValue(String qName)
Specified by:
getValue in interface Attributes
See Also:
Attributes.getValue(java.lang.String)

getType

public String getType(String uri,
                      String localName)
Specified by:
getType in interface Attributes
See Also:
XML Schemas are not supported

getValue

public String getValue(String uri,
                       String localName)
Specified by:
getValue in interface Attributes
See Also:
Attributes.getValue(java.lang.String, java.lang.String)