|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface that specifies what methods all EnterpriseLayoutManagers must implement. The implementations of this interface (layout managers) are associated to a message object through an application's configuration document when that object is initialized by AppConfig. A message object may have multiple layout managers associated to it and they can be switched between at runtime. It is these layout managers that provide the logic to build the object from different types of inputs as well as serialize the object to different types of outputs.
XmlEnterpriseObject| Method Summary | |
void |
buildObjectFromInput(java.lang.Object input,
XmlEnterpriseObject anXmlEnterpriseObject)
Method used to build an object from an input. |
java.lang.Object |
buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject)
Method used to serialize an object to some output. |
java.lang.Object |
buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject,
java.lang.String appName)
Method used to serialize an object to some output for a particular application. |
java.lang.String |
getEnterpriseObjectsUri()
Returns the EnterpriseObjects document uri associated to this EnterpriseFields object. |
java.lang.String |
getLayoutManagerName()
Returns the name associated to the layout manager. |
org.jdom.Element |
getLayoutRoot()
Returns the layout manager's root element from the EnterpriseObjects document associated to the MessageObject that was configured. |
void |
init(java.lang.String layoutManagerName,
org.jdom.Document layoutDoc)
Method used to initialize the LayoutMangager implementation with information found in the EnterpriseObjects document associated to the object being initialized. |
void |
setEnterpriseObjectsUri(java.lang.String uri)
Sets the EnterpriseObjects document uri associated to this EnterpriseFields object. |
void |
setLayoutManagerName(java.lang.String name)
Sets the name associated to the layout manager. |
| Method Detail |
public void init(java.lang.String layoutManagerName,
org.jdom.Document layoutDoc)
throws EnterpriseLayoutException
EnterpriseLayoutException - if any errors occur initializing the layout manager implementation.
public void buildObjectFromInput(java.lang.Object input,
XmlEnterpriseObject anXmlEnterpriseObject)
throws EnterpriseLayoutException
All XmlEnterpriseObject objects inherit a buildObjectFromInput method that makes a call to the Layout manager implementation as specified in the configuration document for that object.
EnterpriseLayoutException - if any errors occur building the object from the input.
public java.lang.Object buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject)
throws EnterpriseLayoutException
All XmlEnterpriseObject objects inherit a buildOutputFromObject method that makes a call to the Layout manager implementation as specified in the configuration document for that object.
EnterpriseLayoutException - if any errors occur building the object from the input.
public java.lang.Object buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject,
java.lang.String appName)
throws EnterpriseLayoutException
This method differs from the buildOutputFromObject(XmlEnterpriseObject) method in that it takes the current 'Enterprise Values' contained within the object and converts them to 'Application Values' that are appropriate for the application name passed in. The rules for these reverse translations are found in the EnterpriseObjects document associated to the object in the application's configuration document.
All XmlEnterpriseObject objects inherit a buildOutputFromObject(String appName) method that makes a call to the Layout manager implementation as specified in the configuration document for that object.
EnterpriseLayoutException - if any errors occur building the object from the input.public void setLayoutManagerName(java.lang.String name)
public java.lang.String getLayoutManagerName()
public org.jdom.Element getLayoutRoot()
public void setEnterpriseObjectsUri(java.lang.String uri)
public java.lang.String getEnterpriseObjectsUri()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||