|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.el.EntityLocations
public final class EntityLocations
This class contains static utility methods that can come in handy when working with entity locations.
Method Summary | |
---|---|
static String |
convertWindowsSlashes(String path)
Convert all Windows (back-)slashes to forward slashes. |
static String |
getBaseName(String name)
Get the base name from the entity name, i.e. |
static String |
getExtensionForName(String name)
Utility method for getting the extension path of an entity name. |
static boolean |
isEntityNameValid(String name)
Is the entity name valid? |
static EntityLocation<?> |
parseLocation(String s)
Parse the supplied location string into an absolute or a relative location. |
static void |
validateEntityName(String name)
A static utility method for validating an entity name (no EntityLocation.SEPARATOR :s). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getExtensionForName(String name)
name
- The entity name
public static String getBaseName(String name)
name
- The name to get the base name for
public static boolean isEntityNameValid(String name)
name
- The name to test
true
if the entity name is valid.public static void validateEntityName(String name) throws IllegalArgumentException
EntityLocation.SEPARATOR
:s).
name
- The name to validate.
IllegalArgumentException
- If the name is not a valid entity name.public static String convertWindowsSlashes(String path)
path
- The string to convert.
public static EntityLocation<?> parseLocation(String s) throws IllegalArgumentException
s
- The location string.
IllegalArgumentException
- If the location string is not a valid
absolute or relative location string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |