org.kuali.rice.kew.engine.node
Class PropertiesUtil

java.lang.Object
  extended by org.kuali.rice.kew.engine.node.PropertiesUtil

public final class PropertiesUtil
extends Object

A utility class for reading properties from a document.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
static String readResource(InputStream stream)
           
static Object retrieveProperty(Property prop, PropertyScheme defaultScheme, RouteContext context)
          Resolves the specified name as an unqualified property
static Object retrieveProperty(Property prop, RouteContext context)
          Resolves the specified name as a qualified property
static Object retrieveProperty(String name, PropertyScheme defaultScheme, RouteContext context)
          Resolves the specified name as an unqualified property
static Object retrieveProperty(String name, RouteContext context)
          Resolves the specified name as a qualified property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readResource

public static String readResource(InputStream stream)
                           throws IOException
Throws:
IOException

retrieveProperty

public static Object retrieveProperty(String name,
                                      RouteContext context)
Resolves the specified name as a qualified property

Parameters:
name - the qualified property name
Returns:
value if found, null otherwise

retrieveProperty

public static Object retrieveProperty(String name,
                                      PropertyScheme defaultScheme,
                                      RouteContext context)
Resolves the specified name as an unqualified property

Parameters:
name - the potentially unqualified property name
defaultScheme - the default scheme to use if the property is unqualified
Returns:
value if found, null otherwise

retrieveProperty

public static Object retrieveProperty(Property prop,
                                      PropertyScheme defaultScheme,
                                      RouteContext context)
Resolves the specified name as an unqualified property

Parameters:
prop - the potentially unqualified property
defaultScheme - the default scheme to use if the property is unqualified
Returns:
value if found, null otherwise

retrieveProperty

public static Object retrieveProperty(Property prop,
                                      RouteContext context)
Resolves the specified name as a qualified property

Parameters:
prop - the qualified property
Returns:
value if found, null otherwise


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.