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, for example user provided or provided by Oracle.
|
String |
getLocation()
Returns the location of a Template.
|
String |
getName()
Returns the name of the Template.
|
Template.TemplateType |
getTemplateType()
Returns the Template type of this Template.
|
Template |
setIsCustom(boolean isCustom)
Sets if the template is custom for example, user provided or provided by Oracle.
|
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 |
setTemplateType(Template.TemplateType templateType)
Sets the Template type of this Template.
|
String |
toCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in JSON 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 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 objectIllegalArgumentException - if input parameter is nullpublic 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 Templatepublic String toXmlCompactString()
public String toXmlString()
public String toCompactString()