View Javadoc

1   /**
2    * Copyright 2005-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.krms.tree.node;
17  
18  import org.kuali.rice.krms.dto.PropositionEditor;
19  
20  import java.io.Serializable;
21  
22  /**
23   * @author Kuali Student Team
24   */
25  public class RuleEditorTreeNode implements Serializable {
26  
27      private static final long serialVersionUID = 8038174553531544943L;
28  
29      public static final String ROOT_TYPE = "treeRoot";
30      public static final String NODE_TYPE = "ruleTreeNode";
31  
32      public static final String COMPOUND_NODE_TYPE = RuleEditorTreeNode.NODE_TYPE + " compoundNode";
33      public static final String COMPOUND_OP_NODE_TYPE = RuleEditorTreeNode.NODE_TYPE + " compoundOpCodeNode";
34  
35      public static final String FIRST_IN_GROUP = "firstInGroup";
36      public static final String LAST_IN_GROUP = "lastInGroup";
37  
38      public static final String DISABLE_MOVE_IN = "disableMoveRight";
39      public static final String DISABLE_MOVE_OUT = "disableMoveLeft";
40  
41      protected PropositionEditor proposition;
42  
43      public RuleEditorTreeNode(){}
44  
45      public RuleEditorTreeNode(PropositionEditor proposition){
46          this.proposition = proposition;
47      }
48  
49      public PropositionEditor getProposition() {
50          return this.proposition;
51      }
52  
53      public void setProposition(PropositionEditor proposition) {
54          this.proposition = proposition;
55      }
56  
57  }