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 class
RELAXModule.AttPoolContainer
class
RELAXModule.DatatypeContainer
Datatypes.class
RELAXModule.ElementRulesContainer
class
RELAXModule.HedgeRulesContainer
class
RELAXModule.TagContainer
-
Field Summary
Fields Modifier and Type Field Description RELAXModule.AttPoolContainer
attPools
map from role name to AttPoolClause objectRELAXModule.DatatypeContainer
datatypes
RELAXModule.ElementRulesContainer
elementRules
map from label name to ElementRules objectRELAXModule.HedgeRulesContainer
hedgeRules
map from label name to HedgeRules objectExpressionPool
pool
ExpressionPool object which was used to create this module.private static long
serialVersionUID
RELAXModule.TagContainer
tags
map from role name to TagClause objectjava.lang.String
targetNamespace
target namespace URIExpression
topLevel
chioce 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 ExpressionPool
getPool()
gets ExpressionPool object which was used to construct this grammar.Expression
getTopLevel()
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:Grammar
gets top-level expression. This expression shall be the constraint over the document element. Never return null.- Specified by:
getTopLevel
in interfaceGrammar
-
getPool
public ExpressionPool getPool()
Description copied from interface:Grammar
gets ExpressionPool object which was used to construct this grammar. Never return null.
-
-