org.deckfour.xes.model.impl
Class XAttributeLiteralImpl

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

public class XAttributeLiteralImpl
extends XAttributeImpl
implements XAttributeLiteral

This class implements literal type attributes.

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

Constructor Summary
XAttributeLiteralImpl(String key, String value)
          Creates a new instance.
XAttributeLiteralImpl(String key, String value, XExtension extension)
          Creates a new instance.
 
Method Summary
 Object clone()
          Attributes must be cloneable.
 String getValue()
          Retrieves the literal value of this attribute.
 void setValue(String value)
          Assigns the literal 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

XAttributeLiteralImpl

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

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

XAttributeLiteralImpl

public XAttributeLiteralImpl(String key,
                             String 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 String getValue()
Description copied from interface: XAttributeLiteral
Retrieves the literal value of this attribute.

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

setValue

public void setValue(String value)
Description copied from interface: XAttributeLiteral
Assigns the literal value of this attribute.

Specified by:
setValue in interface XAttributeLiteral
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.