1 19 20 package org.netbeans.modules.xml.wsdl.model.impl; 21 22 import java.io.IOException ; 23 import org.netbeans.modules.xml.wsdl.model.Documentation; 24 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 25 import org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase; 26 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 27 import org.w3c.dom.Element ; 28 29 33 public class DocumentationImpl extends WSDLComponentBase implements Documentation{ 34 35 36 public DocumentationImpl(WSDLModel model, Element e) { 37 super(model, e); 38 } 39 public DocumentationImpl(WSDLModel model){ 40 this(model, createNewElement(WSDLQNames.DOCUMENTATION.getQName(), model)); 41 } 42 43 public void accept(WSDLVisitor visitor) { 44 visitor.visit(this); 45 } 46 47 public void setDocumentation(Documentation doc) {} 49 public Documentation getDocumentation() { return null; } 50 51 public void setTextContent(String content) { 52 super.setText(CONTENT_PROPERTY, content); 53 } 54 55 public String getTextContent() { 56 return getText(); 57 } 58 59 public Element getDocumentationElement() { 60 return Element .class.cast(getPeer().cloneNode(true)); 61 } 62 63 public void setDocumentationElement(Element documentationElement) { 64 super.updatePeer(CONTENT_PROPERTY, documentationElement); 65 } 66 67 public String getContentFragment() { 68 return super.getXmlFragment(); 69 } 70 71 public void setContentFragment(String text) throws IOException { 72 super.setXmlFragment(CONTENT_PROPERTY, text); 73 } 74 } 75 | Popular Tags |