com.sun.msv.relaxns.reader
Class RELAXNSReader
- IDContextProvider2, ValidationContext
public class RELAXNSReader
parses RELAX Namespace XML and constructs a SchemaProvider.
ERR_BAD_ATTRIBUTE_VALUE , ERR_BAD_TYPE , ERR_CHARACTERS , ERR_CONFLICTING_ATTRIBUTES , ERR_DATATYPE_ALREADY_DEFINED , ERR_DISALLOWED_ATTRIBUTE , ERR_FRAGMENT_IDENTIFIER , ERR_ILLEGAL_FINAL_VALUE , ERR_MALPLACED_ELEMENT , ERR_MISSING_ATTRIBUTE , ERR_MISSING_ATTRIBUTE_2 , ERR_MISSING_CHILD_EXPRESSION , ERR_MISSING_CHILD_TYPE , ERR_MISSING_TOPLEVEL , ERR_MORE_THAN_ONE_CHILD_EXPRESSION , ERR_MORE_THAN_ONE_CHILD_TYPE , ERR_RECURSIVE_DATATYPE , ERR_RECURSIVE_INCLUDE , ERR_RUNAWAY_EXPRESSION , ERR_UNDEFINED_DATATYPE , WRN_DEPRECATED_TYPENAME , WRN_MAYBE_WRONG_NAMESPACE , backwardReference , basePrefixResolver , controller , locator , parserFactory , pool , prefixResolver |
_parse , addBackPatchJob , addBackPatchJob , combineURI , combineURL , createExpressionChildState , detectUndefinedOnes , endPrefixMapping , getBackwardCompatibleType , getBaseUri , getCurrentState , getDeclaredLocationOf , getResultAsGrammar , isNotation , isUnparsedEntity , iterateInscopeNamespaces , onID , parse , parse , popState , pushState , reportError , reportError , reportError , reportError , reportError , reportError , reportError , reportError , reportWarning , reportWarning , reportWarning , reportWarning , resolveLocation , resolveNamespacePrefix , runBackPatchJob , setDeclaredLocationOf , setDocumentLocator , splitQName , startPrefixMapping , switchSource , switchSource |
ERR_INLINEMODULE_NOT_FOUND
public static final String ERR_INLINEMODULE_NOT_FOUND
ERR_NAMESPACE_COLLISION
public static final String ERR_NAMESPACE_COLLISION
ERR_TOPLEVEL_PARTICLE_MUST_BE_RELAX_CORE
public static final String ERR_TOPLEVEL_PARTICLE_MUST_BE_RELAX_CORE
ERR_UNKNOWN_LANGUAGE
public static final String ERR_UNKNOWN_LANGUAGE
RELAXNamespaceNamespace
public static final String RELAXNamespaceNamespace
namespace URI of RELAX Namespace.
WRN_ILLEGAL_RELAXNAMESPACE_VERSION
public static final String WRN_ILLEGAL_RELAXNAMESPACE_VERSION
grammar
public final RELAXGrammar grammar
RELAX grammar that is currentlt being loaded
getIslandSchemaReader
public IslandSchemaReader getIslandSchemaReader(String language,
String expectedTargetNamespace)
creates an IslandSchemaReader
that can parse the specified language.
This method can be overrided by the derived class to incorporate other
language implementations.
- return null if the given language is unrecognized.
error will be handled by the caller. So this method should not attempt
to report nor recover from error.
getResult
public final RELAXGrammar getResult()
obtains parsed grammar object only if parsing was successful.
getResultAsGrammar
public Grammar getResultAsGrammar()
gets the parsed AGM.
Should any error happens, this method should returns null.
derived classes should implement type-safe getGrammar method,
along with this method.
- getResultAsGrammar in interface GrammarReader
getSchemaProvider
public final SchemaProvider getSchemaProvider()
obtains parsed grammar object as SchemaProvider
only if parsing was successful.
resolveDataType
public Datatype resolveDataType(String typeName)