public class TCDLParser extends Object
A TCDLParserEventListener is used to notify interested party of start tag, end tag and element data events, so actual interpretation of tags can be handled elsewhere.
Constructor and Description |
---|
TCDLParser(Collection<String> namespaces)
Constructs the TCDLParser with the given (string based) list of namespaces to scan for.
|
TCDLParser(Collection<String> namespaces,
Map<String,String> variables)
Constructs the TCDLParser with the given (string based) list of namespaces to scan for.
|
Modifier and Type | Method and Description |
---|---|
void |
parse(TCDLParserEventListener dispatch,
String input)
Process the content of [input] and dispatches start/end tag, element data, start/end document events
to the TCDLParserEventListener [dispatch].
|
public TCDLParser(Collection<String> namespaces, Map<String,String> variables) throws TCDLTransformerException
namespaces
- A string based collection of namespace prefixes to scan for.variables
- The variables to replace while parsing TCDL.TCDLTransformerException
- When one of the namespaces contains illegal characters this may get thrown
or the variable regular expression is wrong.TCDLTransformerException
public TCDLParser(Collection<String> namespaces) throws TCDLTransformerException
namespaces
- A string based collection of namespace prefixes to scan for.TCDLTransformerException
- When one of the namespaces contains illegal characters this may get thrownTCDLTransformerException
public void parse(TCDLParserEventListener dispatch, String input) throws TCDLTransformerException
dispatch
- Recipient of the parser eventsinput
- TCDL enabled input to scan for tagsTCDLTransformerException
- if the processing of the content could not be
completed successfullyCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries