Package org.w3.xlink.util
Class XlinkValidator
Object
EObjectValidator
XlinkValidator
- All Implemented Interfaces:
EValidator
public class XlinkValidator
extends EObjectValidator
The Validator for the model.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class EObjectValidator
EObjectValidator.DynamicEClassValidator, EObjectValidator.DynamicEDataTypeValidatorNested classes/interfaces inherited from interface EValidator
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static final StringA constant for thesourceof diagnosticcodesfrom this package.static final XlinkValidatorThe cached model packageprotected XMLTypeValidatorThe 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_OBJECTFields inherited from interface EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EPackageReturns the package of this validator switch.protected booleanCallsvalidateXXXfor 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 Details
-
INSTANCE
The cached model package -
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_COUNTA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.- See Also:
-
xmlTypeValidator
protected XMLTypeValidator xmlTypeValidatorThe cached base package validator.
-
-
Constructor Details
-
XlinkValidator
public XlinkValidator()Creates an instance of the switch.
-
-
Method Details
-
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
-
validateDocumentRoot
public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map context) -
validateExtended
-
validateLocatorType
public boolean validateLocatorType(LocatorType locatorType, DiagnosticChain diagnostics, Map context) -
validateResourceType
public boolean validateResourceType(ResourceType resourceType, DiagnosticChain diagnostics, Map context) -
validateSimple
-
validateTitleEltType
public boolean validateTitleEltType(TitleEltType titleEltType, DiagnosticChain diagnostics, Map context) -
validateObject
-
validateActuateType
public boolean validateActuateType(ActuateType actuateType, DiagnosticChain diagnostics, Map context) -
validateShowType
-
validateTypeType
-
validateActuateTypeObject
public boolean validateActuateTypeObject(ActuateType actuateTypeObject, DiagnosticChain diagnostics, Map context) -
validateArcroleType
-
validateArcroleType_MinLength
public boolean validateArcroleType_MinLength(String arcroleType, DiagnosticChain diagnostics, Map context) Validates the MinLength constraint of 'Arcrole Type'. -
validateFromType
-
validateHrefType
-
validateLabelType
-
validateRoleType
-
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
-
validateTypeTypeObject
public boolean validateTypeTypeObject(TypeType typeTypeObject, DiagnosticChain diagnostics, Map context)
-