Class JavaBeanReader
java.lang.Object
com.northconcepts.datapipeline.core.DataObject
com.northconcepts.datapipeline.core.Endpoint
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.xml.XmlReader
com.northconcepts.datapipeline.javabean.JavaBeanReader
Obtains records from an object using bean introspection and reflection. See the Read from Java beans example.
JavaBeanReader's XmlReader.addField(String, String), XmlReader.addField(String, String, boolean), and XmlReader.addRecordBreak(String)
methods use a subset of the XPath 1.0 location paths notation to identify field
values and demarcate records.
Axis Specifiers
Axis Abbreviated Syntax Supported Examples ancestor ancestor-or-self attribute @ @lang or attribute::lang child yes title or child::title descendant yes descendant-or-self // yes //book or /descendant-or-self::book/ following following-sibling namespace parent .. preceding preceding-sibling self . yes
Node Tests
- comment(), text(), processing-instruction(), and node() are not supported
Predicates
- None supported
Functions and Operators
- None supported
-
Nested Class Summary
Nested classes/interfaces inherited from class com.northconcepts.datapipeline.xml.XmlReader
XmlReader.DuplicateFieldPolicyNested classes/interfaces inherited from class com.northconcepts.datapipeline.core.DataEndpoint
DataEndpoint.State -
Field Summary
Fields inherited from class com.northconcepts.datapipeline.xml.XmlReader
currentRecord, fields, file, hasCascadingFields, reader, recordBreaksFields inherited from class com.northconcepts.datapipeline.core.DataReader
fieldLineage, recordLineageFields inherited from class com.northconcepts.datapipeline.core.DataEndpoint
lastRecord, PRODUCT, PRODUCT_VERSION, VENDOR, XML_INPUT_FACTORY_KEYFields inherited from class com.northconcepts.datapipeline.core.Endpoint
BUFFER_SIZE, captureElapsedTime, DEFAULT_READ_BUFFER_SIZEFields inherited from class com.northconcepts.datapipeline.core.DataObject
id, log, name, TIMESTAMP_FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionJavaBeanReader(String name, Object javabean) Creates a reader over the given object graph, usingnameas the root element name in location paths. -
Method Summary
Methods inherited from class com.northconcepts.datapipeline.xml.XmlReader
addExceptionProperties, addField, addField, addField, addField, addFieldValue, addLineage, addRecordBreak, close, createRecord, expandAndPushRecords, expandListFieldsAsFields, getDuplicateFieldPolicy, getFieldValues, getXmlNodeReader, isAddTextToParent, isAutoCloseReader, isDebug, isIgnoreNamespaces, isLineageSupported, isRecordBreak, open, readImpl, saveAncestorAttributeFieldValues, saveAncestorNodeFieldValues, saveFieldValues, setAddTextToParent, setAutoCloseReader, setDebug, setDescription, setDuplicateFieldPolicy, setIgnoreNamespaces, setRecordField, setSaveLineageMethods inherited from class com.northconcepts.datapipeline.core.DataReader
available, getBufferSize, getNestedEndpoint, getNestedReader, getReader, getRootEndpoint, getRootReader, isExhausted, isSaveLineage, peek, pop, push, read, skipMethods inherited from class com.northconcepts.datapipeline.core.DataEndpoint
decrementRecordCount, enableJmx, getLastRecord, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, incrementRecordCount, isRecordCountBigInteger, resetRecordCount, toStringMethods inherited from class com.northconcepts.datapipeline.core.Endpoint
addElapsedtime, assertClosed, assertNotOpened, assertOpened, finalize, getClosedOn, getDescription, getElapsedTime, getElapsedTimeAsString, getOpenedOn, getOpenElapsedTime, getOpenElapsedTimeAsString, getSelfTime, getSelfTimeAsString, getState, isCaptureElapsedTime, isClosed, isOpen, setCaptureElapsedTime
-
Constructor Details
-
JavaBeanReader
Creates a reader over the given object graph, usingnameas the root element name in location paths.
-