com.sun.msv.grammar.relaxng

Class RELAXNGGrammar

Implemented Interfaces:
Grammar, Serializable

public class RELAXNGGrammar
extends TREXGrammar

Grammar for RELAX NG (with DTD compatibility annotation).
Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class com.sun.msv.grammar.trex.TREXGrammar

TREXGrammar.RefContainer

Field Summary

boolean
isAnnotationCompatible
the compatibility property of the annotation feature.
boolean
isDefaultAttributeValueCompatible
the compatibility property of the default attribute feature.
boolean
isIDcompatible
the compatibility property of the ID/IDREF feature.

Fields inherited from class com.sun.msv.grammar.trex.TREXGrammar

dataTypes, namedPatterns, pool

Fields inherited from class com.sun.msv.grammar.ReferenceExp

exp, name

Fields inherited from class com.sun.msv.grammar.Expression

anyString, epsilon, nullSet, verifierTag

Constructor Summary

RELAXNGGrammar()
this constructor can be used for the ununified expressions.
RELAXNGGrammar(ExpressionPool pool)
RELAXNGGrammar(ExpressionPool pool, TREXGrammar parentGrammar)

Method Summary

Methods inherited from class com.sun.msv.grammar.trex.TREXGrammar

getParentGrammar, getPool, getTopLevel

Methods inherited from class com.sun.msv.grammar.ReferenceExp

equals, isDefined, visit, visit, visit, visit

Methods inherited from class com.sun.msv.grammar.Expression

equals, getExpandedExp, hashCode, isEpsilonReducible, peelOccurence, visit, visit, visit, visit, visit, visit, visit, visit

Field Details

isAnnotationCompatible

public boolean isAnnotationCompatible
the compatibility property of the annotation feature. This flag is set to true if this schema is compatible in terms of the annotation feature, as defined in the spec.

isDefaultAttributeValueCompatible

public boolean isDefaultAttributeValueCompatible
the compatibility property of the default attribute feature. This flag is set to true if this schema is compatible in terms of the default attribute value feature, as defined in the spec.

Note that the currently we don't support infoset augmentation.


isIDcompatible

public boolean isIDcompatible
the compatibility property of the ID/IDREF feature. This flag is set to true if this schema is compatible in terms of ID/IDREF, as defined in the spec.

Constructor Details

RELAXNGGrammar

public RELAXNGGrammar()
this constructor can be used for the ununified expressions. the only reason there are two parameters is to prevent unintentional use of the default constructor.

RELAXNGGrammar

public RELAXNGGrammar(ExpressionPool pool)

RELAXNGGrammar

public RELAXNGGrammar(ExpressionPool pool,
                      TREXGrammar parentGrammar)