1 19 20 package org.netbeans.modules.xml.wsdl.model; 21 22 import java.io.IOException ; 23 import java.util.List ; 24 import javax.xml.namespace.QName ; 25 import org.netbeans.modules.xml.xam.Component; 26 import org.netbeans.modules.xml.xam.dom.DocumentModel; 27 import org.netbeans.modules.xml.xam.ComponentUpdater; 28 29 35 public interface ExtensibilityElement extends WSDLComponent { 36 public static final String CONTENT_FRAGMENT_PROPERTY = "content"; 37 38 41 public String getAttribute(String attribute); 42 public void setAttribute(String attribute, String value); 43 44 47 public String getAnyAttribute(QName attr); 48 public void setAnyAttribute(QName attr, String value); 49 50 57 public String getContentFragment(); 58 public void setContentFragment(String fragment) throws IOException ; 59 60 65 public void addAnyElement(ExtensibilityElement anyElement, int index); 66 67 70 public void removeAnyElement(ExtensibilityElement any); 71 72 75 public List <ExtensibilityElement> getAnyElements(); 76 77 80 public QName getQName(); 81 82 86 interface UpdaterProvider extends ExtensibilityElement { 87 90 <T extends ExtensibilityElement> ComponentUpdater<T> getComponentUpdater(); 91 } 92 93 96 interface EmbeddedModel extends ExtensibilityElement { 97 DocumentModel getEmbeddedModel(); 98 } 99 100 103 interface ParentSelector extends ExtensibilityElement { 104 boolean canBeAddedTo(Component target); 105 } 106 } 107 | Popular Tags |