com.thaiopensource.relaxng.parse.sax
Class SchemaParser.AbstractContext

java.lang.Object
  extended by com.thaiopensource.relaxng.parse.sax.DtdContext
      extended by 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


Field Summary
(package private)  SchemaParser.PrefixMapping prefixMapping
           
 
Constructor Summary
SchemaParser.AbstractContext()
           
SchemaParser.AbstractContext(SchemaParser.AbstractContext context)
           
 
Method Summary
 Context copy()
           
 Enumeration prefixes()
           
 String resolveNamespacePrefix(String prefix)
          Resolves a namespace prefix to the corresponding namespace URI.
 
Methods inherited from class com.thaiopensource.relaxng.parse.sax.DtdContext
clearDtdContext, isNotation, isUnparsedEntity, notationDecl, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.relaxng.datatype.ValidationContext
getBaseUri, isNotation, isUnparsedEntity
 

Field Detail

prefixMapping

SchemaParser.PrefixMapping prefixMapping
Constructor Detail

SchemaParser.AbstractContext

SchemaParser.AbstractContext()

SchemaParser.AbstractContext

SchemaParser.AbstractContext(SchemaParser.AbstractContext context)
Method Detail

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