001/**
002 * Copyright 2005-2013 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.krms.tree.node;
017
018import org.kuali.rice.krms.dto.PropositionEditor;
019
020import java.io.Serializable;
021
022/**
023 * @author Kuali Student Team
024 */
025public class RuleEditorTreeNode implements Serializable {
026
027    private static final long serialVersionUID = 8038174553531544943L;
028
029    public static final String ROOT_TYPE = "treeRoot";
030    public static final String NODE_TYPE = "ruleTreeNode";
031
032    public static final String COMPOUND_NODE_TYPE = RuleEditorTreeNode.NODE_TYPE + " compoundNode";
033    public static final String COMPOUND_OP_NODE_TYPE = RuleEditorTreeNode.NODE_TYPE + " compoundOpCodeNode";
034
035    public static final String FIRST_IN_GROUP = "firstInGroup";
036    public static final String LAST_IN_GROUP = "lastInGroup";
037
038    public static final String DISABLE_MOVE_IN = "disableMoveRight";
039    public static final String DISABLE_MOVE_OUT = "disableMoveLeft";
040
041    protected PropositionEditor proposition;
042
043    public RuleEditorTreeNode(){}
044
045    public RuleEditorTreeNode(PropositionEditor proposition){
046        this.proposition = proposition;
047    }
048
049    public PropositionEditor getProposition() {
050        return this.proposition;
051    }
052
053    public void setProposition(PropositionEditor proposition) {
054        this.proposition = proposition;
055    }
056
057}