Package org.nuiton.eugene.models.object
Interface ObjectModel
-
- All Superinterfaces:
Model
,WithTagValuesOrStereotypes
- All Known Implementing Classes:
ObjectModelImpl
public interface ObjectModel extends Model
Abstraction for the root node of object model trees. This an entry point for browsing a model tree. This object offers as well several facilities for a direct access to some of the object model elements. Created: 14 janv. 2004- Author:
- Cédric Pineau - pineau@codelutin.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectModelClass
getClass(String qualifiedClassName)
Returns the class corresponding to the given qualified name, or null if the model contains no class for this qualified name.Collection<ObjectModelClass>
getClasses()
Returns all classes defined in this model.ObjectModelClassifier
getClassifier(String qualifiedClassifierName)
Returns the classifier corresponding to the given qualified name, or null if the model contains no classifier for this qualified name.Collection<ObjectModelClassifier>
getClassifiers()
Returns all classifiers defined in this model.List<String>
getComments()
Returns all comments not lied to a particular model elementObjectModelEnumeration
getEnumeration(String qualifiedEnumerationName)
Return the enumeration corresponding to the given qualified nameCollection<ObjectModelEnumeration>
getEnumerations()
Returns all enumerations defined in this model.ObjectModelInterface
getInterface(String qualifiedInterfaceName)
Returns the interface corresponding to the given qualified name, or null if the model contains no interface for this qualified name.Collection<ObjectModelInterface>
getInterfaces()
Returns all interfaces defined in this model.ObjectModelPackage
getPackage(String qualifiedClassifierName)
Returns the package corresponding to the given name, or null if the model contains no package for this name.ObjectModelPackage
getPackage(ObjectModelClassifier classifier)
Returns the package of the given classifier, or null if the model contains no package for this classifier.Collection<ObjectModelPackage>
getPackages()
Returns all packages defined in this model.boolean
hasClass(String qualifiedClassName)
Indicates whether the model contains the class associated to the given classNameboolean
hasPackage(String name)
Indicates whether the model contains the package associated to the given name-
Methods inherited from interface org.nuiton.eugene.models.Model
getExtension, getModelType, getName, getVersion
-
Methods inherited from interface org.nuiton.eugene.models.extension.tagvalue.WithTagValuesOrStereotypes
addStereotype, addTagValue, getStereotypes, getTagValue, getTagValues, hasStereotype, hasTagValue, removeStereotype, removeTagValue
-
-
-
-
Field Detail
-
NAME
static final String NAME
Plexus role-hint- See Also:
- Constant Field Values
-
-
Method Detail
-
getPackages
Collection<ObjectModelPackage> getPackages()
Returns all packages defined in this model.- Returns:
- a Collection containing all ObjectModelPackage for this model.
- Since:
- 2.12
- See Also:
ObjectModelPackage
-
getPackage
ObjectModelPackage getPackage(String qualifiedClassifierName)
Returns the package corresponding to the given name, or null if the model contains no package for this name.- Parameters:
qualifiedClassifierName
- - the name of the package to retrieve.- Returns:
- the ObjectModelPackage of the found given name, or null if the model contains no package for this name.
- Since:
- 2.12
-
getPackage
ObjectModelPackage getPackage(ObjectModelClassifier classifier)
Returns the package of the given classifier, or null if the model contains no package for this classifier.- Parameters:
classifier
- the classifier of the package to retrieve.- Returns:
- the ObjectModelPackage for the given classifier, or null if the model contains no package for this classifier.
- Since:
- 2.12
-
hasPackage
boolean hasPackage(String name)
Indicates whether the model contains the package associated to the given name- Parameters:
name
- - the name of the package to retrieve.- Returns:
- true if the package has been found.
- Since:
- 2.12
-
getClassifiers
Collection<ObjectModelClassifier> getClassifiers()
Returns all classifiers defined in this model. (Except innerClasses)- Returns:
- a Collection containing all ObjectModelClassifier for this model.
- See Also:
ObjectModelClassifier
-
getClassifier
ObjectModelClassifier getClassifier(String qualifiedClassifierName)
Returns the classifier corresponding to the given qualified name, or null if the model contains no classifier for this qualified name.- Parameters:
qualifiedClassifierName
- - the qualified name of the classifier to retrieve.- Returns:
- the ObjectModelClassifier of the found classifier, or null if the model contains no classifier for this qualified name.
-
getClasses
Collection<ObjectModelClass> getClasses()
Returns all classes defined in this model. (Except innerClasses)- Returns:
- a Collection containing all ObjectModelClass for this model.
- See Also:
ObjectModelClass
-
getClass
ObjectModelClass getClass(String qualifiedClassName)
Returns the class corresponding to the given qualified name, or null if the model contains no class for this qualified name.- Parameters:
qualifiedClassName
- - the qualified name of the class to retrieve.- Returns:
- the ObjectModelClass of the found class, or null if the model contains no class for this qualified name.
-
hasClass
boolean hasClass(String qualifiedClassName)
Indicates whether the model contains the class associated to the given className- Parameters:
qualifiedClassName
- - the qualified name of the class to retrieve.- Returns:
- true if the class has been found.
-
getInterfaces
Collection<ObjectModelInterface> getInterfaces()
Returns all interfaces defined in this model.- Returns:
- a Collection containing all ObjectModelInterface for this model.
- See Also:
ObjectModelInterface
-
getInterface
ObjectModelInterface getInterface(String qualifiedInterfaceName)
Returns the interface corresponding to the given qualified name, or null if the model contains no interface for this qualified name.- Parameters:
qualifiedInterfaceName
- the qualified name of the interface to retrieve.- Returns:
- the ObjectModelInterface of the found interface, or null if the model contains no interface for this qualified name.
-
getEnumerations
Collection<ObjectModelEnumeration> getEnumerations()
Returns all enumerations defined in this model.- Returns:
- a Collection containing all ObjectModelEnumeration for this model.
- See Also:
ObjectModelEnumeration
-
getEnumeration
ObjectModelEnumeration getEnumeration(String qualifiedEnumerationName)
Return the enumeration corresponding to the given qualified name- Parameters:
qualifiedEnumerationName
- the fully qualified name of the enumeration to retrieve.- Returns:
- the ObjectModelEnumeration of the found enumeration or null if the model contains no enumeration for this qualified name.
-
-