Package org.codehaus.modello.model
Class Model
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.Model
- Author:
- Jason van Zyl, Emmanuel Venisse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClass
(ModelClass modelClass) void
addDefault
(ModelDefault modelDefault) void
addInterface
(ModelInterface modelInterface) getClass
(String type, VersionRange versionRange) getClass
(String type, VersionRange versionRange, boolean optionnal) getClasses
(Version version) getDefault
(String key) getDefaultPackageName
(boolean withVersion, Version version) getId()
getInterface
(String type, Version version) getInterface
(String type, VersionRange versionRange) getInterfaces
(Version version) getLocationTracker
(Version version) getMetadata
(String key) getPackageName
(boolean withVersion, Version version) Deprecated.This shouldn't be used, anything querying the model should read the package of the class.getSourceTracker
(Version version) getType
(String type, VersionRange versionRange) boolean
void
void
void
setVersionDefinition
(VersionDefinition versionDefinition) void
Methods inherited from class org.codehaus.modello.model.BaseElement
addMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
getId
-
setId
-
getVersionDefinition
-
setVersionDefinition
-
getMetadata
-
getRoot
-
getPackageName
Deprecated.This shouldn't be used, anything querying the model should read the package of the class. Use getDefaultPackageName(..).- Parameters:
withVersion
- return the versionversion
- the version- Returns:
- the package name
-
getAllClasses
-
getClasses
-
getClass
-
getClass
-
getClass
-
getClass
-
hasClass
-
addClass
-
getDefaults
-
getDefault
-
addDefault
-
getDefaultPackageName
-
getAllInterfaces
-
getInterfaces
-
getInterface
-
getInterface
-
addInterface
-
getType
-
getType
-
initialize
public void initialize() -
validateElement
public void validateElement()- Specified by:
validateElement
in classBaseElement
-
getLocationTracker
-
getSourceTracker
-