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<String>
- Enclosing class:
TextLineParser
Own parser result type to hide implementing class for future modifications.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextLineParseResult(String[] data) Creates an array-based parse result.protectedTextLineParseResult(String[] data, int baseIndex, ArrayParseResult parent) Creates an array-based parse result. -
Method Summary
Modifier and TypeMethodDescriptionSets the hierarchical substructure denoted bynameas current scope for further resolution.stepOut()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, getLocalDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.connectors.parser.InputParser.ParseResult
getFieldName
-
Constructor Details
-
TextLineParseResult
Creates an array-based parse result.- Parameters:
data- the parsed data
-
TextLineParseResult
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 Details
-
stepInto
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<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
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<String>- Overrides:
stepOutin classArrayParseResult- Returns:
- the actual (parent) context, may be null if this step out was illegal in a non-nested context
-