Class ValuetypeValidator

    • Field Detail

      • INSTANCE

        public static final ValuetypeValidator INSTANCE
        The cached model package
        Generated class or method.
      • 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
        Generated class or method.
      • identifierValidator

        protected tools.mdsd.modelingfoundations.identifier.util.IdentifierValidator identifierValidator
        The cached base package validator.
        Generated class or method.
      • ENUM_LITERAL__LITERAL_MUST_DEFINE_EITHER_NAME_OR_VALUE__EEXPRESSION

        protected static final java.lang.String ENUM_LITERAL__LITERAL_MUST_DEFINE_EITHER_NAME_OR_VALUE__EEXPRESSION
        The cached validation expression for the LiteralMustDefineEitherNameOrValue constraint of 'Enum Literal'.
        See Also:
        Constant Field Values
        Generated class or method.
    • Constructor Detail

      • ValuetypeValidator

        public ValuetypeValidator()
        Creates an instance of the switch.
        Generated class or method.
    • Method Detail

      • validate

        protected boolean validate​(int classifierID,
                                   java.lang.Object value,
                                   DiagnosticChain diagnostics,
                                   java.util.Map<java.lang.Object,​java.lang.Object> context)
        Calls validateXXX for the corresponding classifier of the model.
        Overrides:
        validate in class EObjectValidator
        Generated class or method.
      • validateValueType

        public boolean validateValueType​(ValueType valueType,
                                         DiagnosticChain diagnostics,
                                         java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateEDataTypeValueType

        public boolean validateEDataTypeValueType​(EDataTypeValueType eDataTypeValueType,
                                                  DiagnosticChain diagnostics,
                                                  java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateStructuredValueType

        public boolean validateStructuredValueType​(StructuredValueType structuredValueType,
                                                   DiagnosticChain diagnostics,
                                                   java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateBaseValueType

        public boolean validateBaseValueType​(BaseValueType baseValueType,
                                             DiagnosticChain diagnostics,
                                             java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateEnumValueType

        public boolean validateEnumValueType​(EnumValueType enumValueType,
                                             DiagnosticChain diagnostics,
                                             java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateCollectionValueType

        public boolean validateCollectionValueType​(CollectionValueType collectionValueType,
                                                   DiagnosticChain diagnostics,
                                                   java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateValueTypeRepository

        public boolean validateValueTypeRepository​(ValueTypeRepository valueTypeRepository,
                                                   DiagnosticChain diagnostics,
                                                   java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateValueTypeAlias

        public boolean validateValueTypeAlias​(ValueTypeAlias valueTypeAlias,
                                              DiagnosticChain diagnostics,
                                              java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateStructuredValueTypeElement

        public boolean validateStructuredValueTypeElement​(StructuredValueTypeElement structuredValueTypeElement,
                                                          DiagnosticChain diagnostics,
                                                          java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateEnumLiteral

        public boolean validateEnumLiteral​(EnumLiteral enumLiteral,
                                           DiagnosticChain diagnostics,
                                           java.util.Map<java.lang.Object,​java.lang.Object> context)
        Generated class or method.
      • validateEnumLiteral_LiteralMustDefineEitherNameOrValue

        public boolean validateEnumLiteral_LiteralMustDefineEitherNameOrValue​(EnumLiteral enumLiteral,
                                                                              DiagnosticChain diagnostics,
                                                                              java.util.Map<java.lang.Object,​java.lang.Object> context)
        Validates the LiteralMustDefineEitherNameOrValue constraint of 'Enum Literal'.
        Generated class or method.
      • getResourceLocator

        public ResourceLocator getResourceLocator()
        Returns the resource locator that will be used to fetch messages for this validator's diagnostics.
        Overrides:
        getResourceLocator in class EObjectValidator
        Generated class or method.