public class Template extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Template.TemplateType
Specifies how the Template is used.
|
| Constructor and Description |
|---|
Template() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getIsCustom()
Determines if the Template is custom i.e.
|
String |
getLocation()
Returns the location of a Template.
|
String |
getName()
Returns the name of the Template.
|
String |
getProfile()
Returns the profile associated with this template assignment, such as Expanded, Compact, or default (null).
|
Template.TemplateType |
getTemplateType()
Returns the Template type of this Template.
|
Template |
setIsCustom(boolean isCustom)
Sets if the template is custom i.e.
|
Template |
setLocation(String location)
Sets the location of this Template for custom Templates only.
|
Template |
setName(String name)
Sets the name of this Template.
|
Template |
setProfile(String profile)
Sets the profile associated with this template assignment.
|
Template |
setTemplateType(Template.TemplateType templateType)
Sets the Template type of this Template.
|
String |
toCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toJsonCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toJsonString()
Returns a string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in XML format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
public boolean getIsCustom()
public String getLocation()
public String getProfile()
public String getName()
public Template.TemplateType getTemplateType()
public Template setIsCustom(boolean isCustom)
isCustom - sets true for custom Template or false if this Template is not customTemplate objectpublic Template setLocation(String location)
location - the location of this Template for custom Templates only.Template objectpublic Template setProfile(String profile)
profile - the profile associated with this template assignmentTemplate objectpublic Template setName(String name)
name - the name of this TemplateTemplate objectIllegalArgumentException - if input parameter is nullpublic Template setTemplateType(Template.TemplateType templateType)
templateType - the Template type to be used by this TemplateTemplate objectpublic String toXmlCompactString()
public String toXmlString()
public String toJsonCompactString()
public String toJsonString()
public String toCompactString()