public abstract class TradingAgreementImportBaseCmdImpl extends ControllerCommandImpl implements ControllerCommand
Name | Description |
---|---|
xsdFlag | The value of the xsd flag. Possible values include "true" and "false". |
Name | Description |
---|---|
inContractId | The id of the account. |
inContractId | The id of the contract. |
ibXSD | The value of the xsd flag. Possible values include "true" and "false". |
idocTradingAgreementXML | The Document object of the XML instance from File. |
idocTradingAgreementXML | The Document object of the XML instance from Input Stream. |
v | The vector contains the required elements. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
TradingAgreementImportBaseCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Long | getAccountId()
Gets the id of the account.
|
protected java.lang.Long | getContractId()
Gets the id of the contract.
|
protected org.w3c.dom.Document | getDOMFromFile(java.lang.String XMLFileName, boolean validation, boolean xsd, java.lang.String entityPath)
Gets the contract XML Document object from the specified XML file.
|
protected org.w3c.dom.Document | getDOMFromInputStream(java.io.InputStream xmlInputStream, boolean validation, boolean xsd, java.lang.String entityPath)
Gets the contract XML Document object from the InputStream.
|
protected java.util.Vector | getElementsByTag(org.w3c.dom.Element pElement, java.lang.String tag)
Gets all the elements which the tag name ends with the specified tag.
|
protected boolean | getXMLFlag()
Gets the value of the xsd flag.
|
protected void | importContractNLDesc(org.w3c.dom.Element cntrDescElement)
Imports a contract description based on the contract description element
|
protected void | importFfcNLDesc(org.w3c.dom.Element ffcDescElement)
Imports a fulfillment center description based on the fulfillment center description element.
|
protected void | importStoreNLDesc(org.w3c.dom.Element storeDescElement)
Imports a store description based on the store description element.
|
protected java.lang.Long | saveAccount(org.w3c.dom.Element accountElement, boolean actionFlag)
Saves the account based on the account Element object.
|
protected void | saveContract(org.w3c.dom.Element contractElement, boolean actionFlag)
Saves a contract based on the contract element
|
void | setXSDFlag(boolean xsdFlag)
Sets the value of the xsd flag.
|
public static final java.lang.String COPYRIGHT
protected java.lang.Long getAccountId()
protected java.lang.Long getContractId()
protected boolean getXMLFlag()
protected org.w3c.dom.Document getDOMFromFile(java.lang.String XMLFileName, boolean validation, boolean xsd, java.lang.String entityPath) throws ECException
protected org.w3c.dom.Document getDOMFromInputStream(java.io.InputStream xmlInputStream, boolean validation, boolean xsd, java.lang.String entityPath) throws ECException
protected java.util.Vector getElementsByTag(org.w3c.dom.Element pElement, java.lang.String tag)
protected void importContractNLDesc(org.w3c.dom.Element cntrDescElement) throws ECException
protected void importStoreNLDesc(org.w3c.dom.Element storeDescElement) throws ECException
protected void importFfcNLDesc(org.w3c.dom.Element ffcDescElement) throws ECException
protected java.lang.Long saveAccount(org.w3c.dom.Element accountElement, boolean actionFlag) throws ECException
protected void saveContract(org.w3c.dom.Element contractElement, boolean actionFlag) throws ECException
public void setXSDFlag(boolean xsdFlag)