Interface TypeBasedCharacteristicApplicationRule

    • Method Detail

      • setMandatory

        void setMandatory​(boolean value)
        Sets the value of the 'Mandatory' attribute.
        Parameters:
        value - the new value of the 'Mandatory' attribute.
        See Also:
        isMandatory()
        Generated class or method.
      • determineApplicability

        CharacteristicApplicability determineApplicability​(EObject element)
        Specified by:
        determineApplicability in interface CharacteristicApplicationRule
        Generated class or method.
        EMF model class or method.
        required="true" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='if (self.legalTypes->exists(t | t.isInstance(element.oclAsType(ecore::EJavaObject)))) then\n\t\t\t\t\tif (self.mandatory) then\n\t\t\t\t\t\tCharacteristicApplicability::Mandatory\n\t\t\t\t\telse\n\t\t\t\t\t\tCharacteristicApplicability::Optional\n\t\t\t\t\tendif\n\t\t\t\telse \n\t\t\t\t\tCharacteristicApplicability::Invalid\n\t\t\t\tendif'"