@Deprecated public class GenericTemplateSet extends Object
Modifier and Type | Field and Description |
---|---|
private String |
boldCloseTag
Deprecated.
|
private String |
boldOpenTag
Deprecated.
|
static String |
DEFAULT_ENCODING
Deprecated.
|
static String |
DEFAULT_MIMETYPE
Deprecated.
|
private String |
encoding
Deprecated.
The charset encoding this template should have
|
private String |
mimeType
Deprecated.
The text MIME subtype this template returns, xml, plain or html
|
private String |
name
Deprecated.
The unique name of this template set
|
private String |
separatorTag
Deprecated.
|
private String |
summaryClass
Deprecated.
Document summary class for this template
|
private HashMap<String,Template<? extends Writer>> |
templates
Deprecated.
Templates
|
Constructor and Description |
---|
GenericTemplateSet(String name,
String mimeType,
String encoding)
Deprecated.
Creates a template set containing no templates
|
Modifier and Type | Method and Description |
---|---|
String |
getBoldCloseTag()
Deprecated.
|
String |
getBoldOpenTag()
Deprecated.
|
String |
getEncoding()
Deprecated.
Returns the text encoding
|
String |
getMimeType()
Deprecated.
Returns the text MIME
|
String |
getName()
Deprecated.
|
String |
getRequestedEncoding(Query query)
Deprecated.
Returns the encoding of the query, or the encoding given by the template if none is set
|
String |
getSeparatorTag()
Deprecated.
|
String |
getSummaryClass()
Deprecated.
Type safe accessor to get the default document summary class for this
template set.
|
Template<? extends Writer> |
getTemplate(String templateName)
Deprecated.
Returns the selected template
|
void |
setHighlightTags(String start,
String end,
String sep)
Deprecated.
Sets the highligting marks for this template
|
void |
setSummaryClass(String summaryClass)
Deprecated.
Set the default summary class to use with this template.
|
void |
setTemplate(String templateName,
Template<? extends Writer> template)
Deprecated.
Sets the selected template
|
void |
setTemplateNotNull(String templateName,
Template<? extends Writer> template)
Deprecated.
Sets the selected template
|
public static final String DEFAULT_MIMETYPE
public static final String DEFAULT_ENCODING
private String mimeType
private String encoding
private String boldOpenTag
private String boldCloseTag
private String separatorTag
private String summaryClass
private final String name
public String getName()
public String getMimeType()
public String getEncoding()
public final String getRequestedEncoding(Query query)
public Template<? extends Writer> getTemplate(String templateName)
public void setTemplate(String templateName, Template<? extends Writer> template)
NullPointerException
- if the given template is nullpublic void setTemplateNotNull(String templateName, Template<? extends Writer> template)
NullPointerException
- if the given template is nullpublic void setHighlightTags(String start, String end, String sep)
start
- the highlingting start markend
- the highlingting end marksep
- the highlingting separator markpublic String getBoldOpenTag()
public String getBoldCloseTag()
public String getSeparatorTag()
public void setSummaryClass(String summaryClass)
public String getSummaryClass()
Copyright © 2018. All rights reserved.