com.levigo.jadice.document
Class ProductInformation.Artifact

java.lang.Object
  extended by com.levigo.jadice.document.ProductInformation.Artifact
Enclosing class:
ProductInformation

public static class ProductInformation.Artifact
extends Object

This class describes a single artifact.


Method Summary
 boolean equals(Object obj)
           
 String getArtifactID()
          Return the artifact's artifact-ID.
 Date getBuildTimestamp()
          Return the build timestamp for this artifact.
 String getCompositeID()
          Return the artifact's composite ID of the form group-ID:artifact-ID.
 String getGroupID()
          Return the artifact's group-ID.
 String getVersion()
          Return the version string.
 int getVersionPart(int i)
          Return the i'th part of the version string (if it exists and can be expressed as a number) or zero.
 int hashCode()
           
 boolean isSnapshot()
          Return whether this is a snapshot artifact.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getArtifactID

public String getArtifactID()
Return the artifact's artifact-ID.

Returns:
the artifact-ID

getGroupID

public String getGroupID()
Return the artifact's group-ID.

Returns:
the group-ID

getCompositeID

public String getCompositeID()
Return the artifact's composite ID of the form group-ID:artifact-ID.

Returns:
the composite ID

getVersion

public String getVersion()
Return the version string.

Returns:
the version string

getVersionPart

public int getVersionPart(int i)
Return the i'th part of the version string (if it exists and can be expressed as a number) or zero.

Parameters:
i - the index
Returns:
the part expressed as a number or zero

isSnapshot

public boolean isSnapshot()
Return whether this is a snapshot artifact.

Returns:
true for snapshot artifacts

getBuildTimestamp

public Date getBuildTimestamp()
Return the build timestamp for this artifact.

Returns:
the build timestamp.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.