[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Back to XObjects was XLink - where a

  • From: "Bill la Forge" <b.laforge@j...>
  • To: "David Brownell" <db@E...>, <xml-dev@i...>
  • Date: Thu, 12 Nov 1998 16:47:32 -0500

Re: Back to XObjects was XLink - where a
David and all,

> MyXObject foo = (MyXObject) node;
> MyXObject bar = (MyXObject) node.getUserObject ();


Wrapping a user object with a DOM element is a liberating concept,
especially as it lets you use things like Swing components for the base
class, the DOM tree becoming, in effect, a bean box.

There are then two alternatives:

1. Exposing the wrapper element to the user object. Handy for some 
things where the user object needs to navigate the DOM tree, but quite
restrictive then on the choice of possible user objects.

2. Providing the data and other user object interconnections. This is where
meta data has its real strength--there is simply too much code to write with
an api.

Paul Rabin and I have been working on an expansion of the bindings document
to encompass the meta data needed to provide both the data mapping and
support arbitrary connections (add/North, addTag/"View", addListener/java.awt.ActionListener,
etc.).

One of the nice things to fall out is BindingSets. A BindingSet object supports the
DomBuilder interface, but has an associated set of Bindings documents to support
various types of documents. There is closure, so that all the Bindings of a set belong
only to that one set. (With a minor exception for subsets.)

The "big deal" about binding sets is that it is that you can now determine which set
of bindings to use when one document references another--by default, you just look
at the bindings that were used with the current document and go with the associated
bindings set.

Bill


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.