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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ExpressionPool
pool object which was used to construct this grammar.protected final Map
map from namespace URI to loaded XMLSchemaSchema object.private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByNamespace
(String targetNamesapce) gets XMLSchemaSchema object that has the given target namespace.final ExpressionPool
getPool()
gets ExpressionPool object which was used to construct this grammar.final Expression
gets 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. -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
XMLSchemaGrammar
public XMLSchemaGrammar() -
XMLSchemaGrammar
-
-
Method Details
-
getPool
Description copied from interface:Grammar
gets ExpressionPool object which was used to construct this grammar. Never return null. -
getTopLevel
Description copied from interface:Grammar
gets top-level expression. This expression shall be the constraint over the document element. Never return null.- Specified by:
getTopLevel
in 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.
-