Public Member Functions | Protected Attributes

de.mfuchs.xmlstorage.XMLBool Class Reference

XMLBool is a type converter for boolean data. More...

Collaboration diagram for de.mfuchs.xmlstorage.XMLBool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLBool (boolean value)
 XMLBool (final String value)
 XMLBool (final String value, boolean def)
 XMLBool (final AbstractXMLNode node, final String attrName)
 XMLBool (final XMLPos pos, final String attrName)
 XMLBool (final XMLPos pos, final String attrName, boolean def)
 XMLBool (final XMLStreamReader reader, final String attrName)
 XMLBool (final XMLStreamReader reader, final String attrName, boolean def)
 XMLBool (final AbstractXMLNode node, final String attrName, boolean def)
boolean boolValue ()
String toString ()

Protected Attributes

boolean _value

Detailed Description

XMLBool is a type converter for boolean data.

Definition at line 47 of file XMLBool.java.


Constructor & Destructor Documentation

de.mfuchs.xmlstorage.XMLBool.XMLBool ( boolean  value )

Definition at line 49 of file XMLBool.java.

References de.mfuchs.xmlstorage.XMLBool._value.

    {
        _value = value;
    }
de.mfuchs.xmlstorage.XMLBool.XMLBool ( final String  value )

Definition at line 54 of file XMLBool.java.

    {
        this(value, false);
    }
de.mfuchs.xmlstorage.XMLBool.XMLBool ( final String  value,
boolean  def 
)

Definition at line 59 of file XMLBool.java.

References de.mfuchs.xmlstorage.XMLBool._value.

    {
        if (value!=null && value.length()>0)
            _value = Boolean.valueOf(value).booleanValue();
        else
            _value = def;
    }
de.mfuchs.xmlstorage.XMLBool.XMLBool ( final AbstractXMLNode  node,
final String  attrName 
)

Definition at line 68 of file XMLBool.java.

    {
        this(node, attrName, false);
    }
de.mfuchs.xmlstorage.XMLBool.XMLBool ( final XMLPos  pos,
final String  attrName 
)

Definition at line 73 of file XMLBool.java.

References de.mfuchs.xmlstorage.XMLPos.cur().

    {
        this(pos.cur(), attrName, false);
    }

Here is the call graph for this function:

de.mfuchs.xmlstorage.XMLBool.XMLBool ( final XMLPos  pos,
final String  attrName,
boolean  def 
)

Definition at line 78 of file XMLBool.java.

References de.mfuchs.xmlstorage.XMLPos.cur().

    {
        this(pos.cur(), attrName, def);
    }

Here is the call graph for this function:

de.mfuchs.xmlstorage.XMLBool.XMLBool ( final XMLStreamReader  reader,
final String  attrName 
)

Definition at line 83 of file XMLBool.java.

References de.mfuchs.xmlstorage.stream.XMLStreamReader.getNode().

    {
        this(reader.getNode(), attrName, false);
    }

Here is the call graph for this function:

de.mfuchs.xmlstorage.XMLBool.XMLBool ( final XMLStreamReader  reader,
final String  attrName,
boolean  def 
)

Definition at line 88 of file XMLBool.java.

References de.mfuchs.xmlstorage.stream.XMLStreamReader.getNode().

    {
        this(reader.getNode(), attrName, def);
    }

Here is the call graph for this function:

de.mfuchs.xmlstorage.XMLBool.XMLBool ( final AbstractXMLNode  node,
final String  attrName,
boolean  def 
)

Definition at line 93 of file XMLBool.java.

References de.mfuchs.xmlstorage.XMLBool._value, and de.mfuchs.xmlstorage.AbstractXMLNode.get().

    {
        final String value = node.get(attrName);

        if (value.length() > 0)
            _value = Boolean.valueOf(value).booleanValue();
        else
            _value = def;
    }

Here is the call graph for this function:


Member Function Documentation

boolean de.mfuchs.xmlstorage.XMLBool.boolValue (  )

Definition at line 104 of file XMLBool.java.

References de.mfuchs.xmlstorage.XMLBool._value.

    {
        return _value;
    }
String de.mfuchs.xmlstorage.XMLBool.toString (  )

Definition at line 109 of file XMLBool.java.

References de.mfuchs.xmlstorage.XMLBool._value.

    {
        return String.valueOf(_value);
    }

Member Data Documentation


The documentation for this class was generated from the following file: