1 package org.exoplatform.services.xml.querying.impl.xtas.resource; 2 3 import java.io.IOException ; 4 import org.exoplatform.services.xml.querying.ConfigException; 5 import org.exoplatform.services.xml.querying.UniFormTransformationException; 6 import org.exoplatform.services.xml.querying.XMLWellFormedData; 7 8 12 abstract public class Resource 13 { 14 protected String resourceId; 15 16 19 public abstract XMLWellFormedData load() throws UniFormTransformationException, IOException ; 20 21 24 public abstract void save(XMLWellFormedData tree) throws UniFormTransformationException, IOException ; 25 26 29 public abstract void create(XMLWellFormedData initTree) throws IOException ; 30 31 34 public abstract void drop() throws IOException ; 35 36 39 public abstract void setContext(Object context); 40 41 44 public void init(String resourceId) throws ConfigException 45 { 46 this.resourceId = resourceId; 47 } 48 49 public String toString() 50 { 51 return this.resourceId; 52 } 53 54 57 public String getXPathPrefix() 58 { 59 return null; 60 } 61 62 65 public void close() 66 { 67 } 68 69 } 70 | Popular Tags |