|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.project.builder.PomClassicDomainModel
public final class PomClassicDomainModel
Provides a wrapper for the maven model.
| Constructor Summary | |
|---|---|
PomClassicDomainModel(java.io.File file)
|
|
PomClassicDomainModel(java.io.InputStream inputStream)
Constructor |
|
PomClassicDomainModel(Model model)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
asString()
Returns XML model as string |
boolean |
equals(java.lang.Object o)
Returns true if this.asString.equals(o.asString()), otherwise false. |
java.lang.String |
getEventHistory()
|
java.io.File |
getFile()
|
java.lang.String |
getId()
|
java.io.InputStream |
getInputStream()
|
int |
getLineageCount()
|
Model |
getModel()
Returns maven model |
java.util.List<org.apache.maven.shared.model.ModelProperty> |
getModelProperties()
|
java.io.File |
getParentFile()
|
java.io.File |
getProjectDirectory()
|
boolean |
isPomInBuild()
|
boolean |
matchesModel(Model a)
Returns true if groupId.equals(a.groupId) && artifactId.equals(a.artifactId) && version.equals(a.version), otherwise returns false. |
boolean |
matchesParent(Parent parent)
|
void |
setEventHistory(java.lang.String eventHistory)
|
void |
setLineageCount(int lineageCount)
|
void |
setParentFile(java.io.File parentFile)
|
void |
setProjectDirectory(java.io.File projectDirectory)
This should only be set for projects that are in the build. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PomClassicDomainModel(Model model)
throws java.io.IOException
model - maven model
java.io.IOException - if there is a problem constructing the model
public PomClassicDomainModel(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - input stream of the maven model
java.io.IOException - if there is a problem constructing the model
public PomClassicDomainModel(java.io.File file)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.io.File getParentFile()
public void setParentFile(java.io.File parentFile)
public void setProjectDirectory(java.io.File projectDirectory)
projectDirectory - public java.io.File getProjectDirectory()
public boolean isPomInBuild()
public boolean matchesModel(Model a)
a - model to compare
public java.lang.String getId()
public boolean matchesParent(Parent parent)
public java.lang.String asString()
public Model getModel()
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream()
getInputStream in interface org.apache.maven.shared.model.InputStreamDomainModelInputStreamDomainModel.getInputStream()public java.io.File getFile()
public java.util.List<org.apache.maven.shared.model.ModelProperty> getModelProperties()
throws java.io.IOException
getModelProperties in interface org.apache.maven.shared.model.DomainModeljava.io.IOExceptionpublic java.lang.String getEventHistory()
getEventHistory in interface org.apache.maven.shared.model.DomainModelDomainModel.getEventHistory()public void setEventHistory(java.lang.String eventHistory)
setEventHistory in interface org.apache.maven.shared.model.DomainModelDomainModel.setEventHistory(String)public int getLineageCount()
public void setLineageCount(int lineageCount)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - domain model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||