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.DynamicEDataTypeValidator
Nested classes/interfaces inherited from interface EValidator
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static final String
A constant for thesource
of diagnosticcodes
from this package.static final XlinkValidator
The cached model packageprotected XMLTypeValidator
The 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
Fields inherited from interface EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EPackage
Returns the package of this validator switch.protected boolean
CallsvalidateXXX
for the corresponding classifier of the model.boolean
validateActuateType
(ActuateType actuateType, DiagnosticChain diagnostics, Map context) boolean
validateActuateTypeObject
(ActuateType actuateTypeObject, DiagnosticChain diagnostics, Map context) boolean
validateArcroleType
(String arcroleType, DiagnosticChain diagnostics, Map context) boolean
validateArcroleType_MinLength
(String arcroleType, DiagnosticChain diagnostics, Map context) Validates the MinLength constraint of 'Arcrole Type'.boolean
validateArcType
(ArcType arcType, DiagnosticChain diagnostics, Map context) boolean
validateDocumentRoot
(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map context) boolean
validateExtended
(Extended extended, DiagnosticChain diagnostics, Map context) boolean
validateFromType
(String fromType, DiagnosticChain diagnostics, Map context) boolean
validateHrefType
(String hrefType, DiagnosticChain diagnostics, Map context) boolean
validateLabelType
(String labelType, DiagnosticChain diagnostics, Map context) boolean
validateLocatorType
(LocatorType locatorType, DiagnosticChain diagnostics, Map context) boolean
validateObject
(Object object, DiagnosticChain diagnostics, Map context) boolean
validateResourceType
(ResourceType resourceType, DiagnosticChain diagnostics, Map context) boolean
validateRoleType
(String roleType, DiagnosticChain diagnostics, Map context) boolean
validateRoleType_MinLength
(String roleType, DiagnosticChain diagnostics, Map context) Validates the MinLength constraint of 'Role Type'.boolean
validateShowType
(ShowType showType, DiagnosticChain diagnostics, Map context) boolean
validateShowTypeObject
(ShowType showTypeObject, DiagnosticChain diagnostics, Map context) boolean
validateSimple
(Simple simple, DiagnosticChain diagnostics, Map context) boolean
validateTitleAttrType
(String titleAttrType, DiagnosticChain diagnostics, Map context) boolean
validateTitleEltType
(TitleEltType titleEltType, DiagnosticChain diagnostics, Map context) boolean
validateToType
(String toType, DiagnosticChain diagnostics, Map context) boolean
validateTypeType
(TypeType typeType, DiagnosticChain diagnostics, Map context) boolean
validateTypeTypeObject
(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 thesource
of diagnosticcodes
from 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:
getEPackage
in classEObjectValidator
-
validate
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context) CallsvalidateXXX
for the corresponding classifier of the model.- Overrides:
validate
in 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)
-