JAXBTYPE - internal JAXB typeT - Outside data type to be readpublic class JAXBVersatileReader<JAXBTYPE,T> extends Object implements IJAXBVersatileReader<T>
IJAXBVersatileReader| Constructor and Description |
|---|
JAXBVersatileReader(com.helger.jaxb.IJAXBReader<JAXBTYPE> aReader,
Function<JAXBTYPE,T> aMapper) |
| Modifier and Type | Method and Description |
|---|---|
T |
read(Node aNode)
Read a document from the specified DOM node.
|
T |
read(Source aSource)
Read a document from the specified source.
|
@Nullable public T read(@Nonnull Source aSource)
IJAXBVersatileReaderread in interface IJAXBVersatileReader<T>aSource - The source to read. May not be null.null in case reading fails.@Nullable public T read(@Nonnull Node aNode)
IJAXBVersatileReaderread in interface IJAXBVersatileReader<T>aNode - The DOM node to read. May not be null.null in case reading fails.Copyright © 2020 toop.eu. All rights reserved.