public WSDLModeler(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest) { super(options, receiver,forest); this.classNameCollector = new ClassNameCollector(); this.explicitDefaultPackage = options.defaultPackage; }
private boolean conflictsWithExceptionClass(String name) { Set<String> exceptionNames = classNameCollector.getExceptionClassNames(); return exceptionNames != null && exceptionNames.contains(name); }
private boolean conflictsWithJAXBClass(String name) { Set<String> jaxbNames = classNameCollector.getJaxbGeneratedClassNames(); return jaxbNames != null && jaxbNames.contains(name); }
protected void preVisit(Fault fault) throws Exception { if (!_exceptions.contains(fault.getJavaException())) { /* the same exception can be used in several faults, but that * doesn't mean that there is a conflict */ _exceptions.add(fault.getJavaException()); addExceptionClassName(fault.getJavaException().getName()); for (Iterator iter = fault.getSubfaults(); iter != null && iter.hasNext();) { Fault subfault = (Fault) iter.next(); preVisit(subfault); } } }
classNameCollector.process(model); if (classNameCollector.getConflictingClassNames().isEmpty()) { if (errReceiver.hadError()) { return null; classNameCollector.process(model); if (classNameCollector.getConflictingClassNames().isEmpty()) { boolean first = true; for (Iterator iter = classNameCollector.getConflictingClassNames().iterator(); iter.hasNext(); ) {
public void visit(RpcLitStructure type) throws Exception { if(!doneVisitingJAXBModel){ Set<String> classNames = type.getJaxbModel().getGeneratedClassNames(); for(String className : classNames){ addJAXBGeneratedClassName(className); } doneVisitingJAXBModel = true; } }
private boolean conflictsWithSEIClass(String name) { Set<String> seiNames = classNameCollector.getSeiClassNames(); return seiNames != null && seiNames.contains(name); }
protected void preVisit(Port port) throws Exception { QName portTypeName = (QName)port.getProperty(ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); if(_portTypeNames.contains(portTypeName)) return; //in 2.0, stub/tie class are binding agnostic so they should be per port, that is multiple // bindings can share the same port addSEIClassName(port.getJavaInterface().getName()); }
protected void preVisit(Fault fault) throws Exception { if (!_exceptions.contains(fault.getJavaException())) { /* the same exception can be used in several faults, but that * doesn't mean that there is a conflict */ _exceptions.add(fault.getJavaException()); addExceptionClassName(fault.getJavaException().getName()); for (Iterator iter = fault.getSubfaults(); iter != null && iter.hasNext();) { Fault subfault = (Fault) iter.next(); preVisit(subfault); } } }
classNameCollector.process(model); if (classNameCollector.getConflictingClassNames().isEmpty()) { if (errReceiver.hadError()) { return null; classNameCollector.process(model); if (classNameCollector.getConflictingClassNames().isEmpty()) { boolean first = true; for (Iterator iter = classNameCollector.getConflictingClassNames().iterator(); iter.hasNext(); ) {
public void visit(RpcLitStructure type) throws Exception { if(!doneVisitingJAXBModel){ Set<String> classNames = type.getJaxbModel().getGeneratedClassNames(); for(String className : classNames){ addJAXBGeneratedClassName(className); } doneVisitingJAXBModel = true; } }
private boolean conflictsWithSEIClass(String name) { Set<String> seiNames = classNameCollector.getSeiClassNames(); return seiNames != null && seiNames.contains(name); }
protected void preVisit(Port port) throws Exception { QName portTypeName = (QName)port.getProperty(ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); if(_portTypeNames.contains(portTypeName)) return; //in 2.0, stub/tie class are binding agnostic so they should be per port, that is multiple // bindings can share the same port addSEIClassName(port.getJavaInterface().getName()); }
protected void preVisit(Fault fault) throws Exception { if (!_exceptions.contains(fault.getJavaException())) { /* the same exception can be used in several faults, but that * doesn't mean that there is a conflict */ _exceptions.add(fault.getJavaException()); addExceptionClassName(fault.getJavaException().getName()); for (Iterator iter = fault.getSubfaults(); iter != null && iter.hasNext();) { Fault subfault = (Fault) iter.next(); preVisit(subfault); } } }
classNameCollector.process(model); if (classNameCollector.getConflictingClassNames().isEmpty()) { if (errReceiver.hadError()) { return null; classNameCollector.process(model); if (classNameCollector.getConflictingClassNames().isEmpty()) { boolean first = true; for (Iterator iter = classNameCollector.getConflictingClassNames().iterator(); iter.hasNext(); ) {
public void visit(RpcLitStructure type) throws Exception { if(!doneVisitingJAXBModel){ Set<String> classNames = type.getJaxbModel().getGeneratedClassNames(); for(String className : classNames){ addJAXBGeneratedClassName(className); } doneVisitingJAXBModel = true; } }
private boolean conflictsWithSEIClass(String name) { Set<String> seiNames = classNameCollector.getSeiClassNames(); return seiNames != null && seiNames.contains(name); }
public WSDLModeler(WsimportOptions options, ErrorReceiver receiver, MetadataFinder forest) { super(options, receiver,forest); this.classNameCollector = new ClassNameCollector(); this.explicitDefaultPackage = options.defaultPackage; }
private boolean conflictsWithExceptionClass(String name) { Set<String> exceptionNames = classNameCollector.getExceptionClassNames(); return exceptionNames != null && exceptionNames.contains(name); }
protected void preVisit(Port port) throws Exception { QName portTypeName = (QName)port.getProperty(ModelProperties.PROPERTY_WSDL_PORT_TYPE_NAME); if(_portTypeNames.contains(portTypeName)) return; //in 2.0, stub/tie class are binding agnostic so they should be per port, that is multiple // bindings can share the same port addSEIClassName(port.getJavaInterface().getName()); }