public class Configuration extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_NESTING_LIMIT
Default nesting limit for processor.
|
static boolean |
DEFAULT_PROPAGATE_NESTING_EXCEPTION
By default the processor don't throw an exception if nesting limit exceeded.
|
| Constructor and Description |
|---|
Configuration()
Create the configuration
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNestingLimit()
Get nesting limit.
|
Map<String,CharSequence> |
getParams()
Get predefined parameters.
|
Template |
getPrefix()
Get prefix.
|
Scope |
getRootScope()
Get root scope
|
Template |
getSuffix()
Get suffix.
|
boolean |
isPropagateNestingException()
Get nesting exceeded behavior.
|
void |
setNestingLimit(int nestingLimit)
Set nesting limit.
|
void |
setParams(Map<String,CharSequence> params)
Set parameters to configuration.
|
void |
setPrefix(Template prefix)
Set prefix template.
|
void |
setPropagateNestingException(boolean propagateNestingException)
Define nesting exceeded behavior.
|
void |
setRootScope(Scope rootScope)
Set root scope for configuration.
|
void |
setSuffix(Template suffix)
Set suffix template.
|
public static final int DEFAULT_NESTING_LIMIT
public static final boolean DEFAULT_PROPAGATE_NESTING_EXCEPTION
public Scope getRootScope()
public void setRootScope(Scope rootScope)
rootScope - scopepublic Template getPrefix()
public void setPrefix(Template prefix)
prefix - template for prefixpublic Template getSuffix()
public void setSuffix(Template suffix)
suffix - template for suffixpublic Map<String,CharSequence> getParams()
public void setParams(Map<String,CharSequence> params)
params - the map with parameters. Key is a parameter name.public int getNestingLimit()
public void setNestingLimit(int nestingLimit)
nestingLimit - nesting limitpublic boolean isPropagateNestingException()
public void setPropagateNestingException(boolean propagateNestingException)
propagateNestingException - throw or not exceptionCopyright © 2016. All rights reserved.