incubator-yoko-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmidd...@apache.org
Subject svn commit: r554941 - /incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/
Date Tue, 10 Jul 2007 13:41:10 GMT
Author: dmiddlem
Date: Tue Jul 10 06:41:09 2007
New Revision: 554941

URL: http://svn.apache.org/viewvc?view=rev&rev=554941
Log:
Commit for YOKO-400:
- ensure that any attributes/namespaces are passed to the any listener if an any is nested
inside
  another complex type.

Modified:
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/AbstractCorbaTypeListener.java
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaArrayListener.java
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaExceptionListener.java
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaObjectReferenceListener.java
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaSequenceListener.java
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaStructListener.java
    incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaUnionListener.java

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/AbstractCorbaTypeListener.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/AbstractCorbaTypeListener.java?view=diff&rev=554941&r1=554940&r2=554941
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/AbstractCorbaTypeListener.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/AbstractCorbaTypeListener.java
Tue Jul 10 06:41:09 2007
@@ -45,7 +45,6 @@
         return handler;
     }
 
-    
     public void processWriteAttribute(String prefix, String namespaceURI, String localName,
String value) {
     }
 

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaArrayListener.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaArrayListener.java?view=diff&rev=554941&r1=554940&r2=554941
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaArrayListener.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaArrayListener.java
Tue Jul 10 06:41:09 2007
@@ -83,4 +83,16 @@
     public void processCharacters(String text) {
         currentTypeListener.processCharacters(text);
     }
+
+    public void processWriteAttribute(String prefix, String namespaceURI, String localName,
String val) {
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteAttribute(prefix, namespaceURI, localName, val);
+        }
+    }
+
+    public void processWriteNamespace(String prefix, String namespaceURI) {
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteNamespace(prefix, namespaceURI);
+        }
+    }
 }

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaExceptionListener.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaExceptionListener.java?view=diff&rev=554941&r1=554940&r2=554941
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaExceptionListener.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaExceptionListener.java
Tue Jul 10 06:41:09 2007
@@ -80,9 +80,16 @@
         currentTypeListener.processCharacters(text);
     }
 
-
     public void processWriteAttribute(String prefix, String namespaceURI, String localName,
String value) {
-        throw new RuntimeException("Not Implemented"); 
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteAttribute(prefix, namespaceURI, localName, value);
+        }
+    }
+
+    public void processWriteNamespace(String prefix, String namespaceURI) {
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteNamespace(prefix, namespaceURI);
+        }
     }
 
 }

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaObjectReferenceListener.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaObjectReferenceListener.java?view=diff&rev=554941&r1=554940&r2=554941
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaObjectReferenceListener.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaObjectReferenceListener.java
Tue Jul 10 06:41:09 2007
@@ -55,5 +55,4 @@
             value.setReference(ref);
         }
     }
-    
 }

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaSequenceListener.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaSequenceListener.java?view=diff&rev=554941&r1=554940&r2=554941
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaSequenceListener.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaSequenceListener.java
Tue Jul 10 06:41:09 2007
@@ -156,4 +156,16 @@
             currentTypeListener.processCharacters(text);
         }
     }
+
+    public void processWriteAttribute(String prefix, String namespaceURI, String localName,
String val) {
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteAttribute(prefix, namespaceURI, localName, val);
+        }
+    }
+
+    public void processWriteNamespace(String prefix, String namespaceURI) {
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteNamespace(prefix, namespaceURI);
+        }
+    }
 }

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaStructListener.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaStructListener.java?view=diff&rev=554941&r1=554940&r2=554941
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaStructListener.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaStructListener.java
Tue Jul 10 06:41:09 2007
@@ -95,7 +95,14 @@
     }
 
     public void processWriteAttribute(String prefix, String namespaceURI, String localName,
String value) {
-        currentTypeListener.processWriteAttribute(prefix, namespaceURI, localName, value);
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteAttribute(prefix, namespaceURI, localName, value);
+        }
     }
 
+    public void processWriteNamespace(String prefix, String namespaceURI) {
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteNamespace(prefix, namespaceURI);
+        }
+    }
 }

Modified: incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaUnionListener.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaUnionListener.java?view=diff&rev=554941&r1=554940&r2=554941
==============================================================================
--- incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaUnionListener.java
(original)
+++ incubator/yoko/trunk/bindings/src/main/java/org/apache/yoko/bindings/corba/types/CorbaUnionListener.java
Tue Jul 10 06:41:09 2007
@@ -166,7 +166,12 @@
         } else {
             super.processWriteAttribute(prefix, namespaceURI, localName, val);
         }
+    }
 
+    public void processWriteNamespace(String prefix, String namespaceURI) {
+        if (currentTypeListener != null) {
+            currentTypeListener.processWriteNamespace(prefix, namespaceURI);
+        }
     }
 
 }



Mime
View raw message