/*
 * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

package org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs;

import org.wso2.carbon.siddhi.editor.core.util.designview.constants.NodeType;
import org.wso2.carbon.siddhi.editor.core.util.designview.utilities.DesignGeneratorHelper;

/**
 * Represents a connection between two Siddhi app design view elements
 */
public class Edge {
    private String id;
    private String parentID;
    private NodeType parentType;
    private String childID;
    private NodeType childType;

    public Edge(String id, String parentID, NodeType parentType, String childID, NodeType childType) {
        this.id = id;
        this.parentID = parentID;
        this.parentType = parentType;
        this.childID = childID;
        this.childType = childType;
    }

    public String getId() {
        return id;
    }

    public String getParentID() {
        return parentID;
    }

    public NodeType getParentType() {
        return parentType;
    }

    public String getChildID() {
        return childID;
    }

    public NodeType getChildType() {
        return childType;
    }
}

@@ -824,99 +824,8 @@
 ype;
-%0Aimport org.wso2.carbon.siddhi.editor.core.util.designview.utilities.DesignGeneratorHelper;
 %0A%0A/*
@@ -966,25 +966,25 @@
 ring parentI
-D
+d
 ;%0A    privat
@@ -1027,25 +1027,25 @@
 tring childI
-D
+d
 ;%0A    privat
@@ -1108,17 +1108,17 @@
  parentI
-D
+d
 , NodeTy
@@ -1145,17 +1145,17 @@
 g childI
-D
+d
 , NodeTy
@@ -1212,17 +1212,17 @@
 .parentI
-D
+d
  = paren
@@ -1219,25 +1219,25 @@
 Id = parentI
-D
+d
 ;%0A        th
@@ -1283,17 +1283,17 @@
 s.childI
-D
+d
  = child
@@ -1289,25 +1289,25 @@
 dId = childI
-D
+d
 ;%0A        th
@@ -1421,17 +1421,17 @@
 tParentI
-D
+d
 () %7B%0A   
@@ -1449,17 +1449,17 @@
  parentI
-D
+d
 ;%0A    %7D%0A
@@ -1558,17 +1558,17 @@
 etChildI
-D
+d
 () %7B%0A   
@@ -1585,17 +1585,17 @@
 n childI
-D
+d
 ;%0A    %7D%0A

Refactor parent and child id variable names in Edge bean class