org.apache.maven.jelly
Class JellyPropsHandler

java.lang.Object
  extended byorg.apache.commons.grant.DefaultPropsHandler
      extended byorg.apache.maven.jelly.JellyPropsHandler
All Implemented Interfaces:
org.apache.commons.grant.PropsHandler

public class JellyPropsHandler
extends org.apache.commons.grant.DefaultPropsHandler

Implementation of a Commons Grant propsHandler to resolve through Jelly's context.

Author:
Bob McWhirter, Stephen Haberman

Field Summary
 
Fields inherited from class org.apache.commons.grant.DefaultPropsHandler
inheritedProperties, properties, userProperties
 
Constructor Summary
JellyPropsHandler(org.apache.commons.jelly.JellyContext context)
          Simple constructor with the context to be used.
 
Method Summary
 java.util.Hashtable getProperties()
          Retrieve all ant properties.
 java.lang.String getProperty(java.lang.String name)
          Retrieve an ant property.
 void setProperty(java.lang.String name, java.lang.String value)
          Set an ant property.
 
Methods inherited from class org.apache.commons.grant.DefaultPropsHandler
copyInheritedProperties, copyUserProperties, getInheritedProperties, getUserProperties, getUserProperty, setInheritedProperty, setJavaVersionProperty, setNewProperty, setPropertyIfUndefinedByUser, setSystemProperties, setUserProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JellyPropsHandler

public JellyPropsHandler(org.apache.commons.jelly.JellyContext context)
Simple constructor with the context to be used.

Parameters:
context - The context to be used.
Method Detail

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Set an ant property.

Parameters:
name - The property name.
value - The property value.

getProperty

public java.lang.String getProperty(java.lang.String name)
Retrieve an ant property.

Parameters:
name - The property name.
Returns:
The property value.

getProperties

public java.util.Hashtable getProperties()
Retrieve all ant properties.

Returns:
A Hashtable of all properties.


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.