org.jboss.xb.binding
Interface GenericObjectModelProvider

All Superinterfaces:
ObjectModelProvider
All Known Implementing Classes:
DelegatingObjectModelProvider, MappingObjectModelProvider

public interface GenericObjectModelProvider
extends ObjectModelProvider

Direct implementations of ObjectModelProvider interface can be thought of as "typed" providers in a sense that arguments of getChildren, getElementValue and getAttributeValue methods are supposed to be of concrete Java types (other than java.lang.Object) from the target class hierarchy. Contrary, in GenericObjectModelFactory these arguments are of type java.lang.Object. The framework won't introspect an implementation of GenericObjectModelProvider to find "typed" implementations of getChildren, getElementValue and getAttributeValue. Instead it will call the generic methods.

Version:
$Revision: 1958 $
Author:
Alexey Loubyansky

Method Summary
 Object getAttributeValue(Object o, MarshallingContext ctx, String namespaceURI, String localName)
           
 Object getChildren(Object o, MarshallingContext ctx, String namespaceURI, String localName)
           
 Object getElementValue(Object o, MarshallingContext ctx, String namespaceURI, String localName)
           
 
Methods inherited from interface org.jboss.xb.binding.ObjectModelProvider
getRoot
 

Method Detail

getChildren

Object getChildren(Object o,
                   MarshallingContext ctx,
                   String namespaceURI,
                   String localName)

getElementValue

Object getElementValue(Object o,
                       MarshallingContext ctx,
                       String namespaceURI,
                       String localName)

getAttributeValue

Object getAttributeValue(Object o,
                         MarshallingContext ctx,
                         String namespaceURI,
                         String localName)


Copyright © 2010 JBoss Inc.. All Rights Reserved.