AttributesProxy.javaAPI DocJava SE 5 API5325Fri Aug 26 14:55:56 BST


public final class AttributesProxy extends Object implements AttributeList, Attributes
Wraps {@link XMLAttributes} and makes it look like {@link AttributeList} and {@link Attributes}.
Arnaud Le Hors, IBM
Andy Clark, IBM
$Id:,v 1.2 2004/01/27 00:31:58 kk122374 Exp $

Fields Summary
private XMLAttributes
XML attributes.
Constructors Summary
Methods Summary

        return fAttributes;
public intgetIndex(java.lang.String qName)

        return fAttributes.getIndex(qName);
public intgetIndex(java.lang.String uri, java.lang.String localPart)

        return uri.equals("") ? fAttributes.getIndex(null, localPart) :
                                fAttributes.getIndex(uri, localPart);
public intgetLength()

        return fAttributes.getLength();
public java.lang.StringgetLocalName(int index)

        return fAttributes.getLocalName(index);
public java.lang.StringgetName(int i)

        return fAttributes.getQName(i);
public java.lang.StringgetQName(int index)

        return fAttributes.getQName(index);
public java.lang.StringgetType(java.lang.String uri, java.lang.String localName)

        return uri.equals("") ? fAttributes.getType(null, localName) :
                                fAttributes.getType(uri, localName);
public java.lang.StringgetType(int i)

        return fAttributes.getType(i);
public java.lang.StringgetType(java.lang.String name)

        return fAttributes.getType(name);
public java.lang.StringgetURI(int index)

        // REVISIT: this hides the fact that internally we use
        //          null instead of empty string
        //          SAX requires URI to be a string or an empty string
        String uri= fAttributes.getURI(index);
        return uri != null ? uri : "";
public java.lang.StringgetValue(int i)

        return fAttributes.getValue(i);
public java.lang.StringgetValue(java.lang.String name)

        return fAttributes.getValue(name);
public java.lang.StringgetValue(java.lang.String uri, java.lang.String localName)

        return uri.equals("") ? fAttributes.getValue(null, localName) :
                                fAttributes.getValue(uri, localName);
public voidsetAttributes( attributes)
Sets the XML attributes to be wrapped.

        fAttributes = attributes;