Author: jkaputin
Date: Mon Nov 7 08:14:15 2005
New Revision: 331293
URL: http://svn.apache.org/viewcvs?rev=331293&view=rev
Log:
Renamed DocumentableImpl to WSDL20ObjectImpl (which still
implements the DocumentableElement interface). Created
the NestedConfigurableImpl abstract class to
encapsulate behaviour for getting/setting a nested
element's 'parent' and refactored this behaviour out
of the relevant Impl classes.
Also, checked in the work-in-progress Interface code
to ensure the repository code compiles.
Added:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/NestedConfigurableImpl.java
Added:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/NestedConfigurableImpl.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/NestedConfigurableImpl.java?rev=331293&view=auto
==============================================================================
---
incubator/woden/java/src/org/apache/woden/internal/wsdl20/NestedConfigurableImpl.java
(added)
+++
incubator/woden/java/src/org/apache/woden/internal/wsdl20/NestedConfigurableImpl.java
Mon Nov 7 08:14:15 2005
@@ -0,0 +1,57 @@
+/**
+ * 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.internal.wsdl20;
+
+import org.apache.woden.wsdl20.NestedComponent;
+import org.apache.woden.wsdl20.WSDL20Component;
+import org.apache.woden.wsdl20.xml.NestedElement;
+import org.apache.woden.wsdl20.xml.WSDL20Element;
+
+/**
+ * This abstract superclass implements support for accessing or
+ * setting the 'parent' of a nested, configurable WSDL component.
+ * All such classes will directly or indirectly extend this abstract
+ * class.
+ *
+ * @author [EMAIL PROTECTED]
+ */
+public abstract class NestedConfigurableImpl extends ConfigurableImpl
+ implements NestedComponent,
+ NestedElement
+{
+ private WSDL20Element fParent = null;
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.NestedComponent#getParent()
+ */
+ public WSDL20Component getParent() {
+ return (WSDL20Component)fParent;
+ }
+
+ /* (non-Javadoc)
+ * @see
org.apache.woden.wsdl20.xml.NestedElement#setParentElement(org.apache.woden.wsdl20.xml.WSDL20Element)
+ */
+ public void setParentElement(WSDL20Element parent) {
+ fParent = parent;
+ }
+
+ /* (non-Javadoc)
+ * @see org.apache.woden.wsdl20.xml.NestedElement#getParentElement()
+ */
+ public WSDL20Element getParentElement() {
+ return fParent;
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]