References Deprecated
AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getLength()
Implements org. Return the number of attributes in this list. |
| public String | getName(int i)
Implements org. Return the name of an attribute in this list (by position). |
| public String | getType(int i)
Implements org. Return the type of an attribute in the list (by position). |
| public String | getType(String name)
Implements org. Return the type of an attribute in the list (by name). |
| public String | getValue(int i)
Implements org. Return the value of an attribute in the list (by position). |
| public String | getValue(String name)
Implements org. Return the value of an attribute in the list (by name). |
| _document | back to summary |
|---|---|
| private DOM _document | |
| _element | back to summary |
|---|---|
| private int _element | |
| Attributes | back to summary |
|---|---|
| public Attributes(DOM document, int element) | |
| 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. | |
| 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. | |
| 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. | |
| 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. | |