ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r327187 - /incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java
Date Fri, 21 Oct 2005 14:05:55 GMT
Author: jkaputin
Date: Fri Oct 21 07:05:49 2005
New Revision: 327187

URL: http://svn.apache.org/viewcvs?rev=327187&view=rev
Log:
Modified javadoc.

Modified:
    incubator/woden/java/src/org/apache/woden/wsdl20/xml/PropertyElement.java

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=327187&r1=327186&r2=327187&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 Fri Oct 21 07:05:49
2005
@@ -18,8 +18,17 @@
 import javax.xml.namespace.QName;
 
 /**
- * Represents the <property> element.
- *  
+ * Represents the <property> element and its child elements;
+ * <documentation>, 
+ * <value> or <constraint> and
+ * any extension elements.
+ * <p>
+ * A property may have a value or a constraint but not both. If it
+ * has a value, the &lt;constraint&gt; element may only contain the
+ * the NMToken <code>#value</code>, in which case 
+ * <code>hasValueToken()</code> will return true
+ * and <code>getConstraint</code> will return null.
+ * 
  * @author jkaputin@apache.org
  */
 public interface PropertyElement extends DocumentableElement 
@@ -30,20 +39,27 @@
     public void setValue(Object o);
     public Object getValue();
     
+    /**
+     * Set the property's constraint to the specified QName, which
+     * identifies a global type definition from the &lt;types&gt;
+     * element. Note that the use of the NMToken <code>#value</code> 
+     * as the constraint, instead of a QName, is specified using the 
+     * <code>setHasValueToken</code> method.
+     */ 
     public void setConstraint(QName qname);
     public QName getConstraint();
     
     /**
-     * Set to true if &lt;constraint&gt; contains the NMToken "#value",  
-     * which would indicate that this property specifies a &lt;value&gt; 
-     * instead of a &lt;constraint&gt; QName.
+     * Set to true if &lt;constraint&gt; specifies the NMToken "#value"
+     * rather than a QName. This indicates that this property specifies 
+     * a value rather than a constraint.
      */
     public void setHasValueToken(boolean b);
     
     /**
-     * Returns true if &lt;constraint&gt; contains the NMToken "#value", 
-     * which would indicate that this property specifies a &lt;value&gt; 
-     * instead of a &lt;constraint&gt; QName.
+     * Returns true if &lt;constraint&gt; specifies the NMToken "#value"
+     * rather than a QName. This indicates that this property specifies 
+     * a value rather than a constraint.
      */ 
     public boolean hasValueToken();
     



---------------------------------------------------------------------
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