Class ParserUtils

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

public class ParserUtils extends Object
  • Field Details

  • 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)