Class Overview
Encapsulates the logic around creating and parsing decorator path names.
These are in the form:
- @[space-key]/[template-name] -- custom space decorators
- /[template-name]/ -- global decorators
The leading slash may be omitted from global decorator paths.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
DecoratorName
(String spaceKey, String templateName)
Parameters
spaceKey
| if a space custom decorator the key of the space, otherwise null. |
templateName
| the name of the template, usually a path on the filesystem.
|
public
DecoratorName
(String source)
Parameters
source
| the full path of the decorator, which will be split according to the
decorator path name rules. |
Public Methods
public
String
getSpaceKey
()
Returns
- the space key of the space the decorator belongs to, or null
if this decorator is a global decorator.
public
String
getTemplateName
()
public
boolean
isGlobalDecorator
()
public
boolean
isSpaceDecorator
()
public
static
boolean
isSpaceDecoratorSource
(String source)