Package org.codehaus.modello.model
Class ModelInterface
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.ModelType
org.codehaus.modello.model.ModelInterface
- Author:
- Emmanuel Venisse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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) void
setSuperInterface
(String superInterface) void
Methods inherited from class org.codehaus.modello.model.ModelType
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, initialize, setPackageName
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
-
Constructor Details
-
ModelInterface
public ModelInterface() -
ModelInterface
-
-
Method Details
-
setSuperInterface
-
getSuperInterface
-
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
-
validateElement
- Specified by:
validateElement
in classBaseElement
- Throws:
ModelValidationException
-