Package com.sun.msv.grammar.xmlschema
Class XMLSchemaGrammar
java.lang.Object
com.sun.msv.grammar.xmlschema.XMLSchemaGrammar
- All Implemented Interfaces:
Grammar,Serializable
set of XML Schema. This set can be used to validate a document.
- Author:
- Kohsuke KAWAGUCHI
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExpressionPoolpool object which was used to construct this grammar.map from namespace URI to loaded XMLSchemaSchema object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByNamespace(String targetNamesapce) gets XMLSchemaSchema object that has the given target namespace.final ExpressionPoolgetPool()gets ExpressionPool object which was used to construct this grammar.final Expressiongets top-level expression.returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.
-
Field Details
-
pool
pool object which was used to construct this grammar. -
topLevel
-
schemata
map from namespace URI to loaded XMLSchemaSchema object.
-
-
Constructor Details
-
XMLSchemaGrammar
public XMLSchemaGrammar() -
XMLSchemaGrammar
-
-
Method Details
-
getPool
Description copied from interface:Grammargets ExpressionPool object which was used to construct this grammar. Never return null. -
getTopLevel
Description copied from interface:Grammargets top-level expression. This expression shall be the constraint over the document element. Never return null.- Specified by:
getTopLevelin interfaceGrammar
-
getByNamespace
gets XMLSchemaSchema object that has the given target namespace.- Returns:
- null if no schema is associated with that namespace.
-
iterateSchemas
returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.
-