1 19 20 28 29 package org.netbeans.modules.websvc.customization.model.impl; 30 31 import java.util.Collections ; 32 import org.netbeans.modules.websvc.customization.model.JavaClass; 33 import org.netbeans.modules.websvc.customization.model.JavaException; 34 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 35 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 36 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 37 38 import org.w3c.dom.Element ; 39 40 44 public class JavaExceptionImpl extends CustomizationComponentImpl 45 implements JavaException{ 46 47 48 public JavaExceptionImpl(WSDLModel model, Element e) { 49 super(model, e); 50 } 51 52 public JavaExceptionImpl(WSDLModel model){ 53 this(model, createPrefixedElement(JAXWSQName.BINDINGS.getQName(), model)); 54 } 55 56 public void setPart(String part) { 57 setAttribute(PART_PROPERTY, CustomizationAttribute.PART, part); 58 } 59 60 public void setJavaClass(JavaClass javaClass) { 61 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 62 this.setChild(JavaClass.class, this.JAVA_CLASS_PROPERTY, javaClass, classes); 63 64 } 65 66 public void removeJavaClass(JavaClass javaClass) { 67 removeChild(JAVA_CLASS_PROPERTY, javaClass); 68 } 69 70 public String getPart() { 71 return getAttribute(CustomizationAttribute.PART); 72 } 73 74 public JavaClass getJavaClass() { 75 return getChild(JavaClass.class); 76 } 77 78 public void accept(WSDLVisitor visitor) { 79 visitor.visit(this); 80 } 81 82 } 83 | Popular Tags |