KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > idaremedia > antx > helpers > Strings


1 /**
2  * $Id: Strings.java 180 2007-03-15 12:56:38Z ssmc $
3  * Copyright 2002-2005 iDare Media, Inc. All rights reserved.
4  *
5  * Originally written by iDare Media, Inc. for release into the public domain. This
6  * library, source form and binary form, is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License as published by the
8  * Free Software Foundation; either version 2 of the License, or (at your option) any later
9  * version.<p>
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
12  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU LGPL (GNU Lesser General Public License) for more details.<p>
14  *
15  * You should have received a copy of the GNU Lesser General Public License along with this
16  * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite
17  * 330, Boston, MA 02111-1307 USA. The LGPL can be found online at
18  * http://www.fsf.org/copyleft/lesser.html<p>
19  *
20  * This product has been influenced by several projects within the open-source community.
21  * The JWare developers wish to acknowledge the open-source community's support. For more
22  * information regarding the open-source products used within JWare, please visit the
23  * JWare website.
24  *----------------------------------------------------------------------------------------*
25  * WEBSITE- http://www.jware.info EMAIL- inquiries@jware.info
26  *----------------------------------------------------------------------------------------*
27  **/

28
29 package com.idaremedia.antx.helpers;
30
31 /**
32  * Collection of common string constants.
33  *
34  * @since JWare/AntX 0.1
35  * @author ssmc, &copy;2002-2005 <a HREF="http://www.jware.info">iDare&nbsp;Media,&nbsp;Inc.</a>
36  * @version 0.5
37  * @.safety multiple
38  * @.group impl,helper
39  **/

40
41 public final class Strings
42 {
43     /**
44      * System-specific line separator.
45      **/

46     public static final String JavaDoc NL= System.getProperty("line.separator","\n");
47
48     /**
49      * Length of the system-specific {@linkplain #NL line separator}.
50      **/

51     public static final int NL_LEN= NL.length();
52
53
54     /**
55      * The string "<i>true</i>".
56      **/

57     public static final String JavaDoc TRUE= String.valueOf(true);
58
59     /**
60      * The string "<i>false</i>".
61      **/

62     public static final String JavaDoc FALSE= String.valueOf(false);
63
64     /**
65      * The string "<i>null</i>".
66      **/

67     public static final String JavaDoc NULL= "null";
68
69     /**
70      * The string "<i>default</i>".
71      **/

72     public static final String JavaDoc DEFAULT= "default";
73
74     /**
75      * The string "<i>defaults</i>".
76      * @since JWare/AntX 0.5
77      **/

78     public static final String JavaDoc DEFAULTS= "defaults";
79
80     /**
81      * The string "<i>inherit</i>".
82      **/

83     public static final String JavaDoc INHERIT= "inherit";
84
85     /**
86      * The string "<i>enclosing</i>".
87      * @since JWare/AntX 0.3
88      **/

89     public static final String JavaDoc ENCLOSING= "enclosing";
90
91     /**
92      * The string "<i>all</i>".
93      **/

94     public static final String JavaDoc ALL= "all";
95
96     /**
97      * The string "<i>user</i>".
98      **/

99     public static final String JavaDoc USER= "user";
100
101     /**
102      * The string "<i>none</i>".
103      **/

104     public static final String JavaDoc NONE= "none";
105
106     /**
107      * The string "<i>current</i>".
108      * @since JWare/AntX 0.4
109      **/

110     public static final String JavaDoc CURRENT= "current";
111
112     /**
113      * The string "<i>context</i>".
114      * @since JWare/AntX 0.4
115      **/

116     public static final String JavaDoc CONTEXT= "context";
117
118     /**
119      * The string "<i>install</i>".
120      **/

121     public static final String JavaDoc INSTALL= "install";
122
123     /**
124      * The string "<i>uninstall</i>".
125      **/

126     public static final String JavaDoc UNINSTALL= "uninstall";
127
128     /**
129      * The string "<i>undefined</i>".
130      * @since JWare/AntX 0.5
131      **/

132     public static final String JavaDoc UNDEFINED= "undefined";
133
134     /**
135      * The string "<i>now</i>".
136      * @since JWare/AntX 0.5
137      **/

138     public static final String JavaDoc NOW= "now";
139
140     /** Prevent this. **/
141     private Strings()
142     {
143     }
144 }
145
146 /* end-of-Strings.java */
147
Popular Tags