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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(ModelField modelField) voidaddInterface(String modelInterface) booleanReturns 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) inthashCode()booleanvoidinitialize(Model model) booleanvoidsetSuperClass(String superClass) voidMethods inherited from class ModelType
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, setPackageNameMethods inherited from class 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
-
addInterface
-
getAllFields
Returns the list of all fields in this class. It does not include the fields of super classes.- Specified by:
getAllFieldsin 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:
getAllFieldsin 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:
initializein classModelType
-
validateElement
- Specified by:
validateElementin classBaseElement- Throws:
ModelValidationException
-
equals
- Overrides:
equalsin classBaseElement
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseElement
-