|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.DrbFactory
public abstract class DrbFactory
Node constructor. This class is a factory of nodes. Its static operations enable to create nodes according to a specific implementation of the "Data Request Broker". Basically all DRB root nodes are created from this class. As an example, the open() operation allows to create a root node of an existing document from a simple "Unified Resource Identifier" (URI) which is in most cases a simple file system path. A further implementation of DrbFactory will load dynamically the implementations from external Jar files and will provide additional functionality such as automatic recognition. Note: the URI accepts several contiguous fragment separators (e.g. "###"). Note : this class is not supposed to be instantiated.
| Field Summary | |
|---|---|
static String |
DRB_IDENTIFIER
Deprecated. caller shall now use getImplementationVersion() |
static int |
MAJOR_VERSION
Deprecated. caller shall now use getImplementationVersion() |
static int |
MINIMAL_MINOR_VERSION
Deprecated. caller shall now use getImplementationVersion() |
| Constructor Summary | |
|---|---|
DrbFactory()
|
|
| Method Summary | |
|---|---|
static String |
getImplementationVersion()
Returns the implementation version identifier. |
static void |
main(String[] args)
Command line that returns the implementation version of the software. |
static DrbNodeList |
open(DrbNode node)
Opens a given base node. |
static DrbNode |
open(String xquery)
Deprecated. caller shall now use Query directly
for creating nodes from an XQuery script. |
static DrbNode |
openAs(String uri,
String format)
Opens a root node from an URI using a specific implementation. |
static DrbNode |
openURI(String uri)
Opens the root node of a given URI. |
static DrbNode |
openURI(String uri_string,
boolean spi_envelope)
Opens the root node of a given URI. |
static void |
registerImplementation(DrbFactoryImpl factory,
String format)
Register an implementation that handle the specified format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DRB_IDENTIFIER
getImplementationVersion()
public static final int MAJOR_VERSION
getImplementationVersion()
public static final int MINIMAL_MINOR_VERSION
getImplementationVersion()
| Constructor Detail |
|---|
public DrbFactory()
| Method Detail |
|---|
public static String getImplementationVersion()
This identification string is extracted from the Manifest of the "drb" artifact Jar archive. The identifier format has the following pattern:
drb-[M]-[m]-[class]-[#][#]: incremental number identifying the
following version among this class.
Example: drb-1-3-release, drb-2-3-beta-3
public static DrbNode open(String xquery)
Query directly
for creating nodes from an XQuery script.
xquery - the XQuery script to consider.
Query
public static DrbNode openAs(String uri,
String format)
uri - the location of the node to be opened.format - the implementation used to open the node.
public static DrbNode openURI(String uri)
uri - The "Unified Resource Identifier" (URI) to be openned. This
parameter shall not be null.
DrbNodeSpi
public static DrbNode openURI(String uri_string,
boolean spi_envelope)
uri_string - The "Unified Resource Identifier" (URI) to be openned.
This parameter shall not be null.
public static DrbNodeList open(DrbNode node)
node - The base node be openned. This parameter shall not be null.
DrbNodeSpi
public static void registerImplementation(DrbFactoryImpl factory,
String format)
factory - the input factoryformat - the input formatpublic static void main(String[] args)
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||