public class ModelClass extends ModelType
Constructor and Description |
---|
ModelClass() |
ModelClass(Model model,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addField(ModelField modelField) |
void |
addInterface(String modelInterface) |
boolean |
equals(Object o) |
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) |
List<String> |
getInterfaces()
Returns the list of all interfaces of this class.
|
ClassMetadata |
getMetadata(String key) |
String |
getSuperClass() |
int |
hashCode() |
boolean |
hasSuperClass() |
void |
initialize(Model model) |
boolean |
isInternalSuperClass() |
void |
setSuperClass(String superClass) |
void |
validateElement() |
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, setPackageName
addMetadata, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty
public String getSuperClass()
public void setSuperClass(String superClass)
public List<String> getInterfaces()
public void addInterface(String modelInterface)
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 addField(ModelField modelField)
public boolean hasSuperClass()
public boolean isInternalSuperClass()
public ClassMetadata getMetadata(String key)
public void initialize(Model model)
initialize
in class ModelType
public void validateElement() throws ModelValidationException
validateElement
in class BaseElement
ModelValidationException
public boolean equals(Object o)
equals
in class BaseElement
public int hashCode()
hashCode
in class BaseElement
Copyright © 2001-2019 Codehaus. All Rights Reserved.