Package org.w3.xlink.util
Class XlinkValidator
- Object
-
- EObjectValidator
-
- XlinkValidator
-
- All Implemented Interfaces:
EValidator
public class XlinkValidator extends EObjectValidatorThe Validator for the model.- See Also:
XlinkPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDIAGNOSTIC_CODE_COUNTA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static StringDIAGNOSTIC_SOURCEA constant for thesourceof diagnosticcodesfrom this package.static XlinkValidatorINSTANCEThe cached model packageprotected XMLTypeValidatorxmlTypeValidatorThe cached base package validator.-
Fields inherited from class EObjectValidator
DATA_VALUE__FRACTION_DIGITS_IN_RANGE, DATA_VALUE__LENGTH_IN_RANGE, DATA_VALUE__MATCHES_PATTERN, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, DATA_VALUE__TYPE_CORRECT, DATA_VALUE__VALUE_IN_ENUMERATION, DATA_VALUE__VALUE_IN_RANGE, EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED, EOBJECT__EVERY_DATA_VALUE_CONFORMS, EOBJECT__EVERY_KEY_UNIQUE, EOBJECT__EVERY_MAP_ENTRY_UNIQUE, EOBJECT__EVERY_MULTIPCITY_CONFORMS, EOBJECT__EVERY_PROXY_RESOLVES, EOBJECT__EVERY_REFERENCE_IS_CONTAINED, EOBJECT__NO_CIRCULAR_CONTAINMENT, EOBJECT__UNIQUE_ID, ROOT_OBJECT
-
-
Constructor Summary
Constructors Constructor Description XlinkValidator()Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EPackagegetEPackage()Returns the package of this validator switch.protected booleanvalidate(int classifierID, Object value, DiagnosticChain diagnostics, Map context)CallsvalidateXXXfor the corresponding classifier of the model.booleanvalidateActuateType(ActuateType actuateType, DiagnosticChain diagnostics, Map context)booleanvalidateActuateTypeObject(ActuateType actuateTypeObject, DiagnosticChain diagnostics, Map context)booleanvalidateArcroleType(String arcroleType, DiagnosticChain diagnostics, Map context)booleanvalidateArcroleType_MinLength(String arcroleType, DiagnosticChain diagnostics, Map context)Validates the MinLength constraint of 'Arcrole Type'.booleanvalidateArcType(ArcType arcType, DiagnosticChain diagnostics, Map context)booleanvalidateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map context)booleanvalidateExtended(Extended extended, DiagnosticChain diagnostics, Map context)booleanvalidateFromType(String fromType, DiagnosticChain diagnostics, Map context)booleanvalidateHrefType(String hrefType, DiagnosticChain diagnostics, Map context)booleanvalidateLabelType(String labelType, DiagnosticChain diagnostics, Map context)booleanvalidateLocatorType(LocatorType locatorType, DiagnosticChain diagnostics, Map context)booleanvalidateObject(Object object, DiagnosticChain diagnostics, Map context)booleanvalidateResourceType(ResourceType resourceType, DiagnosticChain diagnostics, Map context)booleanvalidateRoleType(String roleType, DiagnosticChain diagnostics, Map context)booleanvalidateRoleType_MinLength(String roleType, DiagnosticChain diagnostics, Map context)Validates the MinLength constraint of 'Role Type'.booleanvalidateShowType(ShowType showType, DiagnosticChain diagnostics, Map context)booleanvalidateShowTypeObject(ShowType showTypeObject, DiagnosticChain diagnostics, Map context)booleanvalidateSimple(Simple simple, DiagnosticChain diagnostics, Map context)booleanvalidateTitleAttrType(String titleAttrType, DiagnosticChain diagnostics, Map context)booleanvalidateTitleEltType(TitleEltType titleEltType, DiagnosticChain diagnostics, Map context)booleanvalidateToType(String toType, DiagnosticChain diagnostics, Map context)booleanvalidateTypeType(TypeType typeType, DiagnosticChain diagnostics, Map context)booleanvalidateTypeTypeObject(TypeType typeTypeObject, DiagnosticChain diagnostics, Map context)-
Methods inherited from class EObjectValidator
createBadDataValueDiagnostic, createDiagnostic, getAvailableChoices, getEcoreResourceLocator, getEcoreString, getFeatureLabel, getObjectLabel, getResourceLocator, getRootEValidator, getString, getValidationDelegateRegistry, getValueLabel, isEcoreString, reportConstraintDelegateException, reportConstraintDelegateException, reportConstraintDelegateNotFound, reportConstraintDelegateNotFound, reportConstraintDelegateViolation, reportConstraintDelegateViolation, reportDataValuePatternViolation, reportDataValueTypeViolation, reportEnumerationViolation, reportFractionDigitsViolation, reportInvariantDelegateException, reportInvariantDelegateNotFound, reportInvariantDelegateViolation, reportMaxLengthViolation, reportMaxViolation, reportMinLengthViolation, reportMinViolation, reportTotalDigitsViolation, validate, validate, validate, validate, validate, validate, validate_BidirectionalReferenceIsPaired, validate_DataValueConforms, validate_EveryBidirectionalReferenceIsPaired, validate_EveryDataValueConforms, validate_EveryDefaultConstraint, validate_EveryKeyUnique, validate_EveryMapEntryUnique, validate_EveryMultiplicityConforms, validate_EveryProxyResolves, validate_EveryReferenceIsContained, validate_KeyUnique, validate_MapEntryUnique, validate_MultiplicityConforms, validate_NoCircularContainment, validate_UniqueID, validatePattern, wrapEnumerationValues
-
-
-
-
Field Detail
-
INSTANCE
public static final XlinkValidator INSTANCE
The cached model package
-
DIAGNOSTIC_SOURCE
public static final String DIAGNOSTIC_SOURCE
A constant for thesourceof diagnosticcodesfrom this package.- See Also:
Diagnostic.getSource(),Diagnostic.getCode(), Constant Field Values
-
DIAGNOSTIC_CODE_COUNT
protected static final int DIAGNOSTIC_CODE_COUNT
A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.- See Also:
- Constant Field Values
-
xmlTypeValidator
protected XMLTypeValidator xmlTypeValidator
The cached base package validator.
-
-
Method Detail
-
getEPackage
protected EPackage getEPackage()
Returns the package of this validator switch.- Overrides:
getEPackagein classEObjectValidator
-
validate
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context)CallsvalidateXXXfor the corresponding classifier of the model.- Overrides:
validatein classEObjectValidator
-
validateArcType
public boolean validateArcType(ArcType arcType, DiagnosticChain diagnostics, Map context)
-
validateDocumentRoot
public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map context)
-
validateExtended
public boolean validateExtended(Extended extended, DiagnosticChain diagnostics, Map context)
-
validateLocatorType
public boolean validateLocatorType(LocatorType locatorType, DiagnosticChain diagnostics, Map context)
-
validateResourceType
public boolean validateResourceType(ResourceType resourceType, DiagnosticChain diagnostics, Map context)
-
validateSimple
public boolean validateSimple(Simple simple, DiagnosticChain diagnostics, Map context)
-
validateTitleEltType
public boolean validateTitleEltType(TitleEltType titleEltType, DiagnosticChain diagnostics, Map context)
-
validateObject
public boolean validateObject(Object object, DiagnosticChain diagnostics, Map context)
-
validateActuateType
public boolean validateActuateType(ActuateType actuateType, DiagnosticChain diagnostics, Map context)
-
validateShowType
public boolean validateShowType(ShowType showType, DiagnosticChain diagnostics, Map context)
-
validateTypeType
public boolean validateTypeType(TypeType typeType, DiagnosticChain diagnostics, Map context)
-
validateActuateTypeObject
public boolean validateActuateTypeObject(ActuateType actuateTypeObject, DiagnosticChain diagnostics, Map context)
-
validateArcroleType
public boolean validateArcroleType(String arcroleType, DiagnosticChain diagnostics, Map context)
-
validateArcroleType_MinLength
public boolean validateArcroleType_MinLength(String arcroleType, DiagnosticChain diagnostics, Map context)
Validates the MinLength constraint of 'Arcrole Type'.
-
validateFromType
public boolean validateFromType(String fromType, DiagnosticChain diagnostics, Map context)
-
validateHrefType
public boolean validateHrefType(String hrefType, DiagnosticChain diagnostics, Map context)
-
validateLabelType
public boolean validateLabelType(String labelType, DiagnosticChain diagnostics, Map context)
-
validateRoleType
public boolean validateRoleType(String roleType, DiagnosticChain diagnostics, Map context)
-
validateRoleType_MinLength
public boolean validateRoleType_MinLength(String roleType, DiagnosticChain diagnostics, Map context)
Validates the MinLength constraint of 'Role Type'.
-
validateShowTypeObject
public boolean validateShowTypeObject(ShowType showTypeObject, DiagnosticChain diagnostics, Map context)
-
validateTitleAttrType
public boolean validateTitleAttrType(String titleAttrType, DiagnosticChain diagnostics, Map context)
-
validateToType
public boolean validateToType(String toType, DiagnosticChain diagnostics, Map context)
-
-