1 19 20 package org.netbeans.modules.xml.wsdl.model.impl; 21 22 import org.netbeans.modules.xml.wsdl.model.Input; 23 import org.netbeans.modules.xml.wsdl.model.Output; 24 import org.netbeans.modules.xml.wsdl.model.SolicitResponseOperation; 25 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 26 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 27 import org.w3c.dom.Element ; 28 29 33 public class SolicitResponseOperationImpl extends OperationImpl implements SolicitResponseOperation { 34 35 36 public SolicitResponseOperationImpl(WSDLModel model, Element e) { 37 super(model, e); 38 } 39 40 public SolicitResponseOperationImpl(WSDLModel model) { 41 this(model, createNewElement(WSDLQNames.OPERATION.getQName(), model)); 42 } 43 44 public Output getOutput() { 45 return getChild(Output.class); 46 } 47 48 public void setOutput(Output output) { 49 setChildAfter(Output.class, OUTPUT_PROPERTY, output, TypeCollection.DOCUMENTATION.types()); 50 } 51 52 public Input getInput() { 53 return getChild(Input.class); 54 } 55 56 public void setInput(Input input) { 57 setChildAfter(Input.class, INPUT_PROPERTY, input, TypeCollection.DOCUMENTATION_OUTPUT.types()); 58 } 59 60 public void accept(WSDLVisitor visitor) { 61 visitor.visit(this); 62 } 63 } 64 | Popular Tags |