|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlEnterpriseObject
Placeholder for future interface..
| Method Summary | |
|---|---|
void |
addInputLayoutManager(java.lang.String type,
EnterpriseLayoutManager iLayout)
|
void |
addOutputLayoutManager(java.lang.String type,
EnterpriseLayoutManager oLayout)
|
void |
buildObjectFromInput(java.lang.Object input)
Using the currently assigned input layout manager, this method takes the input passed in and builds the object from that input. |
void |
buildObjectFromXmlString(java.lang.String theString)
This method allows application developers to build an object from a XML String representation of an object that was previously converted to an XML String via the toXmlString() method. |
java.lang.Object |
buildOutputFromObject()
Using the currently assigned output layout manager, this method uses the current contents of the object and builds an output object as implemented by the layout manager. |
java.lang.Object |
buildOutputFromObject(java.lang.String appName)
Using the currently assigned output layout manager, this method uses the current contents of the object and builds an output object as implemented by the layout manager for the specified application name. |
java.lang.Object |
clone()
Performs a recursive field for field copy of the current Object and returns the result. |
boolean |
equals(XmlEnterpriseObject xeo)
A convenience method that can be used to compare two Xml aware objects (XmlEnterpriseObjectImpl). |
XmlEnterpriseObject |
getBaseline()
Returns the baseline object associated to this object. |
java.lang.String |
getCombinedKeyValue()
goes through all the key fields on the xeo passed in and creates a string containing all the values from those key fields. |
org.jdom.Document |
getCreateDoc()
Returns the "primed" Create Document associated with this object. |
org.jdom.Document |
getCreateSyncDoc()
Returns the "primed" CreateSync Document associated with this object. |
org.jdom.Document |
getDeleteDoc()
Returns the "primed" Delete Document associated with this object. |
org.jdom.Document |
getDeleteSyncDoc()
Returns the "primed" DeleteSync Document associated with this object. |
EnterpriseFields |
getEnterpriseFields()
Returns the EnterpriseFields object associated with this object. |
org.jdom.Document |
getGenerateDoc()
Returns the "primed" generate Document associated with this object. |
org.jdom.Document |
getGenerateSyncDoc()
Returns the "primed" GenerateSync Document associated with this object. |
EnterpriseLayoutManager |
getInputLayoutManager()
Returns this object's currently assigned Input Layout manager. |
EnterpriseLayoutManager |
getInputLayoutManager(java.lang.String type)
Returns an Input Layout manager for this object of a specified type. |
java.util.HashMap |
getInputLayoutManagers()
Returns a HashMap containing all Input Layout managers associated to this object. |
EnterpriseLayoutManager |
getOutputLayoutManager()
Returns this object's currently assigned Output Layout manager. |
EnterpriseLayoutManager |
getOutputLayoutManager(java.lang.String type)
Returns an Output Layout manager for this object of a specified type. |
java.util.HashMap |
getOutputLayoutManagers()
Returns a HashMap containing all Output Layout managers associated to this object. |
org.jdom.Document |
getProvideDoc()
Returns the "primed" Provide Document associated with this object. |
org.jdom.Document |
getQueryDoc()
Returns the "primed" Query Document associated with this object. |
org.jdom.Document |
getResponseDoc()
Returns the "primed" Response Document associated with this object. |
TestId |
getTestId()
Returns the test id associated to this object. |
org.jdom.Document |
getUpdateDoc()
Returns the "primed" Update Document associated with this object. |
org.jdom.Document |
getUpdateSyncDoc()
Returns the "primed" UpdateSync Document associated with this object. |
boolean |
getValidation()
|
java.lang.Object |
getValueFromObject(java.lang.String fieldName)
Returns the current value from the field name passed in. |
java.lang.Object |
getValueFromObject(java.lang.String fieldName,
java.lang.Object[] parms,
java.lang.Class[] parmTypes)
Returns the current value from the field name passed in. |
void |
initializeChild(XmlEnterpriseObject childXeo)
This method sets the EnterpriseFields and XML layout manager information on the child object passed in to be that of the current object. |
boolean |
isDate()
Checks to see if this object is a "Date/Datetime" object. |
boolean |
isEmpty()
Recursively checks the contents of the object and true if it contains any data. |
void |
setBaseline(XmlEnterpriseObject baseline)
Sets the baseline object associated to this object. |
void |
setCreateDoc(org.jdom.Document doc)
Sets the "primed" create document associated with this object. |
void |
setCreateSyncDoc(org.jdom.Document doc)
Sets the "primed" create sync document associated with this object. |
void |
setDeleteDoc(org.jdom.Document doc)
Sets the "primed" delete document associated with this object. |
void |
setDeleteSyncDoc(org.jdom.Document doc)
Sets the "primed" delete sync document associated with this object. |
void |
setEnterpriseFields(EnterpriseFields fields)
Sets the EnterpriseFields object associated with this object. |
void |
setGenerateDoc(org.jdom.Document doc)
Sets the "primed" generate document associated with this object. |
void |
setGenerateSyncDoc(org.jdom.Document doc)
Sets the "primed" generate sync document associated with this object. |
void |
setInputLayoutManager(EnterpriseLayoutManager elm)
|
void |
setInputLayoutManagers(java.util.HashMap iManagers)
|
void |
setOutputLayoutManager(EnterpriseLayoutManager elm)
|
void |
setOutputLayoutManagers(java.util.HashMap oManagers)
|
void |
setProvideDoc(org.jdom.Document doc)
Sets the "primed" provide document associated with this object. |
void |
setQueryDoc(org.jdom.Document doc)
Sets the "primed" query document associated with this object. |
void |
setResponseDoc(org.jdom.Document doc)
Sets the "primed" response document associated with this object. |
void |
setTestId(TestId tId)
Sets the test id associated to this object. |
void |
setUpdateDoc(org.jdom.Document doc)
Sets the "primed" update document associated with this object. |
void |
setUpdateSyncDoc(org.jdom.Document doc)
Sets the "primed" update sync document associated with this object. |
java.lang.String |
toString()
Returns a comma separated String containing all the data currently stored in this object. |
java.lang.String |
toXmlString()
A convenience method that can be used simply by application developers to retreive the contents of the object as an XML String. |
| Method Detail |
|---|
void buildObjectFromInput(java.lang.Object input)
throws EnterpriseLayoutException
Additionally, if the data passed in is "application specific" data (like codes) this data will be converted to Enterprise Values based on Translation information also obtained from the EnterpriseObjects.xml document.
This method (along with buildOutputFromObject and the Layout Manager infrastructure) allows us to generalize the building our message objects so we don't have to put all of that logic in the objects themselves. We just implement new Layout Managers and associate those layouts to the objects. All objects have an Xml Layout Manager associated to them that is derived from the EnterpriseObjects.xml document.
input - Object the data that will be used to build the object.
e.g. - Element, String etc.
EnterpriseLayoutException. - If an error occurs building the object
from the data passed in.
EnterpriseLayoutException
java.lang.Object buildOutputFromObject()
throws EnterpriseLayoutException
This method (along with buildInputFromObject and the Layout Manager infrastructure) allows us to generalize the serialization our message objects so we don't have to put all of that logic in the objects themselves. We just implement new Layout Managers and associate those layouts to the objects. All objects have an Xml Layout Manager associated to them that is derived from the EnterpriseObjects.xml document.
EnterpriseLayoutException. - If an error occurs building the output
from the object.
EnterpriseLayoutException
java.lang.Object buildOutputFromObject(java.lang.String appName)
throws EnterpriseLayoutException
This method (along with buildInputFromObject and the Layout Manager infrastructure) allows us to generalize the serialization our message objects so we don't have to put all of that logic in the objects themselves. We just implement new Layout Managers and associate those layouts to the objects. All objects have an Xml Layout Manager associated to them that is derived from the EnterpriseObjects.xml document.
EnterpriseLayoutException. - If an error occurs building the output
from the object.
EnterpriseLayoutException
void buildObjectFromXmlString(java.lang.String theString)
throws XmlEnterpriseObjectException
theString - String the XML String that will be used to build the object.
XmlEnterpriseObjectException. - If an error occurs building the object
from the data passed in.
XmlEnterpriseObjectException
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionEnterpriseFields getEnterpriseFields()
EnterpriseFieldsvoid setEnterpriseFields(EnterpriseFields fields)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
fields - EnterpriseFields the EnterpriseFields object that will be used by this
object to validate/format data passed to setter methods on this object.EnterpriseFieldsvoid setTestId(TestId tId)
tId - TestId the test id object associated to this object.TestId getTestId()
void setBaseline(XmlEnterpriseObject baseline)
baseline - XmlEnterpriseObject the baseline object (e.g. - BasicPerson) that is an
image of the object at the time the Query action was performed.XmlEnterpriseObject getBaseline()
EnterpriseLayoutManager getInputLayoutManager()
java.util.HashMap getInputLayoutManagers()
EnterpriseLayoutManager getInputLayoutManager(java.lang.String type)
type - String the type of input layout manager ("xml", "extract" etc.).
void setInputLayoutManagers(java.util.HashMap iManagers)
void addInputLayoutManager(java.lang.String type,
EnterpriseLayoutManager iLayout)
void setInputLayoutManager(EnterpriseLayoutManager elm)
java.util.HashMap getOutputLayoutManagers()
EnterpriseLayoutManager getOutputLayoutManager()
EnterpriseLayoutManager getOutputLayoutManager(java.lang.String type)
void setOutputLayoutManagers(java.util.HashMap oManagers)
void addOutputLayoutManager(java.lang.String type,
EnterpriseLayoutManager oLayout)
void setOutputLayoutManager(EnterpriseLayoutManager elm)
boolean isEmpty()
throws XmlEnterpriseObjectException
XmlEnterpriseObjectException - if any errors occur when determining
if the object empty.boolean isDate()
boolean equals(XmlEnterpriseObject xeo)
throws XmlEnterpriseObjectException
XmlEnterpriseObjectException. - If an error occurs serializing the
object to a String. This is usually due to invalid data (formats etc.) determined
from the object's current rules as specified in EnterpriseFields.
XmlEnterpriseObjectExceptionjava.lang.String toString()
Format for returned data:
FieldName1=some value, FieldName2=field2 data etc.
toString in class java.lang.Object
java.lang.String toXmlString()
throws XmlEnterpriseObjectException
XmlEnterpriseObjectException. - If an error occurs serializing the
object to a String. This is usually due to invalid data (formats etc.) determined
from the object's current rules as specified in EnterpriseFields.
XmlEnterpriseObjectException
java.lang.String getCombinedKeyValue()
throws XmlEnterpriseObjectException
XmlEnterpriseObjectException
java.lang.Object getValueFromObject(java.lang.String fieldName)
throws XmlEnterpriseObjectException
fieldName - String the name of the field from which to retrieve data
XmlEnterpriseObjectException - if the field name passed in does not exist
or if any other errors occur calling the getter method associated to the field.
java.lang.Object getValueFromObject(java.lang.String fieldName,
java.lang.Object[] parms,
java.lang.Class[] parmTypes)
throws XmlEnterpriseObjectException
fieldName - String the name of the field from which to retrieve dataparms - Object[] any parameters that need to be passed to the getter method being called.parmTypes - Class[] the paramater types associated to any parameters.
XmlEnterpriseObjectException - if the field name passed in does not exist
or if any other errors occur calling the getter method associated to the field.org.jdom.Document getCreateDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setCreateDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" create Documentorg.jdom.Document getCreateSyncDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setCreateSyncDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" create sync Documentorg.jdom.Document getDeleteDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setDeleteDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" delete Documentorg.jdom.Document getDeleteSyncDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setDeleteSyncDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" delete sync Documentorg.jdom.Document getGenerateDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setGenerateDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" generate Documentvoid setGenerateSyncDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" generate sync Documentorg.jdom.Document getGenerateSyncDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
org.jdom.Document getUpdateDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setUpdateDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" update Documentorg.jdom.Document getUpdateSyncDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setUpdateSyncDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" update sync Documentorg.jdom.Document getProvideDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setProvideDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" provide Documentorg.jdom.Document getResponseDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setResponseDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" response Documentorg.jdom.Document getQueryDoc()
If the document is not initialized because of deferred initialization, the document will be initialized in this method and then it will be returned. This way, document initialization will only ever have to happen once and it can be configured to do it when an application starts or when the document is first requested.
void setQueryDoc(org.jdom.Document doc)
This information is specified in the MessageObjectConfig XML Element in the deployment documents and is passed to this object during initialization by the MessageObjectConfig Java object.
doc - org.jdom.Document the "primed" query Documentvoid initializeChild(XmlEnterpriseObject childXeo)
Example: The BasicPerson object has a child object in it called Name. The name object is another XmlEnterpriseObjectImpl. When the getName() method is called on BasicPerson, this method is called to "give" the Name object being returned the EnterpriseFields and XmlLayout manager associated to the BasicPerson. Since the BasicPerson's EnterpriseObjects XML document will also have to include the Name object's definition, the Name object returned by the BasicPerson.getName() method will have what it needs to function properly and no action will be required by the developers.
childXeo - XmlEnterpriseObjectImpl the child object being initialized.boolean getValidation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||