Package com.sun.msv.grammar.relax
Class RELAXModule
- java.lang.Object
-
- com.sun.msv.grammar.relax.RELAXModule
-
- All Implemented Interfaces:
Grammar,java.io.Serializable
public class RELAXModule extends java.lang.Object implements Grammar
"Module" of RELAX Core.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classRELAXModule.AttPoolContainerclassRELAXModule.DatatypeContainerDatatypes.classRELAXModule.ElementRulesContainerclassRELAXModule.HedgeRulesContainerclassRELAXModule.TagContainer
-
Field Summary
Fields Modifier and Type Field Description RELAXModule.AttPoolContainerattPoolsmap from role name to AttPoolClause objectRELAXModule.DatatypeContainerdatatypesRELAXModule.ElementRulesContainerelementRulesmap from label name to ElementRules objectRELAXModule.HedgeRulesContainerhedgeRulesmap from label name to HedgeRules objectExpressionPoolpoolExpressionPool object which was used to create this module.private static longserialVersionUIDRELAXModule.TagContainertagsmap from role name to TagClause objectjava.lang.StringtargetNamespacetarget namespace URIExpressiontopLevelchioce of all exported elementRules and hedgeRules.
-
Constructor Summary
Constructors Constructor Description RELAXModule(ExpressionPool pool, java.lang.String targetNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionPoolgetPool()gets ExpressionPool object which was used to construct this grammar.ExpressiongetTopLevel()gets top-level expression.
-
-
-
Field Detail
-
elementRules
public final RELAXModule.ElementRulesContainer elementRules
map from label name to ElementRules object
-
hedgeRules
public final RELAXModule.HedgeRulesContainer hedgeRules
map from label name to HedgeRules object
-
tags
public final RELAXModule.TagContainer tags
map from role name to TagClause object
-
attPools
public final RELAXModule.AttPoolContainer attPools
map from role name to AttPoolClause object
-
targetNamespace
public final java.lang.String targetNamespace
target namespace URI
-
datatypes
public final RELAXModule.DatatypeContainer datatypes
-
topLevel
public Expression topLevel
chioce of all exported elementRules and hedgeRules. This can be used as the top-level expression when a module is used to validate documents by itself.
-
pool
public final ExpressionPool pool
ExpressionPool object which was used to create this module.
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RELAXModule
public RELAXModule(ExpressionPool pool, java.lang.String targetNamespace)
-
-
Method Detail
-
getTopLevel
public Expression 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
-
getPool
public ExpressionPool getPool()
Description copied from interface:Grammargets ExpressionPool object which was used to construct this grammar. Never return null.
-
-