Class XlinkValidator

  • All Implemented Interfaces:
    EValidator

    public class XlinkValidator
    extends EObjectValidator
    The Validator for the model.
    See Also:
    XlinkPackage
    • 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

      Fields 
      Modifier and Type Field Description
      protected static 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.
      static String DIAGNOSTIC_SOURCE
      A constant for the source of diagnostic codes from this package.
      static XlinkValidator INSTANCE
      The cached model package
      protected XMLTypeValidator 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 
      Constructor Description
      XlinkValidator()
      Creates an instance of the switch.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected EPackage getEPackage()
      Returns the package of this validator switch.
      protected boolean validate​(int classifierID, Object value, DiagnosticChain diagnostics, Map context)
      Calls validateXXX 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 Detail

      • INSTANCE

        public static final XlinkValidator INSTANCE
        The cached model package
      • DIAGNOSTIC_SOURCE

        public static final String DIAGNOSTIC_SOURCE
        A constant for the source of diagnostic codes from 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.
    • Constructor Detail

      • XlinkValidator

        public XlinkValidator()
        Creates an instance of the switch.
    • Method Detail

      • getEPackage

        protected EPackage getEPackage()
        Returns the package of this validator switch.
        Overrides:
        getEPackage in class EObjectValidator
      • validate

        protected boolean validate​(int classifierID,
                                   Object value,
                                   DiagnosticChain diagnostics,
                                   Map context)
        Calls validateXXX for the corresponding classifier of the model.
        Overrides:
        validate in class EObjectValidator
      • 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)
      • validateTypeTypeObject

        public boolean validateTypeTypeObject​(TypeType typeTypeObject,
                                              DiagnosticChain diagnostics,
                                              Map context)