org.abstracthorizon.extend.server.deployment
Class ModuleId

java.lang.Object
  extended by org.abstracthorizon.extend.server.deployment.ModuleId
Direct Known Subclasses:
Artifact

public class ModuleId
extends Object


Field Summary
protected  String artifactId
           
protected  String classifier
           
protected  String groupId
           
static String JAR_TYPE
           
protected  String stringRepresentation
           
protected  String type
           
protected  String version
           
 
Constructor Summary
ModuleId()
           
ModuleId(ModuleId copy)
           
ModuleId(String moduleId)
           
 
Method Summary
static ModuleId createModuleIdFromFileName(File file)
           
static ModuleId createModuleIdFromFileName(String name)
           
 boolean equals(Object o)
           
 boolean equalsIgnoreSnapshot(Object o)
           
 String getArtifactId()
           
 String getClassifier()
           
 String getFullId()
           
 String getGroupId()
           
 String getShortId()
           
 String getType()
           
 String getVersion()
           
 int hashCode()
           
 boolean isSnapshot()
           
static ModuleId parseModuleIdString(ModuleId moduleId, String s)
           
static ModuleId parseModuleIdString(String moduleId)
           
 void setArtifactId(String artifactId)
           
 void setClassifier(String classifier)
           
 void setGroupId(String groupId)
           
 void setType(String type)
           
 void setVersion(String version)
           
 ModuleId toNonSnapshotArtifact()
           
 ModuleId toSnapshotArtifact()
           
 String toString()
           
protected  void updateStringRepresentation()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

JAR_TYPE

public static final String JAR_TYPE
See Also:
Constant Field Values

groupId

protected String groupId

artifactId

protected String artifactId

version

protected String version

type

protected String type

classifier

protected String classifier

stringRepresentation

protected String stringRepresentation
Constructor Detail

ModuleId

public ModuleId()

ModuleId

public ModuleId(String moduleId)

ModuleId

public ModuleId(ModuleId copy)
Method Detail

getGroupId

public String getGroupId()

setGroupId

public void setGroupId(String groupId)

getArtifactId

public String getArtifactId()

setArtifactId

public void setArtifactId(String artifactId)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getType

public String getType()

setType

public void setType(String type)

getClassifier

public String getClassifier()

setClassifier

public void setClassifier(String classifier)

toString

public String toString()
Overrides:
toString in class Object

updateStringRepresentation

protected void updateStringRepresentation()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toSnapshotArtifact

public ModuleId toSnapshotArtifact()

toNonSnapshotArtifact

public ModuleId toNonSnapshotArtifact()

isSnapshot

public boolean isSnapshot()

getShortId

public String getShortId()

getFullId

public String getFullId()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

equalsIgnoreSnapshot

public boolean equalsIgnoreSnapshot(Object o)

parseModuleIdString

public static ModuleId parseModuleIdString(String moduleId)

parseModuleIdString

public static ModuleId parseModuleIdString(ModuleId moduleId,
                                           String s)

createModuleIdFromFileName

public static ModuleId createModuleIdFromFileName(String name)

createModuleIdFromFileName

public static ModuleId createModuleIdFromFileName(File file)


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.