1 19 20 21 package org.netbeans.modules.xml.axi.impl; 22 23 import java.util.List ; 24 import org.netbeans.modules.xml.axi.AXIComponent; 25 import org.netbeans.modules.xml.axi.AXIComponent.ComponentType; 26 import org.netbeans.modules.xml.axi.AXIModel; 27 import org.netbeans.modules.xml.axi.AXIType; 28 import org.netbeans.modules.xml.axi.AbstractAttribute; 29 import org.netbeans.modules.xml.axi.AbstractElement; 30 import org.netbeans.modules.xml.axi.Compositor; 31 import org.netbeans.modules.xml.axi.ContentModel; 32 import org.netbeans.modules.xml.axi.Element; 33 import org.netbeans.modules.xml.axi.datatype.Datatype; 34 import org.netbeans.modules.xml.schema.model.Form; 35 36 42 public class ElementProxy extends Element implements AXIComponentProxy { 43 44 47 public ElementProxy(AXIModel model, AXIComponent sharedComponent) { 48 super(model, sharedComponent); 49 } 50 51 56 public ComponentType getComponentType() { 57 return ComponentType.PROXY; 58 } 59 60 63 public boolean isReference() { 64 return getShared().isReference(); 65 } 66 67 70 public Element getReferent() { 71 return getShared().getReferent(); 72 } 73 74 77 public String getName() { 78 return getShared().getName(); 79 } 80 81 84 public void setName(String name) { 85 getShared().setName(name); 86 } 87 88 91 public String getMinOccurs() { 92 return getShared().getMinOccurs(); 93 } 94 95 98 public void setMinOccurs(String value) { 99 getShared().setMinOccurs(value); 100 } 101 102 105 public String getMaxOccurs() { 106 return getShared().getMaxOccurs(); 107 } 108 109 112 public void setMaxOccurs(String value) { 113 getShared().setMaxOccurs(value); 114 } 115 116 119 public boolean getAbstract() { 120 return getShared().getAbstract(); 121 } 122 123 126 public void setAbstract(boolean value) { 127 getShared().setAbstract(value); 128 } 129 130 133 public String getBlock() { 134 return getShared().getBlock(); 135 } 136 137 140 public void setBlock(String value) { 141 getShared().setBlock(value); 142 } 143 144 147 public String getFinal() { 148 return getShared().getFinal(); 149 } 150 151 154 public void setFinal(String value) { 155 getShared().setFinal(value); 156 } 157 158 161 public String getFixed() { 162 return getShared().getFixed(); 163 } 164 165 168 public void setFixed(String value) { 169 getShared().setFixed(value); 170 } 171 172 175 public String getDefault() { 176 return getShared().getDefault(); 177 } 178 179 182 public void setDefault(String value) { 183 getShared().setDefault(value); 184 } 185 186 189 public Form getForm() { 190 return getShared().getForm(); 191 } 192 193 196 public void setForm(Form value) { 197 getShared().setForm(value); 198 } 199 200 203 public boolean getNillable() { 204 return getShared().getNillable(); 205 } 206 207 210 public void setNillable(boolean value) { 211 getShared().setNillable(value); 212 } 213 214 218 public void addCompositor(Compositor compositor) { 219 getShared().addCompositor(compositor); 220 } 221 222 225 public void removeCompositor(Compositor compositor) { 226 getShared().removeCompositor(compositor); 227 } 228 229 234 public void addElement(AbstractElement child) { 235 getShared().addElement(child); 236 } 237 238 241 public void removeElement(AbstractElement element) { 242 getShared().removeElement(element); 243 } 244 245 248 public void addAttribute(AbstractAttribute attribute) { 249 getShared().addAttribute(attribute); 250 } 251 252 255 public void removeAttribute(AbstractAttribute attribute) { 256 getShared().removeAttribute(attribute); 257 } 258 259 262 public AXIType getType() { 263 return getShared().getType(); 264 } 265 266 269 public void setType(AXIType type) { 270 getShared().setType(type); 271 } 272 273 276 public Compositor getCompositor() { 277 return getShared().getCompositor(); 278 } 279 280 Element getShared() { 281 return (Element)getSharedComponent(); 282 } 283 284 287 void forceFireEvent() { 288 firePropertyChangeEvent(Element.PROP_NAME, null, getName()); 289 } 290 } 291 | Popular Tags |