当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 common API Documentation 英文版文档
MappingObjectModelProvider (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档
org.jboss.xml.binding
Class MappingObjectModelProvider
java.lang.Object
org.jboss.xml.binding.MappingObjectModelProvider
- All Implemented Interfaces:
- GenericObjectModelProvider, ObjectModelProvider
- public class MappingObjectModelProvider
- extends Object
- implements GenericObjectModelProvider
- Version:
- $Revision: 1.1.2.2 $
- Author:
- Alexey Loubyansky
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. |
void |
mapClassToElement(Class cls,
String namespaceURI,
String localName,
ObjectModelProvider provider)
|
void |
mapFieldToElement(Class cls,
String field,
String namespaceURI,
String localName,
TypeConverter converter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingObjectModelProvider
public MappingObjectModelProvider()
mapClassToElement
public void mapClassToElement(Class cls,
String namespaceURI,
String localName,
ObjectModelProvider provider)
mapFieldToElement
public void mapFieldToElement(Class cls,
String field,
String namespaceURI,
String localName,
TypeConverter converter)
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 graphnamespaceURI
- namespace URI of the root XML element being marshalledlocalName
- 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.