org.formaria.editor.data.pojo
Interface PropertiesAccessor

All Known Implementing Classes:
PropertiesRetriever

public interface PropertiesAccessor

Copyright (c) Formaria Ltd., 2001-2007, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.


Method Summary
 boolean containsProperty(PojoModelVis model, java.lang.String property)
          Indicates whether the property of the given model has been stored
 java.lang.Object getPropertyValue(PojoModelVis model, java.lang.String property)
          Retrieves the value of the given property for the given model node
 void removeProperty(PojoModelVis model, java.lang.String property)
          Removes the given property
 void setPropertyValue(PojoModelVis model, java.lang.String property, java.lang.Object value)
          Saves the given property value
 

Method Detail

getPropertyValue

java.lang.Object getPropertyValue(PojoModelVis model,
                                  java.lang.String property)
Retrieves the value of the given property for the given model node

Parameters:
model - model which property is to be returned
property - property to be returned
Returns:
value of the property

setPropertyValue

void setPropertyValue(PojoModelVis model,
                      java.lang.String property,
                      java.lang.Object value)
Saves the given property value

Parameters:
model - model which property is to be saved
property - the name of the property to be saved
value - value to be saved

removeProperty

void removeProperty(PojoModelVis model,
                    java.lang.String property)
Removes the given property

Parameters:
model - model whose property is to be removed
property - the name of the property

containsProperty

boolean containsProperty(PojoModelVis model,
                         java.lang.String property)
Indicates whether the property of the given model has been stored

Parameters:
model - the model which property is to be queried
Returns:
true if the property value has been set, false otherwise