|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.harvest.util.Utility
public class Utility
Utility class.
Constructor Summary | |
---|---|
Utility()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utility()
Method Detail |
---|
public static URL toURL(String s) throws MalformedURLException
s
- The string to convert
MalformedURLException
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |