It is important to understand the DataBean object graph in order to access these features correctly. When a schema is imported into Message Bridge, a root element is identified directly by Message Bridge itself, or is selected by the user. When code is generated, Message Bridge creates two types of DataBeans::
A Root DataBean that represents the root element of a complete document described by a schema
Zero or more additional Element DataBeans that represent the document’s member elements, attributes, and data
Both Root and Element DataBeans expose various types of get() and set() methods that are used to navigate through objects in the object graph and to access or modify the content of those objects. All DataBeans extend class DataBeanElement.
Figure 2-1: DataBean object graph
Root DataBeans expose additional methods for interacting with the main document they represent. This main document is an instance of a document that conforms to a schema and has a given root. All Root DataBeans extend class DataBeanOpaque, which itself extends class DataBeanElement.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |