public class JAXBDataFactory extends SDODataFactoryDelegate
Type customerType = jaxbHelperContext.getType(Customer.class); DataObject customerDO = jaxbHelperContext.getDataFactory().create(customerType); customerDO.set("first-name", "Jane"); Customer customer = jaxbHelperContext.unwrap(customerDO); customer.getFirstName(); // returns "Jane"
INSTANCE
Constructor and Description |
---|
JAXBDataFactory(HelperContext helperContext) |
Modifier and Type | Method and Description |
---|---|
DataObject |
create(Type type)
Return a new DataObject of the specified Type.
|
JAXBHelperContext |
getHelperContext()
INTERNAL:
Return the current helperContext associated with this delegate.
|
create, create, setHelperContext
public JAXBDataFactory(HelperContext helperContext)
public JAXBHelperContext getHelperContext()
SDODataFactoryDelegate
getHelperContext
in interface SDODataFactory
getHelperContext
in class SDODataFactoryDelegate
public DataObject create(Type type)
create
in interface DataFactory
create
in class SDODataFactoryDelegate
type
- The Type.