Class CNNameParser
- java.lang.Object
-
- org.wildfly.iiop.openjdk.naming.jndi.CNNameParser
-
- All Implemented Interfaces:
NameParser
public final class CNNameParser extends Object implements NameParser
Parsing routines for NameParser as well as COS Naming stringified names. This is used by CNCtx to create a NameComponent[] object and vice versa. It follows Section 4.5 of Interoperable Naming Service (INS) 98-10-11. In summary, the stringified form is a left-to-right, forward-slash separated name. id and kinds are separated by '.'. backslash is the escape character.- Author:
- Rosanna Lee
-
-
Constructor Summary
Constructors Constructor Description CNNameParser()Constructs a new name parser for parsing names in INS syntax.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nameparse(String name)Returns a CompoundName given a string in INS syntax.
-
-
-
Method Detail
-
parse
public Name parse(String name) throws NamingException
Returns a CompoundName given a string in INS syntax.- Specified by:
parsein interfaceNameParser- Parameters:
name- The non-null string representation of the name.- Returns:
- a non-null CompoundName
- Throws:
NamingException
-
-