KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > xml > binding > ContentNavigator


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.xml.binding;
8
9 import org.apache.xerces.xs.XSTypeDefinition;
10
11 import javax.xml.namespace.QName JavaDoc;
12 import java.util.Map JavaDoc;
13
14 /**
15  * An interface for content navigation. At the moment it has only one method to get child's content.
16  * But it could also implement XPath navigation.
17  *
18  * @version <tt>$Revision: 1.4.4.5 $</tt>
19  * @author <a HREF="mailto:alex@jboss.org">Alexey Loubyansky</a>
20  */

21 public interface ContentNavigator
22 {
23    Map JavaDoc getPrefixToNamespaceMap();
24    
25    /**
26     * @param prefix the prefix to resolve
27     * @return the namespace URI the prefix was mapped to
28     */

29    String JavaDoc resolveNamespacePrefix(String JavaDoc prefix);
30
31    /** Construct a QName from a value
32     * @param value A value that is of the form [prefix:]localpart
33     */

34    QName JavaDoc resolveQName(String JavaDoc value);
35
36    String JavaDoc getChildContent(String JavaDoc namespaceURI, String JavaDoc qName);
37
38    XSTypeDefinition getType();
39 }
Popular Tags