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, setPackageNameaddMetadata, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmptypublic String getSuperClass()
public void setSuperClass(String superClass)
public List<String> getInterfaces()
public void addInterface(String modelInterface)
public List<ModelField> getAllFields()
getAllFields in class ModelTypepublic List<ModelField> getAllFields(boolean withInheritedField)
getAllFields in class ModelTypepublic 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 ModelTypepublic void validateElement()
throws ModelValidationException
validateElement in class BaseElementModelValidationExceptionpublic boolean equals(Object o)
equals in class BaseElementpublic int hashCode()
hashCode in class BaseElementCopyright © 2001-2016 Codehaus. All Rights Reserved.