01: /*
02: * Copyright (c) 2001 - 2004 ivata limited.
03: * All rights reserved.
04: * -----------------------------------------------------------------------------
05: * ivata masks may be redistributed under the GNU General Public
06: * License as published by the Free Software Foundation;
07: * version 2 of the License.
08: *
09: * These programs are free software; you can redistribute them and/or
10: * modify them under the terms of the GNU General Public License
11: * as published by the Free Software Foundation; version 2 of the License.
12: *
13: * These programs are distributed in the hope that they will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16: *
17: * See the GNU General Public License in the file LICENSE.txt for more
18: * details.
19: *
20: * If you would like a copy of the GNU General Public License write to
21: *
22: * Free Software Foundation, Inc.
23: * 59 Temple Place - Suite 330
24: * Boston, MA 02111-1307, USA.
25: *
26: *
27: * To arrange commercial support and licensing, contact ivata at
28: * http://www.ivata.com/contact.jsp
29: * -----------------------------------------------------------------------------
30: * $Log: FieldValueConvertorConstants.java,v $
31: * Revision 1.2 2005/10/11 18:55:29 colinmacleod
32: * Fixed some checkstyle and javadoc issues.
33: *
34: * Revision 1.1 2005/04/11 12:27:02 colinmacleod
35: * Added preliminary support for filters.
36: * Added FieldValueConvertor factor interface
37: * to split off value convertors for reuse.
38: *
39: * Revision 1.2 2005/01/07 08:08:24 colinmacleod
40: * Moved up a version number.
41: * Changed copyright notices to 2005.
42: * Updated the documentation:
43: * - started working on multiproject:site docu.
44: * - changed the logo.
45: * Added checkstyle and fixed LOADS of style issues.
46: * Added separate thirdparty subproject.
47: * Added struts (in web), util and webgui (in webtheme) from ivata op.
48: *
49: * Revision 1.1 2004/12/23 21:28:32 colinmacleod
50: * Modifications to add ivata op compatibility.
51: *
52: colinmacleod Exp $
53: * -----------------------------------------------------------------------------
54: */
55: package com.ivata.mask.field;
56:
57: /**
58: * <p>
59: * Stores constant/static values for {@link MaskRequestProcessor}and
60: * {@link MaskTilesRequestProcessor}.
61: * </p>
62: *
63: * @since ivata masks 0.3 (2004-12-23)
64: * @author Colin MacLeod
65: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
66: * @version $Revision: 1.2 $
67: */
68: public final class FieldValueConvertorConstants {
69: /**
70: * <p>
71: * Default pattern used to convert dates.
72: * </p>
73: */
74: public static final String DEFAULT_DATE_PATTERN = "yyyy-MM-DD";
75: /**
76: * <p>
77: * Default pattern used to convert numbers.
78: * </p>
79: */
80: public static final String DEFAULT_NUMBER_PATTERN = "#####################.##########";
81: /**
82: * <p>
83: * Request attribute name under which errors are stored.
84: * </p>
85: */
86: public static final String ERROR_REQUEST_ATTRIBUTE = "MASK_ERRORS";
87: /**
88: * <p>
89: * All value object parameter names are prefixed by this string.
90: * </p>
91: */
92: public static final String PARAMETER_NAME_PREFIX = "valueObject.";
93:
94: /**
95: * Private constructor enforces utility class behavior.
96: */
97: private FieldValueConvertorConstants() {
98: }
99: }
|