Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
org.ggf.ns.nmwg.base.Message message = XMLUtils.convertToMessage(metadata_response_dom, "path/to/objects.conf"); {\\}

org.ggf.ns.nmwg.base.Metadata metadata = {\\}
 message.getMetadataArray()[0];
  // Lets assume if we want to show the capacity of
  // the first metadata in responseorg.ggf.ns.nmwg.topology.v2_0.Interface iface = \
  metadata.getSubject.getInterface(); System.out.println (iface.getCapacityElement().getCapacity);
  // it will return the capacity in String