Note
instances of AttributeInfo are only guaranteed to persist as long as the (stream) reader points to the START_ELEMENT event, during which attribute information was parsed. It is possible that some implementations persist instances afterwards, but it's equally possible that instances get reused, and as such information may change.
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Index of the specified attribute, if the current element has such an attribute (explicit, or one created via default value expansion); -1 if not.
|
| public int | Returns: Number of all attributes accessible (including ones created from the default values, if any) using this Object.
|
| public int | Returns: Index of the ID attribute of current element, if the current element has such an attribute defined; -1 if not.Returns the index of the id attribute (attribute with any name, type ID from DTD) of current (start) element, if any. |
| public int | Returns: Index of the NOTATION attribute of current element, if the current element has such an attribute defined; -1 if not.Returns the index of the notation attribute (attribute with any name, type NOTATION from DTD) of current (start) element, if any. |
| findAttributeIndex | back to summary |
|---|---|
public int findAttributeIndex(String nsURI, String localName)
| |
| getAttributeCount | back to summary |
|---|---|
public int getAttributeCount()
| |
| getIdAttributeIndex | back to summary |
|---|---|
| public int getIdAttributeIndex() Returns the index of the id attribute (attribute with any name, type ID from DTD) of current (start) element, if any. Note that DTD only allows at most one such attribute per element.
| |
| getNotationAttributeIndex | back to summary |
|---|---|
| public int getNotationAttributeIndex() Returns the index of the notation attribute (attribute with any name, type NOTATION from DTD) of current (start) element, if any. Note that DTD only allows at most one such attribute per element.
| |