Package org.codehaus.modello.model
Class Model
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.Model
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<ModelClass> private Map
<String, List<ModelClass>> private Map
<String, ModelDefault> private List
<ModelDefault> private String
private Map
<String, List<ModelInterface>> private List
<ModelInterface> private VersionDefinition
-
Constructor Summary
Constructors -
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) private ModelClass
getModelClass
(String type, VersionRange versionRange) private ModelInterface
getModelInterface
(String type, VersionRange versionRange) 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
-
Field Details
-
id
-
classes
-
defaults
-
interfaces
-
classMap
-
defaultMap
-
interfaceMap
-
versionDefinition
-
-
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
-
getModelClass
-
addClass
-
getDefaults
-
getDefault
-
addDefault
-
getDefaultPackageName
-
getAllInterfaces
-
getInterfaces
-
getInterface
-
getInterface
-
getModelInterface
-
addInterface
-
getType
-
getType
-
initialize
public void initialize() -
validateElement
public void validateElement()- Specified by:
validateElement
in classBaseElement
-
getLocationTracker
-
getSourceTracker
-