public interface Template extends Adaptable, LabeledResource, JSONItem
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description of the template or
null if not
defined. |
String |
getIconPath()
Returns the path to an icon for this template or
null if
this template does not provide an icon. |
String |
getPath()
Returns the path of the template resource
|
Long |
getRanking()
Returns the ranking in the template list.
|
String |
getShortTitle()
Returns the short title of the template or
null
if not defined. |
String |
getThumbnailPath()
Returns the path to a thumbnail for this template or
null
if the template does not provide a thumbnail. |
String |
getTitle()
Returns the title of the template or the name of the resource (i.e.
|
boolean |
isAllowed(String parentPath)
Checks if this template is allowed to be used for a new page below
the given path.
|
boolean |
isAllowedChild(Template template)
Checks if the given template is allowed as a child template.
|
void |
write(JSONWriter jsonWriter)
Serializes this descriptor to json
|
getName
String getPath()
getPath
in interface LabeledResource
String getTitle()
getTitle
in interface LabeledResource
String getShortTitle()
null
if not defined.String getDescription()
null
if not
defined.getDescription
in interface LabeledResource
String getIconPath()
null
if
this template does not provide an icon.null
String getThumbnailPath()
null
if the template does not provide a thumbnail.null
Long getRanking()
boolean isAllowed(String parentPath)
parentPath
- parent path for the new pagetrue
if it is allowed.boolean isAllowedChild(Template template)
template
- the child templatetrue
if the given template is allowed as child template.void write(JSONWriter jsonWriter) throws JSONException
write
in interface JSONItem
jsonWriter
- json writerJSONException
- if a JSON error occurs"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"