com.loribel.commons.business
Class GB_BOValueMap

java.lang.Object
  extended bycom.loribel.commons.business.GB_BOValueAbstract
      extended bycom.loribel.commons.business.GB_BOValueMap
All Implemented Interfaces:
GB_MyPropertyOwner, GB_SimpleBOValue, GB_SimpleBOValueSet, GB_ValuesMapOwnerSet

public class GB_BOValueMap
extends GB_BOValueAbstract
implements GB_ValuesMapOwnerSet

Default implementation of GB_SimpleBOValue for map values.

Author:
Gregory Borelli

Field Summary
 
Fields inherited from class com.loribel.commons.business.GB_BOValueAbstract
businessObject, property
 
Constructor Summary
GB_BOValueMap(GB_SimpleBusinessObjectSet a_businessObject, GB_BOProperty a_property)
          Constructor.
GB_BOValueMap(GB_SimpleBusinessObjectSet a_businessObject, java.lang.String a_propertyName)
          Constructor.
 
Method Summary
protected  void checkWithProperty()
           
 java.lang.Object getValue()
          Returns the value(s) of a property into a Map Return a copy of the map of values.
protected  java.util.Map getValueMap()
          Get The map of values.
 void putValueItem(java.lang.String a_name, java.lang.Object a_valueItem)
          Add a value.
 void removeAllValueItems()
          Remove all the value items from the list of values.
 void removeValueItem(java.lang.String a_name)
          Remove a Value.
 void setValue(java.lang.Object a_value)
          Set the value.
 
Methods inherited from class com.loribel.commons.business.GB_BOValueAbstract
addMyPropertyChangeListener, addMyPropertyChangeListener, fireMyPropertyChange, getBusinessObject, getProperty, getPropertyName, getType, isBusinessObject, isMultiValue, removeMyPropertyChangeListener, removeMyPropertyChangeListener, setBusinessObject, setProperty, setProperty, toString, updateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GB_BOValueMap

public GB_BOValueMap(GB_SimpleBusinessObjectSet a_businessObject,
                     GB_BOProperty a_property)
Constructor.


GB_BOValueMap

public GB_BOValueMap(GB_SimpleBusinessObjectSet a_businessObject,
                     java.lang.String a_propertyName)
Constructor.

Method Detail

checkWithProperty

protected void checkWithProperty()
Specified by:
checkWithProperty in class GB_BOValueAbstract

getValue

public java.lang.Object getValue()
Returns the value(s) of a property into a Map Return a copy of the map of values. Modification of the return does'nt affect the contains of this object. To modify the values of this object, use addValue, removeValue, ...

Specified by:
getValue in interface GB_SimpleBOValue
Returns:
Object

getValueMap

protected java.util.Map getValueMap()
Get The map of values.


putValueItem

public void putValueItem(java.lang.String a_name,
                         java.lang.Object a_valueItem)
Add a value.

Specified by:
putValueItem in interface GB_ValuesMapOwnerSet
Parameters:
a_valueItem - Object -
Returns:
boolean

removeAllValueItems

public void removeAllValueItems()
Description copied from interface: GB_ValuesMapOwnerSet
Remove all the value items from the list of values.

Specified by:
removeAllValueItems in interface GB_ValuesMapOwnerSet

removeValueItem

public void removeValueItem(java.lang.String a_name)
Remove a Value.

Specified by:
removeValueItem in interface GB_ValuesMapOwnerSet
Returns:
boolean

setValue

public void setValue(java.lang.Object a_value)
Set the value.

Parameters:
a_value - must be a Map.


Copyright © 2002-2007 Gregory Borelli [Loribel]. All Rights Reserved.