ValidationContext.
It is needed by some MSV components (specifically, W3C Schema Validator)
for limited access to attribute values during start element validation.
| Modifier and Type | Field and Description |
|---|---|
| private final ValidationContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getIndex(String
The qualified (prefixed) name. qName)Implements org. Look up the index of an attribute by XML qualified (prefixed) name. |
| 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. 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
The attribute index (zero-based). index)Implements org. Look up an attribute's local name by index. |
| public String | getQName(int
The attribute index (zero-based). index)Implements org. Look up an attribute's XML qualified (prefixed) name by index. |
| public String | getType(int
The attribute index (zero-based). index)Implements org. Look up an attribute's type by index. |
| public String | getType(String
The XML qualified name. qName)Implements org. Look up an attribute's type by XML qualified (prefixed) name. |
| 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. Look up an attribute's type by Namespace name. |
| public String | getURI(int
The attribute index (zero-based). index)Implements org. Look up an attribute's Namespace URI by index. |
| public String | getValue(int
The attribute index (zero-based). index)Implements org. Look up an attribute's value by index. |
| public String | getValue(String
The XML qualified name. qName)Implements org. Look up an attribute's value by XML qualified (prefixed) name. |
| 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. Look up an attribute's value by Namespace name. |
| mContext | back to summary |
|---|---|
| private final ValidationContext mContext | |
| AttributeProxy | back to summary |
|---|---|
| public AttributeProxy(ValidationContext ctxt) | |
| 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 | |