Package org.nuiton.eugene.models.object
Interface ObjectModelClass
-
- All Superinterfaces:
ObjectModelClassifier
,ObjectModelElement
,WithTagValuesOrStereotypes
- All Known Subinterfaces:
ObjectModelAssociationClass
- All Known Implementing Classes:
ObjectModelAssociationClassImpl
,ObjectModelClassImpl
public interface ObjectModelClass extends ObjectModelClassifier
Abstraction for the class node of object model trees. This object presents all information concerning the given class. Created: 14 janv. 2004- Author:
- Cédric Pineau - pineau@codelutin.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<ObjectModelOperation>
getAllSuperclassOperations(boolean distinct)
Returns all operations defined on all Super class extended by this classifier, directly or indirectly. and all interface implemented by the super class.String
getDiscriminator(ObjectModelClass superclass)
Returns the discriminator for the given superclass.Collection<ObjectModelClassifier>
getInnerClassifiers()
Returns all inner classes for this class.Collection<ObjectModelClass>
getSpecialisations()
Returns all known direct specialized classes for this class.Collection<ObjectModelClass>
getSpecialisations(String discriminator)
Returns all known direct specialized classes for this class for the specified discriminator.Collection<ObjectModelClass>
getSuperclasses()
Returns all parent classes for this class.boolean
isAbstract()
Returns whether this class is abstract or not.-
Methods inherited from interface org.nuiton.eugene.models.object.ObjectModelClassifier
getAllInterfaceAttributes, getAllInterfaceOperations, getAllOtherAttributes, getAllOtherOperations, getAttribute, getAttributes, getDependencies, getDependency, getInterfaces, getOperations, getOperations, getPackageName, getQualifiedName, isClass, isEnum, isInner, isInterface
-
Methods inherited from interface org.nuiton.eugene.models.object.ObjectModelElement
getComments, getDeclaringElement, getDescription, getDocumentation, getName, getSourceDocumentation, isStatic
-
Methods inherited from interface org.nuiton.eugene.models.extension.tagvalue.WithTagValuesOrStereotypes
addStereotype, addTagValue, getStereotypes, getTagValue, getTagValues, hasStereotype, hasTagValue, removeStereotype, removeTagValue
-
-
-
-
Method Detail
-
getSuperclasses
Collection<ObjectModelClass> getSuperclasses()
Returns all parent classes for this class.- Returns:
- a Collection containing all parent ObjectModelClass for this class.
-
getInnerClassifiers
Collection<ObjectModelClassifier> getInnerClassifiers()
Returns all inner classes for this class.- Returns:
- a Collection containing all inner ObjectModelClass for this class.
-
getDiscriminator
String getDiscriminator(ObjectModelClass superclass)
Returns the discriminator for the given superclass. (name of the inheritance relation).- Parameters:
superclass
- super class to get discriminator- Returns:
- the discriminator for the given superclass as a String if it exists, null otherwise.
-
getSpecialisations
Collection<ObjectModelClass> getSpecialisations()
Returns all known direct specialized classes for this class.- Returns:
- a Collection containing all known direct specialized ObjectModelClass for this class.
-
getSpecialisations
Collection<ObjectModelClass> getSpecialisations(String discriminator)
Returns all known direct specialized classes for this class for the specified discriminator.- Parameters:
discriminator
- discriminator to get specialisations- Returns:
- a Collection containing all known direct specialized ObjectModelClass for this class for the specified discriminator.
-
isAbstract
boolean isAbstract()
Returns whether this class is abstract or not.- Returns:
- a boolean indicating whether this class is abstract or not.
-
getAllSuperclassOperations
Collection<ObjectModelOperation> getAllSuperclassOperations(boolean distinct)
Returns all operations defined on all Super class extended by this classifier, directly or indirectly. and all interface implemented by the super class.- Parameters:
distinct
- if this boolean is true only distinct operation are add to list.- Returns:
- a Collection of ObjectModelOperation
-
-