|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.web2.transformation.Web2ServiceUtil
public class Web2ServiceUtil
Nested Class Summary | |
---|---|
(package private) static class |
Web2ServiceUtil.SingletonHolder
|
Method Summary | |
---|---|
static Web2ServiceUtil |
getInstance()
|
java.lang.String |
json2Xml4Service(java.lang.String jsonStr,
java.lang.String serviceContent)
merge the increasement widget's with service template file to form a new new increased xml string. the reverse operation is getDeltaJson(). |
java.lang.String |
xml2Json4Service(java.lang.String xmlStr,
java.lang.String serviceContent)
Divide the increasedXml string by the service template file and then transfer the delta info into json format. the reverse operation is getIncreasedXml(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Web2ServiceUtil getInstance()
public java.lang.String json2Xml4Service(java.lang.String jsonStr, java.lang.String serviceContent) throws java.lang.Exception
jsonStr
- json array string with increasement info
this json arrys is composed with a list of json object as this:
{"ri":"xxx","ws":[{},{}]}
1. the first object is the {"ri":"xxx"}
2. the scecond object is a widgets arrayserviceContent
- template service list structure, it have defined all services to be used.
1. each service is identified by the unique id.
2. Services are grouped with different service catagories.
3. A service can have one or more widgets
4. A widget has its own attributes or attribute children(with just name, value property)
5. A widget can own one or more children widgets
6. A widget can be find by the service if and index id(which is the widget index under the service,default is 0)
7. A widget's children attribute and properties can be added by user and should be merged into the increment xml file.
java.lang.Exception
- throws exception if the xml parse error or json parse errorpublic java.lang.String xml2Json4Service(java.lang.String xmlStr, java.lang.String serviceContent) throws java.lang.Exception
xmlStr
- the increased xml fileserviceContent
- template service list structure, it have defined all services to be used.
1. each service is identified by the unique id.
2. Services are grouped with different service catagories.
3. A service can have one or more widgets
4. A widget has its own attributes or attribute children(with just name, value property)
5. A widget can own one or more children widgets
6. A widget can be find by the service if and index id(which is the widget index under the service,default is 0)
7. A widget's children attribute and properties can be added by user and should be merged into the increment xml file.
java.lang.Exception
- throws exception if the xml parse error or json parse error
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |