class ModelData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<Profile> |
activeProfiles |
private java.lang.String |
artifactId |
private java.lang.String |
groupId |
private Model |
model |
private Model |
rawModel |
private ModelSource |
source |
private java.lang.String |
version |
Constructor and Description |
---|
ModelData(ModelSource source,
Model model)
Creates a new container for the specified model.
|
ModelData(ModelSource source,
Model model,
java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version)
Creates a new container for the specified model.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Profile> |
getActiveProfiles()
Gets the active profiles from the model.
|
java.lang.String |
getArtifactId()
Gets the effective artifact identifier of the model.
|
java.lang.String |
getGroupId()
Gets the effective group identifier of the model.
|
java.lang.String |
getId()
Gets the effective identifier of the model in the form
<groupId>:<artifactId>:<version> . |
Model |
getModel()
Gets the model being wrapped.
|
Model |
getRawModel()
Gets the raw model being wrapped.
|
ModelSource |
getSource() |
java.lang.String |
getVersion()
Gets the effective version of the model.
|
void |
setActiveProfiles(java.util.List<Profile> activeProfiles)
Sets the active profiles from the model.
|
void |
setArtifactId(java.lang.String artifactId)
Sets the effective artifact identifier of the model.
|
void |
setGroupId(java.lang.String groupId)
Sets the effective group identifier of the model.
|
void |
setModel(Model model)
Sets the model being wrapped.
|
void |
setRawModel(Model rawModel)
Sets the raw model being wrapped.
|
void |
setVersion(java.lang.String version)
Sets the effective version of the model.
|
java.lang.String |
toString() |
private final ModelSource source
private Model model
private Model rawModel
private java.util.List<Profile> activeProfiles
private java.lang.String groupId
private java.lang.String artifactId
private java.lang.String version
ModelData(ModelSource source, Model model)
model
- The model to wrap, may be null
.ModelData(ModelSource source, Model model, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
model
- The model to wrap, may be null
.groupId
- The effective group identifier of the model, may be null
.artifactId
- The effective artifact identifier of the model, may be null
.version
- The effective version of the model, may be null
.public ModelSource getSource()
public Model getModel()
null
if not set.public void setModel(Model model)
model
- The model, may be null
.public Model getRawModel()
null
if not set.public void setRawModel(Model rawModel)
rawModel
- The raw model, may be null
.public java.util.List<Profile> getActiveProfiles()
null
if not set.public void setActiveProfiles(java.util.List<Profile> activeProfiles)
activeProfiles
- The active profiles, may be null
.public java.lang.String getGroupId()
null
.public void setGroupId(java.lang.String groupId)
groupId
- The effective group identifier of the model, may be null
.public java.lang.String getArtifactId()
null
.public void setArtifactId(java.lang.String artifactId)
artifactId
- The effective artifact identifier of the model, may be null
.public java.lang.String getVersion()
null
.public void setVersion(java.lang.String version)
version
- The effective version of the model, may be null
.public java.lang.String getId()
<groupId>:<artifactId>:<version>
.null
.public java.lang.String toString()
toString
in class java.lang.Object