cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1072013 - in /cxf/trunk: api/src/main/java/org/apache/cxf/ws/policy/builder/primitive/PrimitiveAssertion.java rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
Date Fri, 18 Feb 2011 15:03:06 GMT
Author: dkulp
Date: Fri Feb 18 15:03:06 2011
New Revision: 1072013

URL: http://svn.apache.org/viewvc?rev=1072013&view=rev
Log:
Make sure attributes are saved

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/ws/policy/builder/primitive/PrimitiveAssertion.java
    cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/ws/policy/builder/primitive/PrimitiveAssertion.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/ws/policy/builder/primitive/PrimitiveAssertion.java?rev=1072013&r1=1072012&r2=1072013&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/ws/policy/builder/primitive/PrimitiveAssertion.java
(original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/ws/policy/builder/primitive/PrimitiveAssertion.java
Fri Feb 18 15:03:06 2011
@@ -19,6 +19,8 @@
 
 package org.apache.cxf.ws.policy.builder.primitive;
 
+import java.util.Map;
+
 import javax.xml.namespace.QName;
 
 import org.w3c.dom.Element;
@@ -46,6 +48,9 @@ public class PrimitiveAssertion 
     public PrimitiveAssertion(QName n, boolean o, boolean i) {
         super(n, o, i);
     }
+    public PrimitiveAssertion(QName n, boolean o, boolean i, Map<QName, String> atts)
{
+        super(n, o, i, atts);
+    }
     
     public PrimitiveAssertion(Element element) {
         super(new QName(element.getNamespaceURI(), element.getLocalName()),

Modified: cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java?rev=1072013&r1=1072012&r2=1072013&view=diff
==============================================================================
--- cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
(original)
+++ cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/policy/AddressingAssertionBuilder.java
Fri Feb 18 15:03:06 2011
@@ -19,6 +19,7 @@
 
 package org.apache.cxf.ws.addressing.policy;
 
+import java.util.Map;
 
 import javax.xml.namespace.QName;
 
@@ -66,14 +67,17 @@ public class AddressingAssertionBuilder 
         if (MetadataConstants.ADDRESSING_ASSERTION_QNAME.equals(qn)
             || MetadataConstants.ADDRESSING_ASSERTION_QNAME_0705.equals(qn)) {
             Assertion nap = new XMLPrimitiveAssertionBuilder() {
-                public Assertion newPrimitiveAssertion(Element element) {
+                public Assertion newPrimitiveAssertion(Element element, Map<QName, String>
mp) {
                     return new PrimitiveAssertion(MetadataConstants.ADDRESSING_ASSERTION_QNAME,
-                                                  isOptional(element), isIgnorable(element));
       
+                                                  isOptional(element), isIgnorable(element),
mp);        
                 }
-                public Assertion newPolicyContainingAssertion(Element element, Policy policy)
{
+                public Assertion newPolicyContainingAssertion(Element element, 
+                                                              Map<QName, String> mp,

+                                                              Policy policy) {
                     return new PolicyContainingPrimitiveAssertion(
                                                   MetadataConstants.ADDRESSING_ASSERTION_QNAME,
                                                   isOptional(element), isIgnorable(element),
+                                                  mp,
                                                   policy);
                 }
             } .build(elem, factory); 



Mime
View raw message