Groovy Documentation

org.grails.plugin.platform.util
[Groovy] Class PropertyNamespacer

java.lang.Object
  org.grails.plugin.platform.util.PropertyNamespacer

class PropertyNamespacer

Provides read/write access to a Map, automatically namespacing all keys to provide a safe scoped access to an existing Map-like object


Field Summary
private java.lang.Object delegateMapLikeObject

private java.lang.String keyPrefix

private java.lang.String keySetMethodName

 
Constructor Summary
PropertyNamespacer(java.lang.String keyPrefix, java.lang.Object delegateMapLikeObject, java.lang.String keySetMethodName)

 
Method Summary
java.lang.Object get(java.lang.Object key)

java.util.Set keySet()

java.lang.Object propertyMissing(java.lang.String name, java.lang.Object value)

java.lang.Object propertyMissing(java.lang.String name)

java.lang.Object put(java.lang.Object key, java.lang.Object value)

java.util.Map toMap()

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

delegateMapLikeObject

private java.lang.Object delegateMapLikeObject


keyPrefix

private java.lang.String keyPrefix


keySetMethodName

private java.lang.String keySetMethodName


 
Constructor Detail

PropertyNamespacer

PropertyNamespacer(java.lang.String keyPrefix, java.lang.Object delegateMapLikeObject, java.lang.String keySetMethodName)


 
Method Detail

get

java.lang.Object get(java.lang.Object key)


keySet

java.util.Set keySet()


propertyMissing

java.lang.Object propertyMissing(java.lang.String name, java.lang.Object value)


propertyMissing

java.lang.Object propertyMissing(java.lang.String name)


put

java.lang.Object put(java.lang.Object key, java.lang.Object value)


toMap

java.util.Map toMap()


toString

java.lang.String toString()


 

Groovy Documentation