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 classused to abort the check.private static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate ExpressionWalkerchecks if the expression contains context-dependent datatypes.private final Mapprivate final RefExpRemoverFields inherited from class CompatibilityChecker
grammar, reader -
Constructor Summary
ConstructorsConstructorDescriptionDefAttCompatibilityChecker(RELAXNGCompReader _reader, Map _defaultedAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisEpsilon(Expression exp) returns true if the exp is equivalent to <empty/> after the simplification.protected voidsetCompatibility(boolean val) voidtest()tests the compatibility with the default attribute feature.Methods inherited from class 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:
setCompatibilityin 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.
-