public class Utils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EMPTY_STRING |
static java.lang.String |
FALSE_VALUE |
static java.lang.String |
TRUE_VALUE |
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
concat(java.lang.String string1,
java.lang.String string2)
Returns a SAFS concatentation of the specified strings using the concat operator ('&').
|
static java.lang.String |
getMenuPath(java.lang.String[] path)
Convenience for building a menu path where each path element is separated by "->".
|
static java.lang.String |
getMenuPath(java.lang.String path1,
java.lang.String path2)
Convenience for building a menu path where each path element is separated by "->".
|
static java.lang.String |
getMenuPath(java.lang.String path1,
java.lang.String path2,
java.lang.String path3)
Convenience for building a menu path where each path element is separated by "->".
|
static java.lang.String |
quote(java.lang.String val)
Wrap the provided val String in double-quotes.
|
public static final java.lang.String TRUE_VALUE
public static final java.lang.String FALSE_VALUE
public static final java.lang.String EMPTY_STRING
public static java.lang.String quote(java.lang.String val)
val
- String to wrap in double-quotespublic static java.lang.String concat(java.lang.String string1, java.lang.String string2)
For example, the result of calling concat
with "^newName" and
"^currentDate" is "^newName&^currentDate".
string1
- the first string to concatentatestring2
- the second string to concatenatestring1
and string2
in a SAFS concatentation.public static final java.lang.String getMenuPath(java.lang.String path1, java.lang.String path2)
This is an alias for:
return Utils.getMenuPath(new String[] {path1, path2});
path1
- the first path elementpath2
- the second path elementgetMenuPath(String[])
public static final java.lang.String getMenuPath(java.lang.String path1, java.lang.String path2, java.lang.String path3)
This is an alias for:
return Utils.getMenuPath(new String[] {path1, path2, path3});
path1
- the first path elementpath2
- the second path elementpath3
- the third path elementgetMenuPath(String[])
public static final java.lang.String getMenuPath(java.lang.String[] path)
path
- the path elements for the menu pathCopyright © SAS Institute. All Rights Reserved.