net.infonode.properties.types
Class DirectionProperty

java.lang.Object
  extended by net.infonode.properties.util.AbstractProperty
      extended by net.infonode.properties.util.ValueHandlerProperty
          extended by net.infonode.properties.types.EnumProperty
              extended by net.infonode.properties.types.DirectionProperty
All Implemented Interfaces:
Property

public class DirectionProperty
extends EnumProperty

A property of type Direction.

Version:
$Revision: 1.6 $
Author:
$Author: jesper $

Constructor Summary
DirectionProperty(PropertyGroup group, java.lang.String name, java.lang.String description, PropertyValueHandler valueHandler)
          Constructor.
 
Method Summary
 Direction get(java.lang.Object valueContainer)
          Returns the Direction value of this property in a value container.
 void set(java.lang.Object valueContainer, Direction direction)
          Sets the Direction value of this property in a value container.
 
Methods inherited from class net.infonode.properties.types.EnumProperty
getValidValues, getValue, setValue
 
Methods inherited from class net.infonode.properties.util.ValueHandlerProperty
removeValue, valueIsRemovable, valueIsSet
 
Methods inherited from class net.infonode.properties.util.AbstractProperty
canBeAssiged, getDescription, getGroup, getName, getType, isMutable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectionProperty

public DirectionProperty(PropertyGroup group,
                         java.lang.String name,
                         java.lang.String description,
                         PropertyValueHandler valueHandler)
Constructor.

Parameters:
group - the property group
name - the property name
description - the property description
valueHandler - handles values for this property
Method Detail

get

public Direction get(java.lang.Object valueContainer)
Returns the Direction value of this property in a value container.

Parameters:
valueContainer - the value container
Returns:
the boolean value of this property

set

public void set(java.lang.Object valueContainer,
                Direction direction)
Sets the Direction value of this property in a value container.

Parameters:
valueContainer - the value container
direction - the Direction value