Author: jkaputin
Date: Mon Nov 7 07:55:12 2005
New Revision: 331287
URL: http://svn.apache.org/viewcvs?rev=331287&view=rev
Log:
Created a new interface to represent nested WSDL elements
(i.e. set/getParentElement methods).
Added:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/NestedElement.java
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/FeatureElement.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceFaultElement.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java?rev=331287&r1=331286&r2=331287&view=diff
==============================================================================
---
incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java
(original)
+++
incubator/woden/java/src/org/apache/woden/wsdl20/xml/FaultReferenceElement.java
Mon Nov 7 07:55:12 2005
@@ -24,7 +24,8 @@
* @author [EMAIL PROTECTED]
*/
public interface FaultReferenceElement extends DocumentableElement,
- ConfigurableElement
+ ConfigurableElement,
+ NestedElement
{
/*
* Attributes
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/FeatureElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/FeatureElement.java?rev=331287&r1=331286&r2=331287&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/FeatureElement.java
(original)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/FeatureElement.java
Mon Nov 7 07:55:12 2005
@@ -22,7 +22,7 @@
*
* @author [EMAIL PROTECTED]
*/
-public interface FeatureElement extends DocumentableElement
+public interface FeatureElement extends DocumentableElement, NestedElement
{
public void setRef(URI uri);
public URI getRef();
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceFaultElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceFaultElement.java?rev=331287&r1=331286&r2=331287&view=diff
==============================================================================
---
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceFaultElement.java
(original)
+++
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceFaultElement.java
Mon Nov 7 07:55:12 2005
@@ -26,7 +26,8 @@
* @author [EMAIL PROTECTED]
*/
public interface InterfaceFaultElement extends DocumentableElement,
- ConfigurableElement
+ ConfigurableElement,
+ NestedElement
{
/*
* Attributes
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java?rev=331287&r1=331286&r2=331287&view=diff
==============================================================================
---
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java
(original)
+++
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElement.java
Mon Nov 7 07:55:12 2005
@@ -25,7 +25,8 @@
*/
public interface InterfaceMessageReferenceElement
extends DocumentableElement,
- ConfigurableElement
+ ConfigurableElement,
+ NestedElement
{
public void setMessageLabel(String msgLabel);
public String getMessageLabel();
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java?rev=331287&r1=331286&r2=331287&view=diff
==============================================================================
---
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java
(original)
+++
incubator/woden/java/src/org/apache/woden/wsdl20/xml/InterfaceOperationElement.java
Mon Nov 7 07:55:12 2005
@@ -28,7 +28,8 @@
* @author [EMAIL PROTECTED]
*/
public interface InterfaceOperationElement extends DocumentableElement,
- ConfigurableElement
+ ConfigurableElement,
+ NestedElement
{
/*
* Attributes
Added: incubator/woden/java/src/org/apache/woden/wsdl20/xml/NestedElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/NestedElement.java?rev=331287&view=auto
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/NestedElement.java
(added)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/NestedElement.java Mon
Nov 7 07:55:12 2005
@@ -0,0 +1,36 @@
+/**
+ * Copyright 2005 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.woden.wsdl20.xml;
+
+/**
+ * Elements which are nested within a 'top-level' WSDL element will
+ * extend this interface. These are <feature>, <property>
+ * and the child elements of <interface>, <binding> and
+ * <service>.
+ * <p>
+ * The elements which are not nested are <description>,
+ * <import>, <include>, <types>, <interface>,
+ * <binding> and <service>.
+ *
+ * @author [EMAIL PROTECTED]
+ */
+public interface NestedElement extends WSDL20Element {
+
+ public void setParentElement(WSDL20Element parent);
+
+ public WSDL20Element getParentElement();
+
+}
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java?rev=331287&r1=331286&r2=331287&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java
(original)
+++ incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java
Mon Nov 7 07:55:12 2005
@@ -33,7 +33,7 @@
*
* @author [EMAIL PROTECTED]
*/
-public interface PropertyElement extends DocumentableElement
+public interface PropertyElement extends DocumentableElement, NestedElement
{
public void setRef(URI uri);
public URI getRef();
@@ -52,16 +52,18 @@
public QName getConstraint();
/**
- * Set to true if <constraint> specifies the NMToken "#value"
- * rather than a QName. This indicates that this property specifies
- * a value rather than a constraint.
+ * Set to true if <constraint> specifies the NMToken "#value" rather
than a
+ * QName, indicating that this property specifies a value rather than a
constraint.
+ * Set to false if <constraint> does not specify the NMToken
"#value", or if
+ * it is omitted.
*/
public void setHasValueToken(boolean b);
/**
- * Returns true if <constraint> specifies the NMToken "#value"
- * rather than a QName. This indicates that this property specifies
- * a value rather than a constraint.
+ * Returns true if <constraint> specifies the NMToken "#value"
rather than a
+ * QName, indicating that this property specifies a value rather than a
constraint.
+ * Returns false if <constraint> does not specify the NMToken
"#value", or if
+ * it is omitted.
*/
public boolean hasValueToken();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]