Package com.sun.msv.reader.trex.ng.comp
Class DefAttCompatibilityChecker
java.lang.Object
com.sun.msv.reader.trex.ng.comp.CompatibilityChecker
com.sun.msv.reader.trex.ng.comp.DefAttCompatibilityChecker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
used to abort the check.private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
private ExpressionWalker
checks if the expression contains context-dependent datatypes.private final Map
private final RefExpRemover
Fields inherited from class com.sun.msv.reader.trex.ng.comp.CompatibilityChecker
grammar, reader
-
Constructor Summary
ConstructorsConstructorDescriptionDefAttCompatibilityChecker
(RELAXNGCompReader _reader, Map _defaultedAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
isEpsilon
(Expression exp) returns true if the exp is equivalent to <empty/> after the simplification.protected void
setCompatibility
(boolean val) void
test()
tests the compatibility with the default attribute feature.Methods inherited from class com.sun.msv.reader.trex.ng.comp.CompatibilityChecker
reportCompError, reportCompError
-
Field Details
-
defaultedAttributes
-
refRemover
-
contextDependentTypeChecker
checks if the expression contains context-dependent datatypes. If so, it reports an error and throws an Abort exception. -
CERR_DEFVALUE_NAME_IS_NOT_SIMPLE
- See Also:
-
CERR_DEFVALUE_INVALID
- See Also:
-
CERR_DEFVALUE_NOT_OPTIONAL
- See Also:
-
CERR_DEFVALUE_REPEATABLE
- See Also:
-
CERR_DEFVALUE_COMPLEX_ELEMENTNAME
- See Also:
-
CERR_DEFVALUE_DIFFERENT_VALUES
- See Also:
-
CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE
- See Also:
-
CERR_DEFVALUE_COMPETING_ELEMENTS
- See Also:
-
-
Constructor Details
-
DefAttCompatibilityChecker
DefAttCompatibilityChecker(RELAXNGCompReader _reader, Map _defaultedAttributes)
-
-
Method Details
-
setCompatibility
protected void setCompatibility(boolean val) - Specified by:
setCompatibility
in classCompatibilityChecker
-
isEpsilon
returns true if the exp is equivalent to <empty/> after the simplification. -
test
public void test()tests the compatibility with the default attribute feature.
-