Back to XObjects was XLink - where a

Bill la Forge b.laforge at jxml.com
Thu Nov 12 21:44:49 GMT 1998


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 at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list