org.deckfour.xes.model
Interface XAttributable

All Known Subinterfaces:
XAttribute, XAttributeBoolean, XAttributeCollection, XAttributeContainer, XAttributeContinuous, XAttributeDiscrete, XAttributeID, XAttributeList, XAttributeLiteral, XAttributeTimestamp, XElement, XEvent, XLog, XTrace
All Known Implementing Classes:
XAttributeBooleanImpl, XAttributeCollectionImpl, XAttributeContainerImpl, XAttributeContinuousImpl, XAttributeDiscreteImpl, XAttributeIDImpl, XAttributeImpl, XAttributeListImpl, XAttributeLiteralImpl, XAttributeTimestampImpl, XEventImpl, XExtendedEvent, XLogImpl, XTraceBufferedImpl, XTraceImpl

public interface XAttributable

This interface is implemented by all elements of the log hierarchy, which can be equipped with attributes.

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

Method Summary
 XAttributeMap getAttributes()
          Retrieves the attributes set for this element.
 Set<XExtension> getExtensions()
          Retrieves the extensions used by this element, i.e.
 boolean hasAttributes()
          Checks for the existence of attributes.
 void setAttributes(XAttributeMap attributes)
          Sets the map of attributes for this element.
 

Method Detail

getAttributes

XAttributeMap getAttributes()
Retrieves the attributes set for this element.

Returns:
A map of attributes.

setAttributes

void setAttributes(XAttributeMap attributes)
Sets the map of attributes for this element.

Parameters:
attributes - A map of attributes.

hasAttributes

boolean hasAttributes()
Checks for the existence of attributes. This method can be a more efficient way of checking for the existance of attributes than using getAttributes() in certain situations.

Returns:
whether this element has any attributes

getExtensions

Set<XExtension> getExtensions()
Retrieves the extensions used by this element, i.e. the extensions used by all attributes of this element, and the element itself.

Returns:
A set of extensions.