public class ParseUtilities extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ParseUtilities.ParserResult |
Result class to store a parsing result.
|
| Modifier and Type | Field | Description |
|---|---|---|
static Pattern |
DYNAMIC_TEXT_BLOCK_REGEX |
| Constructor | Description |
|---|---|
ParseUtilities() |
| Modifier and Type | Method | Description |
|---|---|---|
static Map<String,Object> |
extractModelFromString(Map<String,Object> outerModel,
String modelString) |
Extracts model from String.
|
protected static ParseUtilities.ParserResult |
getNextDynamicText(String templateString) |
Get dynamic text block.
|
static Map<String,String> |
parseNamedAttributes(String attributeString) |
Pareses a string and creates a map containing attribute names and values.
|
static TemplateBlockBinder |
parseString(String templateString) |
|
static String |
readFromInputStream(InputStream stream) |
Reads a String from an InputStream.
|
static String |
readResourceToString(String resourcefileName) |
Reads a resource file into a String
|
static String |
trimContentString(String content) |
Trims content string.
|
public static final Pattern DYNAMIC_TEXT_BLOCK_REGEX
public static TemplateBlockBinder parseString(String templateString)
protected static ParseUtilities.ParserResult getNextDynamicText(String templateString)
templateString - the template string to parsepublic static String readResourceToString(String resourcefileName) throws IOException
resourcefileName - IOExceptionpublic static String readFromInputStream(InputStream stream) throws IOException
stream - the inputStream to useIOExceptionpublic static String trimContentString(String content)
content - public static Map<String,String> parseNamedAttributes(String attributeString)
attributeString - the string to parsepublic static Map<String,Object> extractModelFromString(Map<String,Object> outerModel, String modelString)
outerModel - the outerModelmodelString - the model String to parseCopyright © 2017–2020 Holisticon AG. All rights reserved.