public class XesExtensionImpl extends java.lang.Object implements XesExtension
Constructor and Description |
---|
XesExtensionImpl() |
XesExtensionImpl(boolean isStandard) |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(XesAttribute attribute,
java.lang.String mapping,
java.lang.String alias) |
void |
addEventAttribute(XesAttribute attribute)
Adds an event attribute to the extension.
|
void |
addLogAttribute(XesAttribute attribute)
Adds a log attribute to the extension.
|
void |
addMetaAttribute(XesAttribute attribute)
Adds a meta attribute to the extension.
|
void |
addTraceAttribute(XesAttribute attribute)
Adds a trace attribute to the extension.
|
java.lang.String |
getAlias(XesAttribute attribute,
java.lang.String mapping) |
java.util.List<XesAttribute> |
getEventAttributes() |
java.util.List<XesAttribute> |
getLogAttributes() |
java.util.List<XesAttribute> |
getMetaAttributes() |
java.lang.String |
getName() |
java.lang.String |
getPrefix() |
java.util.List<XesAttribute> |
getTraceAttributes() |
java.net.URI |
getURI() |
protected boolean |
hasAttribute(java.util.List<XesAttribute> attributes,
java.lang.String key) |
boolean |
hasEventAttribute(java.lang.String key)
Returns whether this extension supports the given event attribute key.
|
boolean |
hasLogAttribute(java.lang.String key)
Returns whether this extension supports the given log attribute key.
|
boolean |
hasMetaAttribute(java.lang.String key)
Returns whether this extension supports the given meta attribute key.
|
boolean |
hasTraceAttribute(java.lang.String key)
Returns whether this extension supports the given trace attribute key.
|
void |
setName(java.lang.String name)
Sets the name for the extension.
|
void |
setPrefix(java.lang.String prefix)
Sets the prefix for the extension.
|
void |
setURI(java.net.URI uri)
Sets the URI for the extension.
|
java.lang.String |
toString() |
public XesExtensionImpl(boolean isStandard)
public XesExtensionImpl()
public void setName(java.lang.String name)
XesExtension
setName
in interface XesExtension
name
- The name to set.public java.lang.String getName()
getName
in interface XesExtension
public void setPrefix(java.lang.String prefix)
XesExtension
setPrefix
in interface XesExtension
prefix
- The prefix to set.public java.lang.String getPrefix()
getPrefix
in interface XesExtension
public void setURI(java.net.URI uri)
XesExtension
setURI
in interface XesExtension
uri
- The URI set for the extension.public java.net.URI getURI()
getURI
in interface XesExtension
public void addLogAttribute(XesAttribute attribute)
XesExtension
addLogAttribute
in interface XesExtension
attribute
- The log attribute to add.public java.util.List<XesAttribute> getLogAttributes()
getLogAttributes
in interface XesExtension
public void addTraceAttribute(XesAttribute attribute)
XesExtension
addTraceAttribute
in interface XesExtension
attribute
- The trace attribute to add.public java.util.List<XesAttribute> getTraceAttributes()
getTraceAttributes
in interface XesExtension
public void addEventAttribute(XesAttribute attribute)
XesExtension
addEventAttribute
in interface XesExtension
attribute
- The event attribute to add.public java.util.List<XesAttribute> getEventAttributes()
getEventAttributes
in interface XesExtension
public void addMetaAttribute(XesAttribute attribute)
XesExtension
addMetaAttribute
in interface XesExtension
attribute
- The meta attribute to add.public java.util.List<XesAttribute> getMetaAttributes()
getMetaAttributes
in interface XesExtension
public java.lang.String toString()
toString
in class java.lang.Object
public boolean hasLogAttribute(java.lang.String key)
XesExtension
hasLogAttribute
in interface XesExtension
key
- The given attribute key.public boolean hasTraceAttribute(java.lang.String key)
XesExtension
hasTraceAttribute
in interface XesExtension
key
- The given attribute key.public boolean hasEventAttribute(java.lang.String key)
XesExtension
hasEventAttribute
in interface XesExtension
key
- The given attribute key.public boolean hasMetaAttribute(java.lang.String key)
XesExtension
hasMetaAttribute
in interface XesExtension
key
- The given attribute key.protected boolean hasAttribute(java.util.List<XesAttribute> attributes, java.lang.String key)
public void addAlias(XesAttribute attribute, java.lang.String mapping, java.lang.String alias)
addAlias
in interface XesExtension
public java.lang.String getAlias(XesAttribute attribute, java.lang.String mapping)
getAlias
in interface XesExtension