Package org.codehaus.modello.model
Class ModelClass
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.ModelType
org.codehaus.modello.model.ModelClass
- Author:
- Jason van Zyl, Emmanuel Venisse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(ModelField modelField) void
addInterface
(String modelInterface) boolean
Returns the list of all fields in this class.getAllFields
(boolean withInheritedField) Returns all the fields in this class and all super classes if withInheritedField equals to true.getField
(String type, VersionRange versionRange) Returns the list of all interfaces of this class.getMetadata
(String key) int
hashCode()
boolean
void
initialize
(Model model) boolean
void
setSuperClass
(String superClass) void
Methods inherited from class org.codehaus.modello.model.ModelType
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, setPackageName
Methods inherited from class org.codehaus.modello.model.BaseElement
addMetadata, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
-
Constructor Details
-
ModelClass
public ModelClass() -
ModelClass
-
-
Method Details
-
getSuperClass
-
setSuperClass
-
getInterfaces
Returns the list of all interfaces of this class.- Returns:
- Returns the list of all interfaces of this class.
-
addInterface
-
getAllFields
Returns the list of all fields in this class. It does not include the fields of super classes.- Specified by:
getAllFields
in classModelType
- 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.- Specified by:
getAllFields
in classModelType
- Parameters:
withInheritedField
- whether inherited fields should be included.- Returns:
- Returns all the fields in this class and all super classes.
-
getField
-
addField
-
hasSuperClass
public boolean hasSuperClass() -
isInternalSuperClass
public boolean isInternalSuperClass() -
getMetadata
-
initialize
- Overrides:
initialize
in classModelType
-
validateElement
- Specified by:
validateElement
in classBaseElement
- Throws:
ModelValidationException
-
equals
- Overrides:
equals
in classBaseElement
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseElement
-