|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.tinytree.TinyAttributeList
AttributeCollection is an implementation of the SAX interface AttributeList that also provides the ability to manipulate namespaces and to convert attributes into Nodes. It is extremely similar (both in interface and in implementation) to the SAX2 Attributes class, but was defined before SAX2 was available. The type of attribute is not maintained: all attributes are regarded as CDATA.
Constructor Summary | |
TinyAttributeList(TinyDocumentImpl doc,
int element)
Create an attribute list. |
Method Summary | |
int |
getFingerprint(int i)
Get the fingerprint, given the index |
int |
getIndex(java.lang.String name)
Get the index of an attribute (by name). |
int |
getIndex(java.lang.String uri,
java.lang.String localname)
Get the index of an attribute (by name). |
int |
getIndexByFingerprint(int fingerprint)
Get the index of an attribute (by fingerprint). |
int |
getLength()
Return the number of attributes in the list. |
java.lang.String |
getLocalName(int i)
Get the local name of an attribute (by position). |
int |
getNameCode(int i)
Get the name code of an attribute (by position). |
java.lang.String |
getQName(int i)
Get the display name of an attribute (by position). |
java.lang.String |
getType(int i)
Get the type of an attribute (by position). |
java.lang.String |
getType(java.lang.String name)
Get the type of an attribute (by name). |
java.lang.String |
getType(java.lang.String uri,
java.lang.String localname)
Get the type of an attribute (by name). |
java.lang.String |
getURI(int i)
Get the URI of an attribute (by position). |
java.lang.String |
getValue(int i)
Get the value of an attribute (by position). |
java.lang.String |
getValue(java.lang.String name)
Get the value of an attribute (by name). |
java.lang.String |
getValue(java.lang.String uri,
java.lang.String localname)
Get the value of an attribute (by name). |
java.lang.String |
getValueByFingerprint(int fingerprint)
Get the value of an attribute by Fingerprint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TinyAttributeList(TinyDocumentImpl doc, int element)
Method Detail |
public int getLength()
getLength
in interface org.xml.sax.Attributes
public int getNameCode(int i)
getNameCode
in interface ExtendedAttributes
i
- The position of the attribute in the list.public java.lang.String getQName(int i)
getQName
in interface org.xml.sax.Attributes
i
- The position of the attribute in the list.public java.lang.String getLocalName(int i)
getLocalName
in interface org.xml.sax.Attributes
i
- The position of the attribute in the list.public java.lang.String getURI(int i)
getURI
in interface org.xml.sax.Attributes
i
- The position of the attribute in the list.public int getFingerprint(int i)
public java.lang.String getType(int i)
getType
in interface org.xml.sax.Attributes
i
- The position of the attribute in the list.public java.lang.String getType(java.lang.String uri, java.lang.String localname)
getType
in interface org.xml.sax.Attributes
uri
- The namespace uri of the attribute.localname
- The local name of the attribute.public java.lang.String getValue(int i)
getValue
in interface org.xml.sax.Attributes
i
- The position of the attribute in the list.public java.lang.String getValue(java.lang.String uri, java.lang.String localname)
getValue
in interface org.xml.sax.Attributes
uri
- The namespace uri of the attribute.localname
- The local name of the attribute.public java.lang.String getValueByFingerprint(int fingerprint)
getValueByFingerprint
in interface ExtendedAttributes
public int getIndex(java.lang.String name)
getIndex
in interface org.xml.sax.Attributes
name
- The display name of the attribute.public int getIndex(java.lang.String uri, java.lang.String localname)
getIndex
in interface org.xml.sax.Attributes
uri
- The namespace uri of the attribute.localname
- The local name of the attribute.public int getIndexByFingerprint(int fingerprint)
getIndexByFingerprint
in interface ExtendedAttributes
uri
- The namespace uri of the attribute.localname
- The local name of the attribute.public java.lang.String getType(java.lang.String name)
getType
in interface org.xml.sax.Attributes
name
- The display name of the attribute.public java.lang.String getValue(java.lang.String name)
getValue
in interface org.xml.sax.Attributes
name
- The attribute name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |