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, setPackageName
addMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
public void setSuperInterface(String superInterface)
public String getSuperInterface()
public List<ModelField> getAllFields()
getAllFields
in class ModelType
public List<ModelField> getAllFields(boolean withInheritedField)
getAllFields
in class ModelType
public ModelField getField(String type, VersionRange versionRange)
public void validateElement() throws ModelValidationException
validateElement
in class BaseElement
ModelValidationException
Copyright © 2001–2016 Codehaus. All rights reserved.