|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DrbFactoryImpl
Common interface for Node factory implementations. All the classes implementing this interface can be used by the DrbFactory class. As a summary, the "Data Request Broker" (DRB) implementations are packages that break down a specific data resource (e.g. an XML document, an HTML file, a Zip archive, a database, etc.) into a tree of DrbNode instances.
As an example, an implementation may handle file systems, breaking down the hard disk devices into directories and regular files. Another one may provide nodes corresponding to the tables and records of a database.
The factory implementations are supposed to be used by the DrbFactory class and not outside. It may however be useful to create DrbNodes directly from a specific implementation disregarding the DrbFactory abstract level. It is therefore recommended to be careful in such situation.Here are some examples of direct use of this interface to open DrbNodes from a path, maybe with an existing context. The following examples are not supposed to work with existing implementations but intends to provides an overview of the DrbFactoryImpl interface. Report to the implementations specific documentations for an accurate description of their use:
| Method Summary | |
|---|---|
String |
getIdentifier()
The scheme identifier of the implementation. |
String |
getName()
The name of the implementation. |
DrbNode |
open(DrbNode base_node)
Opens the node from an existing node. |
DrbNode |
open(URL uri)
Opens the node matching a given path. |
DrbNode |
open(URL uri,
DrbNode base_node)
Opens the node matching a given URI from an existing node. |
| Method Detail |
|---|
String getIdentifier()
String getName()
DrbNode open(URL uri)
DrbNode open(DrbNode base_node)
base_node - The input node to be used as context or base. This
parameter shall not be null.
DrbNode open(URL uri,
DrbNode base_node)
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||