XmlVisitor decorator that interns all string tokens.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final InterningXmlVisitor. | |
| private final XmlVisitor |
| Access | Constructor and Description |
|---|---|
| public |
| attributes | back to summary |
|---|---|
| private final InterningXmlVisitor. | |
| next | back to summary |
|---|---|
| private final XmlVisitor next | |
| InterningXmlVisitor | back to summary |
|---|---|
| public InterningXmlVisitor(XmlVisitor next) | |
| endDocument | back to summary |
|---|---|
| public void endDocument() throws SAXException Implements org.
| |
| endElement | back to summary |
|---|---|
| public void endElement(TagName tagName) throws SAXException Implements org.
| |
| endPrefixMapping | back to summary |
|---|---|
| public void endPrefixMapping(String prefix) throws SAXException Implements org. Doc from org. Called after
| |
| getContext | back to summary |
|---|---|
| public UnmarshallingContext getContext() Implements org. Doc from org. Returns the
| |
| getPredictor | back to summary |
|---|---|
| public XmlVisitor. Implements org. Doc from org. Gets the predictor that can be used for the caller to avoid
calling
| |
| intern | back to summary |
|---|---|
| private static String intern(String s) | |
| startDocument | back to summary |
|---|---|
| public void startDocument(LocatorEx locator, NamespaceContext nsContext) throws SAXException Implements org. Doc from org. Notifies a start of the document.
| |
| startElement | back to summary |
|---|---|
| public void startElement(TagName tagName) throws SAXException Implements org. Doc from org. Notifies a start tag of a new element. namespace URIs and local names must be interned.
| |
| startPrefixMapping | back to summary |
|---|---|
| public void startPrefixMapping(String prefix, String nsUri) throws SAXException Implements org. Doc from org. Called before
| |
| text | back to summary |
|---|---|
| public void text(CharSequence pcdata) throws SAXException Implements org. Doc from org. Text events.
The caller should consult
| |
| Modifier and Type | Field and Description |
|---|---|
| private Attributes |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getIndex(String qName)
Implements org. Look up the index of an attribute by XML qualified (prefixed) name. |
| public int | getIndex(String uri, String localName)
Implements org. Look up the index of an attribute by Namespace name. |
| public int | getLength()
Implements org. Return the number of attributes in the list. |
| public String | getLocalName(int index)
Implements org. Look up an attribute's local name by index. |
| public String | getQName(int index)
Implements org. Look up an attribute's XML qualified (prefixed) name by index. |
| public String | |
| public String | getType(String qName)
Implements org. Look up an attribute's type by XML qualified (prefixed) name. |
| public String | getType(String uri, String localName)
Implements org. Look up an attribute's type by Namespace name. |
| public String | getURI(int index)
Implements org. Look up an attribute's Namespace URI by index. |
| public String | getValue(int index)
Implements org. Look up an attribute's value by index. |
| public String | getValue(String qName)
Implements org. Look up an attribute's value by XML qualified (prefixed) name. |
| public String | getValue(String uri, String localName)
Implements org. Look up an attribute's value by Namespace name. |
| pack-priv void |
| core | back to summary |
|---|---|
| private Attributes core | |
| AttributesImpl | back to summary |
|---|---|
| private AttributesImpl() | |
| 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 localName) 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 the list. Once you know the number of attributes, you can iterate through the list.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName(int index) Implements org. Doc from org. Look up an attribute's local name by index.
| |
| 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 index) Implements org. Doc from org. Look up an attribute's type by index. 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 Recommendation (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 qName) Implements org. Doc from org. Look up an attribute's type by XML qualified (prefixed) name. See
| |
| 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 index) Implements org. Doc from org. Look up an attribute's value by index. If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.
| |
| getValue | back to summary |
|---|---|
| public String getValue(String qName) Implements org. Doc from org. Look up an attribute's value by XML qualified (prefixed) name. See
| |
| 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
| |
| setAttributes | back to summary |
|---|---|
| pack-priv void setAttributes(Attributes att) | |