|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.datamanager.tools.Toolbox
A mish-mash of KnownSpace convenience functions.
Field Summary | |
static String |
HELIUM_FOLDER
|
Constructor Summary | |
Toolbox()
|
Method Summary | |
static Entity |
getFirstAttributeNamed(Entity base,
String name)
Returns the first attribute of the given Entity whose name equals the given name. |
static Entity |
getFirstAttributeNamedIgnoringCase(Entity base,
String name)
Returns the first attribute of the given Entity whose name equals the given name, ignoring case in the name. |
static File |
getHeliumDirectory()
Returns the Helium directory, wherein we should place things like persistence files. |
static void |
launchURL(String urlString)
|
static void |
launchURL(URL url)
Fires the LaunchBrowserURLEvent to cause the provided url to be displayed in a browser. |
static String |
searchAndReplace(String content,
String regexp,
String replacement)
Replaces regexp in content with replacement. |
static String |
textToPreHtml(String content)
Returns the String content with new pre tags inserted and all http: or https: URLs manually hreffed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String HELIUM_FOLDER
Constructor Detail |
public Toolbox()
Method Detail |
public static final Entity getFirstAttributeNamed(Entity base, String name) throws DataManagerException
DataManagerException
public static final Entity getFirstAttributeNamedIgnoringCase(Entity base, String name) throws DataManagerException
DataManagerException
public static final String textToPreHtml(String content)
content
- String to be scanned/converted for URLs
public static final String searchAndReplace(String content, String regexp, String replacement)
public static File getHeliumDirectory() throws FileNotFoundException
FileNotFoundException
public static void launchURL(URL url)
public static void launchURL(String urlString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |