final class ParserAdapter.AttributeListAdapter extends Object implements Attributes
This class is in the Public Domain, and comes with NO WARRANTY of any kind.
This wrapper class is used only when Namespace support is disabled -- it provides pretty much a direct mapping from SAX1 to SAX2, except that names and types are interned whenever requested.
Modifier and Type | Field and Description |
---|---|
private AttributeList |
qAtts |
Constructor and Description |
---|
AttributeListAdapter()
Construct a new adapter.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex(String qName)
Look up an attribute index by qualified (prefixed) name.
|
int |
getIndex(String uri,
String localName)
Look up an attribute index by Namespace name.
|
int |
getLength()
Return the length of the attribute list.
|
String |
getLocalName(int i)
Return the local name of the specified attribute.
|
String |
getQName(int i)
Return the qualified (prefixed) name of the specified attribute.
|
String |
getType(int i)
Return the type of the specified attribute.
|
String |
getType(String qName)
Look up the type of an attribute by qualified (prefixed) name.
|
String |
getType(String uri,
String localName)
Look up the type of an attribute by Namespace name.
|
String |
getURI(int i)
Return the Namespace URI of the specified attribute.
|
String |
getValue(int i)
Return the value of the specified attribute.
|
String |
getValue(String qName)
Look up the value of an attribute by qualified (prefixed) name.
|
String |
getValue(String uri,
String localName)
Look up the value of an attribute by Namespace name.
|
(package private) void |
setAttributeList(AttributeList qAtts)
Set the embedded AttributeList.
|
private AttributeList qAtts
AttributeListAdapter()
void setAttributeList(AttributeList qAtts)
This method must be invoked before any of the others can be used.
The
- SAX1 attribute list (with qnames).public int getLength()
getLength
in interface Attributes
Attributes.getLength()
public String getURI(int i)
getURI
in interface Attributes
The
- attribute's index.Attributes.getURI(int)
public String getLocalName(int i)
getLocalName
in interface Attributes
The
- attribute's index.Attributes.getLocalName(int)
public String getQName(int i)
getQName
in interface Attributes
The
- attribute's index.Attributes.getLength()
public String getType(int i)
getType
in interface Attributes
The
- attribute's index.Attributes.getLength()
public String getValue(int i)
getValue
in interface Attributes
The
- attribute's index.Attributes.getLength()
public int getIndex(String uri, String localName)
getIndex
in interface Attributes
uri
- The Namespace URI or the empty string.localName
- The local name.Attributes.getIndex(java.lang.String,java.lang.String)
public int getIndex(String qName)
getIndex
in interface Attributes
qName
- The qualified name.Attributes.getIndex(java.lang.String)
public String getType(String uri, String localName)
getType
in interface Attributes
uri
- The Namespace URIlocalName
- The local name.public String getType(String qName)
getType
in interface Attributes
qName
- The qualified name.public String getValue(String uri, String localName)
getValue
in interface Attributes
uri
- The Namespace URIlocalName
- The local name.public String getValue(String qName)
getValue
in interface Attributes
qName
- The qualified name.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses