JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.lang
Class Properties

java.lang.Object
  extended by net.sf.japi.lang.Properties

public class Properties
extends Object

Class for working with Properties.

Author:
Christian Hujer

Method Summary
static String getPropertyAsString(Object object, String propertyName)
          Get a property of an object.
static void setPropertyFromString(Object object, String propertyName, String value)
          Set a property of an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyAsString

public static String getPropertyAsString(Object object,
                                         String propertyName)
Get a property of an object.

Parameters:
object -
propertyName -
See Also:
setPropertyFromString(Object, String, String)

setPropertyFromString

public static void setPropertyFromString(Object object,
                                         String propertyName,
                                         String value)
Set a property of an object.

Parameters:
object - Object to invoke setter on
propertyName - Name of the property to get setter for
value - Value to set as String (conversions from java.beans are used)
See Also:
getPropertyAsString(Object, String)

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright