Class AttributeUtils
- java.lang.Object
-
- org.processmining.plugins.inductiveminer2.attributes.AttributeUtils
-
public class AttributeUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AttributeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisStringNumeric(java.lang.String str)static java.lang.BooleanparseBooleanFast(org.deckfour.xes.model.XAttribute attribute)See if the given attribute has a numeric value.static doubleparseDoubleFast(org.deckfour.xes.model.XAttribute attribute)See if the given attribute has a numeric value.static longparseLongFast(org.deckfour.xes.model.XAttribute attribute)See if the given attribute has a numeric value.static longparseTimeFast(org.deckfour.xes.model.XAttribute attribute)static java.lang.BooleanvalueBoolean(Attribute attribute, org.deckfour.xes.model.XAttributable x)static doublevalueDouble(Attribute attribute, org.deckfour.xes.model.XAttributable x)static longvalueLong(Attribute attribute, org.deckfour.xes.model.XAttributable x)static java.lang.StringvalueString(Attribute attribute, org.deckfour.xes.model.XAttributable x)
-
-
-
Method Detail
-
valueLong
public static long valueLong(Attribute attribute, org.deckfour.xes.model.XAttributable x)
-
valueDouble
public static double valueDouble(Attribute attribute, org.deckfour.xes.model.XAttributable x)
-
valueBoolean
public static java.lang.Boolean valueBoolean(Attribute attribute, org.deckfour.xes.model.XAttributable x)
-
valueString
public static java.lang.String valueString(Attribute attribute, org.deckfour.xes.model.XAttributable x)
-
parseTimeFast
public static long parseTimeFast(org.deckfour.xes.model.XAttribute attribute)
-
parseBooleanFast
public static java.lang.Boolean parseBooleanFast(org.deckfour.xes.model.XAttribute attribute)
See if the given attribute has a numeric value. Returns null if not.- Parameters:
attribute-- Returns:
-
parseDoubleFast
public static double parseDoubleFast(org.deckfour.xes.model.XAttribute attribute)
See if the given attribute has a numeric value. Returns -Double.MAX_VALUE if not.- Parameters:
attribute-- Returns:
-
parseLongFast
public static long parseLongFast(org.deckfour.xes.model.XAttribute attribute)
See if the given attribute has a numeric value. Returns Long.MIN_VALUE if not.- Parameters:
attribute-- Returns:
-
isStringNumeric
public static boolean isStringNumeric(java.lang.String str)
-
-