org.codehaus.modello.model
Class ModelInterface
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.ModelType
org.codehaus.modello.model.ModelInterface
public class ModelInterface
- extends ModelType
- Version:
- $Id: ModelInterface.java 1413 2010-02-13 21:23:01Z hboutemy $
- Author:
- Emmanuel Venisse
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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ModelInterface
public ModelInterface()
ModelInterface
public ModelInterface(Model model,
java.lang.String name)
setSuperInterface
public void setSuperInterface(java.lang.String superInterface)
getSuperInterface
public java.lang.String getSuperInterface()
getAllFields
public java.util.List<ModelField> getAllFields()
- Returns the list of all fields in this class.
It does not include the fields of super classes.
- Specified by:
getAllFields
in class ModelType
- Returns:
- Returns the list of all fields in this class. It does not include the
fields of super classes.
getAllFields
public java.util.List<ModelField> getAllFields(boolean withInheritedField)
- Returns all the fields in this class and all super classes if withInheritedField equals to true.
- Specified by:
getAllFields
in class ModelType
- Returns:
- Returns all the fields in this class and all super classes.
getField
public ModelField getField(java.lang.String type,
VersionRange versionRange)
- Specified by:
getField
in class ModelType
validateElement
public void validateElement()
throws ModelValidationException
- Specified by:
validateElement
in class BaseElement
- Throws:
ModelValidationException
Copyright © 2001-2012 Codehaus. All Rights Reserved.