|
||||||||||
| 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.ModernLayout
public class ModernLayout
The ModernLayout decodes artifacts into a layout scheme that follows the
convention of group/name/version/expanded-name pattern. Specifically the
layout maps artifacts according to the rule
[group[/[subgroup[/...]]]/[name]/[version]/name[-[version]].type.
Example: artifact:jar:metro/cache/dpml-cache-main#1.0.0
would return the path metro/cache/dpml-cache-main/1.0.0/dpml-cache-main-1.0.0.jar.
| Constructor Summary | |
|---|---|
ModernLayout()
|
|
| Method Summary | |
|---|---|
String |
getID()
Return the layout identifier. |
String |
resolveBase(Artifact artifact)
Return the base path for an 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModernLayout()
| Method Detail |
|---|
public String getID()
getID in class Layoutpublic final String resolveBase(Artifact artifact)
resolveBase in class Layoutartifact - the resource artifact
public final String resolvePath(Artifact artifact)
resolvePath in class Layoutartifact - the resource artifact
resolveBase(net.dpml.transit.Artifact),
resolveFilename(net.dpml.transit.Artifact)public String resolveFilename(Artifact artifact)
resolveFilename in class Layoutartifact - the resource artifact
Layout.resolveBase(net.dpml.transit.Artifact),
Layout.resolveFilename(net.dpml.transit.Artifact)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||