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.Compositor; 26 import org.netbeans.modules.xml.axi.Compositor.CompositorType; 27 import org.netbeans.modules.xml.axi.Element; 28 29 35 public class CompositorProxy extends Compositor implements AXIComponentProxy { 36 37 38 41 public CompositorProxy(AXIModel model, AXIComponent sharedComponent) { 42 super(model, sharedComponent); 43 } 44 45 private Compositor getShared() { 46 return (Compositor)getSharedComponent(); 47 } 48 49 public ComponentType getComponentType() { 50 return ComponentType.PROXY; 51 } 52 53 56 public CompositorType getType() { 57 return getShared().getType(); 58 } 59 60 63 public void setType(CompositorType value) { 64 getShared().setType(value); 65 } 66 67 70 public String getMinOccurs() { 71 return getShared().getMinOccurs(); 72 } 73 74 public void setMinOccurs(String value) { 75 getShared().setMinOccurs(value); 76 } 77 78 81 public String getMaxOccurs() { 82 return getShared().getMaxOccurs(); 83 } 84 85 public void setMaxOccurs(String value) { 86 getShared().setMaxOccurs(value); 87 } 88 89 92 public void addCompositor(CompositorProxy compositor) { 93 getShared().addCompositor(compositor); 94 } 95 96 99 public void removeCompositor(CompositorProxy compositor) { 100 getShared().removeCompositor(compositor); 101 } 102 103 106 public void addElement(Element element) { 107 getShared().addElement(element); 108 } 109 110 113 public void removeElement(Element element) { 114 getShared().removeElement(element); 115 } 116 117 public String toString() { 118 return getShared().toString(); 119 } 120 121 } 122 | Popular Tags |