public class Template
extends java.lang.Object
A template is always returned. By default an empty template called
'default' will be returned. If a rule is triggered the corresponding template
will be returned with the corresponding zones populated with the correct
content.
A template has the following properties
- `id`: an MD5 of the name
- `name`: the name of this template.
- `zones`: a map of the zones by name.
| Constructor and Description |
|---|
Template()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
java.lang.String |
getName() |
java.lang.String |
getRuleName() |
java.util.Map<java.lang.String,Zone> |
getZones() |
Template |
setId(java.lang.String id) |
Template |
setName(java.lang.String name) |
void |
setRuleName(java.lang.String ruleName) |
Template |
setZones(java.util.Map<java.lang.String,Zone> zones) |
public java.lang.String getId()
public Template setId(java.lang.String id)
id - Set the ID.public java.lang.String getName()
public Template setName(java.lang.String name)
name - Set the namepublic java.lang.String getRuleName()
public void setRuleName(java.lang.String ruleName)
ruleName - Set the rule.public java.util.Map<java.lang.String,Zone> getZones()
Copyright © 2013–2016 GroupBy Inc.. All rights reserved.