|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.filesystem.PortalFilePath
public final class PortalFilePath
Represents a path to a portal file. It is internally stored as a
PortalBaseFolder
and a relative path to that folder.
Constructor Summary | |
---|---|
PortalFilePath(PortalBaseFolder baseFolder,
String relativePath)
Creates a portal file path from a base folder and a relative path. |
|
PortalFilePath(String absolutePath)
Creates a portal file path from an absolute path. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAbsolutePath()
Returns the absolute path this instance corresponds to. |
PortalBaseFolder |
getBaseFolder()
Returns the base folder for this path. |
String |
getRelativePath()
Returns the relative path to getBaseFolder() . |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PortalFilePath(PortalBaseFolder baseFolder, String relativePath)
baseFolder
- the base folder.relativePath
- the relative path, relative to the base folder.public PortalFilePath(String absolutePath)
absolutePath
- the absolute path.
IllegalArgumentException
- if the given absolute path is invalid
or does not belongs to an area that may be mapped using a portal file path.Method Detail |
---|
public String getAbsolutePath()
public String getRelativePath()
getBaseFolder()
.
public PortalBaseFolder getBaseFolder()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |