public class ModelInterface extends ModelType
| Constructor and Description |
|---|
ModelInterface() |
ModelInterface(Model model,
String name) |
| Modifier and Type | Method and Description |
|---|---|
List<ModelField> |
getAllFields()
Returns the list of all fields in this class.
|
List<ModelField> |
getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
|
ModelField |
getField(String type,
VersionRange versionRange) |
String |
getSuperInterface() |
void |
setSuperInterface(String superInterface) |
void |
validateElement() |
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, initialize, setPackageNameaddMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmptypublic void setSuperInterface(String superInterface)
public String getSuperInterface()
public List<ModelField> getAllFields()
getAllFields in class ModelTypepublic List<ModelField> getAllFields(boolean withInheritedField)
getAllFields in class ModelTypepublic ModelField getField(String type, VersionRange versionRange)
public void validateElement()
throws ModelValidationException
validateElement in class BaseElementModelValidationExceptionCopyright © 2001-2016 Codehaus. All Rights Reserved.