|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.utils.StringUtils
com.ge.research.acuity.utils.StringUtils
String utilities for acuity ui models,
with specific convienence methods for formatting and manipulating ontology URI strings,
and parsing acuity client HttpServletRequest parameters.
| Field Summary |
| Fields inherited from class com.ge.research.utils.StringUtils |
DOUBLEQUOTE, EMPTY_STRING, LOWERCASE_LETTERS, NEWLINE, SINGLEQUOTE, SPACE, TAB, UPPERCASE_LETTERS |
| Constructor Summary | |
StringUtils()
|
|
| Method Summary | |
static java.lang.String |
extractSubjectPropertyfromRequestParameter(java.lang.String requestParameter)
Strips the leading characters from an HttpServletRequest string
before the first appearance of the AcuityConstants.PARAM_DELIMITER string |
static java.lang.String |
extractURIfromRequestParameter(java.lang.String requestParameter)
Strips the trailing characters from an HttpServletRequest string
after the first appearance of the AcuityConstants.PARAM_DELIMITER string |
static java.lang.String |
getNamespacePrefix(java.lang.String type)
Returns the leading namespace prefix from the type |
static java.lang.String |
getURINamespace(java.lang.String uri)
Returns the leading namespace from the uri |
static java.lang.String |
makeHumanReadableURI(java.lang.String uri)
Invokes the StringUtils.separateInitCapString(java.lang.String)
method on the string returned from a call to stripURINamespace(java.lang.String) on the uri argument |
static java.lang.String |
stripNamespacePrefix(java.lang.String type)
Strips the leading namespace prefix from the type |
static java.lang.String |
stripURINamespace(java.lang.String uri)
Strips the leading namespace from the uri |
| Methods inherited from class com.ge.research.utils.StringUtils |
initCap, isNullOrEmpty, separateInitCapString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringUtils()
| Method Detail |
public static java.lang.String extractSubjectPropertyfromRequestParameter(java.lang.String requestParameter)
HttpServletRequest string
before the first appearance of the AcuityConstants.PARAM_DELIMITER string
requestParameter - the request string to parse
public static java.lang.String extractURIfromRequestParameter(java.lang.String requestParameter)
HttpServletRequest string
after the first appearance of the AcuityConstants.PARAM_DELIMITER string
requestParameter - the request string to parse
public static java.lang.String getNamespacePrefix(java.lang.String type)
type
type - the ontology type string to parse
public static java.lang.String getURINamespace(java.lang.String uri)
uri
uri - the URI string to parse
public static java.lang.String makeHumanReadableURI(java.lang.String uri)
StringUtils.separateInitCapString(java.lang.String)
method on the string returned from a call to stripURINamespace(java.lang.String) on the uri argument
uri - the URI string to parse
StringUtils.separateInitCapString(java.lang.String),
stripURINamespace(java.lang.String)public static java.lang.String stripNamespacePrefix(java.lang.String type)
type
type - the ontology type string to parse
public static java.lang.String stripURINamespace(java.lang.String uri)
uri
uri - the URI string to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||