1 19 20 package org.netbeans.modules.websvc.wsitmodelext.mex.impl; 21 22 import java.util.Collections ; 23 import org.netbeans.modules.websvc.wsitmodelext.mex.Metadata; 24 import org.netbeans.modules.websvc.wsitmodelext.mex.MetadataSection; 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 MetadataImpl extends MexComponentImpl implements Metadata { 36 37 40 public MetadataImpl(WSDLModel model, Element e) { 41 super(model, e); 42 } 43 44 public MetadataImpl(WSDLModel model){ 45 this(model, createPrefixedElement(MexQName.METADATA.getQName(), model)); 46 } 47 48 @Override 49 public void accept(WSDLVisitor visitor) { 50 visitor.visit(this); 51 } 52 53 public MetadataSection getMetadataSection() { 54 return getChild(MetadataSection.class); 55 } 56 57 public void setMetadataSection(MetadataSection mSection) { 58 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 59 setChild(MetadataSection.class, METADATASECTION_PROPERTY, mSection, classes); 60 } 61 62 public void removeMetadataSection(MetadataSection mSection) { 63 removeChild(METADATASECTION_PROPERTY, mSection); 64 } 65 66 } 67 | Popular Tags |