test_class.file: leshan-client-core/src/test/java/org/eclipse/leshan/client/util/LinkFormatHelperTest.java
test_class.identifier: LinkFormatHelperTest
test_case.body: @Test
      public void encode_objectModel_to_linkObject_without_root_path() {
          ObjectModel locationModel = getObjectModel(6);
  
          Link[] links = LinkFormatHelper.getObjectDescription(createObjectEnabler(locationModel), null);
          String strLinks = Link.serialize(links);
  
          assertEquals("</6>,</6/0>,</6/0/0>,</6/0/1>,</6/0/2>,</6/0/3>,</6/0/4>,</6/0/5>,</6/0/6>", strLinks);
      }
test_case.class_method_signature: LinkFormatHelperTest.encode_objectModel_to_linkObject_without_root_path()
test_case.full_signature: @Test public void encode_objectModel_to_linkObject_without_root_path()
test_case.identifier: encode_objectModel_to_linkObject_without_root_path
test_case.invocations: getObjectModel getObjectDescription createObjectEnabler serialize assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void encode_objectModel_to_linkObject_without_root_path()
focal_class.file: leshan-client-core/src/main/java/org/eclipse/leshan/client/util/LinkFormatHelper.java
focal_class.identifier: LinkFormatHelper
focal_class.class_method_signature: LinkFormatHelper.LinkFormatHelper()
focal_class.full_signature: private  LinkFormatHelper()
focal_class.identifier: LinkFormatHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  LinkFormatHelper()
focal_class.class_method_signature: LinkFormatHelper.getClientDescription(Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.full_signature: public static Link[] getClientDescription(Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.identifier: getClientDescription
focal_class.modifiers: public static
focal_class.parameters: (Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.return: Link[]
focal_class.signature: Link[] getClientDescription(Collection<LwM2mObjectEnabler> objectEnablers, String rootPath)
focal_class.class_method_signature: LinkFormatHelper.getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.full_signature: public static Link[] getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.identifier: getBootstrapClientDescription
focal_class.modifiers: public static
focal_class.parameters: (Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.return: Link[]
focal_class.signature: Link[] getBootstrapClientDescription(Collection<LwM2mObjectEnabler> objectEnablers)
focal_class.class_method_signature: LinkFormatHelper.getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_class.full_signature: public static Link[] getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_class.identifier: getObjectDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler, String root)
focal_class.return: Link[]
focal_class.signature: Link[] getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_class.class_method_signature: LinkFormatHelper.getBootstrapObjectDescription(LwM2mObjectEnabler objectEnabler)
focal_class.full_signature: public static Link[] getBootstrapObjectDescription(LwM2mObjectEnabler objectEnabler)
focal_class.identifier: getBootstrapObjectDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler)
focal_class.return: Link[]
focal_class.signature: Link[] getBootstrapObjectDescription(LwM2mObjectEnabler objectEnabler)
focal_class.class_method_signature: LinkFormatHelper.getBootstrapObjectDescriptionWithoutRoot(LwM2mObjectEnabler objectEnabler)
focal_class.full_signature: private static List<Link> getBootstrapObjectDescriptionWithoutRoot(LwM2mObjectEnabler objectEnabler)
focal_class.identifier: getBootstrapObjectDescriptionWithoutRoot
focal_class.modifiers: private static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler)
focal_class.return: List<Link>
focal_class.signature: List<Link> getBootstrapObjectDescriptionWithoutRoot(LwM2mObjectEnabler objectEnabler)
focal_class.class_method_signature: LinkFormatHelper.getInstanceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.full_signature: public static Link[] getInstanceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.identifier: getInstanceDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.return: Link[]
focal_class.signature: Link[] getInstanceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, String root)
focal_class.class_method_signature: LinkFormatHelper.getResourceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.full_signature: public static Link getResourceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.identifier: getResourceDescription
focal_class.modifiers: public static
focal_class.parameters: (LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.return: Link
focal_class.signature: Link getResourceDescription(LwM2mObjectEnabler objectEnabler, int instanceId, int resourceId,
              String root)
focal_class.class_method_signature: LinkFormatHelper.getPath(String first, String... more)
focal_class.full_signature: private static final String getPath(String first, String... more)
focal_class.identifier: getPath
focal_class.modifiers: private static final
focal_class.parameters: (String first, String... more)
focal_class.return: String
focal_class.signature: String getPath(String first, String... more)
focal_class.class_method_signature: LinkFormatHelper.normalizeAndCheck(String input)
focal_class.full_signature: private static String normalizeAndCheck(String input)
focal_class.identifier: normalizeAndCheck
focal_class.modifiers: private static
focal_class.parameters: (String input)
focal_class.return: String
focal_class.signature: String normalizeAndCheck(String input)
focal_class.class_method_signature: LinkFormatHelper.checkNotNul(char c)
focal_class.full_signature: private static void checkNotNul(char c)
focal_class.identifier: checkNotNul
focal_class.modifiers: private static
focal_class.parameters: (char c)
focal_class.return: void
focal_class.signature: void checkNotNul(char c)
focal_class.class_method_signature: LinkFormatHelper.normalize(String input, int len, int off)
focal_class.full_signature: private static String normalize(String input, int len, int off)
focal_class.identifier: normalize
focal_class.modifiers: private static
focal_class.parameters: (String input, int len, int off)
focal_class.return: String
focal_class.signature: String normalize(String input, int len, int off)
focal_class.class_method_signature: LinkFormatHelper.getObjectAttributes(ObjectModel objectModel)
focal_class.full_signature: private static Map<String, String> getObjectAttributes(ObjectModel objectModel)
focal_class.identifier: getObjectAttributes
focal_class.modifiers: private static
focal_class.parameters: (ObjectModel objectModel)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getObjectAttributes(ObjectModel objectModel)
focal_class.class_method_signature: LinkFormatHelper.getVersion(ObjectModel objectModel)
focal_class.full_signature: private static String getVersion(ObjectModel objectModel)
focal_class.identifier: getVersion
focal_class.modifiers: private static
focal_class.parameters: (ObjectModel objectModel)
focal_class.return: String
focal_class.signature: String getVersion(ObjectModel objectModel)
focal_method.body: public static Link[] getObjectDescription(LwM2mObjectEnabler objectEnabler, String root) {
          List<Link> links = new ArrayList<>();
  
          // clean root path
          String rootPath = root == null ? "" : root;
  
          // create link for "object"
          Map<String, String> objectAttributes = getObjectAttributes(objectEnabler.getObjectModel());
          String objectURL = getPath("/", rootPath, Integer.toString(objectEnabler.getId()));
          links.add(new Link(objectURL, objectAttributes));
  
          // create links for each available instance
          for (Integer instanceId : objectEnabler.getAvailableInstanceIds()) {
              links.addAll(Arrays.asList(getInstanceDescription(objectEnabler, instanceId, rootPath)));
          }
  
          return links.toArray(new Link[] {});
      }
focal_method.class_method_signature: LinkFormatHelper.getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_method.full_signature: public static Link[] getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)
focal_method.identifier: getObjectDescription
focal_method.invocations: getObjectAttributes getObjectModel getPath toString getId add getAvailableInstanceIds addAll asList getInstanceDescription toArray
focal_method.modifiers: public static
focal_method.parameters: (LwM2mObjectEnabler objectEnabler, String root)
focal_method.return: Link[]
focal_method.signature: Link[] getObjectDescription(LwM2mObjectEnabler objectEnabler, String root)