public abstract class XesComponentImpl extends java.lang.Object implements XesComponent
Constructor and Description |
---|
XesComponentImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(XesAttribute attribute)
Adds an attribute to the component.
|
java.util.List<XesAttribute> |
getAttributes() |
java.lang.Boolean |
getBoolean(java.lang.String key)
Returns the value of the Boolean attribute with the given key.
|
java.util.Date |
getDateTime(java.lang.String key)
Returns the value of the UTC time attribute with the given key.
|
java.util.UUID |
getId(java.lang.String key)
Returns the value of the UUID attribute with the given key.
|
java.lang.Long |
getIntegerNumber(java.lang.String key)
Returns the value of the Integer Number attribute with the given key.
|
java.util.List<XesAttribute> |
getList(java.lang.String key)
Returns the value attributes of the List attribute with the given key.
|
java.lang.Double |
getRealNumber(java.lang.String key)
Returns the value of the Real Number attribute with the given key.
|
java.lang.String |
getString(java.lang.String key)
Returns the value of the String attribute with the given key.
|
java.lang.String |
getStringValue(java.lang.String key)
Returns the value of an attribute as a String.
|
XesAttributeType |
getType(java.lang.String key)
Returns the type of the attribute with the given key.
|
java.lang.Boolean |
setBoolean(java.lang.String key,
java.lang.Boolean value)
Sets the value of a Boolean attribute with the given key.
|
java.util.Date |
setDateTime(java.lang.String key,
java.util.Date value)
Sets the value of a UTC time attribute with the given key.
|
java.util.UUID |
setId(java.lang.String key,
java.util.UUID value)
Sets the value of a UUID attribute with the given key.
|
java.lang.Long |
setIntegerNumber(java.lang.String key,
java.lang.Long value)
Sets the value of an Integer Number attribute with the given key.
|
java.util.List<XesAttribute> |
setList(java.lang.String key,
java.util.List<XesAttribute> values)
Sets the values of a List attribute with the given key.
|
java.lang.Double |
setRealNumber(java.lang.String key,
java.lang.Double value)
Sets the value of a Real Number attribute with the given key.
|
java.lang.String |
setString(java.lang.String key,
java.lang.String value)
Sets the value of a String attribute with the given key.
|
java.lang.String |
toString() |
public void addAttribute(XesAttribute attribute)
XesComponent
addAttribute
in interface XesComponent
attribute
- The attribute to add.public java.util.List<XesAttribute> getAttributes()
getAttributes
in interface XesComponent
public java.lang.String getStringValue(java.lang.String key)
XesComponent
getStringValue
in interface XesComponent
key
- The key of the attribute.public XesAttributeType getType(java.lang.String key)
XesComponent
getType
in interface XesComponent
key
- The key of the attribute.public java.lang.String getString(java.lang.String key)
XesComponent
getString
in interface XesComponent
key
- The key of the attribute.public java.util.Date getDateTime(java.lang.String key)
XesComponent
getDateTime
in interface XesComponent
key
- The key of the attribute.public java.util.UUID getId(java.lang.String key)
XesComponent
getId
in interface XesComponent
key
- The key of the attribute.public java.lang.Long getIntegerNumber(java.lang.String key)
XesComponent
getIntegerNumber
in interface XesComponent
key
- The key of the attribute.public java.lang.Double getRealNumber(java.lang.String key)
XesComponent
getRealNumber
in interface XesComponent
key
- The key of the attribute.public java.lang.Boolean getBoolean(java.lang.String key)
XesComponent
getBoolean
in interface XesComponent
key
- The key of the attribute.public java.util.List<XesAttribute> getList(java.lang.String key)
XesComponent
getList
in interface XesComponent
key
- The key of the attribute.public java.lang.String setString(java.lang.String key, java.lang.String value)
XesComponent
setString
in interface XesComponent
key
- The given key.value
- The value to set.public java.util.Date setDateTime(java.lang.String key, java.util.Date value)
XesComponent
setDateTime
in interface XesComponent
key
- The given key.value
- The value to set.public java.util.UUID setId(java.lang.String key, java.util.UUID value)
XesComponent
setId
in interface XesComponent
key
- The given key.value
- The value to set.public java.lang.Long setIntegerNumber(java.lang.String key, java.lang.Long value)
XesComponent
setIntegerNumber
in interface XesComponent
key
- The given key.value
- The value to set.public java.lang.Double setRealNumber(java.lang.String key, java.lang.Double value)
XesComponent
setRealNumber
in interface XesComponent
key
- The given key.value
- The value to set.public java.lang.Boolean setBoolean(java.lang.String key, java.lang.Boolean value)
XesComponent
setBoolean
in interface XesComponent
key
- The given key.value
- The value to set.public java.util.List<XesAttribute> setList(java.lang.String key, java.util.List<XesAttribute> values)
XesComponent
setList
in interface XesComponent
key
- The given key.public java.lang.String toString()
toString
in class java.lang.Object