|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.api.xmldb.BXCollection
public final class BXCollection
Implementation of the Collection Interface for the XMLDB:API.
| Field Summary | |
|---|---|
static String |
CONFORMANCE_LEVEL
Conformance level of the implementation. |
static String |
DBURI
DB URI. |
static String |
ERR_BINARY
Error message. |
static String |
ERR_CONT
Error message. |
static String |
ERR_DOC
Error message. |
static String |
ERR_EMPTY
Error message. |
static String |
ERR_ID
Error message. |
static String |
ERR_ITER
Error message. |
static String |
ERR_NSURI
Error message. |
static String |
ERR_PROP
Error message. |
static String |
ERR_RES
Error message. |
static String |
ERR_TYPE
Error message. |
static String |
ERR_UNKNOWN
Error message. |
static String |
ERR_URI
Error message. |
static String |
LOCALHOST
Localhost name. |
static String |
XMLDB
XMLDB URI. |
static String |
XMLDBURI
XMLDB URI. |
| Constructor Summary | |
|---|---|
BXCollection(String name,
boolean open)
Constructor to create/open a collection. |
|
BXCollection(String name,
boolean open,
Context c)
Constructor to create/open a collection. |
|
| Method Summary | |
|---|---|
void |
close()
|
String |
createId()
Creates a random numeric id and check if it's not already contained in the database. |
org.basex.api.xmldb.BXXMLResource |
createResource(String id,
String type)
|
org.xmldb.api.base.Collection |
getChildCollection(String name)
|
int |
getChildCollectionCount()
|
String |
getName()
|
org.xmldb.api.base.Collection |
getParentCollection()
|
String |
getProperty(String key)
|
org.basex.api.xmldb.BXXMLResource |
getResource(String id)
|
int |
getResourceCount()
|
org.xmldb.api.base.Service |
getService(String nm,
String ver)
|
org.xmldb.api.base.Service[] |
getServices()
|
boolean |
isOpen()
|
String[] |
listChildCollections()
|
String[] |
listResources()
|
void |
removeResource(org.xmldb.api.base.Resource res)
|
void |
setProperty(String key,
String val)
Be aware what you're doing here.. |
void |
storeResource(org.xmldb.api.base.Resource res)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DBURI
public static final String XMLDB
public static final String XMLDBURI
public static final String LOCALHOST
public static final String CONFORMANCE_LEVEL
public static final String ERR_URI
public static final String ERR_PROP
public static final String ERR_BINARY
public static final String ERR_TYPE
public static final String ERR_EMPTY
public static final String ERR_ID
public static final String ERR_UNKNOWN
public static final String ERR_CONT
public static final String ERR_NSURI
public static final String ERR_RES
public static final String ERR_ITER
public static final String ERR_DOC
| Constructor Detail |
|---|
public BXCollection(String name,
boolean open)
throws org.xmldb.api.base.XMLDBException
name - name of the databaseopen - open existing database
org.xmldb.api.base.XMLDBException - exception
public BXCollection(String name,
boolean open,
Context c)
throws org.xmldb.api.base.XMLDBException
name - name of the databaseopen - open existing databasec - database context
org.xmldb.api.base.XMLDBException - exception| Method Detail |
|---|
public String getName()
getName in interface org.xmldb.api.base.Collection
public org.xmldb.api.base.Service[] getServices()
throws org.xmldb.api.base.XMLDBException
getServices in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public org.xmldb.api.base.Service getService(String nm,
String ver)
throws org.xmldb.api.base.XMLDBException
getService in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public org.xmldb.api.base.Collection getParentCollection()
throws org.xmldb.api.base.XMLDBException
getParentCollection in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public org.xmldb.api.base.Collection getChildCollection(String name)
throws org.xmldb.api.base.XMLDBException
getChildCollection in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public int getChildCollectionCount()
throws org.xmldb.api.base.XMLDBException
getChildCollectionCount in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public String[] listChildCollections()
throws org.xmldb.api.base.XMLDBException
listChildCollections in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public int getResourceCount()
throws org.xmldb.api.base.XMLDBException
getResourceCount in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public String[] listResources()
throws org.xmldb.api.base.XMLDBException
listResources in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public org.basex.api.xmldb.BXXMLResource createResource(String id,
String type)
throws org.xmldb.api.base.XMLDBException
createResource in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public void removeResource(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
removeResource in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public void storeResource(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
storeResource in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public org.basex.api.xmldb.BXXMLResource getResource(String id)
throws org.xmldb.api.base.XMLDBException
getResource in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException
public String createId()
throws org.xmldb.api.base.XMLDBException
createId in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - exceptionpublic boolean isOpen()
isOpen in interface org.xmldb.api.base.Collectionpublic void close()
close in interface org.xmldb.api.base.Collection
public String getProperty(String key)
throws org.xmldb.api.base.XMLDBException
getProperty in interface org.xmldb.api.base.Configurableorg.xmldb.api.base.XMLDBException
public void setProperty(String key,
String val)
throws org.xmldb.api.base.XMLDBException
setProperty in interface org.xmldb.api.base.Configurablekey - keyval - value
org.xmldb.api.base.XMLDBException - exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||