Package com.sodius.mdw.metamodel.uml21
Interface ClassifierTemplateParameter
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,org.eclipse.emf.common.notify.Notifier
,TemplateParameter
public interface ClassifierTemplateParameter extends TemplateParameter
A representation of the model object 'Classifier Template Parameter'. A classifier template parameter exposes a classifier as a formal template parameter.The following features are supported:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Classifier
getConstrainingClassifier()
Returns the value of the 'Constraining Classifier' reference.Classifier
getDefaultClassifier()
Returns the value of the 'Default Classifier' reference.boolean
isAllowSubstitutable()
Returns the value of the 'Allow Substitutable' attribute.void
setAllowSubstitutable(boolean value)
Sets the value of the 'Allow Substitutable
' attribute.void
setConstrainingClassifier(Classifier value)
Sets the value of the 'Constraining Classifier
' reference.void
setDefaultClassifier(Classifier value)
Sets the value of the 'Default Classifier
' reference.boolean
validateHasConstrainingClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If "allowSubstitutable" is true, then there must be a constrainingClassifier.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
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 com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TemplateParameter
createOwnedDefault, createOwnedParameteredElement, getDefault, getOwnedDefault, getOwnedParameteredElement, getParameteredElement, getSignature, setDefault, setOwnedDefault, setOwnedParameteredElement, setParameteredElement, setSignature, validateMustBeCompatible
-
-
-
-
Method Detail
-
isAllowSubstitutable
boolean isAllowSubstitutable()
Returns the value of the 'Allow Substitutable' attribute. The default value is"true"
. Constrains the required relationship between an actual parameter and the parameteredElement for this formal parameter.- Returns:
- the value of the 'Allow Substitutable' attribute.
- See Also:
setAllowSubstitutable(boolean)
,UMLPackage.getClassifierTemplateParameter_AllowSubstitutable()
-
setAllowSubstitutable
void setAllowSubstitutable(boolean value)
Sets the value of the 'Allow Substitutable
' attribute.- Parameters:
value
- the new value of the 'Allow Substitutable' attribute.- See Also:
isAllowSubstitutable()
-
getDefaultClassifier
Classifier getDefaultClassifier()
Returns the value of the 'Default Classifier' reference. The classifier that is used by default if no argument is provided during template binding. If this property is empty, then there is no default.- Returns:
- the value of the 'Default Classifier' reference.
- See Also:
setDefaultClassifier(Classifier)
,UMLPackage.getClassifierTemplateParameter_DefaultClassifier()
-
setDefaultClassifier
void setDefaultClassifier(Classifier value)
Sets the value of the 'Default Classifier
' reference.- Parameters:
value
- the new value of the 'Default Classifier' reference.- See Also:
getDefaultClassifier()
-
getConstrainingClassifier
Classifier getConstrainingClassifier()
Returns the value of the 'Constraining Classifier' reference. The classifier that constrains the argument that can be used for the parameter. If the allowSubstitutable attribute is true, then any classifier that is compatible with this constraining classifier can be substituted, otherwise it must be either this classifier or one of its subclasses. If this property is empty, there are no constraints on the classifier that can be used as an argument.- Returns:
- the value of the 'Constraining Classifier' reference.
- See Also:
setConstrainingClassifier(Classifier)
,UMLPackage.getClassifierTemplateParameter_ConstrainingClassifier()
-
setConstrainingClassifier
void setConstrainingClassifier(Classifier value)
Sets the value of the 'Constraining Classifier
' reference.- Parameters:
value
- the new value of the 'Constraining Classifier' reference.- See Also:
getConstrainingClassifier()
-
validateHasConstrainingClassifier
boolean validateHasConstrainingClassifier(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
If "allowSubstitutable" is true, then there must be a constrainingClassifier. allowSubstitutable implies constrainingClassifier->notEmpty()
-
-