1 19 package org.netbeans.tax.grammar; 20 21 import org.netbeans.tax.TreeNode; 22 import org.netbeans.tax.TreeElement; 23 import org.netbeans.tax.TreeAttribute; 24 25 30 public interface Validator { 31 32 35 36 public boolean canInsertNodeAt (TreeNode insertNode, int index); 37 38 41 44 45 46 public boolean canRemoveNode (TreeNode removeNode); 47 48 49 50 public boolean canReplaceNode (TreeNode oldNode, TreeNode newNode); 51 52 53 54 public boolean canAddAttribute (TreeElement element, TreeAttribute attribute); 55 56 57 public boolean canRemoveAttribute (TreeAttribute attribute); 58 59 60 public boolean canChangeAttributeValue (TreeAttribute attribute, String newValue); 61 62 } 63 | Popular Tags |