com.caucho.loader.module
Class Artifact

java.lang.Object
  extended by com.caucho.loader.module.Artifact
All Implemented Interfaces:
java.lang.Comparable

public class Artifact
extends java.lang.Object
implements java.lang.Comparable

A jar artifact in the repository


Constructor Summary
Artifact(Path path, java.lang.String org, java.lang.String module, java.lang.String name, ArtifactVersion version, ArtifactDependency parent, java.util.ArrayList<ArtifactDependency> dependencyList)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 ArtifactDependency[] getDependencies()
          Returns the artifact's dependencies
 java.lang.String getName()
          Returns the artifact's name
 java.lang.String getOrg()
          Returns the artifact's owning organization (groupId)
 ArtifactDependency getParent()
          Returns the artifact's parent
 Path getPath()
          Returns the artifact's path
 ArtifactVersion getVersion()
          Returns the artifact's version
 boolean isMatch(ArtifactDependency dependency)
          Returns true if the artifact matches the dependency
 boolean isSameArtifact(Artifact artifact)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Artifact

public Artifact(Path path,
                java.lang.String org,
                java.lang.String module,
                java.lang.String name,
                ArtifactVersion version,
                ArtifactDependency parent,
                java.util.ArrayList<ArtifactDependency> dependencyList)
Method Detail

getPath

public Path getPath()
Returns the artifact's path


getOrg

public java.lang.String getOrg()
Returns the artifact's owning organization (groupId)


getName

public java.lang.String getName()
Returns the artifact's name


getVersion

public ArtifactVersion getVersion()
Returns the artifact's version


getParent

public ArtifactDependency getParent()
Returns the artifact's parent


getDependencies

public ArtifactDependency[] getDependencies()
Returns the artifact's dependencies


isSameArtifact

public boolean isSameArtifact(Artifact artifact)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

isMatch

public boolean isMatch(ArtifactDependency dependency)
Returns true if the artifact matches the dependency


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object