ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkapu...@apache.org
Subject svn commit: r326578 - /incubator/woden/java/src/org/apache/woden/WSDLReader.java
Date Wed, 19 Oct 2005 15:13:46 GMT
Author: jkaputin
Date: Wed Oct 19 08:13:40 2005
New Revision: 326578

URL: http://svn.apache.org/viewcvs?rev=326578&view=rev
Log:
Added constants for the names of reader configuration
features and properties (and TODO comments about
whether this is the right approach!)

Modified:
    incubator/woden/java/src/org/apache/woden/WSDLReader.java

Modified: incubator/woden/java/src/org/apache/woden/WSDLReader.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/src/org/apache/woden/WSDLReader.java?rev=326578&r1=326577&r2=326578&view=diff
==============================================================================
--- incubator/woden/java/src/org/apache/woden/WSDLReader.java (original)
+++ incubator/woden/java/src/org/apache/woden/WSDLReader.java Wed Oct 19 08:13:40 2005
@@ -48,6 +48,67 @@
     //for the 2.0 prototype, just use 2.0 specific methods
     
     /**
+     * Constants for reader configuration feature names. 
+     * Features are associated with a boolean value (true if they are 
+     * enabled, false if not).
+     * 
+     * TODO Decide if these features should be exposed on the Woden API
+     * as constants defined here and used via the generic set/getFeature 
+     * methods, or whether we should have a finite set of feature-specific
+     * methods on the WSDLReader interface for the features we know about 
+     * (e.g. setValidationFeature(boolean) or setValidationFeatureOn() / 
+     * setValidationFeatureOff()) and remove the constants defined here.
+     * Note - even in the latter case, we still need the generic 
+     * set/getFeature methods.
+     */
+    
+    
+    /**
+     * Set to <code>true</code> to enable verbose diagnostic tracing, <code>false</code>
otherwise.
+     */
+    public static String FEATURE_VERBOSE = 
+        "http://ws.apache.org/woden/features/verbose";
+    
+    /**
+     * Set to <code>true</code> to enable the WSDL validation feature, <code>false</code>
otherwise.
+     */
+    public static String FEATURE_VALIDATION = 
+        "http://ws.apache.org/woden/features/validation";
+    
+    /**
+     * Set to <code>true</code> if parsing should continue after 
+     * encountering a non-fatal error in the WSDL which might result
+     * in incomplete WSDL model being returned by the reader, 
+     * <code>false</code> otherwise.
+     */
+    public static String FEATURE_CONTINUE_ON_ERROR =
+        "http://ws.apache.org/woden/features/continue_on_error";
+    
+    /**
+     * Constants for reader configuration property names.
+     * Properties have a value represented by an object. 
+     * 
+     * TODO ditto the comment on features, about whether to define 
+     * property constants here and use generic set/getProperty methods
+     * or remove the constants and use property-specific methods.
+     */
+    public static String PROPERTY_XML_PARSER_API = 
+        "http://ws.apache.org/woden/property/xml_parser_api";
+
+    public static String PROPERTY_TYPE_SYSTEM_API = 
+        "http://ws.apache.org/woden/property/type_system_api";
+    
+    /**
+     * A constant representing the W3C XML Schema type system. All
+     * implementations of the Woden API must support W3C XML Schema.
+     * An implementation configured to use this type system can 
+     * use this constant to specify its value for the property
+     * "http://ws.apache.org/woden/property/type_system_api".
+     */
+    public static final String TYPE_XSD_2001 =
+        "http://www.w3.org/2001/XMLSchema";
+    
+    /**
      * Read the WSDL document accessible via the specified
      * URI into a WSDL description.
      * 



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