org.codehaus.modello.model

Class ModelClass

public class ModelClass extends BaseElement

Version: $Id: ModelClass.java 430 2005-07-01 13:24:35Z trygvis $

Author: Jason van Zyl Emmanuel Venisse

Constructor Summary
ModelClass()
ModelClass(Model model, String name)
Method Summary
voidaddCodeSegment(CodeSegment codeSegment)
voidaddField(ModelField modelField)
voidaddInterface(String modelInterface)
booleanequals(Object o)
ListgetAllCodeSegments()
ListgetAllFields()
Returns the list of all fields in this class.
ListgetAllFields(Version version, boolean withInheritedField)
ListgetAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
ListgetCodeSegments(Version version)
ListgetCodeSegments(VersionRange versionRange)
ModelFieldgetField(String type, Version version)
ModelFieldgetField(String type, VersionRange versionRange)
ListgetFields(Version version)
Returns the list of all fields in this class for a specific version.
ListgetIdentifierFields(Version version)
ListgetInterfaces()
Returns the list of all interfaces of this class.
ClassMetadatagetMetadata(String key)
ModelgetModel()
StringgetPackageName()
StringgetPackageName(boolean withVersion, Version version)
StringgetSuperClass()
booleanhasField(String type, Version version)
inthashCode()
booleanhasSuperClass()
voidinitialize(Model model)
voidsetPackageName(String packageName)
voidsetSuperClass(String superClass)
voidvalidateElement()

Constructor Detail

ModelClass

public ModelClass()

ModelClass

public ModelClass(Model model, String name)

Method Detail

addCodeSegment

public void addCodeSegment(CodeSegment codeSegment)

addField

public void addField(ModelField modelField)

addInterface

public void addInterface(String modelInterface)

equals

public boolean equals(Object o)

getAllCodeSegments

public List getAllCodeSegments()

getAllFields

public List getAllFields()
Returns the list of all fields in this class. It does not include the fields of super classes.

Returns: Returns the list of all fields in this class. It does not include the fields of super classes.

getAllFields

public List getAllFields(Version version, boolean withInheritedField)

getAllFields

public List getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.

Returns: Returns all the fields in this class and all super classes.

getCodeSegments

public List getCodeSegments(Version version)

getCodeSegments

public List getCodeSegments(VersionRange versionRange)

getField

public ModelField getField(String type, Version version)

getField

public ModelField getField(String type, VersionRange versionRange)

getFields

public List getFields(Version version)
Returns the list of all fields in this class for a specific version. It does not include the fields of super classes.

Returns: Returns the list of all fields in this class. It does not include the fields of super classes.

getIdentifierFields

public List getIdentifierFields(Version version)

getInterfaces

public List getInterfaces()
Returns the list of all interfaces of this class.

Returns: Returns the list of all interfaces of this class.

getMetadata

public ClassMetadata getMetadata(String key)

getModel

public Model getModel()

getPackageName

public String getPackageName()

getPackageName

public String getPackageName(boolean withVersion, Version version)

getSuperClass

public String getSuperClass()

hasField

public boolean hasField(String type, Version version)

hashCode

public int hashCode()

hasSuperClass

public boolean hasSuperClass()

initialize

public void initialize(Model model)

setPackageName

public void setPackageName(String packageName)

setSuperClass

public void setSuperClass(String superClass)

validateElement

public void validateElement()
Copyright © 2001-2009 Codehaus. All Rights Reserved.