public class ModelInterface extends ModelType
Constructor | Description |
---|---|
ModelInterface() |
|
ModelInterface(Model model,
String name) |
Modifier and Type | Method | 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() |
addMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, initialize, setPackageName
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
withInheritedField
- whether inherited fields should be included.public ModelField getField(String type, VersionRange versionRange)
public void validateElement() throws ModelValidationException
validateElement
in class BaseElement
ModelValidationException
Copyright © 2001–2018 Codehaus Plexus. All rights reserved.