W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn/util Message.java,1.3,1.4

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 02 Oct 2009 09:54:19 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MteqB-0007BN-MW@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv27574/src/org/w3c/unicorn/util

Modified Files:
	Message.java 
Log Message:
a message content is evaluated by velocity only if it is not a stacktrace. 

Index: Message.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/Message.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Message.java	23 Sep 2009 09:23:14 -0000	1.3
+++ Message.java	2 Oct 2009 09:54:17 -0000	1.4
@@ -11,6 +11,7 @@
 	private String message;
 	private String content;
 	private Level level;
+	private boolean evaluateContent = false;
 	
 	public Message() {
 	}
@@ -22,12 +23,14 @@
 		}
 		level = Level.ERROR;
 		message = "$stack_trace_text";
+		evaluateContent = false;
 	}
 	
 	public Message(Level level, String message, String content) {
 		this.level = level;
 		this.message = message;
 		this.content = content;
+		evaluateContent = true;
 	}
 	
 	public Message(Level level, String message) {
@@ -58,6 +61,13 @@
 	public void setLevel(Level level) {
 		this.level = level;
 	}
-	
+
+	public boolean doEvaluateContent() {
+		return evaluateContent;
+	}
+
+	public void setEvaluateContent(boolean evaluateContent) {
+		this.evaluateContent = evaluateContent;
+	}
 	
 }
Received on Friday, 2 October 2009 09:54:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC