org.deckfour.xes.model.impl
Class XAttributeBooleanImpl

java.lang.Object
  extended by org.deckfour.xes.model.impl.XAttributeImpl
      extended by org.deckfour.xes.model.impl.XAttributeBooleanImpl
All Implemented Interfaces:
Cloneable, Comparable<XAttribute>, XAttributable, XAttribute, XAttributeBoolean

public class XAttributeBooleanImpl
extends XAttributeImpl
implements XAttributeBoolean

This class implements boolean type attributes.

Author:
Christian W. Guenther (christian@deckfour.org)

Constructor Summary
XAttributeBooleanImpl(String key, boolean value)
          Creates a new instance.
XAttributeBooleanImpl(String key, boolean value, XExtension extension)
          Creates a new instance.
 
Method Summary
 Object clone()
          Attributes must be cloneable.
 boolean getValue()
          Retrieves the boolean value of this attribute.
 void setValue(boolean value)
          Assigns the boolean value of this attribute.
 String toString()
           
 
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
compareTo, equals, getAttributes, getExtension, getExtensions, getKey, hashCode, setAttributes
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deckfour.xes.model.XAttribute
getExtension, getKey
 
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, setAttributes
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

XAttributeBooleanImpl

public XAttributeBooleanImpl(String key,
                             boolean value)
Creates a new instance.

Parameters:
key - The key of the attribute.
value - Value of the attribute.

XAttributeBooleanImpl

public XAttributeBooleanImpl(String key,
                             boolean value,
                             XExtension extension)
Creates a new instance.

Parameters:
key - The key of the attribute.
value - Value of the attribute.
extension - The extension of the attribute.
Method Detail

getValue

public boolean getValue()
Description copied from interface: XAttributeBoolean
Retrieves the boolean value of this attribute.

Specified by:
getValue in interface XAttributeBoolean
Returns:
Value of this attribute.

setValue

public void setValue(boolean value)
Description copied from interface: XAttributeBoolean
Assigns the boolean value of this attribute.

Specified by:
setValue in interface XAttributeBoolean
Parameters:
value - Value of the attribute.

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Description copied from interface: XAttribute
Attributes must be cloneable.

Specified by:
clone in interface XAttribute
Overrides:
clone in class XAttributeImpl
Returns:
A clone of this attribute.