You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2005/05/30 05:30:30 UTC

svn commit: r179007 - in /webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions: Schema.java impl/SchemaImpl.java

Author: chathura
Date: Sun May 29 20:30:29 2005
New Revision: 179007

URL: http://svn.apache.org/viewcvs?rev=179007&view=rev
Log:
Added the Extensibility Element to handle the WSDL types section

Added:
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/Schema.java
    webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/impl/SchemaImpl.java

Added: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/Schema.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/Schema.java?rev=179007&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/Schema.java (added)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/Schema.java Sun May 29 20:30:29 2005
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed 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 org.apache.wsdl.extensions;
+
+import org.apache.wsdl.WSDLExtensibilityElement;
+import org.w3c.dom.Element;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public interface Schema extends WSDLExtensibilityElement {
+	/**
+	 * 
+	 * @return The schema Element as a DOM element
+	 */
+	public Element getElelment();
+
+	/**
+	 * Sets the Schema Element as a DOM Element.
+	 * @param elelment
+	 */
+	public void setElelment(Element elelment);
+}
\ No newline at end of file

Added: webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/impl/SchemaImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/impl/SchemaImpl.java?rev=179007&view=auto
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/impl/SchemaImpl.java (added)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/wsdl/extensions/impl/SchemaImpl.java Sun May 29 20:30:29 2005
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed 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 org.apache.wsdl.extensions.impl;
+
+import org.apache.wsdl.extensions.ExtensionConstants;
+import org.apache.wsdl.extensions.Schema;
+import org.apache.wsdl.impl.WSDLExtensibilityElementImpl;
+import org.w3c.dom.Element;
+
+/**
+ * @author chathura@opensource.lk
+ *
+ */
+public class SchemaImpl extends WSDLExtensibilityElementImpl implements ExtensionConstants, Schema {
+	
+	private Element elelment;
+	
+	public SchemaImpl(){
+		type = SCHEMA;
+	}
+	
+	/**
+	 * 
+	 * @return The schema Element as a DOM element
+	 */
+	public Element getElelment() {
+		return elelment;
+	}
+	
+	/**
+	 * Sets the Schema Element as a DOM Element.
+	 * @param elelment
+	 */
+	public void setElelment(Element elelment) {
+		this.elelment = elelment;
+	}
+}