public class ClassImpl extends TypeImpl implements Class
The following features are implemented:
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(Visitor<R> visitor)
Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.
|
void |
addClassListener(ClassListeners.IClassListener classListener) |
NotificationChain |
basicSetOwnedSignature(TemplateSignature newOwnedSignature,
NotificationChain msgs) |
NotificationChain |
basicSetOwningPackage(Package newOwningPackage,
NotificationChain msgs) |
TypeId |
computeId() |
boolean |
conformsTo(StandardLibrary standardLibrary,
Type type)
Return true if this type conform to thatType within standardLibrary.
|
int |
eBaseStructuralFeatureID(int derivedFeatureID,
Class<?> baseClass) |
NotificationChain |
eBasicRemoveFromContainerFeature(NotificationChain msgs) |
int |
eDerivedStructuralFeatureID(int baseFeatureID,
Class<?> baseClass) |
Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
NotificationChain |
eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs) |
Object |
eInvoke(int operationID,
<any> arguments) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
Object newValue) |
void |
eUnset(int featureID) |
Type |
getCommonType(IdResolver idResolver,
Type type)
Return the most derived type common to this type and thatType within standardLibrary.
|
List<StereotypeExtender> |
getExtenders() |
CompleteInheritance |
getInheritance(StandardLibrary standardLibrary)
Return the inheritance description for this type within standardLibrary.
|
String |
getInstanceClassName() |
String |
getMetaTypeName()
Return the name of the meta-type of this type.
|
Class |
getNormalizedType(StandardLibrary standardLibrary)
Return the unique executable form of this type within standardLibrary.
|
List<Behavior> |
getOwnedBehaviors() |
List<TemplateBinding> |
getOwnedBindings() |
List<Constraint> |
getOwnedConstraints() |
List<Constraint> |
getOwnedInvariants() |
List<Operation> |
getOwnedOperations()
Returns the value of the 'Owned Operations' containment reference list.
|
List<Property> |
getOwnedProperties()
Returns the value of the 'Owned Properties' containment reference list.
|
TemplateSignature |
getOwnedSignature() |
Package |
getOwningPackage() |
List<Class> |
getSuperClasses()
Returns the value of the 'Super Classes' reference list.
|
TypeId |
getTypeId()
Return a unique StandardLibrary-independent identifier for this type.
|
TemplateParameters |
getTypeParameters()
Return the ordered list of type parameters of this type.
|
TemplateableElement |
getUnspecializedElement()
Returns the value of the 'Unspecialized Element' reference.
|
Class |
isClass() |
boolean |
isIsAbstract() |
boolean |
isIsActive() |
boolean |
isIsInterface() |
boolean |
isOrdered()
Return true if this type is a Collection type and has ordered elements.
|
TemplateParameter |
isTemplateParameter() |
boolean |
isUnique()
Return true if this type is a Collection type and has unique elements.
|
Operation |
lookupActualOperation(StandardLibrary standardLibrary,
Operation apparentOperation) |
LibraryFeature |
lookupImplementation(StandardLibrary standardLibrary,
Operation apparentOperation)
Return the dynamic (overloaded) implementation of the staticOperation applicable to the types managed
by the given Standard Library.
|
void |
removeClassListener(ClassListeners.IClassListener classListener) |
void |
setInstanceClassName(String newInstanceClassName) |
void |
setIsAbstract(boolean newIsAbstract) |
void |
setIsActive(boolean newIsActive) |
void |
setIsInterface(boolean newIsInterface) |
void |
setName(String newName) |
void |
setOwnedSignature(TemplateSignature newOwnedSignature) |
void |
setOwningPackage(Package newOwningPackage) |
void |
setUnspecializedElement(TemplateableElement newUnspecializedElement) |
Type |
specializeIn(CallExp callExpr,
Type selfType) |
String |
toString() |
boolean |
validateNameIsNotNull(DiagnosticChain diagnostics,
Map<Object,Object> context) |
boolean |
validateUniqueInvariantName(DiagnosticChain diagnostics,
Map<Object,Object> context) |
createInstance, createInstance, flattenedType, getPackage, isEqualTo, isEqualToUnspecializedType, oclEquals, oclHashCode
getName
allOwnedElements, getAnnotatingComments, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue
getESObject, getETarget, getImage, getTarget, getText, setESObject, setTarget, unloaded
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
createInstance, createInstance
flattenedType, isEqualTo, isEqualToUnspecializedType
oclEquals, oclHashCode
getName
allOwnedElements, getAnnotatingComments, getESObject, getETarget, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValue
public List<Constraint> getOwnedConstraints()
getOwnedConstraints
in interface Namespace
PivotPackage.getNamespace_OwnedConstraints()
public TemplateSignature getOwnedSignature()
getOwnedSignature
in interface TemplateableElement
TemplateableElement.setOwnedSignature(TemplateSignature)
,
PivotPackage.getTemplateableElement_OwnedSignature()
,
TemplateSignature.getOwningElement()
public NotificationChain basicSetOwnedSignature(TemplateSignature newOwnedSignature, NotificationChain msgs)
public void setOwnedSignature(TemplateSignature newOwnedSignature)
setOwnedSignature
in interface TemplateableElement
newOwnedSignature
- the new value of the 'Owned Signature' containment reference.TemplateableElement.getOwnedSignature()
public List<TemplateBinding> getOwnedBindings()
getOwnedBindings
in interface TemplateableElement
PivotPackage.getTemplateableElement_OwnedBindings()
,
TemplateBinding.getOwningElement()
public void setUnspecializedElement(TemplateableElement newUnspecializedElement)
setUnspecializedElement
in interface TemplateableElement
newUnspecializedElement
- the new value of the 'Unspecialized Element' reference.TemplateableElement.getUnspecializedElement()
public List<StereotypeExtender> getExtenders()
getExtenders
in interface Class
PivotPackage.getClass_Extenders()
,
StereotypeExtender.getClass_()
public String getInstanceClassName()
getInstanceClassName
in interface Class
Class.setInstanceClassName(String)
,
PivotPackage.getClass_InstanceClassName()
public void setInstanceClassName(String newInstanceClassName)
setInstanceClassName
in interface Class
newInstanceClassName
- the new value of the 'Instance Class Name' attribute.Class.getInstanceClassName()
public boolean isIsAbstract()
isIsAbstract
in interface Class
Class.setIsAbstract(boolean)
,
PivotPackage.getClass_IsAbstract()
public void setIsAbstract(boolean newIsAbstract)
setIsAbstract
in interface Class
newIsAbstract
- the new value of the 'Is Abstract' attribute.Class.isIsAbstract()
public boolean isIsActive()
isIsActive
in interface Class
Class.setIsActive(boolean)
,
PivotPackage.getClass_IsActive()
public void setIsActive(boolean newIsActive)
setIsActive
in interface Class
newIsActive
- the new value of the 'Is Active' attribute.Class.isIsActive()
public boolean isIsInterface()
isIsInterface
in interface Class
Class.setIsInterface(boolean)
,
PivotPackage.getClass_IsInterface()
public List<Constraint> getOwnedInvariants()
getOwnedInvariants
in interface Class
PivotPackage.getClass_OwnedInvariants()
public Package getOwningPackage()
getOwningPackage
in interface Class
Class.setOwningPackage(org.eclipse.ocl.pivot.Package)
,
PivotPackage.getClass_OwningPackage()
,
Package.getOwnedClasses()
public NotificationChain basicSetOwningPackage(Package newOwningPackage, NotificationChain msgs)
public void setOwningPackage(Package newOwningPackage)
setOwningPackage
in interface Class
newOwningPackage
- the new value of the 'Owning Package' container reference.Class.getOwningPackage()
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseAdd
in class ElementImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
eInverseRemove
in class ElementImpl
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
public boolean validateUniqueInvariantName(DiagnosticChain diagnostics, Map<Object,Object> context)
validateUniqueInvariantName
in interface Class
public void setIsInterface(boolean newIsInterface)
setIsInterface
in interface Class
newIsInterface
- the new value of the 'Is Interface' attribute.Class.isIsInterface()
public List<Behavior> getOwnedBehaviors()
getOwnedBehaviors
in interface Class
PivotPackage.getClass_OwnedBehaviors()
public Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in class NamedElementImpl
public void eSet(int featureID, Object newValue)
eSet
in class NamedElementImpl
public void eUnset(int featureID)
eUnset
in class NamedElementImpl
public boolean eIsSet(int featureID)
eIsSet
in class NamedElementImpl
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass)
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass)
public Object eInvoke(int operationID, <any> arguments) throws InvocationTargetException
eInvoke
in class TypeImpl
InvocationTargetException
public <R> R accept(Visitor<R> visitor)
Element
public void addClassListener(ClassListeners.IClassListener classListener)
public TypeId computeId()
public boolean conformsTo(StandardLibrary standardLibrary, Type type)
Type
conformsTo
in interface Type
public Type getCommonType(IdResolver idResolver, Type type)
Type
getCommonType
in interface Type
getCommonType
in class TypeImpl
public CompleteInheritance getInheritance(StandardLibrary standardLibrary)
Type
getInheritance
in interface Type
public String getMetaTypeName()
Class
getMetaTypeName
in interface Class
public Class getNormalizedType(StandardLibrary standardLibrary)
Type
getNormalizedType
in interface Type
public List<Operation> getOwnedOperations()
Class
Operation
.
It is bidirectional and its opposite is 'Owning Class
'.
The Operations owned by the Class.
getOwnedOperations
in interface Class
PivotPackage.getClass_OwnedOperations()
,
Operation.getOwningClass()
public List<Property> getOwnedProperties()
Class
Property
.
It is bidirectional and its opposite is 'Owning Class
'.
The Properties owned by the StructuredClassifier.
The attributes (i.e., the Properties) owned by the Class.
getOwnedProperties
in interface Class
PivotPackage.getClass_OwnedProperties()
,
Property.getOwningClass()
public List<Class> getSuperClasses()
Class
Class
.
getSuperClasses
in interface Class
PivotPackage.getClass_SuperClasses()
public boolean validateNameIsNotNull(DiagnosticChain diagnostics, Map<Object,Object> context)
validateNameIsNotNull
in interface Class
public TypeId getTypeId()
Type
public TemplateParameters getTypeParameters()
Class
getTypeParameters
in interface Class
getTypeParameters
in class TypeImpl
public TemplateableElement getUnspecializedElement()
TemplateableElement
If the meaning of the 'Unspecialized Element' reference isn't clear, there really should be more of a description here...
getUnspecializedElement
in interface TemplateableElement
TemplateableElement.setUnspecializedElement(TemplateableElement)
,
PivotPackage.getTemplateableElement_UnspecializedElement()
public boolean isOrdered()
Class
public boolean isUnique()
Class
public TemplateParameter isTemplateParameter()
TypeImpl
isTemplateParameter
in interface Type
isTemplateParameter
in class TypeImpl
public Operation lookupActualOperation(StandardLibrary standardLibrary, Operation apparentOperation)
lookupActualOperation
in interface Class
public LibraryFeature lookupImplementation(StandardLibrary standardLibrary, Operation apparentOperation)
Class
lookupImplementation
in interface Class
public void removeClassListener(ClassListeners.IClassListener classListener)
public void setName(String newName)
NamedElementImpl
setName
in interface NamedElement
setName
in class NamedElementImpl
newName
- the new value of the 'Name' attribute.NamedElement.getName()
public Type specializeIn(CallExp callExpr, Type selfType)
TypeImpl
specializeIn
in interface Type
specializeIn
in class TypeImpl
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.