ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r293246 - in /incubator/woden/java/src/org/apache/woden: internal/wsdl20/FeatureImpl.java internal/wsdl20/PropertyImpl.java wsdl20/xml/FeatureElement.java wsdl20/xml/PropertyElement.java
Date Mon, 03 Oct 2005 05:09:31 GMT
Author: jkaputin
Date: Sun Oct  2 22:09:21 2005
New Revision: 293246

URL: http://svn.apache.org/viewcvs?rev=293246&view=rev
Log:
Added feature and property functionality.

Modified:
    incubator/woden/java/src/org/apache/woden/internal/wsdl20/FeatureImpl.java
    incubator/woden/java/src/org/apache/woden/internal/wsdl20/PropertyImpl.java
    incubator/woden/java/src/org/apache/woden/wsdl20/xml/FeatureElement.java
    incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java

Modified: incubator/woden/java/src/org/apache/woden/internal/wsdl20/FeatureImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/FeatureImpl.java?rev=293246&r1=293245&r2=293246&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/FeatureImpl.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/FeatureImpl.java Sun Oct  2
22:09:21 2005
@@ -15,6 +15,9 @@
  */
 package org.apache.woden.internal.wsdl20;
 
+import java.util.List;
+import java.util.Vector;
+
 import org.apache.woden.wsdl20.Component;
 import org.apache.woden.wsdl20.Feature;
 import org.apache.woden.wsdl20.xml.DocumentationElement;
@@ -28,44 +31,66 @@
  */
 public class FeatureImpl implements Feature, FeatureElement {
 
-    /* (non-Javadoc)
+    private String fRef = null;
+    private boolean fRequired = false;
+    private List fDocumentationElements = new Vector();
+    
+    /*
+     * @see org.apache.woden.wsdl20.xml.FeatureElement#setRef(String)
+     */
+    public void setRef(String ref) 
+    {
+        fRef = ref;
+    }
+    
+    /* 
      * @see org.apache.woden.wsdl20.Feature#getRef()
+     * @see org.apache.woden.wsdl20.xml.FeatureElement#getRef()
      */
-    public String getRef() {
-        // TODO Auto-generated method stub
-        return null;
+    public String getRef() 
+    {
+        return fRef;
     }
 
-    /* (non-Javadoc)
+    /*
+     * @see org.apache.woden.wsdl20.xml.FeatureElement#setRequired(boolean)
+     */
+    public void setRequired(boolean required) 
+    {
+        fRequired = required;
+    }
+    
+    /* 
      * @see org.apache.woden.wsdl20.Feature#isRequired()
+     * @see org.apache.woden.wsdl20.xml.FeatureElement#isRequired()
      */
-    public boolean isRequired() {
-        // TODO Auto-generated method stub
-        return false;
+    public boolean isRequired() 
+    {
+        return fRequired;
     }
 
-    /* (non-Javadoc)
+    /* 
      * @see org.apache.woden.wsdl20.NestedComponent#getParent()
      */
-    public Component getParent() {
-        // TODO Auto-generated method stub
+    public Component getParent() 
+    {
         return null;
     }
 
-    /* (non-Javadoc)
-     * @see org.apache.woden.wsdl20.xml.DocumentableElement#setDocumentationElement(org.apache.woden.wsdl20.xml.DocumentationElement)
+    /*
+     * @see org.apache.woden.wsdl20.xml.DocumentableElement#addDocumentationElement(DocumentationElement)
      */
-    public void setDocumentationElement(DocumentationElement docEl) {
-        // TODO Auto-generated method stub
-
+    public void addDocumentationElement(DocumentationElement docEl) 
+    {
+        fDocumentationElements.add(docEl);
     }
 
-    /* (non-Javadoc)
-     * @see org.apache.woden.wsdl20.xml.DocumentableElement#getDocumentationElement()
+    /*
+     * @see org.apache.woden.wsdl20.xml.DocumentableElement#getDocumentationElements()
      */
-    public DocumentationElement getDocumentationElement() {
-        // TODO Auto-generated method stub
-        return null;
+    public DocumentationElement[] getDocumentationElements() 
+    {
+        return (DocumentationElement[])fDocumentationElements.toArray();
     }
 
 }

Modified: incubator/woden/java/src/org/apache/woden/internal/wsdl20/PropertyImpl.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/internal/wsdl20/PropertyImpl.java?rev=293246&r1=293245&r2=293246&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/internal/wsdl20/PropertyImpl.java (original)
+++ incubator/woden/java/src/org/apache/woden/internal/wsdl20/PropertyImpl.java Sun Oct  2
22:09:21 2005
@@ -15,6 +15,9 @@
  */
 package org.apache.woden.internal.wsdl20;
 
+import java.util.List;
+import java.util.Vector;
+
 import org.apache.woden.wsdl20.Component;
 import org.apache.woden.wsdl20.Property;
 import org.apache.woden.wsdl20.TypeDefinition;
@@ -28,15 +31,28 @@
  * @author jkaputin@apache.org
  */
 public class PropertyImpl implements Property, PropertyElement {
-
-    /* (non-Javadoc)
+    
+    private String fRef = null;
+    private List fDocumentationElements = new Vector();
+
+    /*
+     * @see org.apache.woden.wsdl20.xml.PropertyElement#setRef(String)
+     */
+    public void setRef(String ref) 
+    {
+        fRef = ref;
+    }
+    
+    /* 
      * @see org.apache.woden.wsdl20.Property#getRef()
+     * @see org.apache.woden.wsdl20.xml.PropertyElement#getRef()
      */
-    public String getRef() {
-        // TODO Auto-generated method stub
-        return null;
+    public String getRef() 
+    {
+        return fRef;
     }
 
+
     /* (non-Javadoc)
      * @see org.apache.woden.wsdl20.Property#getValueConstraint()
      */
@@ -61,20 +77,20 @@
         return null;
     }
 
-    /* (non-Javadoc)
-     * @see org.apache.woden.wsdl20.xml.DocumentableElement#setDocumentationElement(org.apache.woden.wsdl20.xml.DocumentationElement)
+    /*
+     * @see org.apache.woden.wsdl20.xml.DocumentableElement#addDocumentationElement(DocumentationElement)
      */
-    public void setDocumentationElement(DocumentationElement docEl) {
-        // TODO Auto-generated method stub
-
+    public void addDocumentationElement(DocumentationElement docEl) 
+    {
+        fDocumentationElements.add(docEl);
     }
 
-    /* (non-Javadoc)
-     * @see org.apache.woden.wsdl20.xml.DocumentableElement#getDocumentationElement()
+    /*
+     * @see org.apache.woden.wsdl20.xml.DocumentableElement#getDocumentationElements()
      */
-    public DocumentationElement getDocumentationElement() {
-        // TODO Auto-generated method stub
-        return null;
+    public DocumentationElement[] getDocumentationElements() 
+    {
+        return (DocumentationElement[])fDocumentationElements.toArray();
     }
 
 }

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=293246&r1=293245&r2=293246&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 Sun Oct  2 22:09:21
2005
@@ -22,6 +22,9 @@
  */
 public interface FeatureElement extends DocumentableElement 
 {
-    //TODO define the FeatureElement methods
-
+    public void setRef(String uri);
+    public String getRef();
+    
+    public void setRequired(boolean required);
+    public boolean isRequired();
 }

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=293246&r1=293245&r2=293246&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 Sun Oct  2 22:09:21
2005
@@ -22,5 +22,7 @@
  */
 public interface PropertyElement extends DocumentableElement 
 {
-    //TODO define the PropertyElement methods
+    public void setRef(String uri);
+    public String getRef();
+    
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Mime
View raw message