Deprecated
as a consequence of AttributeList being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private XMLAttributes | fAttributes
XML attributes. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public XMLAttributes | |
| public int | getIndex(String
The qualified (prefixed) name. qName)Implements org. |
| public int | getIndex(String
The Namespace URI, or the empty string if
the name has no Namespace URI. uri, String The attribute's local name. localPart)Implements org. |
| public int | getLength()
Implements org. |
| public String | getLocalName(int
The attribute index (zero-based). index)Implements org. |
| public String | getName(int
The index of the attribute in the list (starting at 0). i)Implements org. |
| public String | getQName(int
The attribute index (zero-based). index)Implements org. |
| public String | getType(int
The index of the attribute in the list (starting at 0). i)Implements org. |
| public String | getType(String
The name of the attribute. name)Implements org. |
| public String | getType(String
The Namespace URI, or the empty String if the
name has no Namespace URI. uri, String The local name of the attribute. localName)Implements org. |
| public String | getURI(int
The attribute index (zero-based). index)Implements org. |
| public String | getValue(int
The index of the attribute in the list (starting at 0). i)Implements org. |
| public String | getValue(String
the name of the attribute to return name)Implements org. |
| public String | getValue(String
The Namespace URI, or the empty String if the
name has no Namespace URI. uri, String The local name of the attribute. localName)Implements org. |
| public boolean | isDeclared(int
The attribute index (zero-based). index)Implements org. |
| public boolean | isDeclared(String
The XML qualified (prefixed) name. qName)Implements org. |
| public boolean | isDeclared(String
The Namespace URI, or the empty string if
the name has no Namespace URI. uri, String The attribute's local name. localName)Implements org. |
| public boolean | isSpecified(int
The attribute index (zero-based). index)Implements org. |
| public boolean | isSpecified(String
The XML qualified (prefixed) name. qName)Implements org. |
| public boolean | isSpecified(String
The Namespace URI, or the empty string if
the name has no Namespace URI. uri, String The attribute's local name. localName)Implements org. |
| public void |
| fAttributes | back to summary |
|---|---|
| private XMLAttributes fAttributes XML attributes. | |
| AttributesProxy | back to summary |
|---|---|
| public AttributesProxy(XMLAttributes attributes) | |
| getAttributes | back to summary |
|---|---|
| public XMLAttributes getAttributes() | |
| getIndex | back to summary |
|---|---|
| public int getIndex(String qName) Implements org. Doc from org. Look up the index of an attribute by XML qualified (prefixed) name.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex(String uri, String localPart) Implements org. Doc from org. Look up the index of an attribute by Namespace name. | |
| getLength | back to summary |
|---|---|
| public int getLength() Implements org. Doc from org. Return the number of attributes in this list. The SAX parser may provide attributes in any arbitrary order, regardless of the order in which they were declared or specified. The number of attributes may be zero.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName(int index) Implements org. Doc from org. Look up an attribute's local name by index.
| |
| getName | back to summary |
|---|---|
| public String getName(int i) Implements org. Doc from org. Return the name of an attribute in this list (by position). The names must be unique: the SAX parser shall not include the same attribute twice. Attributes without values (those declared #IMPLIED without a value specified in the start tag) will be omitted from the list. If the attribute name has a namespace prefix, the prefix will still be attached.
| |
| getQName | back to summary |
|---|---|
| public String getQName(int index) Implements org. Doc from org. Look up an attribute's XML qualified (prefixed) name by index.
| |
| getType | back to summary |
|---|---|
| public String getType(int i) Implements org. Doc from org. Return the type of an attribute in the list (by position). The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case). If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-Value Normalization"). For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".
| |
| getType | back to summary |
|---|---|
| public String getType(String name) Implements org. Doc from org. Return the type of an attribute in the list (by name). The return value is the same as the return value for getType(int). If the attribute name has a namespace prefix in the document, the application must include the prefix here. | |
| getType | back to summary |
|---|---|
| public String getType(String uri, String localName) Implements org. Doc from org. Look up an attribute's type by Namespace name. See | |
| getURI | back to summary |
|---|---|
| public String getURI(int index) Implements org. Doc from org. Look up an attribute's Namespace URI by index.
| |
| getValue | back to summary |
|---|---|
| public String getValue(int i) Implements org. Doc from org. Return the value of an attribute in the list (by position). If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string separated by whitespace.
| |
| getValue | back to summary |
|---|---|
| public String getValue(String name) Implements org. Doc from org. Return the value of an attribute in the list (by name). The return value is the same as the return value for getValue(int). If the attribute name has a namespace prefix in the document, the application must include the prefix here. | |
| getValue | back to summary |
|---|---|
| public String getValue(String uri, String localName) Implements org. Doc from org. Look up an attribute's value by Namespace name. See | |
| isDeclared | back to summary |
|---|---|
| public boolean isDeclared(int index) Implements org. Doc from org. Returns false unless the attribute was declared in the DTD. This helps distinguish two kinds of attributes that SAX reports as CDATA: ones that were declared (and hence are usually valid), and those that were not (and which are never valid).
| |
| isDeclared | back to summary |
|---|---|
| public boolean isDeclared(String qName) Implements org. Doc from org. Returns false unless the attribute was declared in the DTD. This helps distinguish two kinds of attributes that SAX reports as CDATA: ones that were declared (and hence are usually valid), and those that were not (and which are never valid).
| |
| isDeclared | back to summary |
|---|---|
| public boolean isDeclared(String uri, String localName) Implements org. Doc from org. Returns false unless the attribute was declared in the DTD. This helps distinguish two kinds of attributes that SAX reports as CDATA: ones that were declared (and hence are usually valid), and those that were not (and which are never valid). Remember that since DTDs do not "understand" namespaces, the namespace URI associated with an attribute may not have come from the DTD. The declaration will have applied to the attribute's qName. | |
| isSpecified | back to summary |
|---|---|
| public boolean isSpecified(int index) Implements org. Doc from org. Returns true unless the attribute value was provided by DTD defaulting.
| |
| isSpecified | back to summary |
|---|---|
| public boolean isSpecified(String qName) Implements org. Doc from org. Returns true unless the attribute value was provided by DTD defaulting.
| |
| isSpecified | back to summary |
|---|---|
| public boolean isSpecified(String uri, String localName) Implements org. Doc from org. Returns true unless the attribute value was provided by DTD defaulting. Remember that since DTDs do not "understand" namespaces, the namespace URI associated with an attribute may not have come from the DTD. The declaration will have applied to the attribute's qName. | |
| setAttributes | back to summary |
|---|---|
| public void setAttributes(XMLAttributes attributes) Sets the XML attributes to be wrapped. | |