You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2010/10/19 21:10:31 UTC
svn commit: r1024363 -
/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/source/SourceElement.java
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