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
Constructors -
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) voidsetSuperInterface(String superInterface) voidMethods inherited from class org.codehaus.modello.model.ModelType
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, initialize, setPackageNameMethods 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:
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
-
validateElement
- Specified by:
validateElementin classBaseElement- Throws:
ModelValidationException
-