Class ParserUtils

java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.utils.ParserUtils

public class ParserUtils extends Object
  • Method Details

    • entityPath

      public static String entityPath(EntityType entityType, Object... primaryKeyValues)
    • relationPath

      public static String relationPath(Entity parent, NavigationProperty relation)
      The local path to an entity or collection. e.g.:
      • Things(2)/Datastreams
      • Datastreams(5)/Thing
      Parameters:
      parent - The entity holding the relation, can be null.
      relation - The relation or collection to get.
      Returns:
      The path to the entity collection.
    • formatKeyValuesForUrl

      public static String formatKeyValuesForUrl(Entity entity)
    • formatKeyValuesForUrl

      public static String formatKeyValuesForUrl(Object... pkeyValues)
    • tryToParse

      public static Object[] tryToParse(String input)
    • objectToBoolean

      public static boolean objectToBoolean(Object data, boolean dflt)
    • getDefaultDeserializer

      public static <T> com.fasterxml.jackson.databind.JsonDeserializer<T> getDefaultDeserializer(com.fasterxml.jackson.core.type.TypeReference<T> tr)
    • getLocationDeserializer

      public static com.fasterxml.jackson.databind.JsonDeserializer<Object> getLocationDeserializer()
    • getComplexTypeDeserializer

      public static com.fasterxml.jackson.databind.JsonDeserializer<ComplexValue> getComplexTypeDeserializer(TypeComplex type)
    • getDefaultSerializer

      public static com.fasterxml.jackson.databind.JsonSerializer<Object> getDefaultSerializer()