public class Template extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
String |
name |
Template |
next |
String |
node |
int |
priority |
String |
view |
| Constructor and Description |
|---|
Template(String serialized)
Initializes an instance of this class by deserializing the provided string.
|
Template(String view,
String node,
Template next,
String name)
Initializes an instance of this class.
|
Template(String view,
String node,
Template next,
String name,
int priority)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the template.
|
Template |
getNext()
Returns the next
Template in the resolution chain. |
List<Template> |
getNextTemplates() |
String |
getNode()
Returns the node path.
|
int |
getPriority()
Returns the template ordering priority.
|
String |
getView()
Returns the name of the view.
|
String |
serialize()
Returns the serialized form of this template.
|
protected StringBuilder |
serialize(StringBuilder buffer)
Appends the serialized form of this template to the specified buffer.
|
String |
toString() |
public String name
public Template next
public String node
public int priority
public String view
public Template(String serialized)
serialized - the serialized form of the templatepublic Template(String view, String node, Template next, String name)
view - the view namenode - the node pathnext - the next Template in the resolution chainname - the namepublic String getName()
public Template getNext()
Template in the resolution chain.Template in the resolution chainpublic String getNode()
public int getPriority()
public String getView()
public String serialize()
protected StringBuilder serialize(StringBuilder buffer)
buffer - the buffer to append a serialized form of this template toCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.