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, setPackageNameaddMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmptypublic 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 ModelTypepublic java.util.List<ModelField> getAllFields(boolean withInheritedField)
getAllFields in class ModelTypepublic ModelField getField(java.lang.String type, VersionRange versionRange)
public void validateElement()
throws ModelValidationException
validateElement in class BaseElementModelValidationException