@Deprecated public class HitContext extends Context
Constructor and Description |
---|
HitContext(Hit hit,
Context fallbackContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Deprecated.
Returns a value by looking it up in the primary,
and thereafter in secondary sources.
|
String |
getBoldCloseTag()
Deprecated.
|
String |
getBoldOpenTag()
Deprecated.
|
Collection<? extends Object> |
getKeys()
Deprecated.
|
String |
getSeparatorTag()
Deprecated.
|
boolean |
getXmlEscape()
Deprecated.
Returns whether this context xml-escapes returned values.
|
boolean |
isUtf8Output()
Deprecated.
Used by the template to decide whether to use UTF-8 optimizations.
|
protected Object |
normalizeValue(Object value)
Deprecated.
|
Object |
put(String key,
Object value)
Deprecated.
Makes a secondary binding
|
Object |
remove(Object key)
Deprecated.
Removes a secondary binding
|
void |
setBoldCloseTag(String boldCloseTag)
Deprecated.
|
void |
setBoldOpenTag(String boldOpenTag)
Deprecated.
|
void |
setSeparatorTag(String separatorTag)
Deprecated.
|
void |
setUtf8Output(boolean utf8Output)
Deprecated.
Used by the template to decide whether to use UTF-8 optimizations.
|
void |
setXmlEscape(boolean xmlEscape)
Deprecated.
Sets whether this context should xml-escape returned values
|
public Object put(String key, Object value)
Context
public Object get(String key)
Context
Returns a value by looking it up in the primary, and thereafter in secondary sources.
If xml escaping is on and this is a string, xml attribute escaping is done
public Object remove(Object key)
Context
public Collection<? extends Object> getKeys()
public void setBoldOpenTag(String boldOpenTag)
setBoldOpenTag
in class Context
public void setBoldCloseTag(String boldCloseTag)
setBoldCloseTag
in class Context
public void setSeparatorTag(String separatorTag)
setSeparatorTag
in class Context
public String getBoldOpenTag()
getBoldOpenTag
in class Context
public String getBoldCloseTag()
getBoldCloseTag
in class Context
public String getSeparatorTag()
getSeparatorTag
in class Context
public boolean isUtf8Output()
Context
isUtf8Output
in class Context
public void setUtf8Output(boolean utf8Output)
Context
setUtf8Output
in class Context
utf8Output
- whether the output encoding is UTF-8public void setXmlEscape(boolean xmlEscape)
Context
setXmlEscape
in class Context
public boolean getXmlEscape()
Context
getXmlEscape
in class Context
protected Object normalizeValue(Object value)
normalizeValue
in class Context
Copyright © 2018. All rights reserved.