Package org.verapdf.processor
Class AbstractXmlHandler
java.lang.Object
org.verapdf.processor.AbstractBatchHandler
org.verapdf.processor.AbstractXmlHandler
- All Implemented Interfaces:
Closeable,AutoCloseable,BatchProcessingHandler
- Version:
- 0.1 Created 09 Nov 2016:00:32:49
- Author:
- Carl Wilson carlwilson AT github
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected XMLStreamWriterprotected static final StringFields inherited from class org.verapdf.processor.AbstractBatchHandler
BATCH_SUMMARY, BUILD_INFORMATION, FEATURES_REPORT, FIXER_REPORT, FIXER_RESULT, ITEM_DETAILS, JOB, JOBS, LOGS, PROCESSING_TIME, RELEASE_DETAILS, REPORT, TASK_RESULT, VALIDATION_RESULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttribute(String name, String value) voidclose()protected static voidendDoc(XMLStreamWriter writer) protected static voidnewLine(XMLStreamWriter writer) protected <T> voidserializeElement(T obj, String eleName, boolean format, boolean fragment) protected static voidstartDoc(XMLStreamWriter writer) protected static final VeraPDFExceptionwrapMarshallException(jakarta.xml.bind.JAXBException excep, String typePart) protected static VeraPDFExceptionprotected static VeraPDFExceptionwrapStreamException(XMLStreamException excep, String verbPart) Methods inherited from class org.verapdf.processor.AbstractBatchHandler
getDurations, handleResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.verapdf.processor.BatchProcessingHandler
handleBatchEnd, handleBatchStart
-
Field Details
-
strmExcpMessTmpl
- See Also:
-
unmarshalErrMessage
- See Also:
-
writingMessage
- See Also:
-
writer
-
-
Constructor Details
-
AbstractXmlHandler
- Throws:
VeraPDFException
-
-
Method Details
-
serializeElement
protected <T> void serializeElement(T obj, String eleName, boolean format, boolean fragment) throws VeraPDFException - Throws:
VeraPDFException
-
close
public void close() -
startDoc
- Throws:
XMLStreamException
-
endDoc
- Throws:
XMLStreamException
-
addAttribute
- Throws:
XMLStreamException
-
newLine
- Throws:
XMLStreamException
-
wrapStreamException
-
wrapStreamException
-
wrapMarshallException
protected static final VeraPDFException wrapMarshallException(jakarta.xml.bind.JAXBException excep, String typePart)
-