1 19 20 package org.netbeans.modules.websvc.wsitmodelext.mex.impl; 21 22 import java.util.Collections ; 23 import org.netbeans.modules.websvc.wsitmodelext.addressing.Address; 24 import org.netbeans.modules.websvc.wsitmodelext.mex.MetadataReference; 25 import org.netbeans.modules.websvc.wsitmodelext.mex.MexQName; 26 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 27 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 28 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 29 import org.w3c.dom.Element ; 30 31 35 public class MetadataReferenceImpl extends MexComponentImpl implements MetadataReference { 36 37 40 public MetadataReferenceImpl(WSDLModel model, Element e) { 41 super(model, e); 42 } 43 44 public MetadataReferenceImpl(WSDLModel model){ 45 this(model, createPrefixedElement(MexQName.METADATAREFERENCE.getQName(), model)); 46 } 47 48 @Override 49 public void accept(WSDLVisitor visitor) { 50 visitor.visit(this); 51 } 52 53 public Address getAddress() { 54 return getChild(Address.class); 55 } 56 57 public void setAddress(Address addr) { 58 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 59 setChild(Address.class, ADDRESS_PROPERTY, addr, classes); 60 } 61 62 public void removeAddress(Address addr) { 63 removeChild(ADDRESS_PROPERTY, addr); 64 } 65 66 } 67 | Popular Tags |