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, setHelperContextpublic JAXBDataFactory(HelperContext helperContext)
public JAXBHelperContext getHelperContext()
SDODataFactoryDelegategetHelperContext in interface SDODataFactorygetHelperContext in class SDODataFactoryDelegatepublic DataObject create(Type type)
create in interface DataFactorycreate in class SDODataFactoryDelegatetype - The Type.