|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.eds.xapi.generic.GenericConfigurable
gov.noaa.eds.xapi.generic.GenericDatabase
An implementation of an XAPI Database, when the database is just a collection of XAPI Collection objects.
Field Summary |
Fields inherited from class gov.noaa.eds.xapi.generic.GenericConfigurable |
properties |
Constructor Summary | |
GenericDatabase()
Creates a new instance of ListDatabase |
Method Summary | |
boolean |
acceptsURI(java.lang.String uri)
Checks the list of collections and determines if one of them is named with the specified uri. |
void |
addCollection(org.xmldb.api.base.Collection collection)
Add a Collection to the list of collections. |
org.xmldb.api.base.Collection |
getCollection(java.lang.String uri,
java.lang.String userName,
java.lang.String password)
Returns a collection with the specified uri |
java.lang.String |
getConformanceLevel()
Returns the conformance level. |
java.lang.String |
getName()
Returns null, use getNames |
java.lang.String[] |
getNames()
Returns the known collections |
void |
setConformanceLevel(java.lang.String conformanceLevel)
Sets the conformance level as specified at http://xmldb-org.sourceforge.net/xapi/ . |
Methods inherited from class gov.noaa.eds.xapi.generic.GenericConfigurable |
getProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
Constructor Detail |
public GenericDatabase()
Method Detail |
public void addCollection(org.xmldb.api.base.Collection collection) throws org.xmldb.api.base.XMLDBException
collection
- A collection to add.
org.xmldb.api.base.XMLDBException
public boolean acceptsURI(java.lang.String uri)
acceptsURI
in interface org.xmldb.api.base.Database
uri
- The uri to check if a collection existspublic java.lang.String getName()
getName
in interface org.xmldb.api.base.Database
public java.lang.String[] getNames()
public java.lang.String getConformanceLevel()
getConformanceLevel
in interface org.xmldb.api.base.Database
public void setConformanceLevel(java.lang.String conformanceLevel)
http://xmldb-org.sourceforge.net/xapi/
.
The default is set to Core Level 0.
conformanceLevel
- public org.xmldb.api.base.Collection getCollection(java.lang.String uri, java.lang.String userName, java.lang.String password) throws org.xmldb.api.base.XMLDBException
getCollection
in interface org.xmldb.api.base.Database
uri
- The uri of the collectionuserName
- The user name to use for permissionspassword
- The user name to use for permissions
org.xmldb.api.base.XMLDBException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |