org.apache.xerces.util
Class AttributesProxy

java.lang.Object
  extended by org.apache.xerces.util.AttributesProxy
All Implemented Interfaces:
AttributeList, Attributes, Attributes2

public final class AttributesProxy
extends Object
implements AttributeList, Attributes2

Wraps XMLAttributes and makes it look like AttributeList and Attributes2.

Version:
$Id: AttributesProxy.java 449487 2006-09-24 21:11:28Z mrglavas $
Author:
Arnaud Le Hors, IBM, Andy Clark, IBM

Constructor Summary
AttributesProxy(XMLAttributes attributes)
           
 
Method Summary
 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(int i)
           
 String getType(String name)
           
 String getType(String uri, String localName)
           
 String getURI(int index)
           
 String getValue(int i)
           
 String getValue(String name)
           
 String getValue(String uri, String localName)
           
 boolean isDeclared(int index)
           
 boolean isDeclared(String qName)
           
 boolean isDeclared(String uri, String localName)
           
 boolean isSpecified(int index)
           
 boolean isSpecified(String qName)
           
 boolean isSpecified(String uri, String localName)
           
 void setAttributes(XMLAttributes attributes)
          Sets the XML attributes to be wrapped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesProxy

public AttributesProxy(XMLAttributes attributes)
Method Detail

setAttributes

public void setAttributes(XMLAttributes attributes)
Sets the XML attributes to be wrapped.


getAttributes

public XMLAttributes getAttributes()

getLength

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

getQName

public String getQName(int index)
Specified by:
getQName 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

getType

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

getType

public String getType(String name)
Specified by:
getType in interface AttributeList
Specified by:
getType in interface Attributes

getType

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

getValue

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

getValue

public String getValue(String name)
Specified by:
getValue in interface AttributeList
Specified by:
getValue in interface Attributes

getValue

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

getIndex

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

getIndex

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

isDeclared

public boolean isDeclared(int index)
Specified by:
isDeclared in interface Attributes2

isDeclared

public boolean isDeclared(String qName)
Specified by:
isDeclared in interface Attributes2

isDeclared

public boolean isDeclared(String uri,
                          String localName)
Specified by:
isDeclared in interface Attributes2

isSpecified

public boolean isSpecified(int index)
Specified by:
isSpecified in interface Attributes2

isSpecified

public boolean isSpecified(String qName)
Specified by:
isSpecified in interface Attributes2

isSpecified

public boolean isSpecified(String uri,
                           String localName)
Specified by:
isSpecified in interface Attributes2

getName

public String getName(int i)
Specified by:
getName in interface AttributeList


Copyright © 2011. All Rights Reserved.