public abstract class RELAXReader extends GrammarReader
| Modifier and Type | Class and Description |
|---|---|
static class |
RELAXReader.StateFactory
creates various State object, which in turn parses grammar.
|
GrammarReader.BackPatch, GrammarReader.BackwardReferenceMap, GrammarReader.ChainPrefixResolver, GrammarReader.PrefixResolver| Modifier and Type | Field and Description |
|---|---|
static String |
ERR_ILLEGAL_OCCURS |
static String |
ERR_MISPLACED_OCCURS |
static String |
RELAXCoreNamespace
Namespace URI of RELAX Core
|
RELAXReader.StateFactory |
sfactory |
backwardReference, basePrefixResolver, controller, 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, parserFactory, pool, prefixResolver, WRN_DEPRECATED_TYPENAME, WRN_MAYBE_WRONG_NAMESPACE| Constructor and Description |
|---|
RELAXReader(GrammarReaderController controller,
SAXParserFactory parserFactory,
RELAXReader.StateFactory stateFactory,
ExpressionPool pool,
State initialState) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHaveOccurs(State state)
returns true if the given state can have "occurs" attribute.
|
State |
createExpressionChildState(State parent,
StartTagInfo tag)
this method must be implemented by the derived class to create
language-default expresion state.
|
FacetState |
createFacetState(State parent,
StartTagInfo tag) |
protected ExpressionPool |
getPool() |
protected Expression |
interceptExpression(State state,
Expression exp)
intercepts an expression made by ExpressionState
before it is passed to the parent state.
|
protected String |
localizeMessage(String propertyName,
Object[] args)
formats localized message with arguments
|
protected abstract Expression |
resolveElementRef(String namespace,
String label)
obtains an Expression specified by given (namespace,label) pair.
|
protected abstract Expression |
resolveHedgeRef(String namespace,
String label)
obtains an Expression specified by given (namespace,label) pair.
|
_parse, addBackPatchJob, addBackPatchJob, combineURI, combineURL, createParserFactory, detectUndefinedOnes, endPrefixMapping, getBackwardCompatibleType, getBaseUri, getCurrentState, getDeclaredLocationOf, getLocator, getResultAsGrammar, inputSourceFromLSInput, isGrammarElement, isNotation, isUnparsedEntity, iterateInscopeNamespaces, onID, parse, parse, parse, popState, pushState, reportError, reportError, reportError, reportError, reportError, reportError, reportError, reportError, reportWarning, reportWarning, reportWarning, reportWarning, resolveLocation, resolveNamespacePrefix, runBackPatchJob, setDeclaredLocationOf, setDocumentLocator, setLocator, splitQName, startPrefixMapping, switchSource, switchSource, switchSourcecharacters, endDocument, endElement, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, unparsedEntityDecl, warningpublic static final String RELAXCoreNamespace
public final RELAXReader.StateFactory sfactory
public static final String ERR_ILLEGAL_OCCURS
public static final String ERR_MISPLACED_OCCURS
public RELAXReader(GrammarReaderController controller, SAXParserFactory parserFactory, RELAXReader.StateFactory stateFactory, ExpressionPool pool, State initialState)
public State createExpressionChildState(State parent, StartTagInfo tag)
GrammarReadercreateExpressionChildState in class GrammarReaderpublic FacetState createFacetState(State parent, StartTagInfo tag)
protected boolean canHaveOccurs(State state)
protected Expression interceptExpression(State state, Expression exp)
GrammarReaderinterceptExpression in class GrammarReaderprotected abstract Expression resolveElementRef(String namespace, String label)
protected abstract Expression resolveHedgeRef(String namespace, String label)
protected String localizeMessage(String propertyName, Object[] args)
GrammarReaderlocalizeMessage in class GrammarReaderprotected ExpressionPool getPool()
Copyright © 2016 Oracle Corporation. All Rights Reserved.