pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.accesscontrol.attributes
Class SelectionValue

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.accesscontrol.attributes.AbstractValue<Selection>
          extended by org.torweg.pulse.accesscontrol.attributes.SelectionValue
All Implemented Interfaces:
java.io.Serializable, JDOMable

@Entity
public class SelectionValue
extends AbstractValue<Selection>

Version:
$Revision: 1378 $
Author:
Thomas Weber, Daniel Dietz
See Also:
Serialized Form

Constructor Summary
protected SelectionValue()
          Deprecated. 
  SelectionValue(Selection s)
          creates a StringValue form a given string value.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          returns an Element representing the value.
 AbstractAttribute<Selection> getAttribute()
          returns the attribute the value is associated with.
 Selection getValue()
          returns the value.
 void setAttribute(AbstractAttribute<Selection> a)
          sets the attribute the value is associated with.
 void setValue(Selection v)
          sets the value.
 java.lang.String toString()
          attributes must return a suitable String representation.
 void updateFromCommand(Command c)
          updates the values from a given Command.
 
Methods inherited from class org.torweg.pulse.accesscontrol.attributes.AbstractValue
getUser, setUser
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectionValue

@Deprecated
protected SelectionValue()
Deprecated. 

used by HibernateTM.


SelectionValue

public SelectionValue(Selection s)
creates a StringValue form a given string value.

Parameters:
s - the value
Method Detail

getValue

public final Selection getValue()
returns the value.

Specified by:
getValue in class AbstractValue<Selection>
Returns:
the value
See Also:
AbstractValue.getValue()

setValue

public final void setValue(Selection v)
sets the value.

Specified by:
setValue in class AbstractValue<Selection>
Parameters:
v - the value to set
See Also:
AbstractValue.setValue(java.lang.Object)

getAttribute

public final AbstractAttribute<Selection> getAttribute()
returns the attribute the value is associated with.

Specified by:
getAttribute in class AbstractValue<Selection>
Returns:
the attribute the value is associated with

setAttribute

public final void setAttribute(AbstractAttribute<Selection> a)
sets the attribute the value is associated with.

Specified by:
setAttribute in class AbstractValue<Selection>
Parameters:
a - the attribute to associate the value with

updateFromCommand

public final void updateFromCommand(Command c)
updates the values from a given Command.

Specified by:
updateFromCommand in class AbstractValue<Selection>
Parameters:
c - the Command

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
returns an Element representing the value.

Specified by:
deserializeToJDOM in interface JDOMable
Specified by:
deserializeToJDOM in class AbstractValue<Selection>
Returns:
an Element representing the value

toString

public java.lang.String toString()
Description copied from class: AbstractValue
attributes must return a suitable String representation.

Specified by:
toString in class AbstractValue<Selection>
Returns:
a comma separated list of the selection's options
See Also:
AbstractValue.toString()