public class Utility
extends java.lang.Object
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
convertToExpectedType(java.lang.Object value,
java.lang.Class<?> expectedType)
Converts the value to the expected type without doing any checks.
|
static java.lang.String |
encodeTextAsHTML(java.lang.String pText) |
static java.util.Map<java.lang.String,java.lang.Float> |
getMaxDistanceInValue(Replayable model,
org.deckfour.xes.model.XLog log,
java.util.Map<java.lang.String,java.lang.String> variableMapping) |
static java.lang.Object |
getValue(org.deckfour.xes.model.XAttribute attribute) |
static java.lang.Object |
getValue(org.deckfour.xes.model.XAttribute value,
java.lang.Class<?> varType) |
static boolean |
isAssignableToExpectedType(java.lang.Object value,
java.lang.Class<?> expectedType)
Checks if the type of value is the 'same' as the expected type.
|
static float |
stringDistance(java.lang.String first,
java.lang.String second) |
public static java.lang.String encodeTextAsHTML(java.lang.String pText)
public static float stringDistance(java.lang.String first, java.lang.String second)
public static java.lang.Object getValue(org.deckfour.xes.model.XAttribute attribute)
public static java.util.Map<java.lang.String,java.lang.Float> getMaxDistanceInValue(Replayable model, org.deckfour.xes.model.XLog log, java.util.Map<java.lang.String,java.lang.String> variableMapping)
public static java.lang.Object getValue(org.deckfour.xes.model.XAttribute value, java.lang.Class<?> varType)
public static boolean isAssignableToExpectedType(java.lang.Object value, java.lang.Class<?> expectedType)
value
- expectedType
- public static java.lang.Object convertToExpectedType(java.lang.Object value, java.lang.Class<?> expectedType)
IllegalArgumentException
or NumberFormatException
if used
incorrectly.value
- expectedType
-