public abstract class ModelType extends BaseElement
Constructor and Description |
---|
ModelType() |
ModelType(Model model,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
addCodeSegment(CodeSegment codeSegment) |
List<CodeSegment> |
getAllCodeSegments() |
abstract List<ModelField> |
getAllFields()
Returns the list of all fields in this class.
|
abstract List<ModelField> |
getAllFields(boolean withInheritedField)
Returns all the fields in this class and all super classes if withInheritedField equals to true.
|
List<ModelField> |
getAllFields(Version version,
boolean withInheritedField) |
List<CodeSegment> |
getCodeSegments(Version version) |
List<CodeSegment> |
getCodeSegments(VersionRange versionRange) |
ModelField |
getField(String type,
Version version) |
abstract ModelField |
getField(String type,
VersionRange versionRange) |
List<ModelField> |
getFields(Version version)
Returns the list of all fields in this class for a specific version.
|
List<ModelField> |
getIdentifierFields(Version version) |
Model |
getModel() |
String |
getPackageName() |
String |
getPackageName(boolean withVersion,
Version version) |
boolean |
hasField(String type,
Version version) |
void |
initialize(Model model) |
void |
setPackageName(String packageName) |
addMetadata, equals, getAnnotations, getComment, getDeprecatedVersion, getDescription, getMetadata, getName, getVersionRange, hashCode, hasMetadata, isEmpty, setAnnotations, setComment, setDeprecatedVersion, setDescription, setName, setVersionRange, validate, validateElement, validateFieldNotEmpty
public String getPackageName()
public void setPackageName(String packageName)
public Model getModel()
public List<CodeSegment> getAllCodeSegments()
public List<CodeSegment> getCodeSegments(Version version)
public List<CodeSegment> getCodeSegments(VersionRange versionRange)
public void addCodeSegment(CodeSegment codeSegment)
public abstract List<ModelField> getAllFields()
public abstract List<ModelField> getAllFields(boolean withInheritedField)
withInheritedField
- whether inherited fields should be included.public abstract ModelField getField(String type, VersionRange versionRange)
public List<ModelField> getFields(Version version)
version
- the specific versionpublic List<ModelField> getAllFields(Version version, boolean withInheritedField)
public ModelField getField(String type, Version version)
public List<ModelField> getIdentifierFields(Version version)
public void initialize(Model model)
Copyright © 2001–2022 Codehaus Plexus. All rights reserved.