|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.transit.Layout
public abstract class Layout
Definition of a repository layout. Specialized layouts must extend from this base abstract class. The class includes static methods supporting the resolution of available layouts. Each layout instance is associated with a unique identifier and represents the mapping between a layout strategy name and the physical structural representation of a repository. Operations on the layout class support the translation of artifact addresses to their corresponding physicaly layout on remote systems.
Constructor Summary | |
---|---|
Layout()
|
Method Summary | |
---|---|
abstract String |
getID()
Return the layout identifier. |
static Layout |
getLayout(String id)
Return a location resolver capable for supporting the supplied id. |
abstract String |
resolveBase(Artifact artifact)
Return the base path for an artifact. |
abstract String |
resolveFilename(Artifact artifact)
Return the filename for an artifact. |
abstract String |
resolvePath(Artifact artifact)
Returns the full path of the artifact relative to a logical root directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layout()
Method Detail |
---|
public static Layout getLayout(String id)
id
- the layout identifier
public abstract String getID()
public abstract String resolveBase(Artifact artifact)
artifact
- the Artifact to resolve.
public abstract String resolvePath(Artifact artifact)
artifact
- the Artifact to resolve.
resolveBase(net.dpml.transit.Artifact)
,
resolveFilename(net.dpml.transit.Artifact)
public abstract String resolveFilename(Artifact artifact)
artifact
- the Artifact to resolve.
resolveBase(net.dpml.transit.Artifact)
,
resolveFilename(net.dpml.transit.Artifact)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |