org.apache.commons.jelly.tags.ant
Class JellyPropsHandler

java.lang.Object
  extended byorg.apache.commons.jelly.tags.ant.DefaultPropsHandler
      extended byorg.apache.commons.jelly.tags.ant.JellyPropsHandler
All Implemented Interfaces:
PropsHandler

public class JellyPropsHandler
extends 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.jelly.tags.ant.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.jelly.tags.ant.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.

Specified by:
setProperty in interface PropsHandler
Overrides:
setProperty in class DefaultPropsHandler
Parameters:
name - The property name.
value - The property value.
See Also:
PropsHandler.setProperty(String, String)

getProperty

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

Specified by:
getProperty in interface PropsHandler
Overrides:
getProperty in class DefaultPropsHandler
Parameters:
name - The property name.
Returns:
The property value.
See Also:
PropsHandler.getProperty(String)

getProperties

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

Specified by:
getProperties in interface PropsHandler
Overrides:
getProperties in class DefaultPropsHandler
Returns:
A Hashtable of all properties.
See Also:
PropsHandler.getProperties()


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.