org.commonreality.modalities
Class DefaultPropertyHandler

java.lang.Object
  extended by org.commonreality.modalities.DefaultPropertyHandler
All Implemented Interfaces:
IPropertyHandler
Direct Known Subclasses:
DefaultAuralPropertyHandler, DefaultVisualPropertyHandler

public class DefaultPropertyHandler
extends java.lang.Object
implements IPropertyHandler


Field Summary
static org.apache.commons.logging.Log LOGGER
          logger definition
 
Constructor Summary
DefaultPropertyHandler()
           
 
Method Summary
 boolean getBoolean(java.lang.String propertyName, ISimulationObject realObject)
           
 double getDouble(java.lang.String propertyName, ISimulationObject realObject)
           
 double[] getDoubles(java.lang.String propertyName, ISimulationObject realObject)
           
 int getInt(java.lang.String propertyName, ISimulationObject realObject)
           
 int[] getInts(java.lang.String propertyName, ISimulationObject realObject)
           
 java.lang.String getString(java.lang.String propertyName, ISimulationObject realObject)
           
 java.lang.String[] getStrings(java.lang.String propertyName, ISimulationObject realObject)
           
 boolean hasProperty(java.lang.String name, ISimulationObject object)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
logger definition

Constructor Detail

DefaultPropertyHandler

public DefaultPropertyHandler()
Method Detail

hasProperty

public boolean hasProperty(java.lang.String name,
                           ISimulationObject object)
Specified by:
hasProperty in interface IPropertyHandler

getDouble

public double getDouble(java.lang.String propertyName,
                        ISimulationObject realObject)
                 throws UnknownPropertyNameException
Specified by:
getDouble in interface IPropertyHandler
Throws:
UnknownPropertyNameException

getDoubles

public double[] getDoubles(java.lang.String propertyName,
                           ISimulationObject realObject)
                    throws UnknownPropertyNameException
Specified by:
getDoubles in interface IPropertyHandler
Throws:
UnknownPropertyNameException

getInt

public int getInt(java.lang.String propertyName,
                  ISimulationObject realObject)
           throws UnknownPropertyNameException
Specified by:
getInt in interface IPropertyHandler
Throws:
UnknownPropertyNameException

getInts

public int[] getInts(java.lang.String propertyName,
                     ISimulationObject realObject)
              throws UnknownPropertyNameException
Specified by:
getInts in interface IPropertyHandler
Throws:
UnknownPropertyNameException

getString

public java.lang.String getString(java.lang.String propertyName,
                                  ISimulationObject realObject)
                           throws UnknownPropertyNameException
Specified by:
getString in interface IPropertyHandler
Throws:
UnknownPropertyNameException

getStrings

public java.lang.String[] getStrings(java.lang.String propertyName,
                                     ISimulationObject realObject)
                              throws UnknownPropertyNameException
Specified by:
getStrings in interface IPropertyHandler
Throws:
UnknownPropertyNameException

getBoolean

public boolean getBoolean(java.lang.String propertyName,
                          ISimulationObject realObject)
                   throws UnknownPropertyNameException
Specified by:
getBoolean in interface IPropertyHandler
Throws:
UnknownPropertyNameException