Package org.apache.any23.validator
Class XMLValidationReportSerializer
- java.lang.Object
-
- org.apache.any23.validator.XMLValidationReportSerializer
-
- All Implemented Interfaces:
ValidationReportSerializer
public class XMLValidationReportSerializer extends Object implements ValidationReportSerializer
Default implementation ofValidationReportSerializerfor XML.- Author:
- Michele Mostarda (mostarda@fbk.eu)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceXMLValidationReportSerializer.NodeNameAllows to specify a custom node name.
-
Constructor Summary
Constructors Constructor Description XMLValidationReportSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(ValidationReport vr, OutputStream os)Serializes the validation report on the given output stream.voidserializeGetterValue(Object o, Method m, PrintStream ps)
-
-
-
Method Detail
-
serialize
public void serialize(ValidationReport vr, OutputStream os) throws SerializationException
Description copied from interface:ValidationReportSerializerSerializes the validation report on the given output stream.- Specified by:
serializein interfaceValidationReportSerializer- Parameters:
vr- the validation report to be serialized.os- the output stream used to produce the serialization.- Throws:
SerializationException- if there is an error serializing data
-
serializeGetterValue
public void serializeGetterValue(Object o, Method m, PrintStream ps) throws SerializationException
- Throws:
SerializationException
-
-