public class DocumentRendererContext
extends java.lang.Object
HashMap
for data storage.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
context
Storage for key/value pairs.
|
private java.lang.String |
inputEncoding |
Constructor and Description |
---|
DocumentRendererContext()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key)
Indicates whether the specified key is in the context.
|
java.lang.Object |
get(java.lang.String key)
Gets the value corresponding to the provided key from the context.
|
java.lang.String |
getInputEncoding() |
java.lang.Object[] |
getKeys()
Get all the keys for the values in the context
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Adds a name/value pair to the context.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the value associated with the specified key from the context.
|
void |
setInputEncoding(java.lang.String inputEncoding) |
private java.lang.String inputEncoding
private final java.util.Map<java.lang.String,java.lang.Object> context
public java.lang.String getInputEncoding()
public void setInputEncoding(java.lang.String inputEncoding)
inputEncoding
- new input encoding value when processing files.public java.lang.Object put(java.lang.String key, java.lang.Object value)
key
- The name to key the provided value with.value
- The corresponding value.public java.lang.Object get(java.lang.String key)
key
- The name of the desired value.public boolean containsKey(java.lang.Object key)
key
- The key to look for.public java.lang.Object[] getKeys()
public java.lang.Object remove(java.lang.Object key)
key
- The name of the value to remove.null
if unmapped.