org.mycore.common.xml
Class MCRXMLFunctions
java.lang.Object
org.mycore.common.xml.MCRXMLFunctions
public class MCRXMLFunctions
- extends Object
- Author:
- Thomas Scheffler (yagee)
|
Method Summary |
static boolean |
classAvailable(String className)
|
static String |
formatISODate(String isoDate,
String simpleFormat,
String iso639Language)
|
static String |
formatISODate(String isoDate,
String isoFormat,
String simpleFormat,
String iso639Language)
|
static StringBuffer |
getBaseLink(String hostAlias)
|
static String |
getIFSServlet(String hostAlias)
returns the FileNodeServlet-Link of the given hostAlias |
static String |
getISODate(String simpleDate,
String simpleFormat)
|
static String |
getISODate(String simpleDate,
String simpleFormat,
String isoFormat)
|
static int |
getQueryHitCount(String query)
|
static String |
getQueryServlet(String hostAlias)
returns the QueryServlet-Link of the given hostAlias |
static boolean |
hasURNDefined(String objId)
|
static String |
regexp(String orig,
String match,
String replace)
|
static String |
trim(String arg0)
returns the given String trimmed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG
static MCRConfiguration CONFIG
MCRXMLFunctions
public MCRXMLFunctions()
trim
public static String trim(String arg0)
- returns the given String trimmed
- Parameters:
arg0 - String to be trimmed
- Returns:
- trimmed copy of arg0
- See Also:
String.trim()
getQueryServlet
public static String getQueryServlet(String hostAlias)
- returns the QueryServlet-Link of the given hostAlias
- Parameters:
hostAlias - remote alias
- Returns:
- QueryServlet-Link
getIFSServlet
public static String getIFSServlet(String hostAlias)
- returns the FileNodeServlet-Link of the given hostAlias
- Parameters:
hostAlias - remote alias
- Returns:
- FileNodeServlet-Link
getBaseLink
public static StringBuffer getBaseLink(String hostAlias)
formatISODate
public static String formatISODate(String isoDate,
String simpleFormat,
String iso639Language)
throws ParseException
- Throws:
ParseException
formatISODate
public static String formatISODate(String isoDate,
String isoFormat,
String simpleFormat,
String iso639Language)
throws ParseException
- Throws:
ParseException
getISODate
public static String getISODate(String simpleDate,
String simpleFormat,
String isoFormat)
throws ParseException
- Throws:
ParseException
getISODate
public static String getISODate(String simpleDate,
String simpleFormat)
throws ParseException
- Throws:
ParseException
regexp
public static String regexp(String orig,
String match,
String replace)
getQueryHitCount
public static int getQueryHitCount(String query)
hasURNDefined
public static boolean hasURNDefined(String objId)
- Returns:
- true if the given object has an urn assigned, false otherwise
classAvailable
public static boolean classAvailable(String className)