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, oclHashCodegetNameallOwnedElements, getAnnotatingComments, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValuegetESObject, getETarget, getImage, getTarget, getText, setESObject, setTarget, unloadedequals, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateInstance, createInstanceflattenedType, isEqualTo, isEqualToUnspecializedTypeoclEquals, oclHashCodegetNameallOwnedElements, getAnnotatingComments, getESObject, getETarget, getOwnedAnnotations, getOwnedComments, getOwnedExtensions, getValuepublic List<Constraint> getOwnedConstraints()
getOwnedConstraints in interface NamespacePivotPackage.getNamespace_OwnedConstraints()public TemplateSignature getOwnedSignature()
getOwnedSignature in interface TemplateableElementTemplateableElement.setOwnedSignature(TemplateSignature),
PivotPackage.getTemplateableElement_OwnedSignature(),
TemplateSignature.getOwningElement()public NotificationChain basicSetOwnedSignature(TemplateSignature newOwnedSignature, NotificationChain msgs)
public void setOwnedSignature(TemplateSignature newOwnedSignature)
setOwnedSignature in interface TemplateableElementnewOwnedSignature - the new value of the 'Owned Signature' containment reference.TemplateableElement.getOwnedSignature()public List<TemplateBinding> getOwnedBindings()
getOwnedBindings in interface TemplateableElementPivotPackage.getTemplateableElement_OwnedBindings(),
TemplateBinding.getOwningElement()public void setUnspecializedElement(TemplateableElement newUnspecializedElement)
setUnspecializedElement in interface TemplateableElementnewUnspecializedElement - the new value of the 'Unspecialized Element' reference.TemplateableElement.getUnspecializedElement()public List<StereotypeExtender> getExtenders()
getExtenders in interface ClassPivotPackage.getClass_Extenders(),
StereotypeExtender.getClass_()public String getInstanceClassName()
getInstanceClassName in interface ClassClass.setInstanceClassName(String),
PivotPackage.getClass_InstanceClassName()public void setInstanceClassName(String newInstanceClassName)
setInstanceClassName in interface ClassnewInstanceClassName - the new value of the 'Instance Class Name' attribute.Class.getInstanceClassName()public boolean isIsAbstract()
isIsAbstract in interface ClassClass.setIsAbstract(boolean),
PivotPackage.getClass_IsAbstract()public void setIsAbstract(boolean newIsAbstract)
setIsAbstract in interface ClassnewIsAbstract - the new value of the 'Is Abstract' attribute.Class.isIsAbstract()public boolean isIsActive()
isIsActive in interface ClassClass.setIsActive(boolean),
PivotPackage.getClass_IsActive()public void setIsActive(boolean newIsActive)
setIsActive in interface ClassnewIsActive - the new value of the 'Is Active' attribute.Class.isIsActive()public boolean isIsInterface()
isIsInterface in interface ClassClass.setIsInterface(boolean),
PivotPackage.getClass_IsInterface()public List<Constraint> getOwnedInvariants()
getOwnedInvariants in interface ClassPivotPackage.getClass_OwnedInvariants()public Package getOwningPackage()
getOwningPackage in interface ClassClass.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 ClassnewOwningPackage - the new value of the 'Owning Package' container reference.Class.getOwningPackage()public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
eInverseAdd in class ElementImplpublic NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
NotificationChain msgs)
eInverseRemove in class ElementImplpublic NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs)
public boolean validateUniqueInvariantName(DiagnosticChain diagnostics,
Map<Object,Object> context)
validateUniqueInvariantName in interface Classpublic void setIsInterface(boolean newIsInterface)
setIsInterface in interface ClassnewIsInterface - the new value of the 'Is Interface' attribute.Class.isIsInterface()public List<Behavior> getOwnedBehaviors()
getOwnedBehaviors in interface ClassPivotPackage.getClass_OwnedBehaviors()public Object eGet(int featureID, boolean resolve, boolean coreType)
eGet in class NamedElementImplpublic void eSet(int featureID,
Object newValue)
eSet in class NamedElementImplpublic void eUnset(int featureID)
eUnset in class NamedElementImplpublic boolean eIsSet(int featureID)
eIsSet in class NamedElementImplpublic 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 TypeImplInvocationTargetExceptionpublic <R> R accept(Visitor<R> visitor)
Elementpublic void addClassListener(ClassListeners.IClassListener classListener)
public TypeId computeId()
public boolean conformsTo(StandardLibrary standardLibrary, Type type)
TypeconformsTo in interface Typepublic Type getCommonType(IdResolver idResolver, Type type)
TypegetCommonType in interface TypegetCommonType in class TypeImplpublic CompleteInheritance getInheritance(StandardLibrary standardLibrary)
TypegetInheritance in interface Typepublic String getMetaTypeName()
ClassgetMetaTypeName in interface Classpublic Class getNormalizedType(StandardLibrary standardLibrary)
TypegetNormalizedType in interface Typepublic List<Operation> getOwnedOperations()
ClassOperation.
It is bidirectional and its opposite is 'Owning Class'.
The Operations owned by the Class.
getOwnedOperations in interface ClassPivotPackage.getClass_OwnedOperations(),
Operation.getOwningClass()public List<Property> getOwnedProperties()
ClassProperty.
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 ClassPivotPackage.getClass_OwnedProperties(),
Property.getOwningClass()public List<Class> getSuperClasses()
ClassClass.
getSuperClasses in interface ClassPivotPackage.getClass_SuperClasses()public boolean validateNameIsNotNull(DiagnosticChain diagnostics,
Map<Object,Object> context)
validateNameIsNotNull in interface Classpublic TypeId getTypeId()
Typepublic TemplateParameters getTypeParameters()
ClassgetTypeParameters in interface ClassgetTypeParameters in class TypeImplpublic TemplateableElement getUnspecializedElement()
TemplateableElementIf the meaning of the 'Unspecialized Element' reference isn't clear, there really should be more of a description here...
getUnspecializedElement in interface TemplateableElementTemplateableElement.setUnspecializedElement(TemplateableElement),
PivotPackage.getTemplateableElement_UnspecializedElement()public boolean isOrdered()
Classpublic boolean isUnique()
Classpublic TemplateParameter isTemplateParameter()
TypeImplisTemplateParameter in interface TypeisTemplateParameter in class TypeImplpublic Operation lookupActualOperation(StandardLibrary standardLibrary, Operation apparentOperation)
lookupActualOperation in interface Classpublic LibraryFeature lookupImplementation(StandardLibrary standardLibrary, Operation apparentOperation)
ClasslookupImplementation in interface Classpublic void removeClassListener(ClassListeners.IClassListener classListener)
public void setName(String newName)
NamedElementImplsetName in interface NamedElementsetName in class NamedElementImplnewName - the new value of the 'Name' attribute.NamedElement.getName()public Type specializeIn(CallExp callExpr, Type selfType)
TypeImplspecializeIn in interface TypespecializeIn in class TypeImplCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.