org.apache.ivy.core.cache
Class ArtifactOrigin

java.lang.Object
  extended by org.apache.ivy.core.cache.ArtifactOrigin

public class ArtifactOrigin
extends java.lang.Object

This class contains information about the origin of an artifact.

See Also:
BasicResolver, ResolvedResource

Constructor Summary
ArtifactOrigin(boolean isLocal, java.lang.String location)
          Create a new instance
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getLocation()
          Return the location of the resource (normally a url)
 int hashCode()
           
 boolean isLocal()
          Is this resource local to this host, i.e. is it on the file system?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactOrigin

public ArtifactOrigin(boolean isLocal,
                      java.lang.String location)
Create a new instance

Parameters:
isLocal - boolean value indicating if the resource is local (on the filesystem).
location - the location of the resource (normally a url)
Method Detail

isLocal

public boolean isLocal()
Is this resource local to this host, i.e. is it on the file system?

Returns:
boolean value indicating if the resource is local.

getLocation

public java.lang.String getLocation()
Return the location of the resource (normally a url)

Returns:
the location of the resource

toString

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object