com.ssx.xml.output.sinks
Class AttributesAdapter
java.lang.Object
com.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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)