net.infonode.properties.propertymap
Class PropertyMapProperty

java.lang.Object
  extended bynet.infonode.properties.util.AbstractProperty
      extended bynet.infonode.properties.util.ValueHandlerProperty
          extended bynet.infonode.properties.types.PropertyGroupProperty
              extended bynet.infonode.properties.propertymap.PropertyMapProperty
All Implemented Interfaces:
Property

public class PropertyMapProperty
extends PropertyGroupProperty

An immutable property which has PropertyMap's as values.

Version:
$Revision: 1.4 $

Constructor Summary
PropertyMapProperty(PropertyGroup group, String name, String description, PropertyMapGroup propertyGroup)
          Constructor.
 
Method Summary
 PropertyMap get(Object valueContainer)
          Return the property valueContainer value for this property in the value container.
 PropertyMapGroup getPropertyMapGroup()
          Returns the property group which property maps can be used as values for this property.
 Object getValue(Object object)
          Returns the value of this property in a value container.
 boolean isMutable()
          Returns true if this property is mutable.
 
Methods inherited from class net.infonode.properties.types.PropertyGroupProperty
getPropertyGroup
 
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty
removeValue, setValue, valueIsRemovable, valueIsSet
 
Methods inherited from class net.infonode.properties.util.AbstractProperty
canBeAssiged, getDescription, getGroup, getName, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyMapProperty

public PropertyMapProperty(PropertyGroup group,
                           String name,
                           String description,
                           PropertyMapGroup propertyGroup)
Constructor.

Parameters:
group - the property group
name - the property name
description - the property description
propertyGroup - property maps for this property group can be values for this property
Method Detail

getPropertyMapGroup

public PropertyMapGroup getPropertyMapGroup()
Returns the property group which property maps can be used as values for this property.

Returns:
the property group which property maps can be used as values for this property

isMutable

public boolean isMutable()
Description copied from interface: Property
Returns true if this property is mutable.

Specified by:
isMutable in interface Property
Overrides:
isMutable in class AbstractProperty

getValue

public Object getValue(Object object)
Description copied from interface: Property
Returns the value of this property in a value container.

Specified by:
getValue in interface Property
Overrides:
getValue in class ValueHandlerProperty

get

public PropertyMap get(Object valueContainer)
Return the property valueContainer value for this property in the value container.

Parameters:
valueContainer - the value container
Returns:
the property valueContainer value for this property in the value container


Copyright © 2007 NNL Technology AB. All Rights Reserved.