1 19 20 28 29 package org.netbeans.modules.websvc.customization.model.impl; 30 31 32 import org.netbeans.modules.websvc.customization.model.JavaParameter; 33 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 34 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 35 import org.w3c.dom.Element ; 36 37 41 public class JavaParameterImpl extends NamedImpl 42 implements JavaParameter{ 43 44 45 public JavaParameterImpl(WSDLModel model, Element e) { 46 super(model, e); 47 } 48 49 public JavaParameterImpl(WSDLModel model){ 50 this(model, createPrefixedElement(JAXWSQName.PARAMETER.getQName(), model)); 51 } 52 53 public void setPart(String part) { 54 setAttribute(PART_PROPERTY, CustomizationAttribute.PART, part); 55 } 56 57 public void setChildElementName(String child) { 58 setAttribute(CHILD_ELEMENT_NAME_PROPERTY, CustomizationAttribute.CHILDELEMENTNAME, child); 59 } 60 61 public String getPart() { 62 return getAttribute(CustomizationAttribute.PART); 63 } 64 65 public String getChildElementName() { 66 return getAttribute(CustomizationAttribute.CHILDELEMENTNAME); 67 } 68 69 public void accept(WSDLVisitor visitor) { 70 visitor.visit(this); 71 } 72 73 } 74 | Popular Tags |