|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openeai.OpenEaiObject
org.openeai.layouts.EnterpriseLayoutManagerImpl
org.openeai.layouts.XmlLayout
public class XmlLayout
This is the default Layout manager that all Enterprise Messaging Objects use to build themselves from and serialize themselves to XML. It uses information found in the EnterpriseObjects documents to determine the layout corresponding to a particular object.
| Field Summary |
|---|
| Fields inherited from class org.openeai.layouts.EnterpriseLayoutManagerImpl |
|---|
LIST |
| Fields inherited from class org.openeai.OpenEaiObject |
|---|
logger |
| Constructor Summary | |
|---|---|
XmlLayout()
Constructor |
|
| Method Summary | |
|---|---|
void |
buildObjectFromInput(java.lang.Object input,
XmlEnterpriseObject xeo)
This is the buildObjectFromInput method that all Layout Managers must implement. |
java.lang.Object |
buildOutputFromObject(XmlEnterpriseObject xeo)
This is the buildOutputFromObject method that all Layout Managers must implement. |
java.lang.Object |
buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject,
java.lang.String appName)
This is the buildOutputFromObject method that all Layout Managers must implement. |
void |
init(java.lang.String layoutManagerName,
org.jdom.Document layoutDoc)
This is the default initialization method that can be used by child layout managers. |
| Methods inherited from class org.openeai.layouts.EnterpriseLayoutManagerImpl |
|---|
getEnterpriseObjectsUri, getFieldLayout, getLayout, getLayout, getLayoutManagerName, getLayoutRoot, getLength, getTargetAppName, getValueFromObject, getValueFromObject, getValueFromObject, getValueFromObject, instantiate, isDate, isRepeating, isRequired, setEnterpriseObjectsUri, setLayout, setLayoutManagerName, setLayoutRoot, setTargetAppName, setVariableValue, setVariableValue |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openeai.layouts.EnterpriseLayoutManager |
|---|
getEnterpriseObjectsUri, getLayoutManagerName, getLayoutRoot, setEnterpriseObjectsUri, setLayoutManagerName |
| Constructor Detail |
|---|
public XmlLayout()
| Method Detail |
|---|
public void init(java.lang.String layoutManagerName,
org.jdom.Document layoutDoc)
throws EnterpriseLayoutException
EnterpriseLayoutManagerImpl
init in interface EnterpriseLayoutManagerinit in class EnterpriseLayoutManagerImpllayoutManagerName - String the layout manager's namelayoutDoc - Document the layout document. Typically, this is the EnterpriseObjects document
associated to the object that this layout manager is being configured for.
EnterpriseLayoutException - if any errors occur initializing the layout manager implementation.
public java.lang.Object buildOutputFromObject(XmlEnterpriseObject xeo)
throws EnterpriseLayoutException
All XmlEnterpriseObjects have a method that determines the layout manager being used and then calls this method on the currently used layout manager (this class for example). The method in XmlEnterpriseObject is also called buildOutputFromObject.
buildOutputFromObject in interface EnterpriseLayoutManagerxeo - XmlEnterpriseObject the object that's being used to build the element.
EnterpriseLayoutException - if any errors occur getting the field values from the object.
public java.lang.Object buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject,
java.lang.String appName)
throws EnterpriseLayoutException
This method takes the contents currently stored in the object and builds an XML Element from that content which contains application specific values. These "translations" are performed based on information found in EnterpriseObjects.xml.
All XmlEnterpriseObjects have a method that determines the layout manager being used and then calls this method on the currently used layout manager (this class for example). The method in XmlEnterpriseObject is also called buildOutputFromObject.
buildOutputFromObject in interface EnterpriseLayoutManageranXmlEnterpriseObject - XmlEnterpriseObject the object that's being used to build the element.appName - String target application that Enterprise Values should be converted to.
EnterpriseLayoutException - if any errors occur getting the field values from the object.
public void buildObjectFromInput(java.lang.Object input,
XmlEnterpriseObject xeo)
throws EnterpriseLayoutException
All XmlEnterpriseObjects have a method that determines the "input" layout manager being used and then calls this method on the currently used layout manager (this class for example). The method in XmlEnterpriseObject is also called buildObjectFromInput.
buildObjectFromInput in interface EnterpriseLayoutManagerinput - Object the input data that is used to populate the object (an XML Element in this case).xeo - XmlEnterpriseObject the object that's being populated from the Element passed in.
EnterpriseLayoutException - if an errors occur setting the Object fields with data
contained in the XML element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||