cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r506442 - /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/JXPathBindingBase.java
Date Mon, 12 Feb 2007 13:52:53 GMT
Author: cziegeler
Date: Mon Feb 12 05:52:53 2007
New Revision: 506442

URL: http://svn.apache.org/viewvc?view=rev&rev=506442
Log:
Fix isValid implementation

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/JXPathBindingBase.java

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/JXPathBindingBase.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/JXPathBindingBase.java?view=diff&rev=506442&r1=506441&r2=506442
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/JXPathBindingBase.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/binding/JXPathBindingBase.java
Mon Feb 12 05:52:53 2007
@@ -68,6 +68,9 @@
         this.commonAtts = commonAtts;
     }
 
+    /**
+     * @see org.apache.cocoon.forms.binding.Binding#getEnclosingLibrary()
+     */
     public Library getEnclosingLibrary() {
         if (parent != null) {
             return parent.getEnclosingLibrary();
@@ -76,12 +79,18 @@
         }
     }
 
+    /**
+     * @see org.apache.cocoon.forms.binding.Binding#setEnclosingLibrary(org.apache.cocoon.forms.binding.library.Library)
+     */
     public void setEnclosingLibrary(Library lib) {
     	this.enclosingLibrary = lib;
     }
 
+    /**
+     * @see org.apache.cocoon.forms.binding.Binding#isValid()
+     */
     public boolean isValid() {
-        if (this.enclosingLibrary != null) {
+        if (this.enclosingLibrary == null) {
             if (parent != null) {
                 return parent.isValid();
             }
@@ -121,6 +130,9 @@
         return null;
     }
 
+    /**
+     * @see org.apache.cocoon.forms.binding.Binding#getClass(java.lang.String)
+     */
     public Binding getClass(String id) {
 
         Binding classBinding = null;



Mime
View raw message