| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static class | XMLSchemaReader.StateFactory
creates various State object, which in turn parses grammar. |
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| protected String | attributeFormDefault
value of the "attributeFormDefault" attribute. |
| protected String | blockDefault
value of the "blockDefault" attribute. |
| protected String | chameleonTargetNamespace
The intended target namespace of the chameleon schema. |
| public final ComplexTypeExp | complexUrType
expression that matches to "ur-type" when used as a complex type. |
| protected XMLSchemaSchema | |
| private final Set | definedSchemata
set of XMLSchemaGrammar that is already defined. |
| public boolean | doDuplicateDefinitionCheck
a flag that indicates State objects should check duplicate definitions. |
| protected String | elementFormDefault
value of the "elementFormDefault" attribute. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected String | finalDefault
value of the "finalDefault" attribute. |
| protected final XMLSchemaGrammar | grammar
grammar object which is being under construction. |
| private boolean | |
| public final Map | parsedFiles
tables that store all SystemIds that we've read. |
| public final XMLSchemaReader. | |
| public static final String | |
| public static final String | |
| public static final String | |
| protected static Schema | xmlSchema4XmlSchema
Schema for schema of W3C XML Schema. |
| public static final String | XMLSchemaNamespace
namespace URI of XML Schema declarations. |
| public static final String | |
| public static final String | |
| protected final XMLSchemaSchema | xsdSchema
XMLSchemaSchema object that has XMLSchemaNamespace as its target namespace. |
| public final ReferenceExp | xsiSchemaLocationExp
content model that matches to optional xsi:schemaLocation or xsi:noNamespaceSchemaLocation. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | XMLSchemaReader(GrammarReaderController controller, SAXParserFactory parserFactory, ExpressionPool pool)
|
| public | XMLSchemaReader(GrammarReaderController controller, SAXParserFactory parserFactory, XMLSchemaReader.
|
| Modifier and Type | Method and Description |
|---|---|
| private Expression | |
| public State | createAttributeState(State parent, StartTagInfo tag)
creates a state object that parses "attribute","attributeGroup ref", and "anyAttribute". |
| public State | createExpressionChildState(State parent, StartTagInfo tag)
Implements abstract com. |
| public State | |
| public State | createModelGroupState(State parent, StartTagInfo tag)
creates a state object that parses "all"/"group ref"/"choice" and "sequence". |
| public Map | |
| public XMLSchemaSchema | getOrCreateSchema(String namespaceURI)
gets a reference to XMLSchemaGrammar object whose target namespace is the specified one. |
| public final XMLSchemaGrammar | |
| public Grammar | getResultAsGrammar()
Implements abstract com. |
| private XMLSchemaReader. | |
| private XMLSchemaReader. | |
| public static Schema | |
| protected Expression | interceptExpression(State state, Expression exp)
Overrides com. |
| protected boolean | isGrammarElement(StartTagInfo tag)
Implements abstract com. |
| public final boolean | |
| public boolean | |
| private boolean | Returns: true if d can validly substitute c.the substitution head c, ElementDeclExp a member of the substitution group of c. d)implementation of "SCC: Substitution Group OK (Transitive)". |
| protected String | localizeMessage(String propertyName, Object[] args)
Implements abstract com. |
| public final void | |
| public static XMLSchemaGrammar | parse(String grammarURL, SAXParserFactory factory, GrammarReaderController controller)
loads XML Schema |
| public static XMLSchemaGrammar | parse(InputSource grammar, SAXParserFactory factory, GrammarReaderController controller)
loads XML Schema |
| public static XMLSchemaGrammar | parse(Source schema, GrammarReaderController controller)
Convenience method to create a reader and read a single scheme. |
| public Expression | processOccurs(StartTagInfo startTag, Expression item)
Adds maxOccurs/minOccurs semantics to a given expression. |
| public Expression | processOccurs(Expression item, int minOccurs, int
-1 to represent "unbounded". maxOccurs)Adds maxOccurs/minOccurs semantics to a given expression. |
| public XSDatatype | Returns: null if the type is not defined.resolves built-in datatypes (URI: http://www.w3.org/2001/XMLSchema) |
| public SimpleTypeExp | Returns: null if the type is not defined.Gets a built-in datatype as SimpleTypeExp. |
| protected String | |
| private String | |
| protected String | |
| public Expression | |
| public XSDatatypeExp | resolveXSDatatype(String
The type of this value varies in the schema language.
In XML Schema, for example, in which QNames are used
to designate datatypes, this parameter will be QName.
In RELAX Core, in which the same syntax is used but
NCName is used to designate datatypes. So this parameter
will be NCName. typeQName)Implements com. |
| public void | |
| public String[] | splitQName(String qName)
Overrides com. |
| protected void | |
| protected void |