Interface ClassifierTemplateParameter
-
- All Superinterfaces:
BaseElement
,java.lang.Cloneable
,java.lang.Comparable
,Element
,org.eclipse.emf.ecore.EObject
,MDObject
,ModelObject
,org.eclipse.emf.common.notify.Notifier
,javax.jmi.reflect.RefBaseObject
,javax.jmi.reflect.RefFeatured
,javax.jmi.reflect.RefObject
,TemplateParameter
public interface ClassifierTemplateParameter extends TemplateParameter
A representation of the model object 'Classifier Template Parameter'.A ClassifierTemplateParameter exposes a Classifier as a formal template parameter.
The following features are supported:
- See Also:
UMLPackage.getClassifierTemplateParameter()
- Model:
- annotation="MOF package='auxiliaryconstructs.mdtemplates'"
- Generated:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<Classifier>
getConstrainingClassifier()
Returns the value of the 'Constraining Classifier' reference list.Classifier
getParameteredElement()
Returns the value of the 'Parametered Element' reference.boolean
hasConstrainingClassifier()
boolean
isAllowSubstitutable()
Returns the value of the 'Allow Substitutable' attribute.void
setAllowSubstitutable(boolean value)
Sets the value of the 'Allow Substitutable
' attribute.void
setParameteredElement(Classifier value)
Sets the value of the 'Parametered Element
' reference.-
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, dispose, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, isParentOf, removeAllPropertyChangeListeners, removePropertyChangeListener, sGetID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementTaggedValue, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotype, getOwnedComment, getOwnedElement, getOwner, getSyncElement, getTaggedValue, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasAppliedStereotype, hasElementTaggedValue, hasOwnedComment, hasOwnedElement, hasTaggedValue, setOwner, setSyncElement
-
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.nomagic.magicdraw.foundation.MDObject
getID, getMDExtension, getMdExtensions, setID
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.base.ModelObject
get_representationText, getLocalID, ignoringRefGetValue, ignoringRefGetValue, isInvalid, isSet, refGetValue, refGetValue, refSetValue, refSetValue, set_representationText, setLocalID, sGetLocalID
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refInvokeOperation, refInvokeOperation, refSetValue
-
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
-
Methods inherited from interface com.nomagic.uml2.ext.magicdraw.auxiliaryconstructs.mdtemplates.TemplateParameter
get_templateParameterSubstitutionOfFormal, get_templateSignatureOfParameter, getDefault, getOwnedDefault, getOwnedParameteredElement, getSignature, has_templateParameterSubstitutionOfFormal, has_templateSignatureOfParameter, setDefault, setOwnedDefault, setOwnedParameteredElement, setParameteredElement, setSignature
-
-
-
-
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()
- Model:
- default="true" dataType="com.nomagic.uml2.ext.magicdraw.Boolean" required="true" ordered="false"
- Generated:
-
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()
- Generated:
-
getConstrainingClassifier
java.util.Collection<Classifier> getConstrainingClassifier()
Returns the value of the 'Constraining Classifier' reference list. The list contents are of typeClassifier
. It is bidirectional and its opposite is '.Classifier#get_classifierTemplateParameterOfConstrainingClassifier classifier Template Parameter Of Constraining Classifier
'. The classifiers that constrain 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 specializations. 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 list.
- See Also:
UMLPackage.getClassifierTemplateParameter_ConstrainingClassifier()
,Classifier.get_classifierTemplateParameterOfConstrainingClassifier()
- Model:
- opposite="_classifierTemplateParameterOfConstrainingClassifier" ordered="false"
- Generated:
-
getParameteredElement
@CheckForNull Classifier getParameteredElement()
Returns the value of the 'Parametered Element' reference. It is bidirectional and its opposite is 'Template Parameter
'. The Classifier exposed by this ClassifierTemplateParameter.- Specified by:
getParameteredElement
in interfaceTemplateParameter
- Returns:
- the value of the 'Parametered Element' reference.
- See Also:
setParameteredElement(Classifier)
,UMLPackage.getClassifierTemplateParameter_ParameteredElement()
,Classifier.getTemplateParameter()
- Model:
- opposite="templateParameter" required="true" ordered="false"
- Generated:
-
setParameteredElement
void setParameteredElement(@CheckForNull Classifier value)
Sets the value of the 'Parametered Element
' reference.- Parameters:
value
- the new value of the 'Parametered Element' reference.- See Also:
getParameteredElement()
- Generated:
-
hasConstrainingClassifier
boolean hasConstrainingClassifier() throws javax.jmi.reflect.JmiException
- Throws:
javax.jmi.reflect.JmiException
- Generated:
-
-