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
-
class DefAttCompatibilityChecker extends CompatibilityChecker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DefAttCompatibilityChecker.Abort
used to abort the check.private static class
DefAttCompatibilityChecker.DefAttMap
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CERR_DEFVALUE_COMPETING_ELEMENTS
static java.lang.String
CERR_DEFVALUE_COMPLEX_ELEMENTNAME
static java.lang.String
CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE
static java.lang.String
CERR_DEFVALUE_DIFFERENT_VALUES
static java.lang.String
CERR_DEFVALUE_INVALID
static java.lang.String
CERR_DEFVALUE_NAME_IS_NOT_SIMPLE
static java.lang.String
CERR_DEFVALUE_NOT_OPTIONAL
static java.lang.String
CERR_DEFVALUE_REPEATABLE
private ExpressionWalker
contextDependentTypeChecker
checks if the expression contains context-dependent datatypes.private java.util.Map
defaultedAttributes
private RefExpRemover
refRemover
-
Fields inherited from class com.sun.msv.reader.trex.ng.comp.CompatibilityChecker
grammar, reader
-
-
Constructor Summary
Constructors Constructor Description DefAttCompatibilityChecker(RELAXNGCompReader _reader, java.util.Map _defaultedAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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 Detail
-
defaultedAttributes
private final java.util.Map defaultedAttributes
-
refRemover
private final RefExpRemover refRemover
-
contextDependentTypeChecker
private ExpressionWalker 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
public static final java.lang.String CERR_DEFVALUE_NAME_IS_NOT_SIMPLE
- See Also:
- Constant Field Values
-
CERR_DEFVALUE_INVALID
public static final java.lang.String CERR_DEFVALUE_INVALID
- See Also:
- Constant Field Values
-
CERR_DEFVALUE_NOT_OPTIONAL
public static final java.lang.String CERR_DEFVALUE_NOT_OPTIONAL
- See Also:
- Constant Field Values
-
CERR_DEFVALUE_REPEATABLE
public static final java.lang.String CERR_DEFVALUE_REPEATABLE
- See Also:
- Constant Field Values
-
CERR_DEFVALUE_COMPLEX_ELEMENTNAME
public static final java.lang.String CERR_DEFVALUE_COMPLEX_ELEMENTNAME
- See Also:
- Constant Field Values
-
CERR_DEFVALUE_DIFFERENT_VALUES
public static final java.lang.String CERR_DEFVALUE_DIFFERENT_VALUES
- See Also:
- Constant Field Values
-
CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE
public static final java.lang.String CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE
- See Also:
- Constant Field Values
-
CERR_DEFVALUE_COMPETING_ELEMENTS
public static final java.lang.String CERR_DEFVALUE_COMPETING_ELEMENTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefAttCompatibilityChecker
DefAttCompatibilityChecker(RELAXNGCompReader _reader, java.util.Map _defaultedAttributes)
-
-
Method Detail
-
setCompatibility
protected void setCompatibility(boolean val)
- Specified by:
setCompatibility
in classCompatibilityChecker
-
isEpsilon
private boolean isEpsilon(Expression exp)
returns true if the exp is equivalent to <empty/> after the simplification.
-
test
public void test()
tests the compatibility with the default attribute feature.
-
-