db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1024363 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
Date Tue, 19 Oct 2010 19:10:31 GMT
Author: tfischer
Date: Tue Oct 19 19:10:30 2010
New Revision: 1024363

URL: http://svn.apache.org/viewvc?rev=1024363&view=rev
Log:
added a getTextAttribute method (useful for velocity where null arguments are difficult)

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java?rev=1024363&r1=1024362&r2=1024363&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
Tue Oct 19 19:10:30 2010
@@ -313,6 +313,17 @@ public class SourceElement
     }
 
     /**
+     * Returns the object stored in the attribute with key null.
+     *
+     * @return the stored object, or null if no object is stored
+     *         under the key null.
+     */
+    public Object getTextAttribute()
+    {
+        return attributes.get(name);
+    }
+
+    /**
      * Returns the object stored in a given attribute.
      *
      * @param name the name of the attribute, can be null.



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message