KickJava   Java API By Example, From Geeks To Geeks.

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


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
10 /**
11  * Direct implementations of ObjectModelProvider interface can be thought of as "typed" providers in a sense that
12  * arguments of <code>getChildren</code>, <code>getElementValue</code> and <code>getAttributeValue</code> methods
13  * are supposed to be of concrete Java types (other than <code>java.lang.Object</code>) from the target class hierarchy.
14  * Contrary, in GenericObjectModelFactory these arguments are of type <code>java.lang.Object</code>.
15  * The framework won't introspect an implementation of GenericObjectModelProvider to find "typed" implementations of
16  * <code>getChildren</code>, <code>getElementValue</code> and <code>getAttributeValue</code>.
17  * Instead it will call the generic methods.
18  *
19  * @author <a HREF="mailto:alex@jboss.org">Alexey Loubyansky</a>
20  * @version <tt>$Revision: 1.1.2.5 $</tt>
21  */

22 public interface GenericObjectModelProvider
23    extends ObjectModelProvider
24 {
25    Object JavaDoc getChildren(Object JavaDoc o, String JavaDoc namespaceURI, String JavaDoc localName);
26
27    Object JavaDoc getElementValue(Object JavaDoc o, String JavaDoc namespaceURI, String JavaDoc localName);
28
29    Object JavaDoc getAttributeValue(Object JavaDoc o, String JavaDoc namespaceURI, String JavaDoc localName);
30 }
31
Popular Tags