com.thaiopensource.relaxng.parse.sax
Class SchemaParser.AbstractContext
java.lang.Object
com.thaiopensource.relaxng.parse.sax.DtdContext
com.thaiopensource.relaxng.parse.sax.SchemaParser.AbstractContext
- All Implemented Interfaces:
- Context, ValidationContext, DTDHandler
- Direct Known Subclasses:
- SchemaParser.ContextImpl, SchemaParser.SavedContext
- Enclosing class:
- SchemaParser
abstract static class SchemaParser.AbstractContext
- extends DtdContext
- implements Context
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefixMapping
SchemaParser.PrefixMapping prefixMapping
SchemaParser.AbstractContext
SchemaParser.AbstractContext()
SchemaParser.AbstractContext
SchemaParser.AbstractContext(SchemaParser.AbstractContext context)
resolveNamespacePrefix
public String resolveNamespacePrefix(String prefix)
- Description copied from interface:
ValidationContext
- Resolves a namespace prefix to the corresponding namespace URI.
This method is used for validating the QName type, for example.
If the prefix is "" (empty string), it indicates
an unprefixed value. The callee
should resolve it as for an unprefixed
element, rather than for an unprefixed attribute.
If the prefix is "xml", then the callee must resolve
this prefix into "http://www.w3.org/XML/1998/namespace",
as defined in the XML Namespaces Recommendation.
- Specified by:
resolveNamespacePrefix
in interface ValidationContext
- Returns:
- namespace URI of this prefix.
If the specified prefix is not declared,
the implementation must return null.
prefixes
public Enumeration prefixes()
- Specified by:
prefixes
in interface Context
copy
public Context copy()
- Specified by:
copy
in interface Context