XTAS Project (0.6 beta)

xtas
Class Resource

java.lang.Object
  |
  +--xtas.Resource
Direct Known Subclasses:
LocalFile, ServletResource, XmldbResource

public abstract class Resource
extends java.lang.Object

Abstract class encapsulated Persistence storage for the XML data

Version:
$Id: Resource.java,v 1.5 2003/04/17 14:15:13 geaz Exp $

Constructor Summary
Resource()
           
 
Method Summary
abstract  void create(WellFormedUniFormTree initTree)
          Creates resource
abstract  void drop()
          drops resource
abstract  WellFormedUniFormTree load()
          Loads XML from some resource
abstract  void save(WellFormedUniFormTree tree)
          Stores XML into some resource
abstract  void setContext(java.lang.Object context)
          Initializes Resource's context (if any)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

load

public abstract WellFormedUniFormTree load()
                                    throws UniFormTransformationException,
                                           java.io.IOException
Loads XML from some resource

save

public abstract void save(WellFormedUniFormTree tree)
                   throws UniFormTransformationException,
                          java.io.IOException
Stores XML into some resource

create

public abstract void create(WellFormedUniFormTree initTree)
                     throws java.io.IOException
Creates resource

drop

public abstract void drop()
                   throws java.io.IOException
drops resource

setContext

public abstract void setContext(java.lang.Object context)
Initializes Resource's context (if any)

XTAS Project (0.6 beta)