org.codehaus.modello.model
Class ModelClass
java.lang.Object
org.codehaus.modello.model.BaseElement
org.codehaus.modello.model.ModelType
org.codehaus.modello.model.ModelClass
public class ModelClass
- extends ModelType
- Version:
- $Id: ModelClass.java 1284 2009-07-16 20:58:50Z hboutemy $
- Author:
- Jason van Zyl, Emmanuel Venisse
Methods inherited from class org.codehaus.modello.model.ModelType |
addCodeSegment, getAllCodeSegments, getAllFields, getCodeSegments, getCodeSegments, getField, getFields, getIdentifierFields, getModel, getPackageName, getPackageName, hasField, setPackageName |
Methods inherited from class org.codehaus.modello.model.BaseElement |
addMetadata, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hasMetadata, isEmpty, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateFieldNotEmpty |
ModelClass
public ModelClass()
ModelClass
public ModelClass(Model model,
String name)
getSuperClass
public String getSuperClass()
setSuperClass
public void setSuperClass(String superClass)
getInterfaces
public List getInterfaces()
- Returns the list of all interfaces of this class.
- Returns:
- Returns the list of all interfaces of this class.
addInterface
public void addInterface(String modelInterface)
getAllFields
public List getAllFields()
- Returns the list of all fields in this class.
It does not include the fields of super classes.
- Specified by:
getAllFields
in class ModelType
- Returns:
- Returns the list of all fields in this class. It does not include the
fields of super classes.
getAllFields
public List getAllFields(boolean withInheritedField)
- Returns all the fields in this class and all super classes if withInheritedField equals to true.
- Specified by:
getAllFields
in class ModelType
- Returns:
- Returns all the fields in this class and all super classes.
getField
public ModelField getField(String type,
VersionRange versionRange)
- Specified by:
getField
in class ModelType
addField
public void addField(ModelField modelField)
hasSuperClass
public boolean hasSuperClass()
isInternalSuperClass
public boolean isInternalSuperClass()
getMetadata
public ClassMetadata getMetadata(String key)
initialize
public void initialize(Model model)
- Overrides:
initialize
in class ModelType
validateElement
public void validateElement()
throws ModelValidationException
- Specified by:
validateElement
in class BaseElement
- Throws:
ModelValidationException
equals
public boolean equals(Object o)
- Overrides:
equals
in class BaseElement
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseElement
Copyright © 2001-2013 Codehaus. All Rights Reserved.