org.ldaptive.props
Class SimplePropertyInvoker

java.lang.Object
  extended by org.ldaptive.props.AbstractPropertyInvoker
      extended by org.ldaptive.props.SimplePropertyInvoker
All Implemented Interfaces:
PropertyInvoker

public class SimplePropertyInvoker
extends AbstractPropertyInvoker

Handles simple properties common to all objects.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
SimplePropertyInvoker(Class<?> c)
          Creates a new simple property invoker for the supplied class.
 
Method Summary
protected  Object convertValue(Class<?> type, String value)
          Converts the supplied string value into an Object of the supplied type.
 
Methods inherited from class org.ldaptive.props.AbstractPropertyInvoker
convertSimpleType, createArrayEnumFromPropertyValue, createArrayTypeFromPropertyValue, createClass, createTypeFromPropertyValue, getEnum, getProperties, hasProperty, initialize, instantiateType, invokeMethod, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePropertyInvoker

public SimplePropertyInvoker(Class<?> c)
Creates a new simple property invoker for the supplied class.

Parameters:
c - class that has setter methods
Method Detail

convertValue

protected Object convertValue(Class<?> type,
                              String value)
Converts the supplied string value into an Object of the supplied type. If value cannot be converted it is returned as is.

Specified by:
convertValue in class AbstractPropertyInvoker
Parameters:
type - of object to convert value into
value - to parse
Returns:
object of the supplied type


Copyright © 2003-2017 Virginia Tech. All Rights Reserved.