Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enableit.db.darrt.schema
Class Schema  view Schema download Schema.java

java.lang.Object
  extended byorg.enableit.db.darrt.schema.Schema
All Implemented Interfaces:
java.io.Serializable

public class Schema
extends java.lang.Object
implements java.io.Serializable

Version:
$Revision: 1.3 $ $Date: 2003/01/06 10:34:58 $

Field Summary
private  java.lang.String _name
           
private  java.util.Vector _tableList
           
private  java.util.Vector _viewList
           
 
Constructor Summary
Schema()
           
 
Method Summary
 void addTable(int index, Table vTable)
           
 void addTable(Table vTable)
           
 void addView(int index, View vView)
           
 void addView(View vView)
           
 java.util.Enumeration enumerateTable()
           
 java.util.Enumeration enumerateView()
           
 java.lang.String getName()
          Returns the value of field 'name'.
 Table[] getTable()
           
 Table getTable(int index)
           
 int getTableCount()
           
 View[] getView()
           
 View getView(int index)
           
 int getViewCount()
           
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllTable()
           
 void removeAllView()
           
 Table removeTable(int index)
           
 View removeView(int index)
           
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setTable(int index, Table vTable)
           
 void setTable(Table[] tableArray)
           
 void setView(int index, View vView)
           
 void setView(View[] viewArray)
           
static Schema unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_name

private java.lang.String _name

_tableList

private java.util.Vector _tableList

_viewList

private java.util.Vector _viewList
Constructor Detail

Schema

public Schema()
Method Detail

addTable

public void addTable(Table vTable)
              throws java.lang.IndexOutOfBoundsException

addTable

public void addTable(int index,
                     Table vTable)
              throws java.lang.IndexOutOfBoundsException

addView

public void addView(View vView)
             throws java.lang.IndexOutOfBoundsException

addView

public void addView(int index,
                    View vView)
             throws java.lang.IndexOutOfBoundsException

enumerateTable

public java.util.Enumeration enumerateTable()

enumerateView

public java.util.Enumeration enumerateView()

getName

public java.lang.String getName()
Returns the value of field 'name'.


getTable

public Table getTable(int index)
               throws java.lang.IndexOutOfBoundsException

getTable

public Table[] getTable()

getTableCount

public int getTableCount()

getView

public View getView(int index)
             throws java.lang.IndexOutOfBoundsException

getView

public View[] getView()

getViewCount

public int getViewCount()

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException

removeAllTable

public void removeAllTable()

removeAllView

public void removeAllView()

removeTable

public Table removeTable(int index)

removeView

public View removeView(int index)

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.


setTable

public void setTable(int index,
                     Table vTable)
              throws java.lang.IndexOutOfBoundsException

setTable

public void setTable(Table[] tableArray)

setView

public void setView(int index,
                    View vView)
             throws java.lang.IndexOutOfBoundsException

setView

public void setView(View[] viewArray)

unmarshal

public static Schema unmarshal(java.io.Reader reader)
                        throws org.exolab.castor.xml.MarshalException,
                               org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException