Package org.deckfour.xes.model.impl
Class XAttributeLiteralImpl
- java.lang.Object
-
- org.deckfour.xes.model.impl.XAttributeImpl
-
- org.deckfour.xes.model.impl.XAttributeLiteralImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<XAttribute>,XAttributable,XAttribute,XAttributeLiteral
- Direct Known Subclasses:
XAttributeCollectionImpl
public class XAttributeLiteralImpl extends XAttributeImpl implements XAttributeLiteral
This class implements literal type attributes.- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XAttributeLiteralImpl(java.lang.String key, java.lang.String value)Creates a new instance.XAttributeLiteralImpl(java.lang.String key, java.lang.String value, XExtension extension)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Attributes must be cloneable.intcompareTo(XAttribute other)booleanequals(java.lang.Object obj)java.lang.StringgetValue()Retrieves the literal value of this attribute.inthashCode()voidsetValue(java.lang.String value)Assigns the literal value of this attribute.java.lang.StringtoString()String representation of the value.-
Methods inherited from class org.deckfour.xes.model.impl.XAttributeImpl
accept, getAttributes, getExtension, getExtensions, getKey, hasAttributes, setAttributes
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.deckfour.xes.model.XAttributable
getAttributes, getExtensions, hasAttributes, setAttributes
-
Methods inherited from interface org.deckfour.xes.model.XAttribute
accept, getExtension, getKey
-
-
-
-
Constructor Detail
-
XAttributeLiteralImpl
public XAttributeLiteralImpl(java.lang.String key, java.lang.String value)Creates a new instance.- Parameters:
key- The key of the attribute.value- Value of the attribute.
-
XAttributeLiteralImpl
public XAttributeLiteralImpl(java.lang.String key, java.lang.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 java.lang.String getValue()
Description copied from interface:XAttributeLiteralRetrieves the literal value of this attribute.- Specified by:
getValuein interfaceXAttributeLiteral- Returns:
- Value of this attribute.
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:XAttributeLiteralAssigns the literal value of this attribute.- Specified by:
setValuein interfaceXAttributeLiteral- Parameters:
value- Value of the attribute.
-
toString
public java.lang.String toString()
Description copied from interface:XAttributeString representation of the value.- Specified by:
toStringin interfaceXAttribute- Overrides:
toStringin classjava.lang.Object- Returns:
- Returns the String representation of the value.
-
clone
public java.lang.Object clone()
Description copied from interface:XAttributeAttributes must be cloneable.- Specified by:
clonein interfaceXAttribute- Overrides:
clonein classXAttributeImpl- Returns:
- A clone of this attribute.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classXAttributeImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classXAttributeImpl
-
compareTo
public int compareTo(XAttribute other)
- Specified by:
compareToin interfacejava.lang.Comparable<XAttribute>- Overrides:
compareToin classXAttributeImpl
-
-