org.kuali.common.jdbc.supplier
Class LocationSupplierUtils
java.lang.Object
org.kuali.common.jdbc.supplier.LocationSupplierUtils
public class LocationSupplierUtils
- extends Object
|
Method Summary |
static String |
getContextFromContextLocation(String contextLocation)
Return just the context information prefix of a context location string
The expected form of the parameter string is: CONTEXT:LOCATION
The return value of this method will return just the CONTEXT string |
static String |
getContextLocation(LocationSupplierContext context,
String location)
Build a "context location" from a context and a location
The format of a context location is: CONTEXT:LOCATION
If no applicable context information is defined, the CONTEXT token will be set to Constants.NONE |
static String |
getLocationFromContextLocation(String contextLocation)
Returns a location string with any prefix context information removed
The expected form of the parameter string is: CONTEXT:LOCATION
The return value of this method will return just the LOCATION token |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationSupplierUtils
public LocationSupplierUtils()
getLocationFromContextLocation
public static String getLocationFromContextLocation(String contextLocation)
- Returns a location string with any prefix context information removed
The expected form of the parameter string is: CONTEXT:LOCATION
The return value of this method will return just the LOCATION token
- Parameters:
contextLocation - the location string with prefixed context information
- Returns:
- a location string with no context prefix
getContextFromContextLocation
public static String getContextFromContextLocation(String contextLocation)
- Return just the context information prefix of a context location string
The expected form of the parameter string is: CONTEXT:LOCATION
The return value of this method will return just the CONTEXT string
- Parameters:
contextLocation - the location string with prefixed context information
- Returns:
- a context token
getContextLocation
public static String getContextLocation(LocationSupplierContext context,
String location)
- Build a "context location" from a context and a location
The format of a context location is: CONTEXT:LOCATION
If no applicable context information is defined, the CONTEXT token will be set to Constants.NONE
- Parameters:
context - object containing context informationlocation - resource location string
- Returns:
- a formatted context location
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.