public class CmsFolderOrName
extends java.lang.Object
| 构造器和说明 |
|---|
CmsFolderOrName(CmsResource folder)
Creates an instance based on an existing folder.
|
CmsFolderOrName(java.lang.String basePath,
java.lang.String name)
Creates an instance based on a relative folder name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getBasePath()
Gets the base path.
|
CmsResource |
getFolder()
Gets the folder.
|
java.lang.String |
getFolderName()
Gets the relative folder name if available, else null.
|
java.lang.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.
|
public CmsFolderOrName(CmsResource folder)
folder - the folderpublic CmsFolderOrName(java.lang.String basePath,
java.lang.String name)
basePath - the base path which the folder name is relative toname - the relative folder namepublic java.lang.String getBasePath()
public CmsResource getFolder()
public java.lang.String getFolderName()
public java.lang.String getFolderPath(CmsObject cms)
cms - the CMS context to usepublic boolean isFolder()
public boolean isName()