public class GetInventoryBalanceRequest extends TelesalesRequest
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
GetInventoryBalanceRequest()
Default constructor to create a new request handler.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Element | createDataAreaElement()
This method builds the DataArea element and adds it as a child of rootElement_.
|
protected org.w3c.dom.Element | createSenderElement()
This method creates the Sender element.
|
protected Product | getProduct()
This method returns the product object for which the inventory balance is being retrieved.
|
protected org.w3c.dom.Document | getRequestBod()
This method constructs the request document.
|
protected Session | getResponseData()
This method returns the unmarshalled response data in the form of a com.ibm.commerce.telesales.model.Product object.
|
ServiceContext | getServiceContext()
This method returns the ServiceContext object.
|
protected java.lang.String | getXSDFileName()
This method returns the name of the schema file for the request BOD (business object document).
|
protected void | unmarshallAttributes(InventoryItem item, java.util.ArrayList attributeElements)
This method unmarshalls the oa:Property element.
|
protected void | unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
This method unmarshalls the DataArea element.
|
protected InventoryItem | unmarshallInventoryBalance(org.w3c.dom.Element inventoryBalanceElement, ModelObjectList inventory)
This method unmarshalls the InventoryBalance element.
|
protected void | unmarshallResponseBod(org.w3c.dom.Document bod)
This method unmarshalls the response BOD.
|
protected void | unmarshallShowInventoryBalance(org.w3c.dom.Element showInventoryBalanceElement)
This method unmarshalls the ShowInventoryBalance element.
|
protected void | updateModel(java.lang.Object databean)
This method updates the model.
|
public static final java.lang.String COPYRIGHT
public GetInventoryBalanceRequest()
protected Session getResponseData()
protected Product getProduct()
protected org.w3c.dom.Element createSenderElement()
public ServiceContext getServiceContext()
protected java.lang.String getXSDFileName()
protected org.w3c.dom.Document getRequestBod()
<GetInventoryBalance> <!-- created by the createWCRootElement method --> . . </GetInventoryBalance>
protected org.w3c.dom.Element createDataAreaElement()
The following outline shows the structure of the DataArea element and its construction:
<DataArea> <Get/> <!-- constructed by createGetElement() --> <InventoryBalance> </InventoryBalance> </DataArea>
protected void unmarshallResponseBod(org.w3c.dom.Document bod)
protected void unmarshallShowInventoryBalance(org.w3c.dom.Element showInventoryBalanceElement)
<ShowInventoryBalance> <oa:ApplicationArea> <!-- unmarshalled by unmarshallApplicationArea() --> . . </oa:ApplicationArea> <DataArea> <!-- unmarshalled by unmarshallDataArea() --> . . </DataArea> </ShowInventoryBalance>
protected void unmarshallDataArea(org.w3c.dom.Element dataAreaElement)
<DataArea> <Show> . . </Show> <InventoryBalance> <!-- unmarshalled by unmarshallInventoryBalance() --> . . </InventoryBalance> </DataArea>
protected InventoryItem unmarshallInventoryBalance(org.w3c.dom.Element inventoryBalanceElement, ModelObjectList inventory)
<InventoryBalance> <oa:Item> <oa:Property/> <!-- unmarshalled by unmarshallAttributes() --> <oa:Property/> <!-- unmarshalled by unmarshallAttributes() --> <oa:Property/> <!-- unmarshalled by unmarshallAttributes() --> </oa:Item> <oa:Site> <oa:Name/> <!-- FulfillmentCenter.setName() --> <oa:Id/> <!-- FulfillmentCenter.setId() --> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </oa:Site> <oa:AvailableQuantity> <!-- InventoryItem.setOnHandQuantity( ) --> <ExpectedQuantity> <!-- InventoryItem.setExpectedQuantity( ) --> <!-- unmarshalled by unmarshallUserData() --> <wc:UserData> <!-- optional --> <wc:UserDataField name="name">value</wc:UserDataField> . </wc:UserData> </InventoryBalance>
protected void unmarshallAttributes(InventoryItem item, java.util.ArrayList attributeElements)
<oa:Property> <oa:NameValue name='attributeName'>attributeValue</oa:NameValue> </oa:Property>
protected void updateModel(java.lang.Object databean)