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
  • Field Details

    • defaultedAttributes

      private final 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 String CERR_DEFVALUE_NAME_IS_NOT_SIMPLE
      See Also:
    • CERR_DEFVALUE_INVALID

      public static final String CERR_DEFVALUE_INVALID
      See Also:
    • CERR_DEFVALUE_NOT_OPTIONAL

      public static final String CERR_DEFVALUE_NOT_OPTIONAL
      See Also:
    • CERR_DEFVALUE_REPEATABLE

      public static final String CERR_DEFVALUE_REPEATABLE
      See Also:
    • CERR_DEFVALUE_COMPLEX_ELEMENTNAME

      public static final String CERR_DEFVALUE_COMPLEX_ELEMENTNAME
      See Also:
    • CERR_DEFVALUE_DIFFERENT_VALUES

      public static final String CERR_DEFVALUE_DIFFERENT_VALUES
      See Also:
    • CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE

      public static final String CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE
      See Also:
    • CERR_DEFVALUE_COMPETING_ELEMENTS

      public static final String 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 class CompatibilityChecker
    • 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.