Interface TypeBasedCharacteristicApplicationRule
-
- All Superinterfaces:
CharacteristicApplicationRule,EObject,Notifier
- All Known Implementing Classes:
TypeBasedCharacteristicApplicationRuleImpl
public interface TypeBasedCharacteristicApplicationRule extends CharacteristicApplicationRule
A representation of the model object 'Type Based Characteristic Application Rule'.The following features are supported:
- See Also:
CharacteristicPackage.getTypeBasedCharacteristicApplicationRule()- Generated class or method.
- EMF model class or method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CharacteristicApplicabilitydetermineApplicability(EObject element)EList<EClass>getLegalTypes()Returns the value of the 'Legal Types' reference list.booleanisMandatory()Returns the value of the 'Mandatory' attribute.voidsetMandatory(boolean value)Sets the value of the 'Mandatory' attribute.-
Methods inherited from interface tools.mdsd.characteristics.characteristic.CharacteristicApplicationRule
getAllowedCharacteristics
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
-
-
-
Method Detail
-
getLegalTypes
EList<EClass> getLegalTypes()
Returns the value of the 'Legal Types' reference list. The list contents are of typeEClass.- Returns:
- the value of the 'Legal Types' reference list.
- See Also:
CharacteristicPackage.getTypeBasedCharacteristicApplicationRule_LegalTypes()- Generated class or method.
- EMF model class or method.
- required="true"
-
isMandatory
boolean isMandatory()
Returns the value of the 'Mandatory' attribute.- Returns:
- the value of the 'Mandatory' attribute.
- See Also:
setMandatory(boolean),CharacteristicPackage.getTypeBasedCharacteristicApplicationRule_Mandatory()- Generated class or method.
- EMF model class or method.
- required="true"
-
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:
determineApplicabilityin interfaceCharacteristicApplicationRule- 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'"
-
-