Package org.codehaus.modello.model
Class ModelType
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.ModelType
- Direct Known Subclasses:
ModelClass
,ModelInterface
Either a model class or interface.
- Author:
- Hervé Boutemy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCodeSegment
(CodeSegment codeSegment) abstract List
<ModelField> Returns the list of all fields in this class.abstract List
<ModelField> getAllFields
(boolean withInheritedField) Returns all the fields in this class and all super classes if withInheritedField equals to true.getAllFields
(Version version, boolean withInheritedField) getCodeSegments
(Version version) getCodeSegments
(VersionRange versionRange) abstract ModelField
getField
(String type, VersionRange versionRange) Returns the list of all fields in this class for a specific version.getIdentifierFields
(Version version) getModel()
getPackageName
(boolean withVersion, Version version) boolean
void
initialize
(Model model) void
setPackageName
(String packageName) 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, validateElement, validateFieldNotEmpty
-
Constructor Details
-
ModelType
public ModelType() -
ModelType
-
-
Method Details
-
getPackageName
-
getPackageName
-
setPackageName
-
getModel
-
getAllCodeSegments
-
getCodeSegments
-
getCodeSegments
-
addCodeSegment
-
getAllFields
Returns the list of all fields in this class. It does not include the fields of super classes.- Returns:
- Returns the list of all fields in this class. It does not include the fields of super classes.
-
getAllFields
Returns all the fields in this class and all super classes if withInheritedField equals to true.- Parameters:
withInheritedField
- whether inherited fields should be included.- Returns:
- Returns all the fields in this class and all super classes.
-
getField
-
getFields
Returns the list of all fields in this class for a specific version. It does not include the fields of super classes.- Parameters:
version
- the specific version- Returns:
- Returns the list of all fields in this class. It does not include the fields of super classes.
-
getAllFields
-
hasField
-
getField
-
getIdentifierFields
-
initialize
-