Class PropertyMapProperty
- java.lang.Object
-
- net.infonode.properties.util.AbstractProperty
-
- net.infonode.properties.util.ValueHandlerProperty
-
- net.infonode.properties.types.PropertyGroupProperty
-
- net.infonode.properties.propertymap.PropertyMapProperty
-
- All Implemented Interfaces:
Property
public class PropertyMapProperty extends PropertyGroupProperty
An immutable property which hasPropertyMap
's as values.
-
-
Constructor Summary
Constructors Constructor Description PropertyMapProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyMapGroup propertyGroup)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyMap
get(java.lang.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.java.lang.Object
getValue(java.lang.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
-
-
-
-
Constructor Detail
-
PropertyMapProperty
public PropertyMapProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyMapGroup propertyGroup)
Constructor.- Parameters:
group
- the property groupname
- the property namedescription
- the property descriptionpropertyGroup
- 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 interfaceProperty
- Overrides:
isMutable
in classAbstractProperty
- Returns:
- true if this property is mutable
-
getValue
public java.lang.Object getValue(java.lang.Object object)
Description copied from interface:Property
Returns the value of this property in a value container.- Specified by:
getValue
in interfaceProperty
- Overrides:
getValue
in classValueHandlerProperty
- Parameters:
object
- the object containing the value- Returns:
- the value of this property in an valueContainer, null if the container doesn't contain the value
-
get
public PropertyMap get(java.lang.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
-
-