1 package org.ozoneDB.xml.cli.services; 8 9 import org.xmldb.api.base.XMLDBException; 10 import org.xmldb.api.base.Collection; 11 import org.xmldb.api.base.ErrorCodes; 12 13 16 public class CollectionManagementServiceImpl implements org.xmldb.api.modules.CollectionManagementService { 17 18 private final String version = "0.1"; 19 private Collection collection = null; 20 22 23 public CollectionManagementServiceImpl() { 24 } 26 27 28 public Collection createCollection(String name) throws XMLDBException { 29 try { 30 throw new XMLDBException(ErrorCodes.VENDOR_ERROR,"Not yet implemented"); 34 } 35 catch (Exception e) { 36 throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage()); 37 } 38 } 39 40 41 public void removeCollection(String name) throws XMLDBException { 42 try { 43 throw new XMLDBException(ErrorCodes.VENDOR_ERROR,"Not implemented yet"); 44 } 47 catch (Exception e) { 48 throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage()); 49 } 50 } 51 52 60 public String getVersion() throws XMLDBException { 61 return version; 62 } 63 64 72 public String getName() throws XMLDBException { 73 return super.getClass().getName(); 75 } 76 77 87 public void setProperty(String name, String value) throws XMLDBException { 88 } 90 91 99 public void setCollection(Collection col) throws XMLDBException { 100 this.collection = col; 101 } 102 103 112 public String getProperty(String name) throws XMLDBException { 113 return null; 114 } 115 } 116 | Popular Tags |