nu.validator.htmlparser.impl
Class AttributesImpl

java.lang.Object
  extended by nu.validator.htmlparser.impl.AttributesImpl
All Implemented Interfaces:
Attributes
Direct Known Subclasses:
XmlLangAttributesImpl

public class AttributesImpl
extends Object
implements Attributes

Be careful with this class. QName is the name in from HTML tokenization. Otherwise, please refer to the interface doc.

Version:
$Id: AttributesImpl.java 150 2007-08-16 19:21:25Z hsivonen $
Author:
hsivonen

Field Summary
private  String[] array
           
private  int length
           
private  int limit
           
 
Constructor Summary
AttributesImpl()
           
 
Method Summary
 void addAttribute(String name, String value)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

private int length

limit

private int limit

array

private String[] array
Constructor Detail

AttributesImpl

public AttributesImpl()
Method Detail

getIndex

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

getIndex

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

getLength

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

getLocalName

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

getQName

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

getType

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

getType

public final 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 final String getValue(int index)
Specified by:
getValue in interface Attributes

getValue

public final String getValue(String qName)
Specified by:
getValue in interface Attributes

getValue

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

addAttribute

public final void addAttribute(String name,
                               String value)