Version: 1.1.1

org.biomoby.shared.datatypes
Class MobyBoolean

java.lang.Object
  extended by org.biomoby.shared.datatypes.MobyObject
      extended by org.biomoby.shared.datatypes.MobyBoolean

public class MobyBoolean
extends MobyObject

An object representing a Boolean, a Moby primitive data type.

The value of this object is stored internally as a string, but during setting it (setValue(java.lang.String)) it checks for its logical value.

Version:
$Id: MobyBoolean.java,v 1.2 2009/01/05 08:43:40 groscurt Exp $
Author:
Martin Senger

Constructor Summary
MobyBoolean()
          Default constructor.
MobyBoolean(boolean value)
          Another constructor.
 
Method Summary
 boolean getBooleanValue()
          Return the value of this object as a boolean.
 void setValue(String value)
          Additionally to the same method in the superclass, it checks for boolean value - but it takes always everything, so no exception thrown.
 org.jdom.Element toXML()
          Create an XML element representing this object.
 
Methods inherited from class org.biomoby.shared.datatypes.MobyObject
addXref, format, getId, getMobyTypeName, getName, getNamespace, getProvision, getValue, getXrefs, isPrimitiveType, setId, setName, setNamespace, setProvision, setValueXML, setXrefs, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobyBoolean

public MobyBoolean()
Default constructor.


MobyBoolean

public MobyBoolean(boolean value)
Another constructor.

Parameters:
value - will become the value of this object.
Method Detail

toXML

public org.jdom.Element toXML()
Description copied from class: MobyObject
Create an XML element representing this object.

Overrides:
toXML in class MobyObject
Returns:
a jDom element that can be easily incorporated into a bigger XML document

setValue

public void setValue(String value)
              throws MobyException
Additionally to the same method in the superclass, it checks for boolean value - but it takes always everything, so no exception thrown.

Overrides:
setValue in class MobyObject
Parameters:
value - to be stored
Throws:
MobyException - actually it does not throw it
See Also:
how to set value as CDATA

getBooleanValue

public boolean getBooleanValue()
Return the value of this object as a boolean.

See Also:
MobyObject.getValue()

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010