|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.transit.Layout
net.dpml.transit.layout.EclipseLayout
public class EclipseLayout
The EclipseLayout decodes artifacts into the Eclipse specified layout
of artifacts on a file system or http server.
This format says that for an artifact artifact:[type]:[group]/[name]#[version]
the location of such artifact would be;
[group]-[version]/[name].[type].
Example; artifact:jar:eclipse/plugins/eclipse-osgi-runtime/core#3.1.0
would return the path eclipse/plugins/eclipse-osgi-runtime-3.1.0/core.jar.
| Constructor Summary | |
|---|---|
EclipseLayout()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Compare this object with another for equality. |
String |
getID()
Return the layout identifier. |
int |
hashCode()
Compare the object hash code. |
String |
resolveBase(Artifact artifact)
Return the base path for an artifact. |
String |
resolveBaseFilename(Artifact artifact)
Return the expanded filename of the artifact. |
String |
resolveFilename(Artifact artifact)
Return the expanded filename of the artifact. |
String |
resolvePath(Artifact artifact)
Returns the full path of the artifact relative to a logical root directory. |
| Methods inherited from class net.dpml.transit.Layout |
|---|
getLayout |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EclipseLayout()
| Method Detail |
|---|
public String getID()
getID in class Layoutpublic final String resolveBase(Artifact artifact)
resolveBase in class Layoutartifact - the artifact to resolve the base path from
public final String resolvePath(Artifact artifact)
artifact:jar:eclipse/plugins/eclipse-osgi-runtime/core#3.1.0
would return the path
eclipse/plugins/eclipse-osgi-runtime-3.1.0/core.jar.
resolvePath in class Layoutartifact - the artifact to resolve the path from
resolveBase(net.dpml.transit.Artifact),
resolveFilename(net.dpml.transit.Artifact)public String resolveFilename(Artifact artifact)
[name].[type].
resolveFilename in class Layoutartifact - the artifact to resolve
Layout.resolveBase(net.dpml.transit.Artifact),
Layout.resolveFilename(net.dpml.transit.Artifact)public String resolveBaseFilename(Artifact artifact)
[name].[type].
artifact - the artifact to resolve
public boolean equals(Object other)
equals in class Objectother - the object to compare with this object
public int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||