站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Overview (XML Tools API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.xml/1 1.14

XML Tools API
Under Development

XML Tools API overview.

See:
          Description

XML Tools API
org.netbeans.api.xml.cookies XML data objects polymorphism cookies.
org.netbeans.api.xml.parsers XML processors API unification, OpenIDE bridging and utility classes.
org.netbeans.api.xml.services XML Service interface definitions.
org.netbeans.spi.xml.cookies Classes supporting cookie providers.

 

XML Tools API overview.

Status

Under development. See also API changes document.

Purpose

XML tools API simplifies writing inter-operable modules handling user's XML resources. It also improves consistency of user experience as it introduces minimum standard behavior support for all XML domains.

Supported Use Cases

Actions

XML is general document format that allows to define document structure and semantics. It influences behavior of common user's actions. Particular behavior of such action depends on specifics of defined semantics. This can be modeled in OpenIDE APIs using cookies. XML tools API defines set of common cookies org.netbeans.api.xml.cookies and support for their providers org.netbeans.spi.xml.cookies.

A user can take a cookie action from the action pool and put it on a data object serving particular cookie. The action is performed via served cookie that is aware of actual behavioural enhancement for given data object.

User's XML Document Parsing

All standard XML processors APIs define call-back interfaces that must be provided by clients. Further evaluation identifies one type of application wide call-back interface - entity resolution (e.g. in SAX called EntityResolver). XML tools API introduces notion of context user's entity catalog service UserCatalog back-ended by plugged in providers.

A user has all their entity registrations at one place for given context and these are shared by all processors handling user's documents in the context.

Unification&Integration

Standard XML APIs (DOM, TrAX, SAX, OpenIDE) define a API for the same purpose several times to avoid dependencies. org.netbeans.api.xml.parsers provides classes bridging between them. It also contains utility classes such as DTD parser.

Model

Looking for model and 2-way editing support? We are looking for ideas how to define it!


org.netbeans.api.xml/1 1.14

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.