org.vraptor.reflection
Class JPathExecutor

java.lang.Object
  extended by org.vraptor.reflection.JPathExecutor

public class JPathExecutor
extends Object

JPath setter execution for a specific logiccontext.

Author:
Guilherme Silveira

Constructor Summary
JPathExecutor(ConverterManager converters, LogicRequest logicRequest, Object[] methodParams, Object component)
           
 
Method Summary
 void set(String[] path, String completeValue, String[] arrayValue, ReadParameter read)
          Tries to set some property in the current object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPathExecutor

public JPathExecutor(ConverterManager converters,
                     LogicRequest logicRequest,
                     Object[] methodParams,
                     Object component)
Method Detail

set

public void set(String[] path,
                String completeValue,
                String[] arrayValue,
                ReadParameter read)
         throws SettingException,
                ConversionException
Tries to set some property in the current object. It uses the path array to walk in the object graph, the matching field is called field and the value is either completeValue or arrayValue

Parameters:
object - the object to set the property
path - the path to walk
completeValue - the completeValue
arrayValue - the array value
field - the field to use
Throws:
SettingException - some exception ocurred while trying to set a value
ConversionException - some convesion exception occurred


Copyright © 2004-2008 VRaptor. All Rights Reserved.