Top Inners Fields Constructors Methods
com.sun.msv.reader.trex.ng.comp

pack-priv Class DefAttCompatibilityChecker

extends CompatibilityChecker
Class Inheritance
Imports
java.util.HashMap, .HashSet, .Iterator, .Map, .Set, org.relaxng.datatype.Datatype, org.xml.sax.Locator, com.sun.msv.grammar.AttributeExp, .ChoiceExp, .DataExp, .ElementExp, .Expression, .ListExp, .NameClass, .OneOrMoreExp, .SimpleNameClass, .ValueExp, com.sun.msv.grammar.util.ExpressionWalker, .RefExpRemover, com.sun.msv.util.StringPair, com.sun.msv.verifier.regexp.ResidualCalculator, .StringToken

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
DefAttCompatibilityChecker.Abort

used to abort the check.

private static class

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
public static final String
private ExpressionWalker
contextDependentTypeChecker

checks if the expression contains context-dependent datatypes.

private final Map<K, V>
private final RefExpRemover
Inherited from com.sun.msv.reader.trex.ng.comp.CompatibilityChecker:
grammarreader

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private boolean
isEpsilon(Expression exp)

returns true if the exp is equivalent to <empty/> after the simplification.

protected void
public void
test()

tests the compatibility with the default attribute feature.

Inherited from com.sun.msv.reader.trex.ng.comp.CompatibilityChecker:
reportCompErrorreportCompError

Field Detail

CERR_DEFVALUE_COMPETING_ELEMENTSback to summary
public static final String CERR_DEFVALUE_COMPETING_ELEMENTS
CERR_DEFVALUE_COMPLEX_ELEMENTNAMEback to summary
public static final String CERR_DEFVALUE_COMPLEX_ELEMENTNAME
CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPEback to summary
public static final String CERR_DEFVALUE_CONTEXT_DEPENDENT_TYPE
CERR_DEFVALUE_DIFFERENT_VALUESback to summary
public static final String CERR_DEFVALUE_DIFFERENT_VALUES
CERR_DEFVALUE_INVALIDback to summary
public static final String CERR_DEFVALUE_INVALID
CERR_DEFVALUE_NAME_IS_NOT_SIMPLEback to summary
public static final String CERR_DEFVALUE_NAME_IS_NOT_SIMPLE
CERR_DEFVALUE_NOT_OPTIONALback to summary
public static final String CERR_DEFVALUE_NOT_OPTIONAL
CERR_DEFVALUE_REPEATABLEback to summary
public static final String CERR_DEFVALUE_REPEATABLE
contextDependentTypeCheckerback to summary
private ExpressionWalker contextDependentTypeChecker

checks if the expression contains context-dependent datatypes. If so, it reports an error and throws an Abort exception.

defaultedAttributesback to summary
private final Map<K, V> defaultedAttributes
refRemoverback to summary
private final RefExpRemover refRemover

Constructor Detail

DefAttCompatibilityCheckerback to summary
pack-priv DefAttCompatibilityChecker(RELAXNGCompReader _reader, Map<AttributeExp, String> _defaultedAttributes)

Method Detail

isEpsilonback to summary
private boolean isEpsilon(Expression exp)

returns true if the exp is equivalent to <empty/> after the simplification.

setCompatibilityback to summary
protected void setCompatibility(boolean val)

Implements abstract com.sun.msv.reader.trex.ng.comp.CompatibilityChecker.setCompatibility.

testback to summary
public void test()

tests the compatibility with the default attribute feature.

com.sun.msv.reader.trex.ng.comp back to summary

private final Class DefAttCompatibilityChecker.Abort

extends RuntimeException
Class Inheritance
Annotations
@SuppressWarnings:serial

used to abort the check.

Constructor Summary

AccessConstructor and Description
private

Constructor Detail

Abortback to summary
private Abort()
com.sun.msv.reader.trex.ng.comp back to summary

private final Class DefAttCompatibilityChecker.DefAttMap

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.msv.reader.trex.ng.comp.DefAttCompatibilityChecker.DefAttMap

Field Summary

Modifier and TypeField and Description
pack-priv final Map<StringPair, String>
defaultAttributes

the map from the attribute name (as StringPair) to the default value (as String).

pack-priv final ElementExp
sampleDecl

one of the ElementExps that have this particular element name.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultAttributesback to summary
pack-priv final Map<StringPair, String> defaultAttributes

the map from the attribute name (as StringPair) to the default value (as String).

sampleDeclback to summary
pack-priv final ElementExp sampleDecl

one of the ElementExps that have this particular element name. used only for the error reporting.

Constructor Detail

DefAttMapback to summary
pack-priv DefAttMap(ElementExp sample, Map<StringPair, String> atts)