|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axway.grapes.commons.datamodel.Module
public class Module
Module Model Class
Model Objects are used in the communication with the Grapes server. These objects are serialized/un-serialized in JSON objects to be exchanged via http REST calls.
| Constructor Summary | |
|---|---|
protected |
Module()
|
| Method Summary | |
|---|---|
void |
addAllArtifacts(List<Artifact> artifacts)
Adds a set of artifact to the module. |
void |
addArtifact(Artifact artifact)
Adds an artifact to the module. |
void |
addDependency(Dependency dependency)
Add a dependency to the module. |
void |
addSubmodule(Module submodule)
Adds a submodule to the module. |
boolean |
equals(Object obj)
Checks if the module is the same than an other one. |
Set<Artifact> |
getArtifacts()
|
Set<Dependency> |
getDependencies()
|
String |
getName()
|
Set<Module> |
getSubmodules()
|
String |
getVersion()
|
int |
hashCode()
|
boolean |
isPromoted()
|
boolean |
isSubmodule()
|
void |
setName(String name)
|
void |
setPromoted(boolean promoted)
Sets the promotion state. |
void |
setSubmodule(boolean isSubmodule)
|
void |
setVersion(String version)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Module()
| Method Detail |
|---|
public String getName()
public void setName(String name)
public String getVersion()
public void setVersion(String version)
public Set<Artifact> getArtifacts()
public boolean isPromoted()
public Set<Dependency> getDependencies()
public Set<Module> getSubmodules()
public boolean isSubmodule()
public void setSubmodule(boolean isSubmodule)
public void setPromoted(boolean promoted)
INFO: This method updates automatically all the contained artifacts.
promoted - booleanpublic void addDependency(Dependency dependency)
dependency - Dependencypublic void addSubmodule(Module submodule)
INFO: If the module is promoted, all added submodule will be promoted.
submodule - Modulepublic void addArtifact(Artifact artifact)
INFO: If the module is promoted, all added artifacts will be promoted.
artifact - Artifactpublic void addAllArtifacts(List<Artifact> artifacts)
INFO: If the module is promoted, all added artifacts will be promoted.
artifacts - Listof Artifactpublic boolean equals(Object obj)
equals in class Objectobj - Object
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||