1 16 package org.apache.axis.deployment.wsdd; 17 18 import org.apache.axis.encoding.SerializationContext; 19 import org.apache.axis.utils.XMLUtils; 20 import org.w3c.dom.Element ; 21 22 import javax.xml.namespace.QName ; 23 import java.io.IOException ; 24 25 26 31 public class WSDDDocumentation 32 extends WSDDElement 33 { 34 private String value; 35 36 protected QName getElementName() 37 { 38 return WSDDConstants.QNAME_DOC; 39 } 40 41 public WSDDDocumentation(String value) 42 { 43 this.value = value; 44 } 45 46 51 public WSDDDocumentation(Element e) 52 throws WSDDException 53 { 54 super(e); 55 value = XMLUtils.getChildCharacterData(e); 56 } 57 58 61 public String getValue() 62 { 63 return value; 64 } 65 66 69 public void setValue(String value) 70 { 71 this.value = value; 72 } 73 74 77 public void writeToContext(SerializationContext context) 78 throws IOException 79 { 80 context.startElement(QNAME_DOC, null); 81 context.writeSafeString(value); 82 context.endElement(); 83 } 84 } 85 | Popular Tags |