站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

DelegatingObjectModelProvider (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.xml.binding
Class DelegatingObjectModelProvider

java.lang.Object
  extended byorg.jboss.xml.binding.DelegatingObjectModelProvider
All Implemented Interfaces:
GenericObjectModelProvider, ObjectModelProvider

public class DelegatingObjectModelProvider
extends Object
implements GenericObjectModelProvider

todo come up with a nicer class name

Version:
$Revision: 1.2.2.1 $
Author:
Alexey Loubyansky

Constructor Summary
DelegatingObjectModelProvider(ObjectModelProvider provider)
           
 
Method Summary
 Object getAttributeValue(Object o, String namespaceURI, String localName)
           
 Object getChildren(Object o, String namespaceURI, String localName)
           
 Object getElementValue(Object o, String namespaceURI, String localName)
           
 Object getRoot(Object o, String namespaceURI, String localName)
          Called by the framework when a root XML element is marshalled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingObjectModelProvider

public DelegatingObjectModelProvider(ObjectModelProvider provider)
Method Detail

getChildren

public Object getChildren(Object o,
                          String namespaceURI,
                          String localName)
Specified by:
getChildren in interface GenericObjectModelProvider

getElementValue

public Object getElementValue(Object o,
                              String namespaceURI,
                              String localName)
Specified by:
getElementValue in interface GenericObjectModelProvider

getAttributeValue

public Object getAttributeValue(Object o,
                                String namespaceURI,
                                String localName)
Specified by:
getAttributeValue in interface GenericObjectModelProvider

getRoot

public Object getRoot(Object o,
                      String namespaceURI,
                      String localName)
Description copied from interface: ObjectModelProvider
Called by the framework when a root XML element is marshalled.

Specified by:
getRoot in interface ObjectModelProvider
Parameters:
o - the root of the object graph
namespaceURI - namespace URI of the root XML element being marshalled
localName - local name of the root XML element being marshalled
Returns:
an object that represents the root XML element corresponding to the namespace URI and local name


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.