groovy.util
Class Expando

java.lang.Object
  extended bygroovy.lang.GroovyObjectSupport
      extended bygroovy.util.Expando
All Implemented Interfaces:
GroovyObject

public class Expando
extends GroovyObjectSupport

Represents a dynamically expandable bean.

Version:
$Revision: 1.3 $
Author:
James Strachan

Field Summary
private  java.util.Map expandoProperties
           
 
Fields inherited from class groovy.lang.GroovyObjectSupport
 
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.util.List getProperties()
           
 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 groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expandoProperties

private java.util.Map expandoProperties
Constructor Detail

Expando

public Expando()

Expando

public Expando(java.util.Map expandoProperties)
Method Detail

getExpandoProperties

public java.util.Map getExpandoProperties()
Returns:
the dynamically expanded properties

getProperties

public java.util.List getProperties()

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-2005 The Codehaus. All Rights Reserved.