0N/A/*
553N/A * Copyright (c) 1999, 2004, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
0N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
553N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
553N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A * or visit www.oracle.com if you need additional information or have any
0N/A * questions.
0N/A */
0N/A
0N/Apackage javax.naming;
0N/A
0N/A/**
0N/A * This interface is used for parsing names from a hierarchical
0N/A * namespace. The NameParser contains knowledge of the syntactic
0N/A * information (like left-to-right orientation, name separator, etc.)
0N/A * needed to parse names.
0N/A *
0N/A * The equals() method, when used to compare two NameParsers, returns
0N/A * true if and only if they serve the same namespace.
0N/A *
0N/A * @author Rosanna Lee
0N/A * @author Scott Seligman
0N/A *
0N/A * @see CompoundName
0N/A * @see Name
0N/A * @since 1.3
0N/A */
0N/A
0N/Apublic interface NameParser {
0N/A /**
0N/A * Parses a name into its components.
0N/A *
0N/A * @param name The non-null string name to parse.
0N/A * @return A non-null parsed form of the name using the naming convention
0N/A * of this parser.
* @exception InvalidNameException If name does not conform to
* syntax defined for the namespace.
* @exception NamingException If a naming exception was encountered.
*/
Name parse(String name) throws NamingException;
}