Class 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 boolean isStringNumeric​(java.lang.String str)  
      static java.lang.Boolean parseBooleanFast​(org.deckfour.xes.model.XAttribute attribute)
      See if the given attribute has a numeric value.
      static double parseDoubleFast​(org.deckfour.xes.model.XAttribute attribute)
      See if the given attribute has a numeric value.
      static long parseLongFast​(org.deckfour.xes.model.XAttribute attribute)
      See if the given attribute has a numeric value.
      static long parseTimeFast​(org.deckfour.xes.model.XAttribute attribute)  
      static java.lang.Boolean valueBoolean​(Attribute attribute, org.deckfour.xes.model.XAttributable x)  
      static double valueDouble​(Attribute attribute, org.deckfour.xes.model.XAttributable x)  
      static long valueLong​(Attribute attribute, org.deckfour.xes.model.XAttributable x)  
      static java.lang.String valueString​(Attribute attribute, org.deckfour.xes.model.XAttributable x)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributeUtils

        public AttributeUtils()
    • 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)