Class Model
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.Model
- Author:
- Jason van Zyl, Emmanuel Venisse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClass(ModelClass modelClass) voidaddDefault(ModelDefault modelDefault) voidaddInterface(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) booleanvoidvoidvoidsetVersionDefinition(VersionDefinition versionDefinition) voidMethods inherited from class 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:
validateElementin classBaseElement
-
getLocationTracker
-
getSourceTracker
-