public class ScriptUtils extends Object
Constructor and Description |
---|
ScriptUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeName(String name)
Escapes the ' character present in collection names so it can be properly used in js without causing
javascript errors due to an early completion of a ' string.
|
static String |
translateValue(Object value)
Translates an Object to a String for representing the given Object as
a JavaScript value
|
public ScriptUtils()
public static String translateValue(Object value)
Handles null, List, Map, and Set collections, along with non quoting for numeric and boolean types. Complex types are treated as a String value using toString
value
- - Object instance to translatepublic static String escapeName(String name)
name
- Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.