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.types
Class Option

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.AbstractNamedEntity
          extended by org.torweg.pulse.util.entity.AbstractNamableEntity
              extended by org.torweg.pulse.accesscontrol.attributes.types.Option
All Implemented Interfaces:
java.io.Serializable, JDOMable, INameable, INamed

@Entity(name="`Option`")
public class Option
extends AbstractNamableEntity
implements INameable, JDOMable

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

Constructor Summary
protected Option()
          Deprecated. 
  Option(java.lang.String n, java.lang.String v)
          creates a new Option with the given name and value.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          returns a JDOM representation of the option.
protected  AbstractAttribute<Selection> getAttribute()
          returns the attribute the option belongs to.
 java.lang.String getValue()
          returns the option's value.
 void setAttribute(AbstractAttribute<Selection> a)
          Deprecated. 
 void setValue(java.lang.String v)
          sets the value of the option.
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity
setName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity
getName
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.util.INameable
setName
 
Methods inherited from interface org.torweg.pulse.util.INamed
getName
 

Constructor Detail

Option

@Deprecated
protected Option()
Deprecated. 

used by HibernateTM.


Option

public Option(java.lang.String n,
              java.lang.String v)
creates a new Option with the given name and value.

Parameters:
n - the name
v - the value
Method Detail

getValue

public final java.lang.String getValue()
returns the option's value.

Returns:
the value

setValue

public final void setValue(java.lang.String v)
sets the value of the option.

Parameters:
v - the value to set

getAttribute

protected final AbstractAttribute<Selection> getAttribute()
returns the attribute the option belongs to.

Returns:
the attribute

setAttribute

@Deprecated
public final void setAttribute(AbstractAttribute<Selection> a)
Deprecated. 

used by SelectionAttribute.setOptions(java.util.Set) to update the reverse mappings.

Parameters:
a - the attribute to set.

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
returns a JDOM representation of the option.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
a JDOM representation of the option