/**
 * Elastic Grid
 * Copyright (C) 2008-2009 Elastic Grid, LLC.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.elasticgrid.model;

public class NodeProfileInfo {
    private NodeProfile nodeProfile;
    private NodeType nodeType;
    private int number;
    private boolean override;

    /** Needed for JiBX */
    public NodeProfileInfo() {}

    public NodeProfileInfo(NodeProfile nodeProfile, NodeType nodeType, int number) {
        this(nodeProfile, nodeType, number, false);
    }
    
    public NodeProfileInfo(NodeProfile nodeProfile, NodeType nodeType, int number, boolean override) {
        this.nodeProfile = nodeProfile;
        this.nodeType = nodeType;
        this.number = number;
        this.override = override;
    }

    public NodeProfile getNodeProfile() {
        return nodeProfile;
    }

    public NodeType getNodeType() {
        return nodeType;
    }

    public int getNumber() {
        return number;
    }

    public boolean hasOverride() {
        return override;
    }
}

@@ -1068,174 +1068,8 @@
 ) %7B%0A
-        this(nodeProfile, nodeType, number, false);%0A    %7D%0A    %0A    public NodeProfileInfo(NodeProfile nodeProfile, NodeType nodeType, int number, boolean override) %7B%0A
     
@@ -1100,24 +1100,24 @@
 odeProfile;%0A
+
         this
@@ -1192,23 +1192,20 @@
 rride = 
-overrid
+fals
 e;%0A    %7D
@@ -1441,24 +1441,24 @@
 verride() %7B%0A
-
         retu
@@ -1475,11 +1475,100 @@
 e;%0A    %7D
+%0A%0A    public void setOverride(boolean override) %7B%0A        this.override = override;%0A    %7D
 %0A%7D%0A

add setter for override