org.writersforge.catalan.process.properties
Class MapProperties

java.lang.Object
  extended byorg.writersforge.catalan.process.properties.BaseWorkProperties
      extended byorg.writersforge.catalan.process.properties.MapProperties
All Implemented Interfaces:
IWorkProperties

public class MapProperties
extends BaseWorkProperties

IWorkProperties which wraps a Map object.

Author:
jsheets

Constructor Summary
MapProperties(java.util.Map map)
          Creates a new instance of MapProperties.
 
Method Summary
 java.lang.Object getProperty(java.lang.String name)
          Retrieves the value of a named config property from the embedded Map.
 java.lang.String[] getPropertyNames()
          Retrieves the names of all properties currently set on this holder.
 
Methods inherited from class org.writersforge.catalan.process.properties.BaseWorkProperties
asMap, asMap, getPropertyAsBoolean, getPropertyAsDatum, getPropertyAsMap, getPropertyAsNumber, getPropertyAsString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapProperties

public MapProperties(java.util.Map map)
              throws WorkPropertyException
Creates a new instance of MapProperties.

Parameters:
map - Map object to wrap
Throws:
WorkPropertyException - if the Map contains any non-String keys
Method Detail

getPropertyNames

public java.lang.String[] getPropertyNames()
Retrieves the names of all properties currently set on this holder.

Returns:
array of all property names

getProperty

public java.lang.Object getProperty(java.lang.String name)
Retrieves the value of a named config property from the embedded Map.

Parameters:
name - property name
Returns:
the value of the property, or null if not set