|
|||||||||||
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 is a feature of a classifier that specifies an aspect of the behavior of its instances. A behavioral feature is implemented (realized) by a behavior. A behavioral feature specifies that a classifier will respond to a designated request by invoking its implementing method. A behavioral feature owns zero or more parameter sets.
The following features are supported:
UMLPackage.getBehavioralFeature()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
Parameter |
createOwnedParameter(String name,
Type type)
Creates a new Parameter , with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list |
ParameterSet |
createOwnedParameterSet(String name)
Creates a new ParameterSet , with the specified 'Name', and appends it to the 'Owned Parameter Set' containment reference list |
Parameter |
createReturnResult(String name,
Type type)
Creates a return result parameter with the specified name and type |
CallConcurrencyKind |
getConcurrency()
Returns the value of the 'Concurrency' attribute. |
Behavior |
getMethod(String name)
Retrieves the first Behavior with the specified 'Name' from the 'Method' reference list |
Behavior |
getMethod(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first Behavior with the specified 'Name' from the 'Method' reference list |
EList |
getMethods()
Returns the value of the 'Method' reference list. |
Parameter |
getOwnedParameter(String name,
Type type)
Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list |
Parameter |
getOwnedParameter(String name,
Type type,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first Parameter with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list |
EList |
getOwnedParameters()
Returns the value of the 'Owned Parameter' containment reference list. |
ParameterSet |
getOwnedParameterSet(String name)
Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list |
ParameterSet |
getOwnedParameterSet(String name,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first ParameterSet with the specified 'Name' from the 'Owned Parameter Set' containment reference list |
EList |
getOwnedParameterSets()
Returns the value of the 'Owned Parameter Set' containment reference list. |
Type |
getRaisedException(String name)
Retrieves the first Type with the specified 'Name' from the 'Raised Exception' reference list |
Type |
getRaisedException(String name,
boolean ignoreCase,
EClass eClass)
Retrieves the first Type with the specified 'Name' from the 'Raised Exception' reference list |
EList |
getRaisedExceptions()
Returns the value of the 'Raised Exception' reference list. |
boolean |
isAbstract()
Returns the value of the 'Is Abstract' attribute. |
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.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership |
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.uml.Feature |
getFeaturingClassifier, getFeaturingClassifier, getFeaturingClassifiers, isStatic, setIsStatic |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
Method Detail |
public EList getOwnedParameters()
Parameter
.
Specifies the ordered set of formal parameters of this BehavioralFeature.
UMLPackage.getBehavioralFeature_OwnedParameter()
public Parameter createOwnedParameter(String name, Type type)
Parameter
, with the specified 'Name', and 'Type', and appends it to the 'Owned Parameter' containment reference list.
name
- The 'Name' for the new Parameter
, or null
.type
- The 'Type' for the new Parameter
, or null
.
Parameter
.BehavioralFeature.getOwnedParameters()
public Parameter getOwnedParameter(String name, Type type)
Parameter
with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.
name
- The 'Name' of the Parameter
to retrieve, or null
.type
- The 'Type' of the Parameter
to retrieve, or null
.
Parameter
with the specified 'Name', and 'Type', or null
.BehavioralFeature.getOwnedParameters()
public Parameter getOwnedParameter(String name, Type type, boolean ignoreCase, boolean createOnDemand)
Parameter
with the specified 'Name', and 'Type' from the 'Owned Parameter' containment reference list.
name
- The 'Name' of the Parameter
to retrieve, or null
.type
- The 'Type' of the Parameter
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Parameter
on demand if not found.
Parameter
with the specified 'Name', and 'Type', or null
.BehavioralFeature.getOwnedParameters()
public boolean isAbstract()
"false"
.
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.
BehavioralFeature.setIsAbstract(boolean)
,
UMLPackage.getBehavioralFeature_IsAbstract()
public void setIsAbstract(boolean value)
Is Abstract
' attribute.
value
- the new value of the 'Is Abstract' attribute.BehavioralFeature.isAbstract()
public EList getMethods()
Behavior
.
It is bidirectional and its opposite is 'Specification
'.
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).
UMLPackage.getBehavioralFeature_Method()
,
Behavior.getSpecification()
public Behavior getMethod(String name)
Behavior
with the specified 'Name' from the 'Method' reference list.
name
- The 'Name' of the Behavior
to retrieve, or null
.
Behavior
with the specified 'Name', or null
.BehavioralFeature.getMethods()
public Behavior getMethod(String name, boolean ignoreCase, EClass eClass)
Behavior
with the specified 'Name' from the 'Method' reference list.
name
- The 'Name' of the Behavior
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Behavior
to retrieve, or null
.
Behavior
with the specified 'Name', or null
.BehavioralFeature.getMethods()
public CallConcurrencyKind getConcurrency()
"sequential"
.
The literals are from the enumeration CallConcurrencyKind
.
Specifies the semantics of concurrent calls to the same passive instance (i.e., an instance originating from a class with isActive being false). Active instances control access to their own behavioral features.
CallConcurrencyKind
,
BehavioralFeature.setConcurrency(CallConcurrencyKind)
,
UMLPackage.getBehavioralFeature_Concurrency()
public void setConcurrency(CallConcurrencyKind value)
Concurrency
' attribute.
value
- the new value of the 'Concurrency' attribute.CallConcurrencyKind
,
BehavioralFeature.getConcurrency()
public EList getRaisedExceptions()
Type
.
References the Types representing exceptions that may be raised during an invocation of this feature.
The signals that the behavioral feature raises as exceptions.
UMLPackage.getBehavioralFeature_RaisedException()
public Type getRaisedException(String name)
Type
with the specified 'Name' from the 'Raised Exception' reference list.
name
- The 'Name' of the Type
to retrieve, or null
.
Type
with the specified 'Name', or null
.BehavioralFeature.getRaisedExceptions()
public Type getRaisedException(String name, boolean ignoreCase, EClass eClass)
Type
with the specified 'Name' from the 'Raised Exception' reference list.
name
- The 'Name' of the Type
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Type
to retrieve, or null
.
Type
with the specified 'Name', or null
.BehavioralFeature.getRaisedExceptions()
public EList getOwnedParameterSets()
ParameterSet
.
The ParameterSets owned by this BehavioralFeature.
UMLPackage.getBehavioralFeature_OwnedParameterSet()
public ParameterSet createOwnedParameterSet(String name)
ParameterSet
, with the specified 'Name', and appends it to the 'Owned Parameter Set' containment reference list.
name
- The 'Name' for the new ParameterSet
, or null
.
ParameterSet
.BehavioralFeature.getOwnedParameterSets()
public ParameterSet getOwnedParameterSet(String name)
ParameterSet
with the specified 'Name' from the 'Owned Parameter Set' containment reference list.
name
- The 'Name' of the ParameterSet
to retrieve, or null
.
ParameterSet
with the specified 'Name', or null
.BehavioralFeature.getOwnedParameterSets()
public ParameterSet getOwnedParameterSet(String name, boolean ignoreCase, boolean createOnDemand)
ParameterSet
with the specified 'Name' from the 'Owned Parameter Set' containment reference list.
name
- The 'Name' of the ParameterSet
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a ParameterSet
on demand if not found.
ParameterSet
with the specified 'Name', or null
.BehavioralFeature.getOwnedParameterSets()
public Parameter createReturnResult(String name, Type type)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |