Author: veithen
Date: Fri May 14 11:44:43 2010
New Revision: 944209
URL: http://svn.apache.org/viewvc?rev=944209&view=rev
Log:
WSCOMMONS-437: Introduced a common superinterface for SOAPFaultCode and
SOAPFaultSubCode. Patch submitted by Dobri Kitipov.
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultClassifier.java
(with props)
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultCode.java
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultSubCode.java
Added:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultClassifier.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultClassifier.java?rev=944209&view=auto
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultClassifier.java
(added)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultClassifier.java
Fri May 14 11:44:43 2010
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.axiom.soap;
+
+import org.apache.axiom.om.OMElement;
+
+/**
+ * Common superinterface for {...@link SOAPFaultCode} and {...@link
SOAPFaultSubCode}.
+ * This interface enables manipulation of SOAP fault codes and SOAP fault sub
+ * codes using common code.
+ */
+public interface SOAPFaultClassifier extends OMElement {
+
+ /**
+ * Fault SubCode contain only one mandatory Value child. This value child
contains a QName
+ *
+ * @param soapFaultSubCodeValue
+ */
+ void setValue(SOAPFaultValue value) throws SOAPProcessingException;
+
+ /** @return Returns SOAPFaultValue. */
+ SOAPFaultValue getValue();
+
+ /**
+ * Fault SubCode can contain an optional SubCode
+ *
+ * @param subCode
+ */
+ void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException;
+
+ /** @return Returns SOAPFaultSubCode. */
+ SOAPFaultSubCode getSubCode();
+
+}
+
+
Propchange:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultClassifier.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultCode.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultCode.java?rev=944209&r1=944208&r2=944209&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultCode.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultCode.java
Fri May 14 11:44:43 2010
@@ -19,23 +19,5 @@
package org.apache.axiom.soap;
-import org.apache.axiom.om.OMElement;
-
-public interface SOAPFaultCode extends OMElement {
- /**
- * Eran Chinthaka ([email protected])
- */
-
- /** @param value */
- void setValue(SOAPFaultValue value) throws SOAPProcessingException;
-
- /** @return Returns SOAPFaultValue. */
- SOAPFaultValue getValue();
-
- /** @param value */
- void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException;
-
- /** @return Returns SOAPFaultSubCode. */
- SOAPFaultSubCode getSubCode();
-
+public interface SOAPFaultCode extends SOAPFaultClassifier {
}
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultSubCode.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultSubCode.java?rev=944209&r1=944208&r2=944209&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultSubCode.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/soap/SOAPFaultSubCode.java
Fri May 14 11:44:43 2010
@@ -19,29 +19,5 @@
package org.apache.axiom.soap;
-import org.apache.axiom.om.OMElement;
-
-public interface SOAPFaultSubCode extends OMElement {
- /**
- * Eran Chinthaka ([email protected])
- */
-
- /**
- * Fault SubCode contain only one mandatory Value child. This value child
contains a QName
- *
- * @param soapFaultSubCodeValue
- */
- void setValue(SOAPFaultValue soapFaultSubCodeValue) throws
SOAPProcessingException;
-
- SOAPFaultValue getValue();
-
-
- /**
- * Fault SubCode can contain an optional SubCode
- *
- * @param subCode
- */
- void setSubCode(SOAPFaultSubCode subCode) throws SOAPProcessingException;
-
- SOAPFaultSubCode getSubCode();
+public interface SOAPFaultSubCode extends SOAPFaultClassifier {
}