From 0548f00a2d2a342026d514f4f69a98a398673da8 Mon Sep 17 00:00:00 2001 From: nash Date: Wed, 13 Apr 2011 10:32:15 +0000 Subject: TUSCANY-3859: Update "no namespace" type references in xs:extension schema elements git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1091732 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/wsdlgen/verify/BaseClass.java | 46 ++++++++++++++++++++++ .../src/main/java/wsdlgen/verify/DataTypes.java | 2 + .../src/main/java/wsdlgen/verify/ExtClass.java | 34 ++++++++++++++++ .../java/wsdlgen/verify/impl/DataTypesImpl.java | 5 +++ 4 files changed, 87 insertions(+) create mode 100644 sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/BaseClass.java create mode 100644 sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/ExtClass.java (limited to 'sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java') diff --git a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/BaseClass.java b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/BaseClass.java new file mode 100644 index 0000000000..b9b7d6eb65 --- /dev/null +++ b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/BaseClass.java @@ -0,0 +1,46 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package wsdlgen.verify; + +import java.io.Serializable; + +public class BaseClass implements Serializable { + private static final long serialVersionUID = -4086312879555658070L; + + private long id; + + private String commentair; + + public long getId() { + return id; + } + + public void setId(long id) { + this.id = id; + } + + public String getCommentair() { + return commentair; + } + + public void setCommentair(String commentair) { + this.commentair = commentair; + } +} diff --git a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java index 68b87d3947..5715b24ebb 100644 --- a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java +++ b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/DataTypes.java @@ -50,6 +50,8 @@ public interface DataTypes { void testByteArray(byte[] byteArray); + void testBaseExtension(ExtClass ext); + void testException() throws Exception; DataObject testDynamicSDO(); diff --git a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/ExtClass.java b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/ExtClass.java new file mode 100644 index 0000000000..fe6f6fe97c --- /dev/null +++ b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/ExtClass.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package wsdlgen.verify; + +public class ExtClass extends BaseClass { + private static final long serialVersionUID = 7076974968473202208L; + + private String name; + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} diff --git a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java index 55e59947ad..9d9cf8ca73 100644 --- a/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java +++ b/sca-java-1.x/trunk/itest/wsdlgen-verify/src/main/java/wsdlgen/verify/impl/DataTypesImpl.java @@ -23,8 +23,10 @@ import java.util.List; import javax.jws.WebParam; import javax.jws.soap.SOAPBinding; import commonj.sdo.DataObject; +import wsdlgen.verify.BaseClass; import wsdlgen.verify.ComplexNumber; import wsdlgen.verify.DataTypes; +import wsdlgen.verify.ExtClass; public class DataTypesImpl implements DataTypes { @@ -62,6 +64,9 @@ public class DataTypesImpl implements DataTypes { public void testByteArray(byte[] byteArray) { } + public void testBaseExtension(ExtClass ext) { + } + public void testException() throws Exception { } -- cgit v1.2.3