public class ModelInterface extends ModelType
Constructor and Description |
---|
ModelInterface() |
ModelInterface(Model model,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ModelField> |
getAllFields()
Returns the list of all fields in this class.
|
java.util.List<ModelField> |
getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
|
ModelField |
getField(java.lang.String type,
VersionRange versionRange) |
java.lang.String |
getSuperInterface() |
void |
setSuperInterface(java.lang.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 ModelInterface()
public ModelInterface(Model model, java.lang.String name)
public void setSuperInterface(java.lang.String superInterface)
public java.lang.String getSuperInterface()
public java.util.List<ModelField> getAllFields()
getAllFields
in class ModelType
public java.util.List<ModelField> getAllFields(boolean withInheritedField)
getAllFields
in class ModelType
withInheritedField
- whether inherited fields should be included.public ModelField getField(java.lang.String type, VersionRange versionRange)
public void validateElement() throws ModelValidationException
validateElement
in class BaseElement
ModelValidationException
Copyright © 2001–2024 Codehaus Plexus. All rights reserved.