public class LocalizationDirectives extends Object
| Constructor and Description |
|---|
LocalizationDirectives()
Creates a new LocalizationDirectives object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocalizable(boolean popSingle)
Indicates if the current context is localizable or not.
|
boolean |
isWithinScope()
Indicates if the current context is inside the scope of a localization directive.
|
boolean |
localizeOutside()
Indicates if text outside the scope of localization directives should be
extracted or not.
|
void |
process(String content)
Evaluates a string that contain localization directives and update the object
state based on the given instructions.
|
void |
reset()
Resets this localization directives processor.
|
void |
setOptions(boolean useLD,
boolean localizeOutside)
Sets the options for this localization directives processor.
|
boolean |
useLD()
Indicates if localization directives are to be used or not.
|
public LocalizationDirectives()
public void reset()
public boolean useLD()
public boolean localizeOutside()
public boolean isWithinScope()
public boolean isLocalizable(boolean popSingle)
popSingle - Indicates if non-group directives should be popped
out of the context when calling this method.public void setOptions(boolean useLD,
boolean localizeOutside)
useLD - Indicates if localization directives are to be used or not.localizeOutside - Indicates if text outside the scope of localization
directives should be extracted or not.public void process(String content)
content - The text to process.Copyright © 2021. All rights reserved.