org.sovt
Interface Inspector

All Known Implementing Classes:
GroupInspector, ParserInspector, PropertySelector

public interface Inspector

This is interface for object inspection. It is a mixture of Transformer and Validator. Inspector is able to perform transformation and validation.

Implementation of this interface must be thread-safe.

Implementation should be cloneable if referred with a "ref=<id$gt;" in a XML definition file.

Author:
Vilmantas Baranauskas (vilmantas_baranauskas@yahoo.com)

Method Summary
 java.lang.Object clone()
          Clone of itself.
 java.lang.Object inspect(java.lang.Object object, ValidationResult result)
          Performs transformation and validation of given object.
 

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone of itself.

Returns:
clone of itself.
Throws:
java.lang.CloneNotSupportedException

inspect

public java.lang.Object inspect(java.lang.Object object,
                                ValidationResult result)
Performs transformation and validation of given object.

Parameters:
object - Object to inspect.
result - Container for validation results.
Returns:
Transformed or completely new object which is also validated.


Copyright © 2003-2005 . All Rights Reserved.