|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Behavioral Feature'. A behavioral feature specifies that an instance of a classifier will respond to a designated request by invoking a behavior. BehavioralFeature is an abstract metaclass specializing Feature and Namespace. Kinds of behavioral aspects are modeled by subclasses of BehavioralFeature.
The following features are supported:
UML2Package.getBehavioralFeature()
Field Summary | |
static String |
copyright
|
Fields inherited from interface org.eclipse.uml2.NamedElement |
SEPARATOR |
Method Summary | |
Parameter |
createFormalParameter(EClass eClass)
Creates a Parameter and appends it to the 'Formal Parameter' containment reference list |
Parameter |
createReturnResult(EClass eClass)
Creates a Parameter and appends it to the 'Return Result' containment reference list |
CallConcurrencyKind |
getConcurrency()
Returns the value of the 'Concurrency' attribute. |
Parameter |
getFormalParameter(String unqualifiedName)
Retrieves the Parameter with the specified name from the 'Formal Parameter' containment reference list |
EList |
getFormalParameters()
Returns the value of the 'Formal Parameter' containment reference list. |
EList |
getMembers()
|
Behavior |
getMethod(String unqualifiedName)
Retrieves the Behavior with the specified name from the 'Method' reference list |
EList |
getMethods()
Returns the value of the 'Method' reference list. |
EList |
getOwnedMembers()
|
Parameter |
getParameter(String unqualifiedName)
Retrieves the Parameter with the specified name from the 'Parameter' reference list |
EList |
getParameters()
Returns the value of the 'Parameter' reference list. |
Type |
getRaisedException(String unqualifiedName)
Retrieves the Type with the specified name from the 'Raised Exception' reference list |
EList |
getRaisedExceptions()
Returns the value of the 'Raised Exception' reference list. |
Parameter |
getReturnResult(String unqualifiedName)
Retrieves the Parameter with the specified name from the 'Return Result' containment reference list |
EList |
getReturnResults()
Returns the value of the 'Return Result' containment reference list. |
boolean |
isAbstract()
Returns the value of the 'Is Abstract' attribute |
boolean |
isDistinguishableFrom(NamedElement n,
Namespace ns)
A query based on the following OCL expression:
if n.oclIsKindOf(BehavioralFeature)
then
if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()
then Set{}->include(self)->include(n)->isUnique( bf | bf.parameter->collect(type))
else true
endif
else true
endif
|
void |
setConcurrency(CallConcurrencyKind value)
Sets the value of the ' Concurrency ' attribute |
void |
setIsAbstract(boolean value)
Sets the value of the ' Is Abstract ' attribute |
Methods inherited from interface org.eclipse.uml2.NamedElement |
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getOwner, getQualifiedName, getVisibility, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.TemplateableElement |
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature |
Methods inherited from interface org.eclipse.uml2.Element |
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, 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, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.Feature |
getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic |
Methods inherited from interface org.eclipse.uml2.RedefinableElement |
getRedefinedElements, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Field Detail |
public static final String copyright
Method Detail |
public boolean isAbstract()
If the meaning of the 'Is Abstract' attribute isn't clear, there really should be more of a description here...
If true, then the behavioral feature does not have an implementation, and one must be supplied by a more specific element. If false, the behavioral feature must have an implementation in the classifier or one must be inherited from a more general element. Communications
setIsAbstract(boolean)
,
UML2Package.getBehavioralFeature_IsAbstract()
public void setIsAbstract(boolean value)
Is Abstract
' attribute.
value
- the new value of the 'Is Abstract' attribute.isAbstract()
public CallConcurrencyKind getConcurrency()
CallConcurrencyKind
.
If the meaning of the 'Concurrency' attribute isn't clear, there really should be more of a description here...
CallConcurrencyKind
,
setConcurrency(CallConcurrencyKind)
,
UML2Package.getBehavioralFeature_Concurrency()
public void setConcurrency(CallConcurrencyKind value)
Concurrency
' attribute.
value
- the new value of the 'Concurrency' attribute.CallConcurrencyKind
,
getConcurrency()
public EList getParameters()
Parameter
.
If the meaning of the 'Parameter' reference list isn't clear, there really should be more of a description here...
Specifies the parameters of the BehavioralFeature. Subsets Namespace::member. This is a derived union and is ordered.
UML2Package.getBehavioralFeature_Parameter()
public Parameter getParameter(String unqualifiedName)
Parameter
with the specified name from the 'Parameter' reference list.
unqualifiedName
- The unqualified name of the Parameter
to retrieve.
Parameter
with the specified name, or null
.getParameters()
public EList getFormalParameters()
Parameter
.
If the meaning of the 'Formal Parameter' containment reference list isn't clear, there really should be more of a description here...
Specifies the ordered set of formal parameters of this BehavioralFeature. Subsets BehavioralFeature::parameter and Namespace::ownedMember.
UML2Package.getBehavioralFeature_FormalParameter()
public Parameter getFormalParameter(String unqualifiedName)
Parameter
with the specified name from the 'Formal Parameter' containment reference list.
unqualifiedName
- The unqualified name of the Parameter
to retrieve.
Parameter
with the specified name, or null
.getFormalParameters()
public Parameter createFormalParameter(EClass eClass)
Parameter
and appends it to the 'Formal Parameter' containment reference list.
eClass
- The Ecore class of the Parameter
to create.
Parameter
.getFormalParameters()
public EList getReturnResults()
Parameter
.
If the meaning of the 'Return Result' containment reference list isn't clear, there really should be more of a description here...
Specifies the ordered set of return results of this BehavioralFeature. Subsets Behavioral- Feature::parameter and Namespace::ownedMember.
UML2Package.getBehavioralFeature_ReturnResult()
public Parameter getReturnResult(String unqualifiedName)
Parameter
with the specified name from the 'Return Result' containment reference list.
unqualifiedName
- The unqualified name of the Parameter
to retrieve.
Parameter
with the specified name, or null
.getReturnResults()
public Parameter createReturnResult(EClass eClass)
Parameter
and appends it to the 'Return Result' containment reference list.
eClass
- The Ecore class of the Parameter
to create.
Parameter
.getReturnResults()
public EList getRaisedExceptions()
Type
.
If the meaning of the 'Raised Exception' reference list isn't clear, there really should be more of a description here...
References the Types representing exceptions that may be raised during an invocation of this operation.
UML2Package.getBehavioralFeature_RaisedException()
public Type getRaisedException(String unqualifiedName)
Type
with the specified name from the 'Raised Exception' reference list.
unqualifiedName
- The unqualified name of the Type
to retrieve.
Type
with the specified name, or null
.getRaisedExceptions()
public EList getMethods()
Behavior
.
It is bidirectional and its opposite is 'Specification
'.
If the meaning of the 'Method' reference list isn't clear, there really should be more of a description here...
A behavioral description that implements the behavioral feature. There may be at most one behavior for a particular pairing of a classifier (as owner of the behavior) and a behavioral feature (as specification of the behavior).
UML2Package.getBehavioralFeature_Method()
,
Behavior.getSpecification()
public Behavior getMethod(String unqualifiedName)
Behavior
with the specified name from the 'Method' reference list.
unqualifiedName
- The unqualified name of the Behavior
to retrieve.
Behavior
with the specified name, or null
.getMethods()
public boolean isDistinguishableFrom(NamedElement n, Namespace ns)
if n.oclIsKindOf(BehavioralFeature)
then
if ns.getNamesOfMember(self)->intersection(ns.getNamesOfMember(n))->notEmpty()
then Set{}->include(self)->include(n)->isUnique( bf | bf.parameter->collect(type))
else true
endif
else true
endif
isDistinguishableFrom
in interface NamedElement
public EList getMembers()
getMembers
in interface Namespace
UML2Package.getNamespace_Member()
public EList getOwnedMembers()
getOwnedMembers
in interface Namespace
|
Copyright 2003, 2004 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |