|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.ade.configuration.CmsFolderOrName
public class CmsFolderOrName
A bean which can either represent a folder or a relative folder name, but not both at the same time.
Constructor Summary | |
---|---|
CmsFolderOrName(CmsResource folder)
Creates an instance based on an existing folder. |
|
CmsFolderOrName(String basePath,
String name)
Creates an instance based on a relative folder name. |
Method Summary | |
---|---|
String |
getBasePath()
Gets the base path. |
CmsResource |
getFolder()
Gets the folder. |
String |
getFolderName()
Gets the relative folder name if available, else null. |
String |
getFolderPath(CmsObject cms)
Computes the folder root path. |
boolean |
isFolder()
Returns true if the current instance was created with a folder structure id parameter. |
boolean |
isName()
Returns true if this instance was created with a folder name parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsFolderOrName(CmsResource folder)
folder
- the folderpublic CmsFolderOrName(String basePath, String name)
basePath
- the base path which the folder name is relative toname
- the relative folder nameMethod Detail |
---|
public String getBasePath()
public CmsResource getFolder()
public String getFolderName()
public String getFolderPath(CmsObject cms)
cms
- the CMS context to use
public boolean isFolder()
public boolean isName()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |