Package gov.nasa.pds.validate.util
Class Utility
- java.lang.Object
-
- gov.nasa.pds.validate.util.Utility
-
public class Utility extends Object
Utility class.- Author:
- mcayanan
-
-
Constructor Summary
Constructors Constructor Description Utility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
removeQuotes(List<Object> list)
Removes quotes within a list of strings.static String
toStringNoBraces(com.google.gson.JsonObject json)
static Target
toTarget(URL target)
static URL
toURL(String target)
-
-
-
Method Detail
-
removeQuotes
public static List<String> removeQuotes(List<Object> list)
Removes quotes within a list of strings.- Parameters:
list
- A list of strings.- Returns:
- A list with the quotes removed.
-
toStringNoBraces
public static String toStringNoBraces(com.google.gson.JsonObject json)
-
toURL
public static URL toURL(String target) throws MalformedURLException
- Throws:
MalformedURLException
-
-