Revision: 886
http://stripes.svn.sourceforge.net/stripes/?rev=886&view=rev
Author: bengunter
Date: 2008-04-18 20:46:53 -0700 (Fri, 18 Apr 2008)
Log Message:
-----------
Fixed STS-539. Made a couple of getters in SimpleMessage public instead of
protected and added getters for defaultScope and key in ScopedLocalizableError.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
Modified: trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
2008-04-14 19:41:30 UTC (rev 885)
+++ trunk/stripes/src/net/sourceforge/stripes/action/SimpleMessage.java
2008-04-19 03:46:53 UTC (rev 886)
@@ -111,12 +111,12 @@
*
* @return the exact message String passed in to the constructor
*/
- protected String getMessage() {
+ public String getMessage() {
return this.message;
}
/** Allows subclasses to access the replacement parameters for this
message. */
- protected Object[] getReplacementParameters() {
+ public Object[] getReplacementParameters() {
return this.replacementParameters;
}
Modified:
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
2008-04-14 19:41:30 UTC (rev 885)
+++
trunk/stripes/src/net/sourceforge/stripes/validation/ScopedLocalizableError.java
2008-04-19 03:46:53 UTC (rev 886)
@@ -74,11 +74,28 @@
this.key = key;
}
+ /**
+ * Get the default scope that was passed into the constructor.
+ *
+ * @see #ScopedLocalizableError(String, String, Object...)
+ */
+ public String getDefaultScope() {
+ return defaultScope;
+ }
/**
- * Overrides getMessageTemplate to perform a scoped search for a message
template as defined
- * in the class level javadoc.
+ * Get the key that was passed into the constructor.
+ *
+ * @see #ScopedLocalizableError(String, String, Object...)
*/
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * Overrides getMessageTemplate to perform a scoped search for a message
template as defined in
+ * the class level javadoc.
+ */
@Override
protected String getMessageTemplate(Locale locale) {
String name1=null, name2=null, name3=null, name4=null, name5=null,
name6=null,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development