KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > util > NamespaceResolver


1 /*
2  * Copyright 2003, 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.util;
18
19 /** <p>An abstract object which is able to split an XML name
20  * into its namespace URI and local part.</p>
21  *
22  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
23  * @version $Id: NamespaceResolver.java,v 1.2 2004/02/16 23:39:53 jochen Exp $
24  */

25 public interface NamespaceResolver {
26   /** <p>Splits the XML name <code>pName</code> into its
27    * namespace URI, qualified name and local name, which
28    * are stored into the array parts:
29    * <ul>
30    * <li><code>parts[0]</code>: namespace URI; empty if no namespace is used</li>
31    * <li><code>parts[1]</code>: local name, with the prefix removed</li>
32    * <li><code>parts[2]</code>: qualified name (same as pName)</li>
33    * </ul>
34    *
35    * @return True, if the namespace prefix of <code>pName</code>
36    * was successfully resolved. False otherwise.
37    */

38   public boolean processName(String JavaDoc pName, String JavaDoc[] parts);
39 }
40
Popular Tags