org.apache.xerces.util

Class AttributesProxy

Implemented Interfaces:
org.xml.sax.AttributeList, org.xml.sax.ext.Attributes2

public final class AttributesProxy
extends java.lang.Object
implements org.xml.sax.AttributeList, org.xml.sax.ext.Attributes2

Wraps XMLAttributes and makes it look like AttributeList and Attributes.
Version:
$Id: AttributesProxy.java 320451 2005-06-13 18:19:45Z mrglavas $
Authors:
Arnaud Le Hors, IBM
Andy Clark, IBM

Constructor Summary

AttributesProxy(org.apache.xerces.xni.XMLAttributes attributes)

Method Summary

org.apache.xerces.xni.XMLAttributes
getAttributes()
int
getIndex(String qName)
int
getIndex(String uri, String localPart)
int
getLength()
String
getLocalName(int index)
String
getName(int i)
String
getQName(int index)
String
getType(String name)
String
getType(String uri, String localName)
String
getType(int i)
String
getURI(int index)
String
getValue(String name)
String
getValue(String uri, String localName)
String
getValue(int i)
boolean
isDeclared(String qName)
boolean
isDeclared(String uri, String localName)
boolean
isDeclared(int index)
boolean
isSpecified(String qName)
boolean
isSpecified(String uri, String localName)
boolean
isSpecified(int index)
void
setAttributes(org.apache.xerces.xni.XMLAttributes attributes)
Sets the XML attributes to be wrapped.

Constructor Details

AttributesProxy

public AttributesProxy(org.apache.xerces.xni.XMLAttributes attributes)

Method Details

getAttributes

public org.apache.xerces.xni.XMLAttributes getAttributes()

getIndex

public int getIndex(String qName)
Specified by:
getIndex in interface org.xml.sax.Attributes

getIndex

public int getIndex(String uri,
                    String localPart)
Specified by:
getIndex in interface org.xml.sax.Attributes

getLength

public int getLength()
Specified by:
getLength in interface org.xml.sax.AttributeList
getLength in interface org.xml.sax.Attributes

getLocalName

public String getLocalName(int index)
Specified by:
getLocalName in interface org.xml.sax.Attributes

getName

public String getName(int i)
Specified by:
getName in interface org.xml.sax.AttributeList

getQName

public String getQName(int index)
Specified by:
getQName in interface org.xml.sax.Attributes

getType

public String getType(String name)
Specified by:
getType in interface org.xml.sax.AttributeList
getType in interface org.xml.sax.Attributes

getType

public String getType(String uri,
                      String localName)
Specified by:
getType in interface org.xml.sax.Attributes

getType

public String getType(int i)
Specified by:
getType in interface org.xml.sax.AttributeList
getType in interface org.xml.sax.Attributes

getURI

public String getURI(int index)
Specified by:
getURI in interface org.xml.sax.Attributes

getValue

public String getValue(String name)
Specified by:
getValue in interface org.xml.sax.AttributeList
getValue in interface org.xml.sax.Attributes

getValue

public String getValue(String uri,
                       String localName)
Specified by:
getValue in interface org.xml.sax.Attributes

getValue

public String getValue(int i)
Specified by:
getValue in interface org.xml.sax.AttributeList
getValue in interface org.xml.sax.Attributes

isDeclared

public boolean isDeclared(String qName)
Specified by:
isDeclared in interface org.xml.sax.ext.Attributes2

isDeclared

public boolean isDeclared(String uri,
                          String localName)
Specified by:
isDeclared in interface org.xml.sax.ext.Attributes2

isDeclared

public boolean isDeclared(int index)
Specified by:
isDeclared in interface org.xml.sax.ext.Attributes2

isSpecified

public boolean isSpecified(String qName)
Specified by:
isSpecified in interface org.xml.sax.ext.Attributes2

isSpecified

public boolean isSpecified(String uri,
                           String localName)
Specified by:
isSpecified in interface org.xml.sax.ext.Attributes2

isSpecified

public boolean isSpecified(int index)
Specified by:
isSpecified in interface org.xml.sax.ext.Attributes2

setAttributes

public void setAttributes(org.apache.xerces.xni.XMLAttributes attributes)
Sets the XML attributes to be wrapped.

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.