Package com.sun.msv.grammar.xmlschema
Class XMLSchemaGrammar
- java.lang.Object
-
- com.sun.msv.grammar.xmlschema.XMLSchemaGrammar
-
- All Implemented Interfaces:
Grammar
,java.io.Serializable
public class XMLSchemaGrammar extends java.lang.Object implements Grammar
set of XML Schema. This set can be used to validate a document.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExpressionPool
pool
pool object which was used to construct this grammar.protected java.util.Map
schemata
map from namespace URI to loaded XMLSchemaSchema object.private static long
serialVersionUID
Expression
topLevel
-
Constructor Summary
Constructors Constructor Description XMLSchemaGrammar()
XMLSchemaGrammar(ExpressionPool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLSchemaSchema
getByNamespace(java.lang.String targetNamesapce)
gets XMLSchemaSchema object that has the given target namespace.ExpressionPool
getPool()
gets ExpressionPool object which was used to construct this grammar.Expression
getTopLevel()
gets top-level expression.java.util.Iterator
iterateSchemas()
returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.
-
-
-
Field Detail
-
pool
protected final ExpressionPool pool
pool object which was used to construct this grammar.
-
topLevel
public Expression topLevel
-
schemata
protected final java.util.Map schemata
map from namespace URI to loaded XMLSchemaSchema object.
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLSchemaGrammar
public XMLSchemaGrammar()
-
XMLSchemaGrammar
public XMLSchemaGrammar(ExpressionPool pool)
-
-
Method Detail
-
getPool
public final ExpressionPool getPool()
Description copied from interface:Grammar
gets ExpressionPool object which was used to construct this grammar. Never return null.
-
getTopLevel
public final Expression 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
public XMLSchemaSchema getByNamespace(java.lang.String targetNamesapce)
gets XMLSchemaSchema object that has the given target namespace.- Returns:
- null if no schema is associated with that namespace.
-
iterateSchemas
public java.util.Iterator iterateSchemas()
returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.
-
-