public class SAXAttributes extends Object implements Attributes2, AttributeList:
Mutable SAX attribute collection used by the pure Klyn SAX parser.
The collection implements both the SAX2 Attributes2 contract and the deprecated SAX1 AttributeList contract so the same object can be reported to ContentHandler and DocumentHandler callbacks.
@example `klyn import klyn.io.xml.sax
attrs = SAXAttributes() attrs.add("", "id", "id", "CDATA", "42") print(attrs.getValue("id"))
| Modifier and Type | Member | Description |
|---|---|---|
| public | SAXAttributes | Creates an empty attribute collection. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | add | Adds one attribute to the collection. |
| public | getIndex | Finds an attribute by qualified name. |
| public | getIndex | Finds an attribute by Namespace URI and local name. |
| public | getLengthgetLength() as Int: |
Returns the number of attributes. |
| public | getLocalName | Returns the local name at an index. |
| public | getName | Returns the SAX1 qualified attribute name at an index. |
| public | getQName | Returns the qualified name at an index. |
| public | getType | Returns the attribute type at an index. |
| public | getType | Returns an attribute type by qualified name. |
| public | getType | Returns an attribute type by Namespace URI and local name. |
| public | getURI | Returns the Namespace URI at an index. |
| public | getValue | Returns the attribute value at an index. |
| public | getValue | Returns an attribute value by qualified name. |
| public | getValue | Returns an attribute value by Namespace URI and local name. |
| public | isDeclared | Reports whether an indexed attribute was declared in a DTD. |
| public | isDeclared | Reports whether a qualified attribute name was declared in a DTD. |
| public | isDeclared | Reports whether a Namespace/local-name attribute was declared in a DTD. |
| public | isSpecified | Reports whether an indexed attribute was present in the source. |
| public | isSpecified | Reports whether a qualified attribute name was present in the source. |
| public | isSpecified | Reports whether a Namespace/local-name attribute was present in the source. |