groovy.util
Class Expando
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.Expando
- All Implemented Interfaces:
- GroovyObject
- public class Expando
- extends GroovyObjectSupport
Represents a dynamically expandable bean.
- Version:
- $Revision: 1.1 $
- Author:
- James Strachan
Constructor Summary |
Expando()
|
Expando(java.util.Map expandoProperties)
|
Method Summary |
protected java.util.Map |
createMap()
Factory method to create a new Map used to store the expando properties map |
java.util.Map |
getExpandoProperties()
|
java.lang.Object |
getProperty(java.lang.String property)
|
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Invokes the given method |
void |
setProperty(java.lang.String property,
java.lang.Object newValue)
Sets the given property to the new value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Expando
public Expando()
Expando
public Expando(java.util.Map expandoProperties)
getExpandoProperties
public java.util.Map getExpandoProperties()
- Returns:
- the dynamically expanded properties
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty
in interface GroovyObject
- Overrides:
getProperty
in class GroovyObjectSupport
setProperty
public void setProperty(java.lang.String property,
java.lang.Object newValue)
- Description copied from interface:
GroovyObject
- Sets the given property to the new value
- Specified by:
setProperty
in interface GroovyObject
- Overrides:
setProperty
in class GroovyObjectSupport
invokeMethod
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
- Description copied from interface:
GroovyObject
- Invokes the given method
- Specified by:
invokeMethod
in interface GroovyObject
- Overrides:
invokeMethod
in class GroovyObjectSupport
createMap
protected java.util.Map createMap()
- Factory method to create a new Map used to store the expando properties map
- Returns:
- a newly created Map implementation
Copyright © 2003-2004 The Codehaus. All Rights Reserved.