class DefAttCompatibilityChecker extends CompatibilityChecker
Modifier and Type | Class and Description |
---|---|
private static class |
DefAttCompatibilityChecker.Abort
used to abort the check.
|
private static class |
DefAttCompatibilityChecker.DefAttMap |
Modifier and Type | Field and 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 |
grammar, reader
Constructor and Description |
---|
DefAttCompatibilityChecker(RELAXNGCompReader _reader,
java.util.Map _defaultedAttributes) |
Modifier and Type | Method and 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.
|
reportCompError, reportCompError
private final java.util.Map defaultedAttributes
private final RefExpRemover refRemover
private ExpressionWalker contextDependentTypeChecker
public static final java.lang.String CERR_DEFVALUE_NAME_IS_NOT_SIMPLE
public static final java.lang.String CERR_DEFVALUE_INVALID
public static final java.lang.String CERR_DEFVALUE_NOT_OPTIONAL
public static final java.lang.String CERR_DEFVALUE_REPEATABLE
public static final java.lang.String CERR_DEFVALUE_COMPLEX_ELEMENTNAME
public static final java.lang.String CERR_DEFVALUE_DIFFERENT_VALUES
public static final java.lang.String CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE
public static final java.lang.String CERR_DEFVALUE_COMPETING_ELEMENTS
DefAttCompatibilityChecker(RELAXNGCompReader _reader, java.util.Map _defaultedAttributes)
protected void setCompatibility(boolean val)
setCompatibility
in class CompatibilityChecker
private boolean isEpsilon(Expression exp)
public void test()