1 19 20 package org.netbeans.modules.schema2beans; 21 22 import java.util.*; 23 import java.io.*; 24 import java.beans.*; 25 26 27 32 public interface BaseProperty { 33 public class VetoException extends RuntimeException { 34 PropertyVetoException pce; 35 36 public VetoException(PropertyVetoException pce, String str) { 37 super(str); 38 this.pce = pce; 39 } 40 41 public PropertyVetoException getPropertyVetoException() { 42 return this.pce; 43 } 44 } 45 46 47 50 public static final int INSTANCE_OPTIONAL_ELT = Common.TYPE_0_1; 51 public static final int INSTANCE_MANDATORY_ELT = Common.TYPE_1; 52 public static final int INSTANCE_OPTIONAL_ARRAY = Common.TYPE_0_N; 53 public static final int INSTANCE_MANDATORY_ARRAY = Common.TYPE_1_N; 54 55 56 59 public boolean isRoot(); 60 61 64 public BaseBean getParent(); 65 66 69 public String getName(); 70 71 74 public String getDtdName(); 75 76 81 public Class getPropertyClass(); 82 83 86 public boolean isIndexed(); 87 88 92 public boolean isBean(); 93 94 98 public int size(); 99 100 104 public String [] getAttributeNames(); 105 106 111 public BaseAttribute[] getAttributes(); 112 113 117 public String getFullName(int index); 118 public String getFullName(); 119 120 129 public int getInstanceType(); 130 131 135 public boolean isChoiceProperty(); 136 137 138 143 public BaseProperty[] getChoiceProperties(); 144 145 148 public boolean hasName(String name); 149 150 153 public boolean isKey(); 154 } 155 | Popular Tags |