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