public class IlrBRLDefaultParserInput extends java.lang.Object implements IlrBRLMutableParserInput
IlrBRLDefaultParserInput is the default implementation of
IlrBRLParserInput and IlrBRLMutableParserInput.
This class provides a basic implementation of the contract specified by
these two interfaces, it can be used to parse a text fragment.| Constructor and Description |
|---|
IlrBRLDefaultParserInput(java.lang.String input,
java.util.Locale locale,
IlrBRLDefinition definition)
Creates a parser input for the specific text input, locale and BRL definition.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set |
getCategoryFilter()
Returns the category filter associated to this input.
|
java.lang.String |
getDefinition()
Returns the text to be parsed.
|
IlrBRLDefinition |
getLanguageDefinition()
Returns the business rule language definition that will be used to
parse the input.
|
java.util.Locale |
getLocale()
Returns the input locale.
|
void |
setCategoryFilter(java.util.Set categoryFilter)
Assign a category filter to the input.
|
void |
setDefinition(java.lang.String text)
Sets the new input text for the parser.
|
void |
setLanguageDefinition(IlrBRLDefinition definition)
Set the business rule language definition that will be used to
parse the input.
|
void |
setLocale(java.util.Locale locale)
Sets the locale for the input.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRootNamepublic IlrBRLDefaultParserInput(java.lang.String input,
java.util.Locale locale,
IlrBRLDefinition definition)
input.input - The text input.locale - The locale of the input.definition - The business rule language definition.public java.lang.String getDefinition()
IlrBRLParserInputgetDefinition in interface IlrBRLParserInputString object containing the text to be parsed.public java.util.Locale getLocale()
IlrBRLParserInputgetLocale in interface IlrBRLParserInputpublic IlrBRLDefinition getLanguageDefinition()
IlrBRLParserInputgetLanguageDefinition in interface IlrBRLParserInputBRLDefinition object representing the business rule
language definition for the appropriate locale.public java.util.Set getCategoryFilter()
getCategoryFilter in interface IlrBRLParserInputpublic void setDefinition(java.lang.String text)
IlrBRLMutableParserInputsetDefinition in interface IlrBRLMutableParserInputtext - The new input text.public void setLocale(java.util.Locale locale)
IlrBRLMutableParserInputsetLocale in interface IlrBRLMutableParserInputlocale - The new locale for this input.public void setLanguageDefinition(IlrBRLDefinition definition)
IlrBRLMutableParserInputsetLanguageDefinition in interface IlrBRLMutableParserInputdefinition - The new rule language definition.public void setCategoryFilter(java.util.Set categoryFilter)
setCategoryFilter in interface IlrBRLMutableParserInputcategoryFilter - The new category filter. Set to null
to reset the default category any.© Copyright IBM Corp. 1987, 2017