thinkmap.expression.runtime
Class PropertyHandler

java.lang.Object
  extended by thinkmap.expression.runtime.PropertyHandler
All Implemented Interfaces:
IPropertyHandler
Direct Known Subclasses:
EntityType

public class PropertyHandler
extends Object
implements IPropertyHandler

Concrete implementation of the IPropertyHandler interface.

Version:
$Revision: 1.9 $

Field Summary
protected  IPropertyHandler parent
           
 
Constructor Summary
PropertyHandler()
          Construct a PropertyHandler without a parent.
 
Method Summary
 void copyTo(IPropertyHandler ph)
          Copy the local properties of this PropertyHandler to another property handler.
 Object getLocalProperty(String sPropName)
           
 Enumeration getLocalPropertyNames()
          Returns an Enumeration of the names of all properties currently defined in this PropertyHandler.
 IPropertyHandler getNextPropertyHandler()
           
 Object getProperty(String sPropName)
          Returns the value of the property named by the sPropName argument.
 Enumeration getPropertyNames()
          Returns an Enumeration of the names of all properties currently defined in this PropertyHandler and all "parent" property handlers.
static void main(String[] args)
           
 void propertyUpdated(IPropertyHandler handler, String property)
           
 void removeProperty(String sPropName)
          Removes the named property from this IPropertyHandler
protected  void setCaching(boolean b)
           
 void setProperty(String sPropName, Object oValue)
          Sets the value of the property with the given name to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected IPropertyHandler parent
Constructor Detail

PropertyHandler

public PropertyHandler()
Construct a PropertyHandler without a parent.

Method Detail

main

public static void main(String[] args)

getNextPropertyHandler

public IPropertyHandler getNextPropertyHandler()

getProperty

public final Object getProperty(String sPropName)
Description copied from interface: IPropertyHandler
Returns the value of the property named by the sPropName argument.

Specified by:
getProperty in interface IPropertyHandler
Parameters:
sPropName - the name of the property whose value is to be returned
Returns:
the value of the property named by the sPropName argument

getLocalProperty

public Object getLocalProperty(String sPropName)

setProperty

public void setProperty(String sPropName,
                        Object oValue)
Description copied from interface: IPropertyHandler
Sets the value of the property with the given name to the given value. If the property does not currently exist in this IPropertyHandler, it is added.

Specified by:
setProperty in interface IPropertyHandler
Parameters:
sPropName - the name of the property whose value is to be set
oValue - the value that the property will be set to

removeProperty

public void removeProperty(String sPropName)
Description copied from interface: IPropertyHandler
Removes the named property from this IPropertyHandler

Specified by:
removeProperty in interface IPropertyHandler
Parameters:
sPropName - the name of the property to be removed

getLocalPropertyNames

public Enumeration getLocalPropertyNames()
Returns an Enumeration of the names of all properties currently defined in this PropertyHandler. It does not include names found in the parent. This is an Enumeration of Strings.

Returns:
an Enumeration of the names of all properties currently defined in this PropertyHandler. This is an Enumeration of Strings.

getPropertyNames

public Enumeration getPropertyNames()
Description copied from interface: IPropertyHandler
Returns an Enumeration of the names of all properties currently defined in this PropertyHandler and all "parent" property handlers. This is an Enumeration of Strings. There may be duplicate names.

Specified by:
getPropertyNames in interface IPropertyHandler
Returns:
an Enumeration of the names of all properties currently defined in this PropertyHandler and all parent property handlers. This is an Enumeration of Strings.

propertyUpdated

public void propertyUpdated(IPropertyHandler handler,
                            String property)

copyTo

public final void copyTo(IPropertyHandler ph)
Copy the local properties of this PropertyHandler to another property handler.

Parameters:
ph - the PropertyHandler to write to.

setCaching

protected void setCaching(boolean b)


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.