org.shapelogic.util
Interface KeyValueParser

All Known Implementing Classes:
BeanUtilsParser

public interface KeyValueParser

Parse arguments and set them in an object.

Author:
Sami Badawi

Method Summary
 boolean parse(java.lang.Object bean, java.lang.String arg)
          Parse arguments and set in JavaBean.
 void setProperty(java.lang.Object bean, java.lang.String key, java.lang.Object value)
           
 

Method Detail

parse

boolean parse(java.lang.Object bean,
              java.lang.String arg)
Parse arguments and set in JavaBean.

Parameters:
bean - a JavaBean to set the parsed arguements in
arg - String argument to parse
Returns:
true if parsing was successful.

setProperty

void setProperty(java.lang.Object bean,
                 java.lang.String key,
                 java.lang.Object value)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.