nu.validator.htmlparser.impl
Class AttributesImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
length
private int length
limit
private int limit
array
private String[] array
AttributesImpl
public AttributesImpl()
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)