ws-wsrf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r227033 [9/27] - in /webservices/wsrf/trunk: ./ src/java/org/apache/ws/ src/java/org/apache/ws/addressing/ src/java/org/apache/ws/addressing/v2003_03/ src/java/org/apache/ws/addressing/v2004_08_10/ src/java/org/apache/ws/resource/ src/java/...
Date Tue, 02 Aug 2005 16:30:44 GMT
Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/InvalidUpdateResourcePropertiesRequestContentFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/InvalidUpdateResourcePropertiesRequestContentFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/InvalidUpdateResourcePropertiesRequestContentFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/InvalidUpdateResourcePropertiesRequestContentFaultException.java Tue Aug  2 09:28:49 2005
@@ -1,57 +1,55 @@
-/*=============================================================================*
- *  Copyright 2004 The 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.ws.resource.properties.faults;
-
-import org.apache.ws.resource.faults.AbstractBaseFaultException;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author Sal Campana
- */
-public class InvalidUpdateResourcePropertiesRequestContentFaultException
-        extends AbstractBaseFaultException
-{
-
-    private QName m_name;
-
-    /**
-     * Creates a new {@link InvalidUpdateResourcePropertiesRequestContentFaultException} object.
-     *
-     * @param namespaces  DOCUMENT_ME
-     * @param description DOCUMENT_ME
-     */
-    public InvalidUpdateResourcePropertiesRequestContentFaultException( NamespaceVersionHolder namespaces,
-                                                                        String description )
-    {
-        super( namespaces, description );
-        m_name = new QName( namespaces.getPropertiesXsdNamespace(),
-                "InvalidUpdateResourcePropertiesRequestContentFault",
-                "wsrp" );
-    }
-
-    /**
-     * Returns the element name for this base fault.
-     *
-     * @return the element name for this base fault
-     */
-    public QName getBaseFaultName()
-    {
-        return m_name;
-    }
-
+/*=============================================================================*
+ *  Copyright 2004 The 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.ws.resource.properties.faults;
+
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Sal Campana
+ */
+public class InvalidUpdateResourcePropertiesRequestContentFaultException
+   extends AbstractBaseFaultException
+{
+   private QName m_name;
+
+   /**
+    * Creates a new {@link InvalidUpdateResourcePropertiesRequestContentFaultException} object.
+    *
+    * @param namespaces  DOCUMENT_ME
+    * @param description DOCUMENT_ME
+    */
+   public InvalidUpdateResourcePropertiesRequestContentFaultException( NamespaceVersionHolder namespaces,
+                                                                       String                 description )
+   {
+      super( namespaces, description );
+      m_name =
+         new QName( namespaces.getPropertiesXsdNamespace(  ),
+                    "InvalidUpdateResourcePropertiesRequestContentFault",
+                    "wsrp" );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/QueryEvaluationErrorFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/QueryEvaluationErrorFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/QueryEvaluationErrorFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/QueryEvaluationErrorFaultException.java Tue Aug  2 09:28:49 2005
@@ -17,7 +17,6 @@
 
 import org.apache.ws.resource.faults.AbstractBaseFaultException;
 import org.apache.ws.resource.properties.NamespaceVersionHolder;
-
 import javax.xml.namespace.QName;
 
 /**
@@ -26,29 +25,31 @@
  * @author Ian P. Springer
  */
 public class QueryEvaluationErrorFaultException
-        extends AbstractBaseFaultException
+   extends AbstractBaseFaultException
 {
+   private QName m_name;
 
-    private QName m_name;
-
-    /**
-     * Constructs a new QueryEvaluationErrorFaultException.
-     *
-     * @param faultString a WS-BaseFaults description
-     */
-    public QueryEvaluationErrorFaultException( NamespaceVersionHolder namespaces, String faultString )
-    {
-        super( namespaces, faultString );
-        m_name = new QName( namespaces.getPropertiesXsdNamespace(), "QueryEvaluationErrorFault", "wsrp" );
-    }
+   /**
+    * Constructs a new QueryEvaluationErrorFaultException.
+    *
+    * @param faultString a WS-BaseFaults description
+    */
+   public QueryEvaluationErrorFaultException( NamespaceVersionHolder namespaces,
+                                              String                 faultString )
+   {
+      super( namespaces, faultString );
+      m_name = new QName( namespaces.getPropertiesXsdNamespace(  ),
+                          "QueryEvaluationErrorFault",
+                          "wsrp" );
+   }
 
-    /**
-     * Returns the element name for this base fault.
-     *
-     * @return the element name for this base fault
-     */
-    public QName getBaseFaultName()
-    {
-        return m_name;
-    }
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourcePropertyRetrievalFailedFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourcePropertyRetrievalFailedFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourcePropertyRetrievalFailedFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourcePropertyRetrievalFailedFaultException.java Tue Aug  2 09:28:49 2005
@@ -1,34 +1,69 @@
-package org.apache.ws.resource.properties.faults;
-
-import org.apache.ws.resource.faults.AbstractBaseFaultException;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.NamespaceConstants;
-
-import javax.xml.namespace.QName;
-
-
-
-/**
- * A fault exception to be used when a refresh callback operation fails.
- *
- * @author Sal Campana
- */
-public class ResourcePropertyRetrievalFailedFaultException extends AbstractBaseFaultException
-{
-    QName m_name;
-
-    public ResourcePropertyRetrievalFailedFaultException(NamespaceVersionHolder namespaceSet, String faultString, QName faultCode)
-    {
-        super(namespaceSet, faultString, faultCode);
-    }
-
-    public ResourcePropertyRetrievalFailedFaultException(NamespaceVersionHolder namespaceSet, String faultString)
-    {
-        super(namespaceSet, faultString);
-    }
-
-    public QName getBaseFaultName()
-    {
-        return new QName(NamespaceConstants.NSURI_APACHE_WS_RESOURCE,"ResourcePropertyRetrievalFailedFault");
-    }
-}
+/*=============================================================================*
+ *  Copyright 2004 The 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.ws.resource.properties.faults;
+
+import org.apache.ws.resource.NamespaceConstants;
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import javax.xml.namespace.QName;
+
+/**
+ * A fault exception to be used when a refresh callback operation fails.
+ *
+ * @author Sal Campana
+ */
+public class ResourcePropertyRetrievalFailedFaultException
+   extends AbstractBaseFaultException
+{
+   /** DOCUMENT_ME */
+   QName m_name;
+
+   /**
+    * Creates a new {@link ResourcePropertyRetrievalFailedFaultException} object.
+    *
+    * @param namespaceSet DOCUMENT_ME
+    * @param faultString DOCUMENT_ME
+    * @param faultCode DOCUMENT_ME
+    */
+   public ResourcePropertyRetrievalFailedFaultException( NamespaceVersionHolder namespaceSet,
+                                                         String                 faultString,
+                                                         QName                  faultCode )
+   {
+      super( namespaceSet, faultString, faultCode );
+   }
+
+   /**
+    * Creates a new {@link ResourcePropertyRetrievalFailedFaultException} object.
+    *
+    * @param namespaceSet DOCUMENT_ME
+    * @param faultString DOCUMENT_ME
+    */
+   public ResourcePropertyRetrievalFailedFaultException( NamespaceVersionHolder namespaceSet,
+                                                         String                 faultString )
+   {
+      super( namespaceSet, faultString );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public QName getBaseFaultName(  )
+   {
+      return new QName( NamespaceConstants.NSURI_APACHE_WS_RESOURCE, "ResourcePropertyRetrievalFailedFault" );
+   }
+}
\ No newline at end of file

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourceUnknownFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourceUnknownFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourceUnknownFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/ResourceUnknownFaultException.java Tue Aug  2 09:28:49 2005
@@ -21,7 +21,6 @@
 import org.apache.ws.resource.i18n.MessagesImpl;
 import org.apache.ws.resource.properties.NamespaceVersionHolder;
 import org.apache.ws.util.i18n.Messages;
-
 import javax.xml.namespace.QName;
 
 /**
@@ -30,68 +29,71 @@
  * @author Ian P. Springer
  */
 public class ResourceUnknownFaultException
-        extends AbstractBaseFaultException
+   extends AbstractBaseFaultException
 {
-    
-    private static final Messages MSG = MessagesImpl.getInstance();
-
-    private Object m_resourceId;
-    private String m_serviceName;
-    private QName m_name;
-
-    /**
-     * Constructs a new ResourceUnknownFaultException, specifying the resource id and service name of the unknown
-     * resource.
-     *
-     * @param resourceId
-     * @param serviceName
-     */
-    public ResourceUnknownFaultException( NamespaceVersionHolder namespaces, Object resourceId,
-                                          String serviceName )
-    {
-        super( namespaces, MSG.getMessage( Keys.RESOURCEID_NOT_FOUND_FOR_SERVICE, resourceId, serviceName ) );
-        m_name = new QName( namespaces.getPropertiesXsdNamespace(), "ResourceUnknownFault", "wsrp" );
-        m_resourceId = resourceId;
-        m_serviceName = serviceName;
-    }
-
-    /**
-     * @param rue
-     */
-    public ResourceUnknownFaultException( NamespaceVersionHolder namespaces, ResourceUnknownException rue )
-    {
-        this( namespaces, rue.getResourceId(),
-                rue.getServiceName() );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public Object getResourceId()
-    {
-        return m_resourceId;
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public String getServiceName()
-    {
-        return m_serviceName;
-    }
-
-    /**
-     * Returns the element name for this base fault.
-     *
-     * @return the element name for this base fault
-     */
-    public QName getBaseFaultName()
-    {
-        return m_name;
-    }
-
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private Object                m_resourceId;
+   private String                m_serviceName;
+   private QName                 m_name;
+
+   /**
+    * Constructs a new ResourceUnknownFaultException, specifying the resource id and service name of the unknown
+    * resource.
+    *
+    * @param resourceId
+    * @param serviceName
+    */
+   public ResourceUnknownFaultException( NamespaceVersionHolder namespaces,
+                                         Object                 resourceId,
+                                         String                 serviceName )
+   {
+      super( namespaces,
+             MSG.getMessage( Keys.RESOURCEID_NOT_FOUND_FOR_SERVICE, resourceId, serviceName ) );
+      m_name           = new QName( namespaces.getPropertiesXsdNamespace(  ),
+                                    "ResourceUnknownFault",
+                                    "wsrp" );
+      m_resourceId     = resourceId;
+      m_serviceName    = serviceName;
+   }
+
+   /**
+    * @param rue
+    */
+   public ResourceUnknownFaultException( NamespaceVersionHolder   namespaces,
+                                         ResourceUnknownException rue )
+   {
+      this( namespaces,
+            rue.getResourceId(  ),
+            rue.getServiceName(  ) );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Object getResourceId(  )
+   {
+      return m_resourceId;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getServiceName(  )
+   {
+      return m_serviceName;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/SetResourcePropertyRequestFailedFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/SetResourcePropertyRequestFailedFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/SetResourcePropertyRequestFailedFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/SetResourcePropertyRequestFailedFaultException.java Tue Aug  2 09:28:49 2005
@@ -18,7 +18,6 @@
 import org.apache.ws.Soap1_1Constants;
 import org.apache.ws.resource.faults.AbstractBaseFaultException;
 import org.apache.ws.resource.properties.NamespaceVersionHolder;
-
 import javax.xml.namespace.QName;
 
 /**
@@ -27,31 +26,33 @@
  * @author Ian P. Springer
  */
 public class SetResourcePropertyRequestFailedFaultException
-        extends AbstractBaseFaultException
+   extends AbstractBaseFaultException
 {
+   private QName m_name;
 
-    private QName m_name;
-
-    /**
-     * Constructs a new SetResourcePropertyRequestFailedFaultException.
-     *
-     * @param namespaces
-     * @param faultString a description of the error that occurred
-     */
-    public SetResourcePropertyRequestFailedFaultException( NamespaceVersionHolder namespaces, String faultString )
-    {
-        super( namespaces, faultString, Soap1_1Constants.FAULT_SERVER );
-        m_name = new QName( namespaces.getPropertiesXsdNamespace(), "SetResourcePropertyRequestFailedFault",
-                "wsrp" );
-    }
+   /**
+    * Constructs a new SetResourcePropertyRequestFailedFaultException.
+    *
+    * @param namespaces
+    * @param faultString a description of the error that occurred
+    */
+   public SetResourcePropertyRequestFailedFaultException( NamespaceVersionHolder namespaces,
+                                                          String                 faultString )
+   {
+      super( namespaces, faultString, Soap1_1Constants.FAULT_SERVER );
+      m_name =
+         new QName( namespaces.getPropertiesXsdNamespace(  ),
+                    "SetResourcePropertyRequestFailedFault",
+                    "wsrp" );
+   }
 
-    /**
-     * Returns the element name for this base fault.
-     *
-     * @return the element name for this base fault
-     */
-    public QName getBaseFaultName()
-    {
-        return m_name;
-    }
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnableToModifyResourcePropertyFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnableToModifyResourcePropertyFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnableToModifyResourcePropertyFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnableToModifyResourcePropertyFaultException.java Tue Aug  2 09:28:49 2005
@@ -20,7 +20,6 @@
 import org.apache.ws.resource.i18n.MessagesImpl;
 import org.apache.ws.resource.properties.NamespaceVersionHolder;
 import org.apache.ws.util.i18n.Messages;
-
 import javax.xml.namespace.QName;
 
 /**
@@ -29,43 +28,46 @@
  * @author Ian P. Springer
  */
 public class UnableToModifyResourcePropertyFaultException
-        extends AbstractBaseFaultException
+   extends AbstractBaseFaultException
 {
-    private static final Messages MSG = MessagesImpl.getInstance();
-
-    private QName m_name;
-    private QName m_propName;
-
-    /**
-     * Constructs a new UnableToModifyResourcePropertyFaultException.
-     *
-     * @param propName the name of the read-only property that the user attempted to modify
-     */
-    public UnableToModifyResourcePropertyFaultException( NamespaceVersionHolder namespaces, QName propName )
-    {
-        super( namespaces, MSG.getMessage( Keys.READ_ONLY_PROP, propName ) );
-        m_propName = propName;
-        m_name = new QName( namespaces.getPropertiesXsdNamespace(), "UnableToModifyResourcePropertyFault",
-                "wsrp" );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @return DOCUMENT_ME
-     */
-    public QName getPropertyName()
-    {
-        return m_propName;
-    }
-
-    /**
-     * Returns the element name for this base fault.
-     *
-     * @return the element name for this base fault
-     */
-    public QName getBaseFaultName()
-    {
-        return m_name;
-    }
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private QName                 m_name;
+   private QName                 m_propName;
+
+   /**
+    * Constructs a new UnableToModifyResourcePropertyFaultException.
+    *
+    * @param propName the name of the read-only property that the user attempted to modify
+    */
+   public UnableToModifyResourcePropertyFaultException( NamespaceVersionHolder namespaces,
+                                                        QName                  propName )
+   {
+      super( namespaces,
+             MSG.getMessage( Keys.READ_ONLY_PROP, propName ) );
+      m_propName    = propName;
+      m_name =
+         new QName( namespaces.getPropertiesXsdNamespace(  ),
+                    "UnableToModifyResourcePropertyFault",
+                    "wsrp" );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public QName getPropertyName(  )
+   {
+      return m_propName;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnknownQueryExpressionDialectFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnknownQueryExpressionDialectFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnknownQueryExpressionDialectFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UnknownQueryExpressionDialectFaultException.java Tue Aug  2 09:28:49 2005
@@ -20,7 +20,6 @@
 import org.apache.ws.resource.i18n.MessagesImpl;
 import org.apache.ws.resource.properties.NamespaceVersionHolder;
 import org.apache.ws.util.i18n.Messages;
-
 import javax.xml.namespace.QName;
 import java.net.URI;
 
@@ -30,45 +29,45 @@
  * @author Ian P. Springer
  */
 public class UnknownQueryExpressionDialectFaultException
-        extends AbstractBaseFaultException
+   extends AbstractBaseFaultException
 {
-
-    private static final Messages MSG = MessagesImpl.getInstance();
-
-    private QName m_name;
-    private URI m_dialect;
-
-    /**
-     * Constructs a new BaseFaultException with the specified SOAP message and actor.
-     *
-     * @param dialect the URI of the unsupported dialect
-     */
-    public UnknownQueryExpressionDialectFaultException( NamespaceVersionHolder namespaces, URI dialect )
-    {
-        super( namespaces, MSG.getMessage( Keys.DIALECT, dialect ) );
-        m_name = new QName( namespaces.getPropertiesXsdNamespace(), "UnknownQueryExpressionDialectFault",
-                "wsrp" );
-        m_dialect = dialect;
-    }
-
-    /**
-     * Returns the URI of the unsupported dialect.
-     *
-     * @return the URI of the unsupported dialect
-     */
-    public URI getDialect()
-    {
-        return m_dialect;
-    }
-
-    /**
-     * Returns the element name for this base fault.
-     *
-     * @return the element name for this base fault
-     */
-    public QName getBaseFaultName()
-    {
-        return m_name;
-    }
-
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+   private QName                 m_name;
+   private URI                   m_dialect;
+
+   /**
+    * Constructs a new BaseFaultException with the specified SOAP message and actor.
+    *
+    * @param dialect the URI of the unsupported dialect
+    */
+   public UnknownQueryExpressionDialectFaultException( NamespaceVersionHolder namespaces,
+                                                       URI                    dialect )
+   {
+      super( namespaces,
+             MSG.getMessage( Keys.DIALECT, dialect ) );
+      m_name    = new QName( namespaces.getPropertiesXsdNamespace(  ),
+                             "UnknownQueryExpressionDialectFault",
+                             "wsrp" );
+      m_dialect = dialect;
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
+
+   /**
+    * Returns the URI of the unsupported dialect.
+    *
+    * @return the URI of the unsupported dialect
+    */
+   public URI getDialect(  )
+   {
+      return m_dialect;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UpdateResourcePropertyRequestFailedFaultException.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UpdateResourcePropertyRequestFailedFaultException.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UpdateResourcePropertyRequestFailedFaultException.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/faults/UpdateResourcePropertyRequestFailedFaultException.java Tue Aug  2 09:28:49 2005
@@ -1,59 +1,57 @@
-/*=============================================================================*
- *  Copyright 2004 The 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.ws.resource.properties.faults;
-
-import org.apache.ws.resource.faults.AbstractBaseFaultException;
-import org.apache.ws.resource.faults.Description;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-
-import javax.xml.namespace.QName;
-
-/**
- * @author Sal Campana
- */
-public class UpdateResourcePropertyRequestFailedFaultException
-        extends AbstractBaseFaultException
-{
-
-    private QName m_name;
-
-    /**
-     * Creates a new {@link UpdateResourcePropertyRequestFailedFaultException} object.
-     *
-     * @param namespaces  DOCUMENT_ME
-     * @param description DOCUMENT_ME
-     */
-    public UpdateResourcePropertyRequestFailedFaultException( NamespaceVersionHolder namespaces,
-                                                              Description[] description )
-    {
-        super( namespaces,
-                "" );
-        m_name = new QName( namespaces.getPropertiesXsdNamespace(),
-                "UpdateResourcePropertyRequestFailedFault",
-                "wsrf-rp" );
-        setDescription( description );
-    }
-
-    /**
-     * Returns the element name for this base fault.
-     *
-     * @return the element name for this base fault
-     */
-    public QName getBaseFaultName()
-    {
-        return m_name;
-    }
+/*=============================================================================*
+ *  Copyright 2004 The 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.ws.resource.properties.faults;
+
+import org.apache.ws.resource.faults.AbstractBaseFaultException;
+import org.apache.ws.resource.faults.Description;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Sal Campana
+ */
+public class UpdateResourcePropertyRequestFailedFaultException
+   extends AbstractBaseFaultException
+{
+   private QName m_name;
+
+   /**
+    * Creates a new {@link UpdateResourcePropertyRequestFailedFaultException} object.
+    *
+    * @param namespaces  DOCUMENT_ME
+    * @param description DOCUMENT_ME
+    */
+   public UpdateResourcePropertyRequestFailedFaultException( NamespaceVersionHolder namespaces,
+                                                             Description[]          description )
+   {
+      super( namespaces, "" );
+      m_name =
+         new QName( namespaces.getPropertiesXsdNamespace(  ),
+                    "UpdateResourcePropertyRequestFailedFault",
+                    "wsrf-rp" );
+      setDescription( description );
+   }
+
+   /**
+    * Returns the element name for this base fault.
+    *
+    * @return the element name for this base fault
+    */
+   public QName getBaseFaultName(  )
+   {
+      return m_name;
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractGetResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractGetResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractGetResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractGetResourcePropertiesPortType.java Tue Aug  2 09:28:49 2005
@@ -1,95 +1,133 @@
-/*=============================================================================*
- *  Copyright 2005 The 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.ws.resource.properties.impl;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.i18n.Keys;
-import org.apache.ws.resource.i18n.MessagesImpl;
-import org.apache.ws.resource.properties.NamespaceVersionHolder;
-import org.apache.ws.resource.properties.ResourceProperty;
-import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
-import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
-import org.apache.ws.util.XmlBeanUtils;
-import org.apache.ws.util.i18n.Messages;
-import org.apache.xmlbeans.XmlObject;
-
-import javax.xml.namespace.QName;
-import java.util.Iterator;
-
-/**
- * A version-neutral base class that is extended by all impls of GetRP and GetMultipleRPs portTypes.
- *
- * @author Ian Springer
- */
-public abstract class AbstractGetResourcePropertiesPortType extends AbstractResourcePropertiesPortType
-{
-
-    private static final Log LOG = LogFactory.getLog( AbstractGetResourcePropertiesPortType.class );
-    private static final Messages MSG = MessagesImpl.getInstance();
-
-    protected AbstractGetResourcePropertiesPortType( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    protected void addPropertyToResponse( ResourceProperty prop, XmlObject response )
-    {
-        Iterator propElemIter = prop.iterator();
-        while ( propElemIter.hasNext() )
-        {
-            XmlObject propElem = (XmlObject) propElemIter.next();
-            XmlBeanUtils.addChildElement( response, propElem );
-        }
-    }
-
-    protected void addPropertiesToResponse( ResourceProperty[] props, XmlObject response )
-    {
-        for ( int i = 0; i < props.length; i++ )
-        {
-            addPropertyToResponse( props[i], response );
-        }
-    }
-
-    protected ResourceProperty[] getMultipleProperties( QName[] propNames )
-    {
-        ResourceProperty[] props = new ResourceProperty[propNames.length];
-        for ( int i = 0; i < propNames.length; i++ )
-        {
-            props[i] = getProperty( propNames[i] );
-        }
-        return props;
-    }
-
-    protected ResourceProperty getProperty( QName propName )
-    {
-        if ( LOG.isDebugEnabled() )
-        {
-            LOG.debug( MSG.getMessage( Keys.GET_RP_REQ, propName ) );
-        }
-        ResourceProperty prop = getProperties().get( propName );
-        if ( prop == null )
-        {
-            throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(), propName );
-        }
-        refreshProperty( prop );
-        return prop;
-    }
-
-    protected abstract NamespaceVersionHolder getNamespaceSet();
-
-}
+/*=============================================================================*
+ *  Copyright 2004 The 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.ws.resource.properties.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.NamespaceVersionHolder;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.xmlbeans.XmlObject;
+import javax.xml.namespace.QName;
+import java.util.Iterator;
+
+/**
+ * A version-neutral base class that is extended by all impls of GetRP and GetMultipleRPs portTypes.
+ *
+ * @author Ian Springer
+ */
+public abstract class AbstractGetResourcePropertiesPortType
+   extends AbstractResourcePropertiesPortType
+{
+   private static final Log      LOG = LogFactory.getLog( AbstractGetResourcePropertiesPortType.class );
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+
+   /**
+    * Creates a new {@link AbstractGetResourcePropertiesPortType} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   protected AbstractGetResourcePropertiesPortType( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param propNames DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected ResourceProperty[] getMultipleProperties( QName[] propNames )
+   {
+      ResourceProperty[] props = new ResourceProperty[propNames.length];
+      for ( int i = 0; i < propNames.length; i++ )
+      {
+         props[i] = getProperty( propNames[i] );
+      }
+
+      return props;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected abstract NamespaceVersionHolder getNamespaceSet(  );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param propName DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected ResourceProperty getProperty( QName propName )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.GET_RP_REQ, propName ) );
+      }
+
+      ResourceProperty prop = getProperties(  ).get( propName );
+      if ( prop == null )
+      {
+         throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(  ), propName );
+      }
+
+      refreshProperty( prop );
+      return prop;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param props DOCUMENT_ME
+    * @param response DOCUMENT_ME
+    */
+   protected void addPropertiesToResponse( ResourceProperty[] props,
+                                           XmlObject          response )
+   {
+      for ( int i = 0; i < props.length; i++ )
+      {
+         addPropertyToResponse( props[i], response );
+      }
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param prop DOCUMENT_ME
+    * @param response DOCUMENT_ME
+    */
+   protected void addPropertyToResponse( ResourceProperty prop,
+                                         XmlObject        response )
+   {
+      Iterator propElemIter = prop.iterator(  );
+      while ( propElemIter.hasNext(  ) )
+      {
+         XmlObject propElem = (XmlObject) propElemIter.next(  );
+         XmlBeanUtils.addChildElement( response, propElem );
+      }
+   }
+}
\ No newline at end of file

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractResourcePropertiesPortType.java Tue Aug  2 09:28:49 2005
@@ -1,95 +1,104 @@
-/*=============================================================================*
- *  Copyright 2004 The 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.ws.resource.properties.impl;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.ws.Soap1_1Constants;
-import org.apache.ws.resource.AbstractPortType;
-import org.apache.ws.resource.PropertiesResource;
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.i18n.Keys;
-import org.apache.ws.resource.i18n.MessagesImpl;
-import org.apache.ws.resource.properties.ResourceProperty;
-import org.apache.ws.resource.properties.ResourcePropertyCallback;
-import org.apache.ws.resource.properties.ResourcePropertySet;
-import org.apache.ws.resource.properties.faults.ResourcePropertyRetrievalFailedFaultException;
-import org.apache.ws.util.i18n.Messages;
-
-import java.util.Iterator;
-
-/**
- * A version-neutral base class that is extended by all portType impls that make use of resource properties.
- *
- * @author Ian Springer
- */
-public abstract class AbstractResourcePropertiesPortType
-   extends AbstractPortType
-{
-   private static final Log LOG = LogFactory.getLog( AbstractResourcePropertiesPortType.class );
-   private static final Messages MSG = MessagesImpl.getInstance();
-    
-   /**
-    * Creates a new {@link AbstractResourcePropertiesPortType} object.
-    *
-    * @param resourceContext DOCUMENT_ME
-    */
-   protected AbstractResourcePropertiesPortType( ResourceContext resourceContext )
-   {
-      super( resourceContext );
-   }
-
-   /**
-    * DOCUMENT_ME
-    *
-    * @return DOCUMENT_ME
-    */
-   protected final ResourcePropertySet getProperties(  )
-   {
-      if ( !( getResource(  ) instanceof PropertiesResource ) )
-      {
-         throw new IllegalStateException( MSG.getMessage( Keys.CALL_WSRP_OP_ON_NOPROP) );
-      }
-      return ( (PropertiesResource) getResource(  ) ).getResourcePropertySet(  );
-   }
-
-   protected void refreshAllProperties()
-   {
-       Iterator iterator = getProperties().iterator();
-       while (iterator.hasNext())
-       {
-           refreshProperty((ResourceProperty)iterator.next());           
-       }
-   }
-
-   protected void refreshProperty( ResourceProperty prop )
-   {
-      ResourcePropertyCallback callBack = prop.getCallBack(  );
-      if ( callBack != null )
-      {
-          try
-          {
-              callBack.refreshProperty( prop );
-          }
-          catch (Exception e)
-          {
-              LOG.debug("Refresh Callback Failed",e);
-              throw new ResourcePropertyRetrievalFailedFaultException( getNamespaceSet(), e.getLocalizedMessage(),Soap1_1Constants.FAULT_SERVER);
-          }
-      }
-   }
-
+/*=============================================================================*
+ *  Copyright 2004 The 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.ws.resource.properties.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.Soap1_1Constants;
+import org.apache.ws.resource.AbstractPortType;
+import org.apache.ws.resource.PropertiesResource;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import org.apache.ws.resource.properties.ResourcePropertySet;
+import org.apache.ws.resource.properties.faults.ResourcePropertyRetrievalFailedFaultException;
+import org.apache.ws.util.i18n.Messages;
+import java.util.Iterator;
+
+/**
+ * A version-neutral base class that is extended by all portType impls that make use of resource properties.
+ *
+ * @author Ian Springer
+ */
+public abstract class AbstractResourcePropertiesPortType
+   extends AbstractPortType
+{
+   private static final Log      LOG = LogFactory.getLog( AbstractResourcePropertiesPortType.class );
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+
+   /**
+    * Creates a new {@link AbstractResourcePropertiesPortType} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   protected AbstractResourcePropertiesPortType( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected final ResourcePropertySet getProperties(  )
+   {
+      if ( !( getResource(  ) instanceof PropertiesResource ) )
+      {
+         throw new IllegalStateException( MSG.getMessage( Keys.CALL_WSRP_OP_ON_NOPROP ) );
+      }
+
+      return ( (PropertiesResource) getResource(  ) ).getResourcePropertySet(  );
+   }
+
+   /**
+    * DOCUMENT_ME
+    */
+   protected void refreshAllProperties(  )
+   {
+      Iterator iterator = getProperties(  ).iterator(  );
+      while ( iterator.hasNext(  ) )
+      {
+         refreshProperty( (ResourceProperty) iterator.next(  ) );
+      }
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param prop DOCUMENT_ME
+    */
+   protected void refreshProperty( ResourceProperty prop )
+   {
+      ResourcePropertyCallback callBack = prop.getCallBack(  );
+      if ( callBack != null )
+      {
+         try
+         {
+            callBack.refreshProperty( prop );
+         }
+         catch ( Exception e )
+         {
+            LOG.debug( "Refresh Callback Failed", e );
+            throw new ResourcePropertyRetrievalFailedFaultException( getNamespaceSet(  ),
+                                                                     e.getLocalizedMessage(  ),
+                                                                     Soap1_1Constants.FAULT_SERVER );
+         }
+      }
+   }
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractSetResourcePropertiesPortType.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractSetResourcePropertiesPortType.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractSetResourcePropertiesPortType.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractSetResourcePropertiesPortType.java Tue Aug  2 09:28:49 2005
@@ -1,384 +1,439 @@
-/*=============================================================================*
- *  Copyright 2005 The 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.ws.resource.properties.impl;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.i18n.Keys;
-import org.apache.ws.resource.i18n.MessagesImpl;
-import org.apache.ws.resource.properties.MetaDataViolationException;
-import org.apache.ws.resource.properties.ResourceProperty;
-import org.apache.ws.resource.properties.ResourcePropertyCallback;
-import org.apache.ws.resource.properties.ResourcePropertyMetaData;
-import org.apache.ws.resource.properties.ResourcePropertyValueChangeListener;
-import org.apache.ws.resource.properties.SetResourcePropertyCallback;
-import org.apache.ws.resource.properties.faults.DeleteResourcePropertyRequestFailedFaultException;
-import org.apache.ws.resource.properties.faults.InvalidInsertResourcePropertiesRequestContentFaultException;
-import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
-import org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException;
-import org.apache.ws.resource.properties.faults.InvalidUpdateResourcePropertiesRequestContentFaultException;
-import org.apache.ws.resource.properties.faults.SetResourcePropertyRequestFailedFaultException;
-import org.apache.ws.resource.properties.faults.UnableToModifyResourcePropertyFaultException;
-import org.apache.ws.util.XmlBeanUtils;
-import org.apache.ws.util.i18n.Messages;
-import org.apache.xmlbeans.XmlObject;
-
-import javax.xml.namespace.QName;
-import java.util.Iterator;
-
-/**
- * A version-neutral base class that is extended by all impls of SetRP, InsertRPs, DeleteRPs, and UpdateRPs portTypes.
- *
- * @author Ian Springer
- */
-public abstract class AbstractSetResourcePropertiesPortType extends AbstractResourcePropertiesPortType
-{
-
-    private static final Log LOG = LogFactory.getLog( AbstractSetResourcePropertiesPortType.class );
-    private static final Messages MSG = MessagesImpl.getInstance();
-
-    protected AbstractSetResourcePropertiesPortType( ResourceContext resourceContext )
-    {
-        super( resourceContext );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param nameOfPropToBeDeleted name of property to be deleted
-     */
-    protected void deleteResourceProperty( QName nameOfPropToBeDeleted )
-    {
-        if ( LOG.isDebugEnabled() )
-        {
-            LOG.debug( MSG.getMessage( Keys.DEL_RP_REQ, nameOfPropToBeDeleted ) );
-        }
-        if ( nameOfPropToBeDeleted == null )
-        {
-            throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(), MSG.getMessage( Keys.DEL_MISSING_RP_ATTRIB ) );
-        }
-        ResourceProperty prop = getProperties().get( nameOfPropToBeDeleted );
-        if ( prop == null )
-        {
-            if ( getProperties().getMetaData().isOpenContent() )
-            {
-                return;
-            }
-            else
-            {
-                throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(), nameOfPropToBeDeleted );
-            }
-        }
-        throwFaultIfPropertyIsReadOnly( prop );
-        throwFaultIfDeletionViolatesSchema( prop );
-        try
-        {
-            deletePropertyCallback( prop );
-        }
-        catch ( RuntimeException re )
-        {
-            throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(), re.toString() );
-        }
-        Object[] oldValue = getValue( prop );
-        prop.clear();
-        Object[] newValue = null;
-        firePropChangeEvents( prop, oldValue, newValue );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param propElemsToBeInserted DOCUMENT_ME
-     */
-    protected void insertResourceProperty( XmlObject[] propElemsToBeInserted  )
-    {
-        if ( LOG.isDebugEnabled() )
-        {
-            LOG.debug( MSG.getMessage( Keys.INSERT_RP_REQ ) );
-        }
-        if ( propElemsToBeInserted.length == 0 )
-        {
-            return; // nothing to do
-        }
-        if ( elementNamesNotHomogenous( propElemsToBeInserted ) )
-        {
-            throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_INSERT_ELEMS_NOT_HOMOGENOUS ) );
-        }
-
-        QName propName = XmlBeanUtils.getName( propElemsToBeInserted[0] );
-        ResourceProperty prop = getProperty( propName );
-
-        if(prop == null)
-        {
-            prop = createAnyProperty(propName);
-            getProperties().add(prop);
-        }
-
-        if(!prop.getMetaData().isAny())
-        {
-            throwFaultIfInsertionViolatesSchema( prop, propElemsToBeInserted );
-        }
-
-        throwFaultIfPropertyIsReadOnly( prop );
-
-        try
-        {
-            insertPropertyCallback( prop, propElemsToBeInserted );
-        }
-        catch ( RuntimeException re )
-        {
-            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), re.toString() );
-        }
-
-        Object[] oldValue = getValue( prop );
-        for ( int i = 0; i < propElemsToBeInserted.length; i++ )
-        {
-            try
-            {
-                prop.add( propElemsToBeInserted[i] );
-            }
-            catch ( MetaDataViolationException mdve )
-            {
-                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), mdve );
-            }
-        }
-        Object[] newValue = getValue( prop );
-        firePropChangeEvents( prop, oldValue, newValue );
-    }
-
-    /**
-     * DOCUMENT_ME
-     *
-     * @param newPropElems DOCUMENT_ME
-     */
-    protected void updateResourceProperty( XmlObject[] newPropElems )
-    {
-        if ( LOG.isDebugEnabled() )
-        {
-            LOG.debug( MSG.getMessage( Keys.UPDATE_RP_REQ ) );
-        }
-        if ( newPropElems.length == 0 )
-        {
-            return; // nothing to do
-        }
-        QName propName = XmlBeanUtils.getName( newPropElems[0] );
-        ResourceProperty prop = getProperty( propName );
-
-        throwFaultIfPropertyIsReadOnly( prop );
-        if ( elementNamesNotHomogenous( newPropElems ) )
-        {
-            throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS ) );
-        }
-        throwFaultIfUpdateViolatesSchema( prop, newPropElems );
-
-        try
-        {
-            updatePropertyCallback( prop, newPropElems );
-        }
-        catch ( RuntimeException re )
-        {
-            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), re.toString() );
-        }
-
-        Object[] oldValue = getValue( prop );
-
-        try
-        {
-            prop.clear();
-            for ( int i = 0; i < newPropElems.length; i++ )
-            {
-                prop.add( newPropElems[i] );
-            }
-        }
-        catch ( MetaDataViolationException mdve )
-        {
-            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), mdve );
-        }
-        Object[] newValue = getValue( prop );
-        firePropChangeEvents( prop, oldValue, newValue );
-    }
-
-    private ResourceProperty createAnyProperty(QName propName)
-    {
-        ResourcePropertyMetaData propMetaData = new AnyResourcePropertyMetaData( propName );
-        return propMetaData.create( getProperties() );
-    }
-
-    private Object[] getValue( ResourceProperty prop )
-    {
-        Object[] value = new Object[prop.size()];
-        Iterator propElemIter = prop.iterator();
-        int i = 0;
-        while ( propElemIter.hasNext() )
-        {
-            value[i++] = XmlBeanUtils.copyXmlBean((XmlObject) propElemIter.next());
-        }
-        return value;
-    }
-
-    private ResourceProperty getProperty( QName propName )
-    {
-        LOG.debug( MSG.getMessage( Keys.GET_RP_WITH_NAME,
-                propName.toString() ) );
-        ResourceProperty prop = getProperties().get( propName );
-        if ( prop == null )
-        {
-            if ( !getProperties().getMetaData().isOpenContent() )
-            {
-                throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(), propName );
-            }
-        }
-        return prop;
-    }
-
-    private boolean elementNamesNotHomogenous( XmlObject[] propElems )
-    {
-        QName firstPropElemName = XmlBeanUtils.getName( propElems[0] );
-        for ( int i = 1; i < propElems.length; i++ )
-        {
-            QName propElemName = XmlBeanUtils.getName( propElems[i] );
-            if ( !firstPropElemName.equals( propElemName ) )
-            {
-                return true;
-            }
-        }
-        return false;
-    }
-
-    private void throwFaultIfInsertionViolatesSchema( ResourceProperty prop, XmlObject[] propElemsToBeInserted )
-    {
-        // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
-        if ( prop.getMetaData().getMaxOccurs() != -1 &&( prop.size() + propElemsToBeInserted.length ) > prop.getMetaData().getMaxOccurs() )
-        {
-            throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA,
-                    ( ( propElemsToBeInserted.length > 1 )
-                    ? "s" : "" ),
-                    prop.getMetaData().getName() ) );
-        }
-    }
-
-    private void throwFaultIfUpdateViolatesSchema( ResourceProperty prop, XmlObject[] newPropElems )
-    {
-        // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
-        if ( prop.getMetaData().getMaxOccurs() != -1 && newPropElems.length > prop.getMetaData().getMaxOccurs() )
-        {
-            throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA,
-                    prop.getMetaData().getName() ) );
-        }
-    }
-
-    /**
-     * Returns SetResourcePropertyCallback or null
-     *
-     * @param prop
-     *
-     * @return SetResourcePropertyCallback or null
-     */
-    private SetResourcePropertyCallback getSetResourcePropertyCallback( ResourceProperty prop )
-    {
-        SetResourcePropertyCallback setResourcePropertyCallback = null;
-        ResourcePropertyCallback callBack = prop.getCallBack();
-        if ( callBack instanceof SetResourcePropertyCallback )
-        {
-            setResourcePropertyCallback = (SetResourcePropertyCallback) callBack;
-        }
-
-        return setResourcePropertyCallback;
-    }
-
-    private void insertPropertyCallback( ResourceProperty prop,
-                                         XmlObject[] propElemsToBeInserted )
-    {
-        SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
-        if ( setResourcePropertyCallback != null )
-        {
-            try
-            {
-                setResourcePropertyCallback.insertProperty( propElemsToBeInserted );
-            }
-            catch (Exception e)
-            {
-                LOG.debug(MSG.getMessage( Keys.ERROR_DURING_INSERT_CALLBACK, setResourcePropertyCallback),e);
-                throw new SetResourcePropertyRequestFailedFaultException(getNamespaceSet(), MSG.getMessage( Keys.ERROR_DURING_INSERT));
-            }
-        }
-    }
-
-    private void throwFaultIfPropertyIsReadOnly( ResourceProperty prop )
-    {
-        if ( prop.getMetaData().isReadOnly() )
-        {
-            throw new UnableToModifyResourcePropertyFaultException( getNamespaceSet(), prop.getMetaData().getName() );
-        }
-    }
-
-    private void updatePropertyCallback( ResourceProperty prop,
-                                         XmlObject[] newPropElems )
-    {
-        SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
-        if ( setResourcePropertyCallback != null )
-        {
-            try
-            {
-                setResourcePropertyCallback.updateProperty( newPropElems );
-            }
-            catch (Exception e)
-            {
-                LOG.debug(MSG.getMessage( Keys.ERROR_DURING_UPDATE_CALLBACK, setResourcePropertyCallback),e);
-                throw new SetResourcePropertyRequestFailedFaultException(getNamespaceSet(), MSG.getMessage( Keys.ERROR_DURING_UPDATE));
-            }
-        }
-    }
-
-    private void throwFaultIfDeletionViolatesSchema( ResourceProperty prop )
-    {
-        if ( prop.getMetaData().getMinOccurs() != 0 )
-        {
-            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA,
-                    prop.getMetaData().getName() ) );
-        }
-    }
-
-    private void deletePropertyCallback( ResourceProperty prop )
-    {
-        QName nameOfPropToBeDeleted = prop.getMetaData().getName();
-        SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
-        if ( setResourcePropertyCallback != null )
-        {
-            try
-            {
-                setResourcePropertyCallback.deleteProperty( nameOfPropToBeDeleted );
-            }
-            catch (Exception e)
-            {
-                LOG.debug(MSG.getMessage( Keys.ERROR_DURING_DELETE_CALLBACK, setResourcePropertyCallback),e);
-                throw new SetResourcePropertyRequestFailedFaultException(getNamespaceSet(), MSG.getMessage( Keys.ERROR_DURING_DELETE));
-            }
-        }
-    }
-
-    private void firePropChangeEvents( ResourceProperty prop, Object[] oldValue, Object[] newValue )
-    {
-        for ( int i = 0; i < prop.getChangeListeners().length; i++ )
-        {
-            ResourcePropertyValueChangeListener listener = prop.getChangeListeners()[i];
-            listener.propertyChanged( getResourcePropertyValueChangeEvent( oldValue, newValue ) );
-        }
-    }
-
-    protected abstract AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue, Object[] newValue );
-}
+/*=============================================================================*
+ *  Copyright 2004 The 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.ws.resource.properties.impl;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.i18n.Keys;
+import org.apache.ws.resource.i18n.MessagesImpl;
+import org.apache.ws.resource.properties.MetaDataViolationException;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertyCallback;
+import org.apache.ws.resource.properties.ResourcePropertyMetaData;
+import org.apache.ws.resource.properties.ResourcePropertyValueChangeListener;
+import org.apache.ws.resource.properties.SetResourcePropertyCallback;
+import org.apache.ws.resource.properties.faults.DeleteResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.InvalidInsertResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.InvalidResourcePropertyQNameFaultException;
+import org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.InvalidUpdateResourcePropertiesRequestContentFaultException;
+import org.apache.ws.resource.properties.faults.SetResourcePropertyRequestFailedFaultException;
+import org.apache.ws.resource.properties.faults.UnableToModifyResourcePropertyFaultException;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.ws.util.i18n.Messages;
+import org.apache.xmlbeans.XmlObject;
+import javax.xml.namespace.QName;
+import java.util.Iterator;
+
+/**
+ * A version-neutral base class that is extended by all impls of SetRP, InsertRPs, DeleteRPs, and UpdateRPs portTypes.
+ *
+ * @author Ian Springer
+ */
+public abstract class AbstractSetResourcePropertiesPortType
+   extends AbstractResourcePropertiesPortType
+{
+   private static final Log      LOG = LogFactory.getLog( AbstractSetResourcePropertiesPortType.class );
+   private static final Messages MSG = MessagesImpl.getInstance(  );
+
+   /**
+    * Creates a new {@link AbstractSetResourcePropertiesPortType} object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   protected AbstractSetResourcePropertiesPortType( ResourceContext resourceContext )
+   {
+      super( resourceContext );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected abstract AbstractXmlBeansResourcePropertyValueChangeEvent getResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                                                                            Object[] newValue );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param nameOfPropToBeDeleted name of property to be deleted
+    */
+   protected void deleteResourceProperty( QName nameOfPropToBeDeleted )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.DEL_RP_REQ, nameOfPropToBeDeleted ) );
+      }
+
+      if ( nameOfPropToBeDeleted == null )
+      {
+         throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      MSG.getMessage( Keys.DEL_MISSING_RP_ATTRIB ) );
+      }
+
+      ResourceProperty prop = getProperties(  ).get( nameOfPropToBeDeleted );
+      if ( prop == null )
+      {
+         if ( getProperties(  ).getMetaData(  ).isOpenContent(  ) )
+         {
+            return;
+         }
+         else
+         {
+            throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(  ), nameOfPropToBeDeleted );
+         }
+      }
+
+      throwFaultIfPropertyIsReadOnly( prop );
+      throwFaultIfDeletionViolatesSchema( prop );
+      try
+      {
+         deletePropertyCallback( prop );
+      }
+      catch ( RuntimeException re )
+      {
+         throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      re.toString(  ) );
+      }
+
+      Object[] oldValue = getValue( prop );
+      prop.clear(  );
+      Object[] newValue = null;
+      firePropChangeEvents( prop, oldValue, newValue );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param propElemsToBeInserted DOCUMENT_ME
+    */
+   protected void insertResourceProperty( XmlObject[] propElemsToBeInserted )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.INSERT_RP_REQ ) );
+      }
+
+      if ( propElemsToBeInserted.length == 0 )
+      {
+         return; // nothing to do
+      }
+
+      if ( elementNamesNotHomogenous( propElemsToBeInserted ) )
+      {
+         throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                MSG.getMessage( Keys.ERROR_INSERT_ELEMS_NOT_HOMOGENOUS ) );
+      }
+
+      QName            propName = XmlBeanUtils.getName( propElemsToBeInserted[0] );
+      ResourceProperty prop = getProperty( propName );
+
+      if ( prop == null )
+      {
+         prop = createAnyProperty( propName );
+         getProperties(  ).add( prop );
+      }
+
+      if ( !prop.getMetaData(  ).isAny(  ) )
+      {
+         throwFaultIfInsertionViolatesSchema( prop, propElemsToBeInserted );
+      }
+
+      throwFaultIfPropertyIsReadOnly( prop );
+
+      try
+      {
+         insertPropertyCallback( prop, propElemsToBeInserted );
+      }
+      catch ( RuntimeException re )
+      {
+         throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                   re.toString(  ) );
+      }
+
+      Object[] oldValue = getValue( prop );
+      for ( int i = 0; i < propElemsToBeInserted.length; i++ )
+      {
+         try
+         {
+            prop.add( propElemsToBeInserted[i] );
+         }
+         catch ( MetaDataViolationException mdve )
+         {
+            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ), mdve );
+         }
+      }
+
+      Object[] newValue = getValue( prop );
+      firePropChangeEvents( prop, oldValue, newValue );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param newPropElems DOCUMENT_ME
+    */
+   protected void updateResourceProperty( XmlObject[] newPropElems )
+   {
+      if ( LOG.isDebugEnabled(  ) )
+      {
+         LOG.debug( MSG.getMessage( Keys.UPDATE_RP_REQ ) );
+      }
+
+      if ( newPropElems.length == 0 )
+      {
+         return; // nothing to do
+      }
+
+      QName            propName = XmlBeanUtils.getName( newPropElems[0] );
+      ResourceProperty prop = getProperty( propName );
+
+      throwFaultIfPropertyIsReadOnly( prop );
+      if ( elementNamesNotHomogenous( newPropElems ) )
+      {
+         throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                MSG.getMessage( Keys.ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS ) );
+      }
+
+      throwFaultIfUpdateViolatesSchema( prop, newPropElems );
+
+      try
+      {
+         updatePropertyCallback( prop, newPropElems );
+      }
+      catch ( RuntimeException re )
+      {
+         throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                   re.toString(  ) );
+      }
+
+      Object[] oldValue = getValue( prop );
+
+      try
+      {
+         prop.clear(  );
+         for ( int i = 0; i < newPropElems.length; i++ )
+         {
+            prop.add( newPropElems[i] );
+         }
+      }
+      catch ( MetaDataViolationException mdve )
+      {
+         throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ), mdve );
+      }
+
+      Object[] newValue = getValue( prop );
+      firePropChangeEvents( prop, oldValue, newValue );
+   }
+
+   private ResourceProperty getProperty( QName propName )
+   {
+      LOG.debug( MSG.getMessage( Keys.GET_RP_WITH_NAME,
+                                 propName.toString(  ) ) );
+      ResourceProperty prop = getProperties(  ).get( propName );
+      if ( prop == null )
+      {
+         if ( !getProperties(  ).getMetaData(  ).isOpenContent(  ) )
+         {
+            throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(  ), propName );
+         }
+      }
+
+      return prop;
+   }
+
+   /**
+    * Returns SetResourcePropertyCallback or null
+    *
+    * @param prop
+    *
+    * @return SetResourcePropertyCallback or null
+    */
+   private SetResourcePropertyCallback getSetResourcePropertyCallback( ResourceProperty prop )
+   {
+      SetResourcePropertyCallback setResourcePropertyCallback = null;
+      ResourcePropertyCallback    callBack = prop.getCallBack(  );
+      if ( callBack instanceof SetResourcePropertyCallback )
+      {
+         setResourcePropertyCallback = (SetResourcePropertyCallback) callBack;
+      }
+
+      return setResourcePropertyCallback;
+   }
+
+   private Object[] getValue( ResourceProperty prop )
+   {
+      Object[] value        = new Object[prop.size(  )];
+      Iterator propElemIter = prop.iterator(  );
+      int      i            = 0;
+      while ( propElemIter.hasNext(  ) )
+      {
+         value[i++] = XmlBeanUtils.copyXmlBean( (XmlObject) propElemIter.next(  ) );
+      }
+
+      return value;
+   }
+
+   private ResourceProperty createAnyProperty( QName propName )
+   {
+      ResourcePropertyMetaData propMetaData = new AnyResourcePropertyMetaData( propName );
+      return propMetaData.create( getProperties(  ) );
+   }
+
+   private void deletePropertyCallback( ResourceProperty prop )
+   {
+      QName                       nameOfPropToBeDeleted       = prop.getMetaData(  ).getName(  );
+      SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
+      if ( setResourcePropertyCallback != null )
+      {
+         try
+         {
+            setResourcePropertyCallback.deleteProperty( nameOfPropToBeDeleted );
+         }
+         catch ( Exception e )
+         {
+            LOG.debug( MSG.getMessage( Keys.ERROR_DURING_DELETE_CALLBACK, setResourcePropertyCallback ),
+                       e );
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      MSG.getMessage( Keys.ERROR_DURING_DELETE ) );
+         }
+      }
+   }
+
+   private boolean elementNamesNotHomogenous( XmlObject[] propElems )
+   {
+      QName firstPropElemName = XmlBeanUtils.getName( propElems[0] );
+      for ( int i = 1; i < propElems.length; i++ )
+      {
+         QName propElemName = XmlBeanUtils.getName( propElems[i] );
+         if ( !firstPropElemName.equals( propElemName ) )
+         {
+            return true;
+         }
+      }
+
+      return false;
+   }
+
+   private void firePropChangeEvents( ResourceProperty prop,
+                                      Object[]         oldValue,
+                                      Object[]         newValue )
+   {
+      for ( int i = 0; i < prop.getChangeListeners(  ).length; i++ )
+      {
+         ResourcePropertyValueChangeListener listener = prop.getChangeListeners(  )[i];
+         listener.propertyChanged( getResourcePropertyValueChangeEvent( oldValue, newValue ) );
+      }
+   }
+
+   private void insertPropertyCallback( ResourceProperty prop,
+                                        XmlObject[]      propElemsToBeInserted )
+   {
+      SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
+      if ( setResourcePropertyCallback != null )
+      {
+         try
+         {
+            setResourcePropertyCallback.insertProperty( propElemsToBeInserted );
+         }
+         catch ( Exception e )
+         {
+            LOG.debug( MSG.getMessage( Keys.ERROR_DURING_INSERT_CALLBACK, setResourcePropertyCallback ),
+                       e );
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      MSG.getMessage( Keys.ERROR_DURING_INSERT ) );
+         }
+      }
+   }
+
+   private void throwFaultIfDeletionViolatesSchema( ResourceProperty prop )
+   {
+      if ( prop.getMetaData(  ).getMinOccurs(  ) != 0 )
+      {
+         throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                             MSG.getMessage( 
+                                                                                             Keys.ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA,
+                                                                                             prop.getMetaData(  )
+                                                                                                 .getName(  ) ) );
+      }
+   }
+
+   private void throwFaultIfInsertionViolatesSchema( ResourceProperty prop,
+                                                     XmlObject[]      propElemsToBeInserted )
+   {
+      // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
+      if ( ( prop.getMetaData(  ).getMaxOccurs(  ) != -1 )
+           && ( ( prop.size(  ) + propElemsToBeInserted.length ) > prop.getMetaData(  ).getMaxOccurs(  ) ) )
+      {
+         throw new InvalidInsertResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                MSG.getMessage( 
+                                                                                                Keys.ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA,
+                                                                                                ( ( propElemsToBeInserted.length > 1 )
+                                                                                                  ? "s" : "" ),
+                                                                                                prop.getMetaData(  )
+                                                                                                    .getName(  ) ) );
+      }
+   }
+
+   private void throwFaultIfPropertyIsReadOnly( ResourceProperty prop )
+   {
+      if ( prop.getMetaData(  ).isReadOnly(  ) )
+      {
+         throw new UnableToModifyResourcePropertyFaultException( getNamespaceSet(  ),
+                                                                 prop.getMetaData(  ).getName(  ) );
+      }
+   }
+
+   private void throwFaultIfUpdateViolatesSchema( ResourceProperty prop,
+                                                  XmlObject[]      newPropElems )
+   {
+      // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
+      if ( ( prop.getMetaData(  ).getMaxOccurs(  ) != -1 )
+           && ( newPropElems.length > prop.getMetaData(  ).getMaxOccurs(  ) ) )
+      {
+         throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
+                                                                                MSG.getMessage( 
+                                                                                                Keys.ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA,
+                                                                                                prop.getMetaData(  )
+                                                                                                    .getName(  ) ) );
+      }
+   }
+
+   private void updatePropertyCallback( ResourceProperty prop,
+                                        XmlObject[]      newPropElems )
+   {
+      SetResourcePropertyCallback setResourcePropertyCallback = getSetResourcePropertyCallback( prop );
+      if ( setResourcePropertyCallback != null )
+      {
+         try
+         {
+            setResourcePropertyCallback.updateProperty( newPropElems );
+         }
+         catch ( Exception e )
+         {
+            LOG.debug( MSG.getMessage( Keys.ERROR_DURING_UPDATE_CALLBACK, setResourcePropertyCallback ),
+                       e );
+            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
+                                                                      MSG.getMessage( Keys.ERROR_DURING_UPDATE ) );
+         }
+      }
+   }
+}
\ No newline at end of file

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractXmlBeansResourcePropertyValueChangeEvent.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractXmlBeansResourcePropertyValueChangeEvent.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractXmlBeansResourcePropertyValueChangeEvent.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AbstractXmlBeansResourcePropertyValueChangeEvent.java Tue Aug  2 09:28:49 2005
@@ -1,55 +1,87 @@
-/*
- * Copyright 2004 The 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.ws.resource.properties.impl;
-
-import org.apache.ws.XmlObjectWrapper;
-import org.apache.ws.resource.properties.ResourcePropertyValueChangeEvent;
-import org.apache.xmlbeans.XmlObject;
-
-/**
- * @author Ian P. Springer (Hewlett-Packard Company)
- */
-public abstract class AbstractXmlBeansResourcePropertyValueChangeEvent implements ResourcePropertyValueChangeEvent, XmlObjectWrapper
-{
-
-    private Object[] m_oldValue;
-    private Object[] m_newValue;
-    private XmlObject m_propValueChangeNotifDocXBean;
-
-    public AbstractXmlBeansResourcePropertyValueChangeEvent( Object[] oldValue, Object[] newValue )
-    {
-        m_oldValue = oldValue;
-        m_newValue = newValue;
-        m_propValueChangeNotifDocXBean = buildPropValueChangeNotifDocXmlBean( oldValue, newValue );
-    }
-
-    public Object[] getOldValue()
-    {
-        return m_oldValue;
-    }
-
-    public Object[] getNewValue()
-    {
-        return m_newValue;
-    }
-
-    public XmlObject getXmlObject()
-    {
-        return m_propValueChangeNotifDocXBean;
-    }
-
-    protected abstract XmlObject buildPropValueChangeNotifDocXmlBean( Object[] oldValue, Object[] newValue );
+/*=============================================================================*
+ *  Copyright 2004 The 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.ws.resource.properties.impl;
+
+import org.apache.ws.XmlObjectWrapper;
+import org.apache.ws.resource.properties.ResourcePropertyValueChangeEvent;
+import org.apache.xmlbeans.XmlObject;
+
+/**
+ * @author Ian P. Springer (Hewlett-Packard Company)
+ */
+public abstract class AbstractXmlBeansResourcePropertyValueChangeEvent
+   implements ResourcePropertyValueChangeEvent,
+              XmlObjectWrapper
+{
+   private Object[]  m_oldValue;
+   private Object[]  m_newValue;
+   private XmlObject m_propValueChangeNotifDocXBean;
+
+   /**
+    * Creates a new {@link AbstractXmlBeansResourcePropertyValueChangeEvent} object.
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    */
+   public AbstractXmlBeansResourcePropertyValueChangeEvent( Object[] oldValue,
+                                                            Object[] newValue )
+   {
+      m_oldValue                        = oldValue;
+      m_newValue                        = newValue;
+      m_propValueChangeNotifDocXBean    = buildPropValueChangeNotifDocXmlBean( oldValue, newValue );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Object[] getNewValue(  )
+   {
+      return m_newValue;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public Object[] getOldValue(  )
+   {
+      return m_oldValue;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public XmlObject getXmlObject(  )
+   {
+      return m_propValueChangeNotifDocXBean;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param oldValue DOCUMENT_ME
+    * @param newValue DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   protected abstract XmlObject buildPropValueChangeNotifDocXmlBean( Object[] oldValue,
+                                                                     Object[] newValue );
 }

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AnyResourcePropertyMetaData.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AnyResourcePropertyMetaData.java?rev=227033&r1=227032&r2=227033&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AnyResourcePropertyMetaData.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/properties/impl/AnyResourcePropertyMetaData.java Tue Aug  2 09:28:49 2005
@@ -16,7 +16,6 @@
 package org.apache.ws.resource.properties.impl;
 
 import org.apache.xmlbeans.XmlObject;
-
 import javax.xml.namespace.QName;
 
 /**



Mime
View raw message