org.codehaus.modello.model
public class ModelClass extends BaseElement
Version: $Id: ModelClass.java 765 2006-12-27 00:00:20Z aheritier $
Constructor Summary | |
---|---|
ModelClass() | |
ModelClass(Model model, String name) |
Method Summary | |
---|---|
void | addCodeSegment(CodeSegment codeSegment) |
void | addField(ModelField modelField) |
void | addInterface(String modelInterface) |
boolean | equals(Object o) |
List | getAllCodeSegments() |
List | getAllFields()
Returns the list of all fields in this class.
|
List | getAllFields(Version version, boolean withInheritedField) |
List | getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
|
List | getCodeSegments(Version version) |
List | getCodeSegments(VersionRange versionRange) |
ModelField | getField(String type, Version version) |
ModelField | getField(String type, VersionRange versionRange) |
List | getFields(Version version)
Returns the list of all fields in this class for a specific version.
|
List | getIdentifierFields(Version version) |
List | getInterfaces()
Returns the list of all interfaces of this class.
|
ClassMetadata | getMetadata(String key) |
Model | getModel() |
String | getPackageName() |
String | getPackageName(boolean withVersion, Version version) |
String | getSuperClass() |
boolean | hasField(String type, Version version) |
int | hashCode() |
boolean | hasSuperClass() |
void | initialize(Model model) |
boolean | isInternalSuperClass() |
void | setPackageName(String packageName) |
void | setSuperClass(String superClass) |
void | validateElement() |
Returns: Returns the list of all fields in this class. It does not include the fields of super classes.
Returns: Returns all the fields in this class and all super classes.
Returns: Returns the list of all fields in this class. It does not include the fields of super classes.
Returns: Returns the list of all interfaces of this class.