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 BooleanValue

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

@Entity
public class BooleanValue
extends AbstractValue<java.lang.Boolean>

represents a boolean value.

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

Constructor Summary
protected BooleanValue()
          Deprecated. 
  BooleanValue(boolean v)
          creates a StringValue form a given string value.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          returns an Element representing the value.
 AbstractAttribute<java.lang.Boolean> getAttribute()
          returns the attribute the value is associated with.
 java.lang.Boolean getValue()
          returns the value.
 void setAttribute(AbstractAttribute<java.lang.Boolean> a)
          sets the attribute the value is associated with.
 void setValue(java.lang.Boolean 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

BooleanValue

@Deprecated
protected BooleanValue()
Deprecated. 

used by HibernateTM.


BooleanValue

public BooleanValue(boolean v)
creates a StringValue form a given string value.

Parameters:
v - the value
Method Detail

getValue

public final java.lang.Boolean getValue()
returns the value.

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

setValue

public final void setValue(java.lang.Boolean v)
sets the value.

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

getAttribute

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

Specified by:
getAttribute in class AbstractValue<java.lang.Boolean>
Returns:
the attribute the value is associated with

setAttribute

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

Specified by:
setAttribute in class AbstractValue<java.lang.Boolean>
Parameters:
a - the attribute to associate the value with

updateFromCommand

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

Specified by:
updateFromCommand in class AbstractValue<java.lang.Boolean>
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<java.lang.Boolean>
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<java.lang.Boolean>
Returns:
the boolean value as a string
See Also:
AbstractValue.toString()