org.openejb.core.ivm.naming
Class ParsedName
java.lang.Object
|
+--org.openejb.core.ivm.naming.ParsedName
- All Implemented Interfaces:
- java.io.Serializable
- public class ParsedName
- extends java.lang.Object
- implements java.io.Serializable
This class represents a compound path name; a path made of several atomic names.
It provides an interface for navigating the components sequentially. This class
assumes that the path separator is a '\' character. The "java:" component of a
JNDI ENC path must be striped out of the path before it used to construct an
instance of this class.
- See Also:
- Serialized Form
Field Summary |
(package private) java.lang.String[] |
components
|
(package private) int |
hashcode
|
(package private) static int |
IS_EQUAL
|
(package private) static int |
IS_GREATER
|
(package private) static int |
IS_LESS
|
(package private) int |
pos
|
Constructor Summary |
ParsedName(java.lang.String path)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IS_EQUAL
static final int IS_EQUAL
IS_LESS
static final int IS_LESS
IS_GREATER
static final int IS_GREATER
components
java.lang.String[] components
pos
int pos
hashcode
int hashcode
ParsedName
public ParsedName(java.lang.String path)
getComponent
public java.lang.String getComponent()
next
public boolean next()
reset
public void reset()
compareTo
public int compareTo(int otherHash)
getComponentHashCode
public int getComponentHashCode()
compareTo
public int compareTo(java.lang.String other)
main
public static void main(java.lang.String[] args)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object