test_class.declarator: mapper
test_class.modifier: private
test_class.original_string: private ObjectMapper mapper;
test_class.type: ObjectMapper
test_class.var_name: mapper
test_class.declarator: jsonNode
test_class.modifier: private
test_class.original_string: private JsonNode jsonNode;
test_class.type: JsonNode
test_class.var_name: jsonNode
test_class.declarator: ospfProcessList = new ArrayList<>()
test_class.modifier: private
test_class.original_string: private List<OspfProcess> ospfProcessList = new ArrayList<>();
test_class.type: List<OspfProcess>
test_class.var_name: ospfProcessList
test_class.declarator: jsonString = "{\n" +
              "\t\"processes\": {\n" +
              "\t\t\"areas\": [{\n" +
              "\t\t\t\"interface\": [{\n" +
              "\t\t\t\t\"interfaceIndex\": \"2\",\n" +
              "\n" +
              "\t\t\t\t\"helloIntervalTime\": \"10\",\n" +
              "\n" +
              "\t\t\t\t\"routerDeadIntervalTime\": \"40\",\n" +
              "\n" +
              "\t\t\t\t\"interfaceType\": \"2\",\n" +
              "\n" +
              "\t\t\t\t\"reTransmitInterval\": \"5\"\n" +
              "\t\t\t}],\n" +
              "\t\t\t\"areaId\": \"5.5.5.5\",\n" +
              "\n" +
              "\t\t\t\"routerId\": \"7.7.7.7\",\n" +
              "\n" +
              "\t\t\t\"isOpaqueEnable\": \"false\",\n" +
              "\n" +
              "\t\t\t\"externalRoutingCapability\": \"true\"\n" +
              "\t\t}]\n" +
              "\t}\n" +
              "}"
test_class.modifier: private
test_class.original_string: private String jsonString = "{\n" +
              "\t\"processes\": {\n" +
              "\t\t\"areas\": [{\n" +
              "\t\t\t\"interface\": [{\n" +
              "\t\t\t\t\"interfaceIndex\": \"2\",\n" +
              "\n" +
              "\t\t\t\t\"helloIntervalTime\": \"10\",\n" +
              "\n" +
              "\t\t\t\t\"routerDeadIntervalTime\": \"40\",\n" +
              "\n" +
              "\t\t\t\t\"interfaceType\": \"2\",\n" +
              "\n" +
              "\t\t\t\t\"reTransmitInterval\": \"5\"\n" +
              "\t\t\t}],\n" +
              "\t\t\t\"areaId\": \"5.5.5.5\",\n" +
              "\n" +
              "\t\t\t\"routerId\": \"7.7.7.7\",\n" +
              "\n" +
              "\t\t\t\"isOpaqueEnable\": \"false\",\n" +
              "\n" +
              "\t\t\t\"externalRoutingCapability\": \"true\"\n" +
              "\t\t}]\n" +
              "\t}\n" +
              "}";
test_class.type: String
test_class.var_name: jsonString
test_class.file: protocols/ospf/ctl/src/test/java/org/onosproject/ospf/controller/impl/OspfConfigUtilTest.java
test_class.identifier: OspfConfigUtilTest
test_case.body: @Test
      public void testProcesses() throws Exception {
          jsonNode.path("areas");
          ospfProcessList = OspfConfigUtil.processes(jsonNode);
          assertThat(ospfProcessList, is(notNullValue()));
      }
test_case.class_method_signature: OspfConfigUtilTest.testProcesses()
test_case.full_signature: @Test public void testProcesses()
test_case.identifier: testProcesses
test_case.invocations: path processes assertThat is notNullValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testProcesses()
focal_class.declarator: PROCESSID = "processId"
focal_class.modifier: public static final
focal_class.original_string: public static final String PROCESSID = "processId";
focal_class.type: String
focal_class.var_name: PROCESSID
focal_class.declarator: AREAS = "areas"
focal_class.modifier: public static final
focal_class.original_string: public static final String AREAS = "areas";
focal_class.type: String
focal_class.var_name: AREAS
focal_class.declarator: INTERFACEINDEX = "interfaceIndex"
focal_class.modifier: public static final
focal_class.original_string: public static final String INTERFACEINDEX = "interfaceIndex";
focal_class.type: String
focal_class.var_name: INTERFACEINDEX
focal_class.declarator: AREAID = "areaId"
focal_class.modifier: public static final
focal_class.original_string: public static final String AREAID = "areaId";
focal_class.type: String
focal_class.var_name: AREAID
focal_class.declarator: ROUTERID = "routerId"
focal_class.modifier: public static final
focal_class.original_string: public static final String ROUTERID = "routerId";
focal_class.type: String
focal_class.var_name: ROUTERID
focal_class.declarator: INTERFACE = "interface"
focal_class.modifier: public static final
focal_class.original_string: public static final String INTERFACE = "interface";
focal_class.type: String
focal_class.var_name: INTERFACE
focal_class.declarator: HELLOINTERVAL = "helloIntervalTime"
focal_class.modifier: public static final
focal_class.original_string: public static final String HELLOINTERVAL = "helloIntervalTime";
focal_class.type: String
focal_class.var_name: HELLOINTERVAL
focal_class.declarator: ROUTERDEADINTERVAL = "routerDeadIntervalTime"
focal_class.modifier: public static final
focal_class.original_string: public static final String ROUTERDEADINTERVAL = "routerDeadIntervalTime";
focal_class.type: String
focal_class.var_name: ROUTERDEADINTERVAL
focal_class.declarator: INTERFACETYPE = "interfaceType"
focal_class.modifier: public static final
focal_class.original_string: public static final String INTERFACETYPE = "interfaceType";
focal_class.type: String
focal_class.var_name: INTERFACETYPE
focal_class.declarator: EXTERNALROUTINGCAPABILITY = "externalRoutingCapability"
focal_class.modifier: public static final
focal_class.original_string: public static final String EXTERNALROUTINGCAPABILITY = "externalRoutingCapability";
focal_class.type: String
focal_class.var_name: EXTERNALROUTINGCAPABILITY
focal_class.declarator: log = LoggerFactory.getLogger(OspfConfigUtil.class)
focal_class.modifier: protected static final
focal_class.original_string: protected static final Logger log = LoggerFactory.getLogger(OspfConfigUtil.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: ISOPAQUE = "isOpaqueEnable"
focal_class.modifier: private static final
focal_class.original_string: private static final String ISOPAQUE = "isOpaqueEnable";
focal_class.type: String
focal_class.var_name: ISOPAQUE
focal_class.file: protocols/ospf/ctl/src/main/java/org/onosproject/ospf/controller/impl/OspfConfigUtil.java
focal_class.identifier: OspfConfigUtil
focal_class.class_method_signature: OspfConfigUtil.OspfConfigUtil()
focal_class.full_signature: private  OspfConfigUtil()
focal_class.identifier: OspfConfigUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  OspfConfigUtil()
focal_class.class_method_signature: OspfConfigUtil.processes(JsonNode jsonNodes)
focal_class.full_signature: public static List<OspfProcess> processes(JsonNode jsonNodes)
focal_class.identifier: processes
focal_class.modifiers: public static
focal_class.parameters: (JsonNode jsonNodes)
focal_class.return: List<OspfProcess>
focal_class.signature: List<OspfProcess> processes(JsonNode jsonNodes)
focal_class.class_method_signature: OspfConfigUtil.getInterfaceIp(int interfaceIndex)
focal_class.full_signature: private static Ip4Address getInterfaceIp(int interfaceIndex)
focal_class.identifier: getInterfaceIp
focal_class.modifiers: private static
focal_class.parameters: (int interfaceIndex)
focal_class.return: Ip4Address
focal_class.signature: Ip4Address getInterfaceIp(int interfaceIndex)
focal_class.class_method_signature: OspfConfigUtil.getInterfaceMask(int interfaceIndex)
focal_class.full_signature: private static String getInterfaceMask(int interfaceIndex)
focal_class.identifier: getInterfaceMask
focal_class.modifiers: private static
focal_class.parameters: (int interfaceIndex)
focal_class.return: String
focal_class.signature: String getInterfaceMask(int interfaceIndex)
focal_class.class_method_signature: OspfConfigUtil.isValidDigit(String strInput)
focal_class.full_signature: private static boolean isValidDigit(String strInput)
focal_class.identifier: isValidDigit
focal_class.modifiers: private static
focal_class.parameters: (String strInput)
focal_class.return: boolean
focal_class.signature: boolean isValidDigit(String strInput)
focal_class.class_method_signature: OspfConfigUtil.isPrimitive(String value)
focal_class.full_signature: private static boolean isPrimitive(String value)
focal_class.identifier: isPrimitive
focal_class.modifiers: private static
focal_class.parameters: (String value)
focal_class.return: boolean
focal_class.signature: boolean isPrimitive(String value)
focal_class.class_method_signature: OspfConfigUtil.isBoolean(String value)
focal_class.full_signature: private static boolean isBoolean(String value)
focal_class.identifier: isBoolean
focal_class.modifiers: private static
focal_class.parameters: (String value)
focal_class.return: boolean
focal_class.signature: boolean isBoolean(String value)
focal_class.class_method_signature: OspfConfigUtil.isValidIpAddress(String value)
focal_class.full_signature: private static boolean isValidIpAddress(String value)
focal_class.identifier: isValidIpAddress
focal_class.modifiers: private static
focal_class.parameters: (String value)
focal_class.return: boolean
focal_class.signature: boolean isValidIpAddress(String value)
focal_class.class_method_signature: OspfConfigUtil.areaDetails(JsonNode areaNode)
focal_class.full_signature: private static OspfArea areaDetails(JsonNode areaNode)
focal_class.identifier: areaDetails
focal_class.modifiers: private static
focal_class.parameters: (JsonNode areaNode)
focal_class.return: OspfArea
focal_class.signature: OspfArea areaDetails(JsonNode areaNode)
focal_class.class_method_signature: OspfConfigUtil.interfaceDetails(JsonNode interfaceNode)
focal_class.full_signature: private static OspfInterface interfaceDetails(JsonNode interfaceNode)
focal_class.identifier: interfaceDetails
focal_class.modifiers: private static
focal_class.parameters: (JsonNode interfaceNode)
focal_class.return: OspfInterface
focal_class.signature: OspfInterface interfaceDetails(JsonNode interfaceNode)
focal_method.body: public static List<OspfProcess> processes(JsonNode jsonNodes) {
          List<OspfProcess> ospfProcesses = new ArrayList<>();
          if (jsonNodes == null) {
              return ospfProcesses;
          }
          //From each Process nodes, get area and related interface details.
          jsonNodes.forEach(jsonNode -> {
              List<OspfArea> areas = new ArrayList<>();
              //Get configured areas for the process.
              for (JsonNode areaNode : jsonNode.path(AREAS)) {
                  List<OspfInterface> interfaceList = new ArrayList<>();
                  for (JsonNode interfaceNode : areaNode.path(INTERFACE)) {
                      OspfInterface ospfInterface = interfaceDetails(interfaceNode);
                      if (ospfInterface != null) {
                          interfaceList.add(ospfInterface);
                      }
                  }
                  //Get the area details
                  OspfArea area = areaDetails(areaNode);
                  if (area != null) {
                      area.setOspfInterfaceList(interfaceList);
                      areas.add(area);
                  }
              }
              OspfProcess process = new OspfProcessImpl();
              process.setProcessId(jsonNode.path(PROCESSID).asText());
              process.setAreas(areas);
              ospfProcesses.add(process);
          });
  
          return ospfProcesses;
      }
focal_method.class_method_signature: OspfConfigUtil.processes(JsonNode jsonNodes)
focal_method.full_signature: public static List<OspfProcess> processes(JsonNode jsonNodes)
focal_method.identifier: processes
focal_method.invocations: forEach path path interfaceDetails add areaDetails setOspfInterfaceList add setProcessId asText path setAreas add
focal_method.modifiers: public static
focal_method.parameters: (JsonNode jsonNodes)
focal_method.return: List<OspfProcess>
focal_method.signature: List<OspfProcess> processes(JsonNode jsonNodes)