Author: jkaputin
Date: Wed Jul 6 09:28:03 2005
New Revision: 209474
URL: http://svn.apache.org/viewcvs?rev=209474&view=rev
Log:
Created the DocumentationElement interface to avoid
representing <documentation> as a org.w3.dom.Element
and thereby making the WSDL XML API dependent on DOM.
Added:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DocumentationElement.java
Modified:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
Modified:
incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java?rev=209474&r1=209473&r2=209474&view=diff
==============================================================================
---
incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
(original)
+++
incubator/woden/java/src/org/apache/woden/internal/wsdl20/DescriptionImpl.java
Wed Jul 6 09:28:03 2005
@@ -6,7 +6,6 @@
import java.util.Map;
import org.apache.woden.wsdl20.xml.*;
-import org.w3c.dom.Element;
/**
* This class implements support for parsing, creating and manipulating
@@ -18,7 +17,7 @@
public class DescriptionImpl implements DescriptionElement {
private String fDocumentBaseURI;
- private Element fDocumentationElement;
+ private DocumentationElement fDocumentationElement;
private String fTargetNamespace;
private Map fNamespaces;
@@ -68,11 +67,11 @@
return fNamespaces;
}
- public void setDocumentationElement(Element docEl) {
+ public void setDocumentationElement(DocumentationElement docEl) {
this.fDocumentationElement = docEl;
}
- public Element getDocumentationElement() {
+ public DocumentationElement getDocumentationElement() {
return this.fDocumentationElement;
}
Modified:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java?rev=209474&r1=209473&r2=209474&view=diff
==============================================================================
---
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
(original)
+++
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DescriptionElement.java
Wed Jul 6 09:28:03 2005
@@ -5,8 +5,6 @@
import java.util.Map;
-import org.w3c.dom.Element;
-
/**
* This interface represents a <description> XML element
* information item. It declares the behaviour required to support
@@ -27,8 +25,8 @@
public String getNamespace(String prefix);
public Map getNamespaces();
- public void setDocumentationElement(Element element);
- public Element getDocumentationElement();
+ public void setDocumentationElement(DocumentationElement docEl);
+ public DocumentationElement getDocumentationElement();
//TODO removeXXX, getXXX methods for the elements with an addXXX method
Added:
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DocumentationElement.java
URL:
http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/wsdl20/xml/DocumentationElement.java?rev=209474&view=auto
==============================================================================
---
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DocumentationElement.java
(added)
+++
incubator/woden/java/src/org/apache/woden/wsdl20/xml/DocumentationElement.java
Wed Jul 6 09:28:03 2005
@@ -0,0 +1,18 @@
+/*
+ * TODO Apache boiler plate
+ */
+package org.apache.woden.wsdl20.xml;
+
+/**
+ * This interface represents a <documentation> XML element
+ * information item. It declares the behaviour required to support
+ * parsing, creating and manipulating a <documentation> element.
+ *
+ * @author [EMAIL PROTECTED]
+ */
+public interface DocumentationElement {
+
+ public void setXMLElement(Object documentEl);
+
+ public Object getXMLElement();
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]