java.lang.Object
org.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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_name
private java.lang.String _name
_tableList
private java.util.Vector _tableList
_viewList
private java.util.Vector _viewList
Schema
public Schema()
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