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 :

Version:
$Id: NameParse.java,v 1.2 1999/05/05 10:19:32 gunnar Exp $
Author:
Gunnar Rønning (gunnar@candleweb.no).

Constructor Summary
NameParse()
           
 
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
 

Constructor Detail

NameParse

public NameParse()
Method Detail

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)