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: [email protected]
For additional commands, e-mail: [email protected]