org.sovt.impl
Class ParserInspector

java.lang.Object
  extended byorg.sovt.impl.ParserInspector
All Implemented Interfaces:
java.lang.Cloneable, Inspector

public class ParserInspector
extends java.lang.Object
implements Inspector, java.lang.Cloneable

This inspector may be used to parse objects from one class to different class. The implementation is based on Beanutils convertion framework.

Author:
Vilmantas Baranauskas (vilmantas_baranauskas@yahoo.com)

Constructor Summary
ParserInspector()
          Creates instance of ParserInspector.
 
Method Summary
 java.lang.Object clone()
          Plain super.clone().
 java.lang.String getDestinationClass()
           
 java.lang.Object inspect(java.lang.Object object, ValidationResult result)
          Performs transformation and validation of given object.
 void setDestinationClass(java.lang.String destinationClassName)
          Set desired class of parse outcome.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserInspector

public ParserInspector()
Creates instance of ParserInspector.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Plain super.clone().

Specified by:
clone in interface Inspector
Returns:
clone of itself.
Throws:
java.lang.CloneNotSupportedException - never.

inspect

public java.lang.Object inspect(java.lang.Object object,
                                ValidationResult result)
Description copied from interface: Inspector
Performs transformation and validation of given object.

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

getDestinationClass

public java.lang.String getDestinationClass()

setDestinationClass

public void setDestinationClass(java.lang.String destinationClassName)
Set desired class of parse outcome.

Parameters:
destinationClassName - name of desired class of parse outcome.


Copyright © 2003-2005 . All Rights Reserved.