|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.moa.EnterpriseObjectBase
org.openeai.moa.XmlEnterpriseObjectImpl
public class XmlEnterpriseObjectImpl
This is the ancestor class of our "xml aware" objects inclued in the Message Object API (MOA). This includes both "message/jms aware" objects like BasicPerson and child objects that are "xml aware" but not "message/jms aware" like the Address object which is a child object of BasicPerson.
| Field Summary | |
|---|---|
static EnterpriseFields |
ENTERPRISE_FIELDS
|
static EnterpriseLayoutManager |
XML_LAYOUT_MANAGER
|
| Fields inherited from class org.openeai.OpenEaiObject |
|---|
logger |
| Constructor Summary | |
|---|---|
XmlEnterpriseObjectImpl()
Constructor |
|
| 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 |
deferInitialization()
|
void |
dumpData()
|
boolean |
equals(XmlEnterpriseObject xeo)
A convenience method that can be used to compare two Xml aware objects (XmlEnterpriseObjectImpl). |
protected java.lang.String |
getApplicationValue(java.lang.String appName,
java.lang.String fieldName,
java.lang.String enterpriseValue)
Uses the EnterpriseFields object associated to this object to convert the enterprise value passed in to the application specific value based on rules found in the EnterpriseObjects XML document associated to the object for the application name passed in. |
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. |
protected org.jdom.Element |
getControlArea(org.jdom.Element root)
This method looks at the document and returns the appropriate ControlArea. |
org.jdom.Document |
getCreateDoc()
Returns the "primed" Create Document associated with this object. |
java.lang.String |
getCreateDocUri()
Returns the primed create XML document URI. |
org.jdom.Document |
getCreateSyncDoc()
Returns the "primed" CreateSync Document associated with this object. |
java.lang.String |
getCreateSyncDocUri()
Returns the primed Create-Sync XML document URI. |
org.jdom.Document |
getDeleteDoc()
Returns the "primed" Delete Document associated with this object. |
java.lang.String |
getDeleteDocUri()
Returns the primed Delete-Request XML document URI. |
org.jdom.Document |
getDeleteSyncDoc()
Returns the "primed" DeleteSync Document associated with this object. |
java.lang.String |
getDeleteSyncDocUri()
Returns the primed Delete-Sync XML document URI. |
EnterpriseFields |
getEnterpriseFields()
Returns the EnterpriseFields object associated with this object. |
protected java.lang.String |
getEnterpriseValue(java.lang.String fieldName,
java.lang.String appValue)
Uses the EnterpriseFields object associated to this object to convert the application value passed in to the enterprise value. |
org.jdom.Document |
getGenerateDoc()
Returns the "primed" generate Document associated with this object. |
java.lang.String |
getGenerateDocUri()
Returns the primed Generate-Request XML document URI. |
org.jdom.Document |
getGenerateSyncDoc()
Returns the "primed" GenerateSync Document associated with this object. |
java.lang.String |
getGenerateSyncDocUri()
Returns the primed Generate-Sync XML document URI. |
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. |
protected int |
getLength(java.lang.String fieldName)
Convenience method that tells the layout manager implementation how many instances of a given repeatable field exist on the parent 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. |
java.lang.String |
getProvideDocUri()
Returns the primed Provide-Reply XML document URI. |
org.jdom.Document |
getQueryDoc()
Returns the "primed" Query Document associated with this object. |
java.lang.String |
getQueryDocUri()
Returns the primed Query-Request XML document URI. |
org.jdom.Document |
getResponseDoc()
Returns the "primed" Response Document associated with this object. |
java.lang.String |
getResponseDocUri()
Returns the primed Response-Reply XML document URI. |
protected java.lang.String |
getRootElementName(org.jdom.Element e)
|
TestId |
getTestId()
Returns the test id associated to this object. |
org.jdom.Document |
getUpdateDoc()
Returns the "primed" Update Document associated with this object. |
java.lang.String |
getUpdateDocUri()
Returns the primed Update-Request XML document URI. |
org.jdom.Document |
getUpdateSyncDoc()
Returns the "primed" UpdateSync Document associated with this object. |
java.lang.String |
getUpdateSyncDocUri()
Returns the primed Update-Sync XML document URI. |
boolean |
getValidation()
Returns a boolean flag indicating whether or not XML validation will be used when messages are produced/published by this object. |
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 |
init(MessageObjectConfig mConfig)
Object initialization. |
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. |
boolean |
isRepeating(java.lang.String fieldName)
Convenience method that indicates if the field specified is a repeating field this object. |
protected void |
restoreLayoutManagers()
|
protected void |
saveLayoutManagers()
|
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 |
setCreateDocUri(java.lang.String uri)
Sets the primed create XML document URI. |
void |
setCreateSyncDoc(org.jdom.Document doc)
Sets the "primed" create sync document associated with this object. |
void |
setCreateSyncDocUri(java.lang.String uri)
Sets the primed Create-Sync XML document URI. |
void |
setDeleteDoc(org.jdom.Document doc)
Sets the "primed" delete document associated with this object. |
void |
setDeleteDocUri(java.lang.String uri)
Sets the primed Delete-Request XML document URI. |
void |
setDeleteSyncDoc(org.jdom.Document doc)
Sets the "primed" delete sync document associated with this object. |
void |
setDeleteSyncDocUri(java.lang.String uri)
Sets the primed Delete-Sync XML document URI. |
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 |
setGenerateDocUri(java.lang.String uri)
Sets the primed Generate-Request XML document URI. |
void |
setGenerateSyncDoc(org.jdom.Document doc)
Sets the "primed" generate sync document associated with this object. |
void |
setGenerateSyncDocUri(java.lang.String uri)
Sets the primed Generate-Sync XML document URI. |
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 |
setProvideDocUri(java.lang.String uri)
Sets the primed Provide-Reply XML document URI. |
void |
setQueryDoc(org.jdom.Document doc)
Sets the "primed" query document associated with this object. |
void |
setQueryDocUri(java.lang.String uri)
Sets the primed Query-Request XML document URI. |
void |
setResponseDoc(org.jdom.Document doc)
Sets the "primed" response document associated with this object. |
void |
setResponseDocUri(java.lang.String uri)
Sets the primed Response-Reply XML document URI. |
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 |
setUpdateDocUri(java.lang.String uri)
Sets the primed Update-Request XML document URI. |
void |
setUpdateSyncDoc(org.jdom.Document doc)
Sets the "primed" update sync document associated with this object. |
void |
setUpdateSyncDocUri(java.lang.String uri)
Sets the primed Update-Sync XML document URI. |
void |
setValidation(boolean validate)
Sets a boolean flag indicating whether or not XML validation will be used when messages are produced/published by this object. |
void |
setValue(java.lang.String fieldName,
java.lang.String value)
Sets the current value the field name passed in to the value passed in. |
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. |
| Methods inherited from class org.openeai.OpenEaiObject |
|---|
getAppName, getDebug, getFromAddr, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static EnterpriseFields ENTERPRISE_FIELDS
public static EnterpriseLayoutManager XML_LAYOUT_MANAGER
| Constructor Detail |
|---|
public XmlEnterpriseObjectImpl()
| Method Detail |
|---|
public final boolean deferInitialization()
public final void setBaseline(XmlEnterpriseObject baseline)
setBaseline in interface XmlEnterpriseObjectbaseline - XmlEnterpriseObject the baseline object (e.g. - BasicPerson) that is an
image of the object at the time the Query action was performed.public final XmlEnterpriseObject getBaseline()
getBaseline in interface XmlEnterpriseObjectpublic void setTestId(TestId tId)
setTestId in interface XmlEnterpriseObjecttId - TestId the test id object associated to this object.public TestId getTestId()
getTestId in interface XmlEnterpriseObject
public void init(MessageObjectConfig mConfig)
throws EnterpriseObjectException
mConfig - MessageObjectConfig object loaded with all configuration information
relative to this object built from the configuration document.
EnterpriseObjectException - if errors occur initializing the current MessageObject.MessageObjectConfig,
EnterpriseFieldspublic final void 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.
initializeChild in interface XmlEnterpriseObjectchildXeo - XmlEnterpriseObjectImpl the child object being initialized.
public boolean isEmpty()
throws XmlEnterpriseObjectException
isEmpty in interface XmlEnterpriseObject
XmlEnterpriseObjectException - if any errors occur when determining
if the object empty.public final boolean isDate()
isDate in interface XmlEnterpriseObject
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
XmlEnterpriseObject
clone in interface XmlEnterpriseObjectclone in interface PubliclyCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic final void 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.
setEnterpriseFields in interface XmlEnterpriseObjectfields - EnterpriseFields the EnterpriseFields object that will be used by this
object to validate/format data passed to setter methods on this object.EnterpriseFieldspublic final EnterpriseFields getEnterpriseFields()
getEnterpriseFields in interface XmlEnterpriseObjectEnterpriseFields
protected java.lang.String getEnterpriseValue(java.lang.String fieldName,
java.lang.String appValue)
throws EnterpriseFieldException
fieldName - String the name of the field for which the conversion is being performedappValue - String the value being converted.
EnterpriseFieldExceptionEnterpriseFields
protected java.lang.String getApplicationValue(java.lang.String appName,
java.lang.String fieldName,
java.lang.String enterpriseValue)
throws EnterpriseFieldException
appName - String the name of the applicatoin for which the conversion is being performedfieldName - String the name of the field for which the conversion is being performedenterpriseValue - String the value being converted.
EnterpriseFieldExceptionEnterpriseFieldspublic final java.util.HashMap getInputLayoutManagers()
getInputLayoutManagers in interface XmlEnterpriseObjectpublic final void setInputLayoutManagers(java.util.HashMap iManagers)
setInputLayoutManagers in interface XmlEnterpriseObject
public final void addInputLayoutManager(java.lang.String type,
EnterpriseLayoutManager iLayout)
addInputLayoutManager in interface XmlEnterpriseObjectpublic final void setInputLayoutManager(EnterpriseLayoutManager elm)
setInputLayoutManager in interface XmlEnterpriseObjectpublic final EnterpriseLayoutManager getInputLayoutManager()
getInputLayoutManager in interface XmlEnterpriseObjectpublic final EnterpriseLayoutManager getInputLayoutManager(java.lang.String type)
getInputLayoutManager in interface XmlEnterpriseObjecttype - String the type of input layout manager ("xml", "extract" etc.).
public final java.util.HashMap getOutputLayoutManagers()
getOutputLayoutManagers in interface XmlEnterpriseObjectpublic final void setOutputLayoutManagers(java.util.HashMap oManagers)
setOutputLayoutManagers in interface XmlEnterpriseObject
public final void addOutputLayoutManager(java.lang.String type,
EnterpriseLayoutManager oLayout)
addOutputLayoutManager in interface XmlEnterpriseObjectpublic final void setOutputLayoutManager(EnterpriseLayoutManager elm)
setOutputLayoutManager in interface XmlEnterpriseObjectpublic final EnterpriseLayoutManager getOutputLayoutManager()
getOutputLayoutManager in interface XmlEnterpriseObjectpublic final EnterpriseLayoutManager getOutputLayoutManager(java.lang.String type)
getOutputLayoutManager in interface XmlEnterpriseObjecttype - String the type of output layout manager ("xml", "extract" etc.).
public final 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.
buildObjectFromInput in interface XmlEnterpriseObjectinput - 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
public final 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.
buildOutputFromObject in interface XmlEnterpriseObject
EnterpriseLayoutException. - If an error occurs building the output
from the object.
EnterpriseLayoutException
public final 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.
buildOutputFromObject in interface XmlEnterpriseObject
EnterpriseLayoutException. - If an error occurs building the output
from the object.
EnterpriseLayoutException
public final void buildObjectFromXmlString(java.lang.String theString)
throws XmlEnterpriseObjectException
buildObjectFromXmlString in interface XmlEnterpriseObjecttheString - 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.
XmlEnterpriseObjectExceptionpublic final org.jdom.Document getCreateDoc()
XmlEnterpriseObjectIf 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.
getCreateDoc in interface XmlEnterpriseObjectpublic final java.lang.String getCreateDocUri()
public final void setCreateDocUri(java.lang.String uri)
uri - String the Create-Request primed document URI as listed in the MessageObjectConfig
Element associate to this object.public org.jdom.Document getProvideDoc()
XmlEnterpriseObjectIf 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.
getProvideDoc in interface XmlEnterpriseObjectpublic final java.lang.String getProvideDocUri()
public final void setProvideDocUri(java.lang.String uri)
uri - String the Provide-Reply primed document URI as listed in the MessageObjectConfig
Element associate to this object.public org.jdom.Document getResponseDoc()
XmlEnterpriseObjectIf 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.
getResponseDoc in interface XmlEnterpriseObjectpublic final java.lang.String getResponseDocUri()
public final void setResponseDocUri(java.lang.String uri)
uri - String the Response-Reply primed document URI as listed in the MessageObjectConfig
Element associate to this object.public final org.jdom.Document getDeleteDoc()
XmlEnterpriseObjectIf 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.
getDeleteDoc in interface XmlEnterpriseObjectpublic final java.lang.String getDeleteDocUri()
public final void setDeleteDocUri(java.lang.String uri)
uri - String the Response-Reply primed document URI as listed in the MessageObjectConfig
Element associate to this object.public final org.jdom.Document getUpdateDoc()
XmlEnterpriseObjectIf 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.
getUpdateDoc in interface XmlEnterpriseObjectpublic final java.lang.String getUpdateDocUri()
public final void setUpdateDocUri(java.lang.String uri)
uri - String the Response-Reply primed document URI as listed in the MessageObjectConfig
Element associate to this object.public final org.jdom.Document getGenerateDoc()
XmlEnterpriseObjectIf 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.
getGenerateDoc in interface XmlEnterpriseObjectpublic final java.lang.String getGenerateDocUri()
public final void setGenerateDocUri(java.lang.String uri)
uri - String the Generate-Reply primed document URI as listed in the MessageObjectConfig
Element associate to this object.public final org.jdom.Document getCreateSyncDoc()
XmlEnterpriseObjectIf 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.
getCreateSyncDoc in interface XmlEnterpriseObjectpublic final java.lang.String getCreateSyncDocUri()
public final void setCreateSyncDocUri(java.lang.String uri)
uri - String the Create-Sync primed document URI as listed in the MessageObjectConfig
Element associate to this object.public final org.jdom.Document getDeleteSyncDoc()
XmlEnterpriseObjectIf 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.
getDeleteSyncDoc in interface XmlEnterpriseObjectpublic final java.lang.String getDeleteSyncDocUri()
public final void setDeleteSyncDocUri(java.lang.String uri)
public final org.jdom.Document getUpdateSyncDoc()
XmlEnterpriseObjectIf 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.
getUpdateSyncDoc in interface XmlEnterpriseObjectpublic final java.lang.String getUpdateSyncDocUri()
public final void setUpdateSyncDocUri(java.lang.String uri)
uri - String the Update-Sync primed document URI as listed in the MessageObjectConfig
Element associate to this object.public final org.jdom.Document getGenerateSyncDoc()
XmlEnterpriseObjectIf 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.
getGenerateSyncDoc in interface XmlEnterpriseObjectpublic final java.lang.String getGenerateSyncDocUri()
public final void setGenerateSyncDocUri(java.lang.String uri)
uri - String the Generate-Sync primed document URI as listed in the MessageObjectConfig
Element associate to this object.public final org.jdom.Document getQueryDoc()
XmlEnterpriseObjectIf 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.
getQueryDoc in interface XmlEnterpriseObjectpublic final java.lang.String getQueryDocUri()
public final void setQueryDocUri(java.lang.String uri)
uri - String the Query-Request primed document URI as listed in the MessageObjectConfig
Element associate to this object.protected java.lang.String getRootElementName(org.jdom.Element e)
protected org.jdom.Element getControlArea(org.jdom.Element root)
root - org.jdom.Element the root element of the document
public final void setValidation(boolean validate)
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.
validate - boolean true=XML validation will be on, false=XML validation will be off.public final boolean getValidation()
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.
getValidation in interface XmlEnterpriseObjectpublic final void setCreateDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setCreateDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" create Documentpublic final void setDeleteDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setDeleteDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" delete Documentpublic final 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.
setUpdateDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" update Documentpublic final 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.
setGenerateDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" generate Documentpublic final void setCreateSyncDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setCreateSyncDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" create sync Documentpublic final void setDeleteSyncDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setDeleteSyncDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" delete sync Documentpublic final void setUpdateSyncDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setUpdateSyncDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" update sync Documentpublic void setResponseDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setResponseDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" response Documentpublic void setProvideDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setProvideDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" provide Documentpublic final void setGenerateSyncDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setGenerateSyncDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" generate sync Documentpublic final void setQueryDoc(org.jdom.Document doc)
XmlEnterpriseObjectThis 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.
setQueryDoc in interface XmlEnterpriseObjectdoc - org.jdom.Document the "primed" query Documentpublic final void dumpData()
public final boolean equals(XmlEnterpriseObject xeo)
throws XmlEnterpriseObjectException
equals in interface XmlEnterpriseObject
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.
XmlEnterpriseObjectExceptionpublic java.lang.String toString()
Format for returned data:
FieldName1=some value, FieldName2=field2 data etc.
toString in interface XmlEnterpriseObjecttoString in class java.lang.Object
public final java.lang.String toXmlString()
throws XmlEnterpriseObjectException
toXmlString in interface XmlEnterpriseObject
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
public final java.lang.String getCombinedKeyValue()
throws XmlEnterpriseObjectException
getCombinedKeyValue in interface XmlEnterpriseObject
XmlEnterpriseObjectException
protected int getLength(java.lang.String fieldName)
throws XmlEnterpriseObjectException
If a child object is a repeating object within a parent object, the "getter" method for that child object will return a java.util.List. This method invokes the getter method for the child object and returns the size of that List. If the List returned is null, zero will be returned.
For example, the Address child object in the BasicPerson object is repeating. Therefore, the BasicPerson object has a "getAddress" method that returns a java.util.List of Address objects that exist in that BasicPerson. This method invokes that method and returns the size of the returned object.
xeo - XmlEnterpriseObject the parent object being queriedfieldName - String the name of the child object being tested
EnterpriseLayoutException - if an error occurs executing the getter method for the particular
field on the parent object passed in. An exception will also be thrown if the
object being checked is not a repeating field (the object returned by the getter method
is not a java.util.List.
XmlEnterpriseObjectException
public boolean isRepeating(java.lang.String fieldName)
throws XmlEnterpriseObjectException
If a child object is a repeating object within a parent object, the "getter" method for that child object will return a java.util.List. This method inspects the return type of that getter method and checks to see if it's a java.util.List.
For example, the Address child object in the BasicPerson object is repeating. Therefore, the BasicPerson object has a "getAddress" method that returns a java.util.List of Address objects that exist in that BasicPerson. This method invokes that method and checks the class type (instanceof) the returned object. If it's a java.util.List it knows the Address is a repeating child on the BasicPerson. This will work for any XmlEnterpriseObject.
fieldName - String the name of the field being tested.
XmlEnterpriseObjectException - if an error occurs executing the child object's getter method.
public final java.lang.Object getValueFromObject(java.lang.String fieldName,
java.lang.Object[] parms,
java.lang.Class[] parmTypes)
throws XmlEnterpriseObjectException
getValueFromObject in interface XmlEnterpriseObjectfieldName - 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.
public final java.lang.Object getValueFromObject(java.lang.String fieldName)
throws XmlEnterpriseObjectException
getValueFromObject in interface XmlEnterpriseObjectfieldName - 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.
public final void setValue(java.lang.String fieldName,
java.lang.String value)
throws XmlEnterpriseObjectException
fieldName - String the name of the field from which to retrieve datavalue - String the value to set on the field
XmlEnterpriseObjectException - if the field name passed in does not exist
or if any other errors occur calling the setter method associated to the field.protected void saveLayoutManagers()
protected void restoreLayoutManagers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||