myx
Class myxCollection
java.lang.Object
myx.myxCollection
- All Implemented Interfaces:
- org.xmldb.api.base.Collection, org.xmldb.api.base.Configurable
public class myxCollection
- extends java.lang.Object
- implements org.xmldb.api.base.Collection
- Author:
- Mladen Adamovic (adamm@blic.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myxCollection
public myxCollection()
myxCollection
public myxCollection(myxDatabase cachedDB,
java.lang.String name)
throws org.xmldb.api.base.XMLDBException
- Throws:
org.xmldb.api.base.XMLDBException
getName
public java.lang.String getName()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getName
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getName()
getServices
public org.xmldb.api.base.Service[] getServices()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getServices
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getServices()
getService
public org.xmldb.api.base.Service getService(java.lang.String name,
java.lang.String version)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getService
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getService(java.lang.String,
java.lang.String)
getParentCollection
public org.xmldb.api.base.Collection getParentCollection()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getParentCollection
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getParentCollection()
getChildCollectionCount
public int getChildCollectionCount()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getChildCollectionCount
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getChildCollectionCount()
listChildCollections
public java.lang.String[] listChildCollections()
throws org.xmldb.api.base.XMLDBException
- Specified by:
listChildCollections
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.listChildCollections()
getChildCollection
public org.xmldb.api.base.Collection getChildCollection(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getChildCollection
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getChildCollection(java.lang.String)
getResourceCount
public int getResourceCount()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getResourceCount
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getResourceCount()
listResources
public java.lang.String[] listResources()
throws org.xmldb.api.base.XMLDBException
- Specified by:
listResources
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.listResources()
createResource
public org.xmldb.api.base.Resource createResource(java.lang.String id,
java.lang.String type)
throws org.xmldb.api.base.XMLDBException
- Specified by:
createResource
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.createResource(java.lang.String,
java.lang.String)
removeResource
public void removeResource(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
- Specified by:
removeResource
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.removeResource(org.xmldb.api.base.Resource)
storeResource
public void storeResource(org.xmldb.api.base.Resource res)
throws org.xmldb.api.base.XMLDBException
- Specified by:
storeResource
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.storeResource(org.xmldb.api.base.Resource)
getResource
public org.xmldb.api.base.Resource getResource(java.lang.String id)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getResource
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.getResource(java.lang.String)
createId
public java.lang.String createId()
throws org.xmldb.api.base.XMLDBException
- Specified by:
createId
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.createId()
importFile
public void importFile(java.io.File file)
throws org.xmldb.api.base.XMLDBException
- import one file into this myxCollection
- Parameters:
file
- file you want to import into this myxCollection
- Throws:
org.xmldb.api.base.XMLDBException
importDirectoryContents
public void importDirectoryContents(java.lang.String directoryPath)
throws org.xmldb.api.base.XMLDBException
- import all files from one directory into this myxCollection
- Parameters:
directoryPath
-
- Throws:
org.xmldb.api.base.XMLDBException
- myxCollection.importdirectory parametar must be valid
directory name
isOpen
public boolean isOpen()
throws org.xmldb.api.base.XMLDBException
- Specified by:
isOpen
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.isOpen()
close
public void close()
throws org.xmldb.api.base.XMLDBException
- Specified by:
close
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Collection.close()
getProperty
public java.lang.String getProperty(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getProperty
in interface org.xmldb.api.base.Configurable
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Configurable.getProperty(java.lang.String)
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
throws org.xmldb.api.base.XMLDBException
- Specified by:
setProperty
in interface org.xmldb.api.base.Configurable
- Throws:
org.xmldb.api.base.XMLDBException
- See Also:
Configurable.setProperty(java.lang.String,
java.lang.String)
Copyright © 2005 myXMLDB. All Rights Reserved.