Author: hlship
Date: Thu Aug 18 20:42:39 2011
New Revision: 1159409
URL: http://svn.apache.org/viewvc?rev=1159409&view=rev
Log:
Add a toString() to StackExtension
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/javascript/StackExtension.java
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/javascript/StackExtension.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/javascript/StackExtension.java?rev=1159409&r1=1159408&r2=1159409&view=diff
==============================================================================
---
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/javascript/StackExtension.java
(original)
+++
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/services/javascript/StackExtension.java
Thu Aug 18 20:42:39 2011
@@ -16,16 +16,20 @@ package org.apache.tapestry5.services.ja
/**
* A contribution to an extensible {@link JavaScriptStack}. Such a stack is
created in terms of all the contributions.
- *
- * @since 5.3
+ *
* @see ExtensibleJavaScriptStack
+ * @since 5.3
*/
public class StackExtension
{
- /** The type of extension. */
+ /**
+ * The type of extension.
+ */
public final StackExtensionType type;
- /** The value contributed; will have symbols expanded, then be converted
to the appropriate type. */
+ /**
+ * The value contributed; will have symbols expanded, then be converted to
the appropriate type.
+ */
public final String value;
public StackExtension(StackExtensionType type, String value)
@@ -34,4 +38,10 @@ public class StackExtension
this.value = value;
}
+ @Override
+ public String toString()
+ {
+ return String.format("StackExtension[%s %s]", type.name(), value);
+ }
+
}