public class MappingObjectModelProvider extends Object implements GenericObjectModelProvider
Constructor and Description |
---|
MappingObjectModelProvider() |
Modifier and Type | Method and Description |
---|---|
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) |
public boolean isIgnoreNotFoundField()
public void setIgnoreNotFoundField(boolean ignoreNotFoundField)
public void mapClassToElement(Class<?> cls, String namespaceURI, String localName, ObjectModelProvider provider)
public void mapFieldToElement(Class<?> cls, String field, String namespaceURI, String localName, TypeBinding converter)
public boolean isIgnoreLowLine()
public void setIgnoreLowLine(boolean ignoreLowLine)
public Object getChildren(Object o, MarshallingContext ctx, String namespaceURI, String localName)
getChildren
in interface GenericObjectModelProvider
public Object getElementValue(Object o, MarshallingContext ctx, String namespaceURI, String localName)
getElementValue
in interface GenericObjectModelProvider
public Object getAttributeValue(Object o, MarshallingContext ctx, String namespaceURI, String localName)
getAttributeValue
in interface GenericObjectModelProvider
public Object getRoot(Object o, MarshallingContext ctx, String namespaceURI, String localName)
ObjectModelProvider
getRoot
in interface ObjectModelProvider
o
- the root of the object graphnamespaceURI
- namespace URI of the root XML element being marshalledlocalName
- local name of the root XML element being marshalledCopyright © 2013 JBoss by Red Hat. All rights reserved.