org.jboss.xb.binding
Class MappingObjectModelProvider

java.lang.Object
  extended by org.jboss.xb.binding.MappingObjectModelProvider
All Implemented Interfaces:
GenericObjectModelProvider, ObjectModelProvider

public class MappingObjectModelProvider
extends Object
implements GenericObjectModelProvider

Version:
$Revision: 1.1.2.4 $
Author:
Alexey Loubyansky

Constructor Summary
MappingObjectModelProvider()
           
 
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
 

Constructor Detail

MappingObjectModelProvider

public MappingObjectModelProvider()
Method Detail

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 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.