|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mevenide.repository.RepoPathElement
public final class RepoPathElement
Data placeholder for local and remote repository information. Can contain incomplete values, the means of getting more complete data is calling getChildren()
| Field Summary | |
|---|---|
static int |
LEVEL_ARTIFACT
constant returned from getLevel() denotes an instance that has at least the groupId, type and artifactId filled out. |
static int |
LEVEL_GROUP
constant returned from getLevel(), denotes an instance that has at least the groupId filled out. |
static int |
LEVEL_ROOT
constant returned from getLevel(), denotes an instance that has nothing filled out. |
static int |
LEVEL_TYPE
constant returned from getLevel() denotes an instance that has at least the groupId and type filled out. |
static int |
LEVEL_VERSION
constant returned from getLevel() denotes an instance that has all fields filled out. |
| Constructor Summary | |
|---|---|
RepoPathElement(IRepositoryReader reader)
Creates a new instance of RepoPathElement |
|
RepoPathElement(IRepositoryReader reader,
RepoPathElement parent)
Creates a new instance of RepoPathElement |
|
RepoPathElement(IRepositoryReader read,
RepoPathElement parent,
java.lang.String groupId,
java.lang.String type,
java.lang.String version,
java.lang.String artifactId,
java.lang.String ext)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getArtifactId()
|
RepoPathElement[] |
getChildren()
Get an array of RepoPathElements that share the fields of the current one and have additional differentiating information. |
java.lang.String |
getExtension()
|
java.lang.String |
getGroupId()
|
int |
getLevel()
|
RepoPathElement |
getParent()
|
IRepositoryReader |
getReader()
|
java.lang.String |
getRelativeURIPath()
Get path to artifact relative to the root of repository. |
java.net.URI |
getRootURI()
Returns the absolute URI to the root repository of this element. |
java.lang.String |
getType()
|
java.net.URI |
getURI()
Returns the absolute URI to this element. |
java.lang.String |
getVersion()
|
boolean |
isLeaf()
Returns true if all it's fields are filled out, identifying the artifact in an exact manner. |
boolean |
isLoaded()
|
boolean |
isRemote()
|
boolean |
isRoot()
Returns true if this node represents the root repository. |
void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEVEL_ROOT
value = 0
public static final int LEVEL_GROUP
value = 1
public static final int LEVEL_TYPE
value = 2
public static final int LEVEL_ARTIFACT
value = 3
public static final int LEVEL_VERSION
value = 4
| Constructor Detail |
|---|
public RepoPathElement(IRepositoryReader reader)
public RepoPathElement(IRepositoryReader reader,
RepoPathElement parent)
public RepoPathElement(IRepositoryReader read,
RepoPathElement parent,
java.lang.String groupId,
java.lang.String type,
java.lang.String version,
java.lang.String artifactId,
java.lang.String ext)
| Method Detail |
|---|
public RepoPathElement getParent()
public java.lang.String getGroupId()
public java.lang.String getArtifactId()
public java.lang.String getVersion()
public java.lang.String getType()
public java.lang.String getExtension()
public boolean isLeaf()
public boolean isRoot()
public int getLevel()
public java.lang.String getRelativeURIPath()
public java.net.URI getRootURI()
public java.net.URI getURI()
public RepoPathElement[] getChildren()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isRemote()
public IRepositoryReader getReader()
public void reset()
public boolean isLoaded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||