SlidePub
Home
Categories
Login
Register
Home
Technology
Utilized XStrem in Green Integration
Utilized XStrem in Green Integration
junyuo
229 views
27 slides
Jun 07, 2008
Slide
1
of 27
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
About This Presentation
No description available for this slideshow.
Size:
563.35 KB
Language:
en
Added:
Jun 07, 2008
Slides:
27 pages
Slide Content
Slide 1
Utilized XStrem in Green Integration–
Take CMCS Project for Example
Albert Guo
Slide 2
© 2006 PTC2
Agenda
Scenario
System architecture
Where to launch
XML content example
XStream
What is XStream
XStream Features
Quick Start
XStream FAQ
How to Implement
Example1
Example2
Summary
Slide 3
Scenario
Slide 4
© 2006 PTC4
System Architecture
CIS
Green
Windchill
Project
Management
Document
Management
Change
Management
Pro/E
Wildfire
Pro/E
W
o
r
k
S
p
a
c
e
Pro/E
PDMLink
Supplier
Management
GSM/GCM
Product
Management
(Part /BOM)
I
n
t
e
r
f
a
c
e
T
a
b
le
SAP
ERP
ProjectLink
O
D
B
C
xml
Slide 5
© 2006 PTC5
Where to launch
New Part Application Workflow
New BOM Workflow
Active BOM Workflow
Export BOM to GSMxml
Slide 6
© 2006 PTC6
XML content example
If the part has child,
this part will be enclosed by <ProductLocationMapping>.
If the part does not have child,
then this part will be enclosed by <Line>
Slide 7
XStream
Slide 8
© 2006 PTC8
What is XStream
http://xstream.codehaus.org/index.html
XStream is a simple library to serialize objects to XML and back again.
serialize objects
XML
People.java
name=albert
birthplace=Jia-Yi
People.xml
<people>
<name>albert</name>
<birthplace>Jia-Yi</birthplace>
</people>
Slide 9
© 2006 PTC9
XStream Architecture
Slide 10
© 2006 PTC10
XStream Features
Ease of use
A high level facade is supplied that simplifies common use cases.
No mappings required
Most objects can be serialized without need for specifying mappings.
Performance
Speed and low memory footprint are a crucial part of the design, making it
suitable for large object graphs or systems with high message throughput.
Error messages
When an exception occurs due to malformed XML, detailed diagnostics are
provided to help isolate and fix the problem
Slide 11
© 2006 PTC11
Quick Start
Slide 12
© 2006 PTC12
XStream FAQ
Slide 13
How to Implement
Slide 14
© 2006 PTC14
Steps
Slide 15
Example1
Slide 16
© 2006 PTC16
Example1 (1/2)
People (name, tel, fax, email)
Slide 17
© 2006 PTC17
Example1 (2/2)
Exa mple 1.ra r
Slide 18
Example2
Slide 19
© 2006 PTC19
Analysis XSD or TLD
Attribute for BOM
POJO within BOM
POJO with BOM
Attribute for ProductLocationMapping
POJO within ProductLocationMapping
Slide 20
© 2006 PTC20
Analysis XSD or TLD
Attribute for ProductStructure
Attribute for Line
Slide 21
© 2006 PTC21
Generate POJO
Slide 22
© 2006 PTC22
Set data into POJO (1/3)
Enclosed by <Line> tag
Enclosed by
<ProductLocationMapping>
tag
Slide 23
Set data into POJO (2/3)
© 2006 PTC23
Slide 24
Set data into POJO (3/3)
© 2006 PTC24
Slide 25
© 2006 PTC25
Initializing XStream Object & Serializing object to XML and write xml object
into file
Slide 26
Summary
Slide 27
© 2006 PTC27
Summary
Digester only have unmarshal function
Betwixt/XStream have both marshal and unmarshal function
Utilized JAXB to generate Java class from XSD
Tags
Categories
Technology
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
229
Slides
27
Favorites
1
Age
6394 days
Related Slideshows
11
8-top-ai-courses-for-customer-support-representatives-in-2025.pptx
JeroenErne2
60 views
10
7-essential-ai-courses-for-call-center-supervisors-in-2025.pptx
JeroenErne2
56 views
13
25-essential-ai-courses-for-user-support-specialists-in-2025.pptx
JeroenErne2
44 views
11
8-essential-ai-courses-for-insurance-customer-service-representatives-in-2025.pptx
JeroenErne2
43 views
21
Know for Certain
DaveSinNM
26 views
17
PPT OPD LES 3ertt4t4tqqqe23e3e3rq2qq232.pptx
novasedanayoga46
30 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-27)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better