|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deckfour.xes.info.impl.XAttributeInfoImpl
public class XAttributeInfoImpl
This class provides aggregate information about attributes within one container in the log type hierarchy. For example, it may store information about all event attributes in a log.
Constructor Summary | |
---|---|
XAttributeInfoImpl()
Creates a new attribute information registry. |
Method Summary | |
---|---|
java.util.Collection<java.lang.String> |
getAttributeKeys()
Provides access to prototypes of all registered attributes' keys. |
java.util.Collection<XAttribute> |
getAttributes()
Provides access to prototypes of all registered attributes. |
java.util.Collection<XAttribute> |
getAttributesForExtension(XExtension extension)
For a given extension, returns prototypes of all registered attributes defined by that extension. |
java.util.Collection<XAttribute> |
getAttributesForType(java.lang.Class<? extends XAttribute> type)
For a given type, returns prototypes of all registered attributes with that type. |
java.util.Collection<XAttribute> |
getAttributesWithoutExtension()
Returns prototypes of all registered attributes defined by no extension. |
int |
getFrequency(java.lang.String key)
Returns the total frequency, i.e. |
int |
getFrequency(XAttribute attribute)
Returns the total frequency, i.e. |
java.util.Collection<java.lang.String> |
getKeysForExtension(XExtension extension)
For a given extension, returns the keys of all registered attributes defined by that extension. |
java.util.Collection<java.lang.String> |
getKeysForType(java.lang.Class<? extends XAttribute> type)
For a given type, returns the keys of all registered attributes with that type. |
java.util.Collection<java.lang.String> |
getKeysWithoutExtension()
Returns keys of all registered attributes defined by no extension. |
double |
getRelativeFrequency(java.lang.String key)
Returns the relative frequency, i.e. |
double |
getRelativeFrequency(XAttribute attribute)
Returns the relative frequency, i.e. |
void |
register(XAttribute attribute)
Registers a concrete attribute with this registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XAttributeInfoImpl()
Method Detail |
---|
public java.util.Collection<XAttribute> getAttributes()
XAttributeInfo
getAttributes
in interface XAttributeInfo
public java.util.Collection<java.lang.String> getAttributeKeys()
XAttributeInfo
getAttributeKeys
in interface XAttributeInfo
public int getFrequency(java.lang.String key)
XAttributeInfo
getFrequency
in interface XAttributeInfo
key
- Key of an attribute.
public int getFrequency(XAttribute attribute)
XAttributeInfo
getFrequency
in interface XAttributeInfo
attribute
- An attribute.
public double getRelativeFrequency(java.lang.String key)
XAttributeInfo
getRelativeFrequency
in interface XAttributeInfo
key
- Key of an attribute.
public double getRelativeFrequency(XAttribute attribute)
XAttributeInfo
getRelativeFrequency
in interface XAttributeInfo
attribute
- An attribute.
public java.util.Collection<XAttribute> getAttributesForType(java.lang.Class<? extends XAttribute> type)
XAttributeInfo
getAttributesForType
in interface XAttributeInfo
type
- Requested attribute type (type-specific attribute interface class).
public java.util.Collection<java.lang.String> getKeysForType(java.lang.Class<? extends XAttribute> type)
XAttributeInfo
getKeysForType
in interface XAttributeInfo
type
- Requested attribute type (type-specific attribute interface class).
public java.util.Collection<XAttribute> getAttributesForExtension(XExtension extension)
XAttributeInfo
getAttributesForExtension
in interface XAttributeInfo
extension
- Requested attribute extension.
public java.util.Collection<java.lang.String> getKeysForExtension(XExtension extension)
XAttributeInfo
getKeysForExtension
in interface XAttributeInfo
extension
- Requested attribute extension.
public java.util.Collection<XAttribute> getAttributesWithoutExtension()
XAttributeInfo
getAttributesWithoutExtension
in interface XAttributeInfo
public java.util.Collection<java.lang.String> getKeysWithoutExtension()
XAttributeInfo
getKeysWithoutExtension
in interface XAttributeInfo
public void register(XAttribute attribute)
attribute
- Attribute to be registered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |