com.phoenix_int.aserver.util
Class PHXNameDivider
java.lang.Object
com.phoenix_int.aserver.util.PHXNameDivider
public class PHXNameDivider
- extends java.lang.Object
this is a utility class for breaking down names into
smaller parts.
Usage:
String fullName = "phoenix/NAVY/IBHVG2";
String category = PHXNameDivider.getPathPart( fullName );
String name = PHXNameDivider.getNamePart( fullName );
|
Method Summary |
static java.lang.String |
getNamePart(java.lang.String fullName)
retrieves the name part from a full name |
static java.lang.String |
getPathPart(java.lang.String fullName)
retrieves the path part from a full name |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PHXNameDivider
public PHXNameDivider()
getPathPart
public static java.lang.String getPathPart(java.lang.String fullName)
- retrieves the path part from a full name
- Parameters:
fullName - the full name
- Returns:
- only the path part of the full name, separator not included
getNamePart
public static java.lang.String getNamePart(java.lang.String fullName)
- retrieves the name part from a full name
- Parameters:
fullName - the full name
- Returns:
- only the name part of the full name
main
public static void main(java.lang.String[] args)