|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.domain.ArtifactRef
@ThreadSafe public final class ArtifactRef
An artifact identifier including a physical reference to an exemplar of the artifact.
Constructor Summary | |
---|---|
ArtifactRef(ArtifactId id, URL url) Default constructor. |
Method Summary | |
---|---|
ArtifactId |
getId() Returns the unique identifier of the artifact. |
URL |
getUrl() Returns the reference to the physical artifact. |
boolean |
isArchive() Checks if the referenced artifact is an archive. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArtifactRef(ArtifactId id, URL url) throws NullPointerException
id
- the unique identifier of the artifact.
url
- the reference to the physical artifact.
NullPointerException
- if
id
or
url
is
null
.
Method Detail |
---|
public ArtifactId getId()
null
.
public URL getUrl()
null
.
public boolean isArchive()
true
if the referenced artifact is an archive,
false
otherwise.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |