|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EnterpriseLayoutManager
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 |
|---|
void init(java.lang.String layoutManagerName,
org.jdom.Document layoutDoc)
throws EnterpriseLayoutException
layoutManagerName - String, the name of the layout associated to the object that should be located and used. This layout
specifies the details regarding the type of layout being used. The layout manager implementation will use this
information to determine how to build and serialize the object using the layout manager implementation. The contents
of this layout may include a specific layout definition or it may simply be a reference to another Document that
contains that information. That is up to the layout manager implementation.layoutDoc - Document, the JDOM Document that contains the layout information (the EnterpriseObject Document)
EnterpriseLayoutException - if any errors occur initializing the layout manager implementation.
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.
input - Object, the input object that should be used to build the object from.anXmlEnterpriseObject - XmlEnterpriseObject, the XmlEnterpriseObject that is to be built from the input.
EnterpriseLayoutException - if any errors occur building the object from the input.
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.
anXmlEnterpriseObject - XmlEnterpriseObject, the XmlEnterpriseObject that is to be serialized.
EnterpriseLayoutException - if any errors occur building the object from the input.
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.
anXmlEnterpriseObject - XmlEnterpriseObject, the XmlEnterpriseObject that is to be serialized.appName - the name of the application as specified in the translations section of the Enterprise Object document
whos application values should be used in the conversion from Enterprise Values to Application Values.
EnterpriseLayoutException - if any errors occur building the object from the input.void setLayoutManagerName(java.lang.String name)
name - String the layout manager name.java.lang.String getLayoutManagerName()
org.jdom.Element getLayoutRoot()
void setEnterpriseObjectsUri(java.lang.String uri)
uri - String URI to the EnterpriseObjects document. Can be file system or web uri.java.lang.String getEnterpriseObjectsUri()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||