1
2
3
4
5
6
7 package gov.noaa.eds.xapi.generic;
8
9 import org.xmldb.api.base.ErrorCodes;
10 import org.xmldb.api.base.Resource;
11 import org.xmldb.api.base.XMLDBException;
12
13 /***
14 * An abstract Resource which holds the id for all subclasses.
15 * @version $Id: GenericResource.java,v 1.2 2004/12/23 22:26:01 mrxtravis Exp $
16 * @author tns
17 */
18 public abstract class GenericResource extends GenericConfigurable implements Resource {
19
20
21 /*** Holds value of property id*/
22 private String id;
23
24
25 /*** Creates a new instance of GenericResource */
26 public GenericResource() {
27 }
28
29
30 public org.xmldb.api.base.Collection getParentCollection() throws XMLDBException {
31 throw new XMLDBException(ErrorCodes.NOT_IMPLEMENTED);
32 }
33
34 public String getId() throws org.xmldb.api.base.XMLDBException {
35 return this.id;
36 }
37
38 public void setId(String id){
39 this.id = id;
40 }
41
42 }