public interface DomInspectionResultProcessor<E,M> extends InspectionResultProcessor<M>
DomInspectionResultProcessor
is an optional interface that enables an
optimization. Like most optimizations it unfortunately adds some complexity. The basic idea is
that, whilst XML is a great lowest-common-denominator for the
InspectionResultProcessor
interface (perfect for platform-neutral implementations)
serializing to and from XML strings is expensive.
Most InspectionResultProcessors maintain their inspection results internally in a DOM. This interface allows them to expose that DOM directly, rather than serializing it to a String, whereupon the Metawidget must typically deserialize it back again.
Modifier and Type | Method and Description |
---|---|
E |
processInspectionResultAsDom(E inspectionResult,
M metawidget,
Object toInspect,
String type,
String... names)
Optimized verison of
processInspectionResult that avoids DOM
serialization/deserialization. |
processInspectionResult
E processInspectionResultAsDom(E inspectionResult, M metawidget, Object toInspect, String type, String... names)
processInspectionResult
that avoids DOM
serialization/deserialization.inspectionResult
- the inspection result to process. Never nullCopyright © 2015. All Rights Reserved.