org.deckfour.xes.model.impl
Class XAttributeIDImpl

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

public class XAttributeIDImpl
extends XAttributeImpl
implements XAttributeID

Author:
Eric Verbeek (h.m.w.verbeek@tue.nl)

Constructor Summary
XAttributeIDImpl(String key, XID value)
          Creates a new instance.
XAttributeIDImpl(String key, XID value, XExtension extension)
          Creates a new instance.
 
Method Summary
 Object clone()
          Attributes must be cloneable.
 int compareTo(XAttribute other)
           
 boolean equals(Object obj)
           
 XID getValue()
          Retrieves the ID value of this attribute.
 void setValue(XID value)
          Assigns the ID value of this attribute.
 String toString()
           
 
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
accept, getAttributes, getExtension, getExtensions, getKey, hasAttributes, 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
accept, getExtension, getKey
 
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, hasAttributes, setAttributes
 

Constructor Detail

XAttributeIDImpl

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

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

XAttributeIDImpl

public XAttributeIDImpl(String key,
                        XID 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 XID getValue()
Description copied from interface: XAttributeID
Retrieves the ID value of this attribute.

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

setValue

public void setValue(XID value)
Description copied from interface: XAttributeID
Assigns the ID value of this attribute.

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

equals

public boolean equals(Object obj)
Overrides:
equals in class XAttributeImpl

compareTo

public int compareTo(XAttribute other)
Specified by:
compareTo in interface Comparable<XAttribute>
Overrides:
compareTo in class XAttributeImpl