org.locomotive.directory
Class NameParse
java.lang.Object
|
+--org.locomotive.directory.NameParse
- public class NameParse
- extends java.lang.Object
NameParse provides a static method for parsing component references.
A component name can be on the form
"/locomotive/server/httpd.serverName".
This is then partioned into :
- The directory context : /locomotive/server/
- The component name : httpd
- The property part : serverName.
- Version:
- $Id: NameParse.java,v 1.2 1999/05/05 10:19:32 gunnar Exp $
- Author:
- Gunnar Rønning (gunnar@candleweb.no).
Method Summary |
DirectoryContext |
getContext()
Get the directory context part of this NameParse. |
java.lang.String |
getName()
Get the component name part of this NameParse. |
java.lang.String |
getProperty()
Get the property part of this NameParse, or null if
there is no property part. |
static void |
main(java.lang.String[] args)
|
static NameParse |
parseName(DirectoryContext context,
java.lang.String componentName)
Parse a component name relative to a directory context, and return
a NameParse object containing the different segments of the parse. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NameParse
public NameParse()
parseName
public static NameParse parseName(DirectoryContext context,
java.lang.String componentName)
- Parse a component name relative to a directory context, and return
a NameParse object containing the different segments of the parse.
getContext
public DirectoryContext getContext()
- Get the directory context part of this NameParse.
getName
public java.lang.String getName()
- Get the component name part of this NameParse.
getProperty
public java.lang.String getProperty()
- Get the property part of this NameParse, or null if
there is no property part.
main
public static void main(java.lang.String[] args)