org.apache.avalon.excalibur.property
Class PropertyUtil
java.lang.Object
|
+--org.apache.avalon.excalibur.property.PropertyUtil
- public final class PropertyUtil
- extends java.lang.Object
This provides utility methods for properties.
- Since:
- 4.0
- Version:
- CVS $Revision: 1.5 $ $Date: 2001/12/11 09:53:32 $
- Author:
- Peter Donald
Method Summary |
static java.lang.Object |
recursiveResolveProperty(java.lang.String property,
org.apache.avalon.framework.context.Context context,
boolean ignoreUndefined)
Resolve a string property. |
static java.lang.Object |
resolveProperty(java.lang.String property,
org.apache.avalon.framework.context.Context context,
boolean ignoreUndefined)
Resolve a string property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resolveProperty
public static java.lang.Object resolveProperty(java.lang.String property,
org.apache.avalon.framework.context.Context context,
boolean ignoreUndefined)
throws PropertyException
- Resolve a string property. This evaluates all property
substitutions based on specified context.
- Parameters:
property
- the property to resolvecontext
- the context in which to resolve propertyignoreUndefined
- if false will throw an PropertyException if property is not found- Returns:
- the reolved property
- Throws:
PropertyException
- if an error occurs
recursiveResolveProperty
public static java.lang.Object recursiveResolveProperty(java.lang.String property,
org.apache.avalon.framework.context.Context context,
boolean ignoreUndefined)
throws PropertyException
- Resolve a string property. This recursively evaluates all property
substitutions based on specified context.
- Parameters:
property
- the property to resolvecontext
- the context in which to resolve propertyignoreUndefined
- if false will throw an PropertyException if property is not found- Returns:
- the reolved property
- Throws:
PropertyException
- if an error occurs
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.