Class TextLineParser.TextLineParseResult
- java.lang.Object
-
- de.iip_ecosphere.platform.connectors.parser.ArrayParseResult
-
- de.iip_ecosphere.platform.connectors.parser.TextLineParser.TextLineParseResult
-
- All Implemented Interfaces:
InputParser.ParseResult<java.lang.String>
- Enclosing class:
- TextLineParser
public static class TextLineParser.TextLineParseResult extends ArrayParseResult
Own parser result type to hide implementing class for future modifications.- Author:
- Holger Eichelberger, SSE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextLineParseResult(java.lang.String[] data)Creates an array-based parse result.protectedTextLineParseResult(java.lang.String[] data, int baseIndex, ArrayParseResult parent)Creates an array-based parse result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextLineParser.TextLineParseResultstepInto(java.lang.String name, int index)Sets the hierarchical substructure denoted bynameas current scope for further resolution.TextLineParser.TextLineParseResultstepOut()Steps out of the actual context set byInputParser.ParseResult.stepInto(String, int).-
Methods inherited from class de.iip_ecosphere.platform.connectors.parser.ArrayParseResult
getArraySize, getData, getData, getData, getDataCount, getFieldName, getLocalData, getLocalData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.iip_ecosphere.platform.connectors.parser.InputParser.ParseResult
getFieldName
-
-
-
-
Constructor Detail
-
TextLineParseResult
protected TextLineParseResult(java.lang.String[] data)
Creates an array-based parse result.- Parameters:
data- the parsed data
-
TextLineParseResult
protected TextLineParseResult(java.lang.String[] data, int baseIndex, ArrayParseResult parent)Creates an array-based parse result.- Parameters:
data- the parsed databaseIndex- the base index set as context root, {code 0} for top-levelparent- the parent result representing the context where a#stepInto(String, int)happened, null for the top context
-
-
Method Detail
-
stepInto
public TextLineParser.TextLineParseResult stepInto(java.lang.String name, int index)
Description copied from interface:InputParser.ParseResultSets the hierarchical substructure denoted bynameas current scope for further resolution. When overriding, declare the actual type as result type.- Specified by:
stepIntoin interfaceInputParser.ParseResult<java.lang.String>- Overrides:
stepIntoin classArrayParseResult- Parameters:
name- non-hierarchical name of contained substructureindex- the 0-based indexes to the field, must be less thanInputParser.ParseResult.getDataCount()- Returns:
- the sub parse-result taking
nameas context, use#stepOut()to leave that context
-
stepOut
public TextLineParser.TextLineParseResult stepOut()
Description copied from interface:InputParser.ParseResultSteps out of the actual context set byInputParser.ParseResult.stepInto(String, int). When overriding, declare the actual type as result type.- Specified by:
stepOutin interfaceInputParser.ParseResult<java.lang.String>- Overrides:
stepOutin classArrayParseResult- Returns:
- the actual (parent) context, may be null if this step out was illegal in a non-nested context
-
-