Package org.processmining.logprojection
Class Attribute
- java.lang.Object
-
- org.processmining.logprojection.Attribute
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Attribute>
- Direct Known Subclasses:
ClassifierAttribute
public class Attribute extends java.lang.Object implements java.lang.Comparable<Attribute>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byteBOOLstatic byteCONTstatic byteCONTINUOUS_FLAGprotected longdefaultValuestatic byteDISCprotected static java.lang.StringE_PREFprotected booleanisEventprotected char[]keystatic byteLITRprotected java.lang.Stringprefixprotected static java.lang.StringT_PREFstatic byteTIME_ABSstatic byteTIME_RELprotected bytetype
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Attribute o)booleanequals(java.lang.Object o)longgetDefaultValue()java.lang.StringgetKey()bytegetType()inthashCode()booleanisEventAttribute()static intsizeForType(byte type)java.lang.StringtoString()static java.lang.StringtoString(byte type)org.deckfour.xes.model.XAttributetoXAttribute(org.deckfour.xes.factory.XFactory factory, java.util.Map<java.lang.String,org.deckfour.xes.extension.XExtension> key2extension, DataManager.StringHandler handler)
-
-
-
Field Detail
-
E_PREF
protected static final java.lang.String E_PREF
- See Also:
- Constant Field Values
-
T_PREF
protected static final java.lang.String T_PREF
- See Also:
- Constant Field Values
-
CONTINUOUS_FLAG
public static final byte CONTINUOUS_FLAG
- See Also:
- Constant Field Values
-
TIME_REL
public static final byte TIME_REL
- See Also:
- Constant Field Values
-
CONT
public static final byte CONT
- See Also:
- Constant Field Values
-
TIME_ABS
public static final byte TIME_ABS
- See Also:
- Constant Field Values
-
LITR
public static final byte LITR
- See Also:
- Constant Field Values
-
BOOL
public static final byte BOOL
- See Also:
- Constant Field Values
-
DISC
public static final byte DISC
- See Also:
- Constant Field Values
-
key
protected final char[] key
-
type
protected final byte type
-
defaultValue
protected final long defaultValue
-
isEvent
protected final boolean isEvent
-
prefix
protected java.lang.String prefix
-
-
Constructor Detail
-
Attribute
public Attribute(char[] key, byte type, long defaultValue, boolean isEvent)
-
Attribute
public Attribute(java.lang.String key, byte type, long defaultValue, boolean isEvent)
-
Attribute
public Attribute(org.deckfour.xes.model.XAttribute attribute, long defaultValue, boolean isEvent)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getKey
public java.lang.String getKey()
-
getType
public byte getType()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getDefaultValue
public long getDefaultValue()
-
sizeForType
public static int sizeForType(byte type)
-
toString
public static java.lang.String toString(byte type)
-
compareTo
public int compareTo(Attribute o)
- Specified by:
compareToin interfacejava.lang.Comparable<Attribute>
-
toXAttribute
public org.deckfour.xes.model.XAttribute toXAttribute(org.deckfour.xes.factory.XFactory factory, java.util.Map<java.lang.String,org.deckfour.xes.extension.XExtension> key2extension, DataManager.StringHandler handler)
-
isEventAttribute
public boolean isEventAttribute()
-
-