public class Utility extends Object
Constructor and Description |
---|
Utility() |
Modifier and Type | Method and Description |
---|---|
static String |
getDateTime()
Get the current date time.
|
static List<String> |
resolveEnvVars(List<String> strings)
Returns list of strings with environment variable references expanded.
|
static String |
resolveEnvVars(String string)
Returns given string with environment variable references expanded.
|
static URL |
toURL(String s)
Convert a string to a URL.
|
static String |
toWellFormedURI(String s)
Convert a string to a URI.
|
static String |
toXML(gov.nasa.pds.registry.model.Association association)
Convert the Association into an XML.
|
static String |
toXML(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic)
Convert the ExtrinsicObject into an XML.
|
public static URL toURL(String s) throws MalformedURLException
s
- The string to convertMalformedURLException
public static String toWellFormedURI(String s)
s
- The string to convert.public static String getDateTime()
public static String toXML(gov.nasa.pds.registry.model.ExtrinsicObject extrinsic) throws JAXBException
extrinsic
- The ExtrinsicObject.JAXBException
- If there was an error marshalling the given
object.public static String toXML(gov.nasa.pds.registry.model.Association association) throws JAXBException
association
- The Association.JAXBException
- If there was an error marshalling the given
association.public static String resolveEnvVars(String string)
string
- The string to expand.public static List<String> resolveEnvVars(List<String> strings)
strings
- A list of strings to expand.Copyright © 2010–2018 Planetary Data System. All rights reserved.