Package org.vast.swe
Class DataTreeVisitor
java.lang.Object
org.vast.swe.DataTreeVisitor
- Direct Known Subclasses:
AbstractDataParser,AbstractDataWriter
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stack<DataTreeVisitor.Record>protected DataTreeVisitor.Recordprotected DataComponentprotected DataEncodingprotected DataHandlerprotected booleanprotected ErrorHandlerprotected booleanprotected BlockComponentprotected intprotected booleanprotected RawDataHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanprotected abstract voidprocessAtom(ScalarComponent component) Processes a scalar componentprotected abstract booleanprocessBlock(DataComponent component) Processes an aggregate componentvoidProcess the next scalar element in the streamvoidreset()Reset the parser before parsing a new tuplevoidsetDataComponents(DataComponent dataInfo) voidsetDataEncoding(DataEncoding dataEncoding) voidsetDataHandler(DataHandler handler) voidsetErrorHandler(ErrorHandler handler) voidsetParentArray(BlockComponent parentArray) voidsetRawDataHandler(RawDataHandler handler)
-
Field Details
-
dataHandler
-
rawHandler
-
errorHandler
-
parentArray
-
parentArrayIndex
protected int parentArrayIndex -
dataComponents
-
dataEncoding
-
componentStack
-
currentRecord
-
newBlock
protected boolean newBlock -
endOfArray
protected boolean endOfArray -
parsing
protected boolean parsing
-
-
Constructor Details
-
DataTreeVisitor
public DataTreeVisitor(boolean parsing)
-
-
Method Details
-
processAtom
Processes a scalar component- Parameters:
component-- Throws:
CDMExceptionIOException
-
processBlock
Processes an aggregate component- Parameters:
component-- Returns:
- true if children should be processed, false otherwise
- Throws:
CDMExceptionIOException
-
processNextElement
Process the next scalar element in the stream- Throws:
CDMExceptionIOException
-
endDataBlock
- Throws:
CDMExceptionIOException
-
isEndOfDataBlock
public boolean isEndOfDataBlock() -
reset
public void reset()Reset the parser before parsing a new tuple -
getDataHandler
-
getRawDataHandler
-
getErrorHandler
-
getDataComponents
-
getDataEncoding
-
setDataHandler
-
setRawDataHandler
-
setErrorHandler
-
setDataComponents
-
setDataEncoding
-
setParentArray
-