|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Class
A representation of the model object 'Class'. A class describes a set of objects that share the same specifications of features, constraints, and semantics. A class may be designated as active (i.e., each of its instances having its own thread of control) or passive (i.e., each of its instances executing within the context of some other object). A class may also specify which signals the instances of this class handle. A class has the capability to have an internal structure and ports. Class has derived association that indicates how it may be extended through one or more stereotypes. Stereotype is the only kind of metaclass that cannot be extended by stereotypes.
The following features are supported:
UMLPackage.getClass_()
Method Summary | |
---|---|
Classifier |
createNestedClassifier(java.lang.String name,
org.eclipse.emf.ecore.EClass eClass)
Creates a new Classifier , with the specified 'Name', and appends it to the 'Nested Classifier' containment reference list |
Operation |
createOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Creates a new Operation , with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Operation' containment reference list |
Operation |
createOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<Type> parameterTypes,
Type returnType)
Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this class. |
Reception |
createOwnedReception(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Creates a new Reception , with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Reception' containment reference list |
Extension |
getExtension(java.lang.String name)
Retrieves the first Extension with the specified 'Name' from the 'Extension' reference list |
Extension |
getExtension(java.lang.String name,
boolean ignoreCase)
Retrieves the first Extension with the specified 'Name' from the 'Extension' reference list |
org.eclipse.emf.common.util.EList<Extension> |
getExtensions()
Returns the value of the 'Extension' reference list. |
Classifier |
getNestedClassifier(java.lang.String name)
Retrieves the first Classifier with the specified 'Name' from the 'Nested Classifier' containment reference list |
Classifier |
getNestedClassifier(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first Classifier with the specified 'Name' from the 'Nested Classifier' containment reference list |
org.eclipse.emf.common.util.EList<Classifier> |
getNestedClassifiers()
Returns the value of the 'Nested Classifier' containment reference list. |
Operation |
getOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Retrieves the first Operation with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list |
Operation |
getOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<Type> ownedParameterTypes,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first Operation with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list |
org.eclipse.emf.common.util.EList<Operation> |
getOwnedOperations()
Returns the value of the 'Owned Operation' containment reference list. |
Reception |
getOwnedReception(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Retrieves the first Reception with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list |
Reception |
getOwnedReception(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames,
org.eclipse.emf.common.util.EList<Type> ownedParameterTypes,
boolean ignoreCase,
boolean createOnDemand)
Retrieves the first Reception with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list |
org.eclipse.emf.common.util.EList<Reception> |
getOwnedReceptions()
Returns the value of the 'Owned Reception' containment reference list. |
Class |
getSuperClass(java.lang.String name)
Retrieves the first Class with the specified 'Name' from the 'Super Class' reference list |
Class |
getSuperClass(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first Class with the specified 'Name' from the 'Super Class' reference list |
org.eclipse.emf.common.util.EList<Class> |
getSuperClasses()
Returns the value of the 'Super Class' reference list. |
boolean |
isActive()
Returns the value of the 'Is Active' attribute. |
boolean |
isMetaclass()
Determines whether this class is a metaclass |
void |
setIsActive(boolean value)
Sets the value of the ' Is Active ' attribute |
boolean |
validatePassiveClass(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
A passive class may not own receptions. |
Methods inherited from interface org.eclipse.uml2.uml.EncapsulatedClassifier |
---|
createOwnedPort, getOwnedPort, getOwnedPort, getOwnedPorts |
Methods inherited from interface org.eclipse.uml2.uml.StructuredClassifier |
---|
createOwnedAttribute, createOwnedAttribute, createOwnedAttribute, createOwnedConnector, getOwnedAttribute, getOwnedAttribute, getOwnedAttributes, getOwnedConnector, getOwnedConnector, getOwnedConnectors, getPart, getPart, getParts, getRole, getRole, getRoles, validateMultiplicities |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.RedefinableElement |
---|
getRedefinedElement, getRedefinedElement, getRedefinedElements, getRedefinitionContext, getRedefinitionContext, getRedefinitionContexts, isConsistentWith, isLeaf, isRedefinitionContextValid, setIsLeaf, validateRedefinitionConsistent, validateRedefinitionContextValid |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.Type |
---|
conformsTo, createAssociation, getAssociations, getPackage, setPackage |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.ParameterableElement |
---|
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter |
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 org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.uml2.uml.TemplateableElement |
---|
createOwnedTemplateSignature, createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBinding, getTemplateBinding, getTemplateBindings, isTemplate, parameterableElements, setOwnedTemplateSignature |
Method Detail |
---|
org.eclipse.emf.common.util.EList<Operation> getOwnedOperations()
Operation
.
It is bidirectional and its opposite is 'Class
'.
This feature subsets the following features:
Feature
'Owned Member
'
UMLPackage.getClass_OwnedOperation()
,
Operation.getClass_()
Operation createOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames, org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Operation
, with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Operation' containment reference list.
name
- The 'Name' for the new Operation
, or null
.ownedParameterNames
- The 'Owned Parameter Names' for the new Operation
, or null
.ownedParameterTypes
- The 'Owned Parameter Types' for the new Operation
, or null
.
Operation
.getOwnedOperations()
Operation getOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames, org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list.
name
- The 'Name' of the Operation
to retrieve, or null
.ownedParameterNames
- The 'Owned Parameter Names' of the Operation
to retrieve, or null
.ownedParameterTypes
- The 'Owned Parameter Types' of the Operation
to retrieve, or null
.
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', or null
.getOwnedOperations()
Operation getOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames, org.eclipse.emf.common.util.EList<Type> ownedParameterTypes, boolean ignoreCase, boolean createOnDemand)
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Operation' containment reference list.
name
- The 'Name' of the Operation
to retrieve, or null
.ownedParameterNames
- The 'Owned Parameter Names' of the Operation
to retrieve, or null
.ownedParameterTypes
- The 'Owned Parameter Types' of the Operation
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Operation
on demand if not found.
Operation
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', or null
.getOwnedOperations()
org.eclipse.emf.common.util.EList<Classifier> getNestedClassifiers()
Classifier
.
This feature subsets the following features:
References all the Classifiers that are defined (nested) within the Class.
UMLPackage.getClass_NestedClassifier()
Classifier createNestedClassifier(java.lang.String name, org.eclipse.emf.ecore.EClass eClass)
Classifier
, with the specified 'Name', and appends it to the 'Nested Classifier' containment reference list.
name
- The 'Name' for the new Classifier
, or null
.eClass
- The Ecore class of the Classifier
to create.
Classifier
.getNestedClassifiers()
Classifier getNestedClassifier(java.lang.String name)
Classifier
with the specified 'Name' from the 'Nested Classifier' containment reference list.
name
- The 'Name' of the Classifier
to retrieve, or null
.
Classifier
with the specified 'Name', or null
.getNestedClassifiers()
Classifier getNestedClassifier(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Classifier
with the specified 'Name' from the 'Nested Classifier' containment reference list.
name
- The 'Name' of the Classifier
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Classifier
to retrieve, or null
.createOnDemand
- Whether to create a Classifier
on demand if not found.
Classifier
with the specified 'Name', or null
.getNestedClassifiers()
org.eclipse.emf.common.util.EList<Class> getSuperClasses()
Class
.
This feature redefines the following features:
General
'
UMLPackage.getClass_SuperClass()
Class getSuperClass(java.lang.String name)
Class
with the specified 'Name' from the 'Super Class' reference list.
name
- The 'Name' of the Class
to retrieve, or null
.
Class
with the specified 'Name', or null
.getSuperClasses()
Class getSuperClass(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Class
with the specified 'Name' from the 'Super Class' reference list.
name
- The 'Name' of the Class
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the Class
to retrieve, or null
.
Class
with the specified 'Name', or null
.getSuperClasses()
boolean isActive()
"false"
.
Determines whether an object specified by this class is active or not. If true, then the owning class is referred to as an active class. If false, then such a class is referred to as a passive class.
setIsActive(boolean)
,
UMLPackage.getClass_IsActive()
void setIsActive(boolean value)
Is Active
' attribute.
value
- the new value of the 'Is Active' attribute.isActive()
org.eclipse.emf.common.util.EList<Reception> getOwnedReceptions()
Reception
.
This feature subsets the following features:
Owned Member
'Feature
'
UMLPackage.getClass_OwnedReception()
Reception createOwnedReception(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames, org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Reception
, with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', and appends it to the 'Owned Reception' containment reference list.
name
- The 'Name' for the new Reception
, or null
.ownedParameterNames
- The 'Owned Parameter Names' for the new Reception
, or null
.ownedParameterTypes
- The 'Owned Parameter Types' for the new Reception
, or null
.
Reception
.getOwnedReceptions()
Reception getOwnedReception(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames, org.eclipse.emf.common.util.EList<Type> ownedParameterTypes)
Reception
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list.
name
- The 'Name' of the Reception
to retrieve, or null
.ownedParameterNames
- The 'Owned Parameter Names' of the Reception
to retrieve, or null
.ownedParameterTypes
- The 'Owned Parameter Types' of the Reception
to retrieve, or null
.
Reception
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', or null
.getOwnedReceptions()
Reception getOwnedReception(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> ownedParameterNames, org.eclipse.emf.common.util.EList<Type> ownedParameterTypes, boolean ignoreCase, boolean createOnDemand)
Reception
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types' from the 'Owned Reception' containment reference list.
name
- The 'Name' of the Reception
to retrieve, or null
.ownedParameterNames
- The 'Owned Parameter Names' of the Reception
to retrieve, or null
.ownedParameterTypes
- The 'Owned Parameter Types' of the Reception
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.createOnDemand
- Whether to create a Reception
on demand if not found.
Reception
with the specified 'Name', 'Owned Parameter Names', and 'Owned Parameter Types', or null
.getOwnedReceptions()
org.eclipse.emf.common.util.EList<Extension> getExtensions()
Extension
.
It is bidirectional and its opposite is 'Metaclass
'.
References the Extensions that specify additional properties of the metaclass. The property is derived from the extensions whose memberEnds are typed by the Class.
UMLPackage.getClass_Extension()
,
Extension.getMetaclass()
Extension getExtension(java.lang.String name)
Extension
with the specified 'Name' from the 'Extension' reference list.
name
- The 'Name' of the Extension
to retrieve, or null
.
Extension
with the specified 'Name', or null
.getExtensions()
Extension getExtension(java.lang.String name, boolean ignoreCase)
Extension
with the specified 'Name' from the 'Extension' reference list.
name
- The 'Name' of the Extension
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.
Extension
with the specified 'Name', or null
.getExtensions()
boolean validatePassiveClass(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
Operation createOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes, Type returnType)
name
- The name for the new operation, or null.parameterNames
- The parameter names for the new operation, or null.parameterTypes
- The parameter types for the new operation, or null.returnType
- The return type for the new operation, or null.
boolean isMetaclass()
|
Copyright 2003, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |