public class DefaultClientModule extends AbstractExternalDependency implements ClientModule
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION| Constructor and Description |
|---|
DefaultClientModule(String group,
String name,
String version) |
DefaultClientModule(String group,
String name,
String version,
String configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(ModuleDependency dependency)
Add a dependency to the client module.
|
boolean |
contentEquals(Dependency dependency)
Returns whether two dependencies have identical values for their properties.
|
ClientModule |
copy()
Creates and returns a new dependency with the property values of this one.
|
boolean |
equals(Object o) |
Set<ModuleDependency> |
getDependencies()
Returns all the dependencies added to the client module.
|
String |
getGroup()
Returns the group of this dependency.
|
String |
getId()
Returns the id of the client module.
|
String |
getName()
Returns the name of this dependency.
|
String |
getVersion()
Returns the version of this dependency.
|
int |
hashCode() |
boolean |
isForce()
Returns whether or not the version of this dependency should be enforced in the case of version conflicts.
|
ClientModule |
setForce(boolean force)
Sets whether or not the version of this dependency should be enforced in the case of version conflicts.
|
ClientModule |
setGroup(String group) |
ClientModule |
setName(String name) |
ClientModule |
setVersion(String version) |
copyTo, isContentEqualsForaddArtifact, artifact, copyTo, exclude, getArtifacts, getConfiguration, getExcludeRules, isCommonContentEquals, isKeyEquals, isTransitive, setArtifacts, setTransitivecopyTo, resolveclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddArtifact, artifact, exclude, getArtifacts, getConfiguration, getExcludeRules, isTransitive, setTransitivepublic Set<ModuleDependency> getDependencies()
ClientModulegetDependencies in interface ClientModuleClientModule.addDependency(ModuleDependency)public String getId()
ClientModulegetId in interface ClientModulepublic String getGroup()
DependencygetGroup in interface DependencygetGroup in interface ModuleVersionSelectorpublic ClientModule setGroup(String group)
public String getName()
DependencygetName in interface DependencygetName in interface ModuleVersionSelectorpublic ClientModule setName(String name)
public String getVersion()
DependencygetVersion in interface DependencygetVersion in interface ModuleVersionSelectorpublic ClientModule setVersion(String version)
public boolean isForce()
ExternalDependencyisForce in interface ExternalDependencypublic ClientModule setForce(boolean force)
ExternalDependencysetForce in interface ExternalDependencyforce - Whether to force this version or not.public void addDependency(ModuleDependency dependency)
ClientModuleaddDependency in interface ClientModuledependency - The dependency to add to the client module.ClientModule.getDependencies()public ClientModule copy()
ClientModulecopy in interface ClientModulecopy in interface Dependencycopy in interface ExternalDependencycopy in interface ModuleDependencypublic boolean contentEquals(Dependency dependency)
DependencycontentEquals in interface Dependencydependency - The dependency to compare this dependency withpublic int hashCode()
hashCode in class AbstractDependencyCopyright © 2013. All rights reserved