org.jboss.xb.binding
Class MappingObjectModelProvider
java.lang.Object
org.jboss.xb.binding.MappingObjectModelProvider
- All Implemented Interfaces:
- GenericObjectModelProvider, ObjectModelProvider
public class MappingObjectModelProvider
- extends Object
- implements GenericObjectModelProvider
- Version:
- $Revision: 2913 $
- 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)
|
Object |
getRoot(Object o,
MarshallingContext ctx,
String namespaceURI,
String localName)
Called by the framework when a root XML element is marshalled. |
boolean |
isIgnoreLowLine()
|
boolean |
isIgnoreNotFoundField()
|
void |
mapClassToElement(Class<?> cls,
String namespaceURI,
String localName,
ObjectModelProvider provider)
|
void |
mapFieldToElement(Class<?> cls,
String field,
String namespaceURI,
String localName,
TypeBinding converter)
|
void |
setIgnoreLowLine(boolean ignoreLowLine)
|
void |
setIgnoreNotFoundField(boolean ignoreNotFoundField)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingObjectModelProvider
public MappingObjectModelProvider()
isIgnoreNotFoundField
public boolean isIgnoreNotFoundField()
setIgnoreNotFoundField
public void setIgnoreNotFoundField(boolean ignoreNotFoundField)
mapClassToElement
public void mapClassToElement(Class<?> cls,
String namespaceURI,
String localName,
ObjectModelProvider provider)
mapFieldToElement
public void mapFieldToElement(Class<?> cls,
String field,
String namespaceURI,
String localName,
TypeBinding converter)
isIgnoreLowLine
public boolean isIgnoreLowLine()
setIgnoreLowLine
public void setIgnoreLowLine(boolean ignoreLowLine)
getChildren
public Object getChildren(Object o,
MarshallingContext ctx,
String namespaceURI,
String localName)
- Specified by:
getChildren
in interface GenericObjectModelProvider
getElementValue
public Object getElementValue(Object o,
MarshallingContext ctx,
String namespaceURI,
String localName)
- Specified by:
getElementValue
in interface GenericObjectModelProvider
getAttributeValue
public Object getAttributeValue(Object o,
MarshallingContext ctx,
String namespaceURI,
String localName)
- Specified by:
getAttributeValue
in interface GenericObjectModelProvider
getRoot
public Object getRoot(Object o,
MarshallingContext ctx,
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 © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.