1 19 20 package org.netbeans.modules.xml.axi.impl; 21 22 import org.netbeans.modules.xml.axi.AXIComponent; 23 import org.netbeans.modules.xml.axi.AXIComponent.ComponentType; 24 import org.netbeans.modules.xml.axi.AXIModel; 25 import org.netbeans.modules.xml.axi.AXIType; 26 import org.netbeans.modules.xml.axi.Attribute; 27 import org.netbeans.modules.xml.schema.model.Attribute.Use; 28 import org.netbeans.modules.xml.schema.model.Form; 29 30 36 public class AttributeProxy extends Attribute implements AXIComponentProxy { 37 38 41 public AttributeProxy(AXIModel model, AXIComponent sharedComponent) { 42 super(model, sharedComponent); 43 } 44 45 private Attribute getShared() { 46 return (Attribute)getSharedComponent(); 47 } 48 49 54 public ComponentType getComponentType() { 55 return ComponentType.PROXY; 56 } 57 58 61 public boolean isReference() { 62 return getShared().isReference(); 63 } 64 65 68 public Attribute getReferent() { 69 return getShared().getReferent(); 70 } 71 72 75 public String getName() { 76 return getShared().getName(); 77 } 78 79 82 public void setName(String name) { 83 getShared().setName(name); 84 } 85 86 90 public AXIType getType() { 91 return getShared().getType(); 92 } 93 94 97 public void setType(AXIType datatype) { 98 getShared().setType(datatype); 99 } 100 101 104 public Form getForm() { 105 return getShared().getForm(); 106 } 107 108 111 public void setForm(Form form) { 112 getShared().setForm(form); 113 } 114 115 118 public String getFixed() { 119 return getShared().getFixed(); 120 } 121 122 125 public void setFixed(String value) { 126 getShared().setFixed(value); 127 } 128 129 132 public String getDefault() { 133 return getShared().getDefault(); 134 } 135 136 139 public void setDefault(String value) { 140 getShared().setDefault(value); 141 } 142 143 146 public Use getUse() { 147 return getShared().getUse(); 148 } 149 150 153 public void setUse(Use value) { 154 getShared().setUse(value); 155 } 156 157 160 void forceFireEvent() { 161 firePropertyChangeEvent(Attribute.PROP_NAME, null, getName()); 162 } 163 } 164 | Popular Tags |