net.sf.joost.stx.helpers
Class MutableAttributesImpl

java.lang.Object
  extended by net.sf.joost.stx.helpers.MutableAttributesImpl
All Implemented Interfaces:
MutableAttributes, Attributes

public final class MutableAttributesImpl
extends Object
implements MutableAttributes

Mutable attributes implementation.


Field Summary
private  int _length
           
private  String[] _lNames
           
private  int _max
           
private  String[] _qNames
           
private  String[] _types
           
private  String[] _uris
           
private  String[] _values
           
 
Constructor Summary
MutableAttributesImpl(Attributes attributes)
           
MutableAttributesImpl(Attributes attributes, int length)
           
 
Method Summary
 void addAttribute(String uri, String lName, String qName, String type, String value)
          Add an attribute to the set of attributes
 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)
           
 void setValue(int index, String value)
          Set the value of an attribute at the specified index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_length

private int _length

_max

private int _max

_uris

private String[] _uris

_lNames

private String[] _lNames

_qNames

private String[] _qNames

_values

private String[] _values

_types

private String[] _types
Constructor Detail

MutableAttributesImpl

public MutableAttributesImpl(Attributes attributes)

MutableAttributesImpl

public MutableAttributesImpl(Attributes attributes,
                             int length)
Method Detail

getIndex

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

getLength

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

getLocalName

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

getQName

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

getType

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

getType

public String getType(String qName)
Specified by:
getType in interface Attributes

getType

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

getURI

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

getValue

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

getValue

public String getValue(String qName)
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

setValue

public void setValue(int index,
                     String value)
Description copied from interface: MutableAttributes
Set the value of an attribute at the specified index

Specified by:
setValue in interface MutableAttributes

addAttribute

public void addAttribute(String uri,
                         String lName,
                         String qName,
                         String type,
                         String value)
Description copied from interface: MutableAttributes
Add an attribute to the set of attributes

Specified by:
addAttribute in interface MutableAttributes