org.opennms.netmgt.config.filter
Class DatabaseSchema

java.lang.Object
  extended by org.opennms.netmgt.config.filter.DatabaseSchema
All Implemented Interfaces:
java.io.Serializable

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

Top-level element for the database-schema.xml configuration file.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
DatabaseSchema()
           
 
Method Summary
 void addTable(int index, Table vTable)
          Method addTable
 void addTable(Table vTable)
          Method addTable
 void clearTable()
          Method clearTable
 java.util.Enumeration enumerateTable()
          Method enumerateTable
 Table[] getTable()
          Method getTable
 Table getTable(int index)
          Method getTable
 java.util.ArrayList getTableCollection()
          Method getTableCollection Returns a reference to 'table'.
 int getTableCount()
          Method getTableCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeTable(Table vTable)
          Method removeTable
 void setTable(java.util.ArrayList tableCollection)
          Method setTable Sets the value of 'table' by copying the given ArrayList.
 void setTable(int index, Table vTable)
          Method setTable
 void setTable(Table[] tableArray)
          Method setTable
 void setTableCollection(java.util.ArrayList tableCollection)
          Method setTableCollection Sets the value of 'table' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseSchema

public DatabaseSchema()
Method Detail

addTable

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

Parameters:
vTable -
Throws:
java.lang.IndexOutOfBoundsException

addTable

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

Parameters:
index -
vTable -
Throws:
java.lang.IndexOutOfBoundsException

clearTable

public void clearTable()
Method clearTable


enumerateTable

public java.util.Enumeration enumerateTable()
Method enumerateTable

Returns:
Enumeration

getTable

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

Parameters:
index -
Returns:
Table
Throws:
java.lang.IndexOutOfBoundsException

getTable

public Table[] getTable()
Method getTable

Returns:
Table

getTableCollection

public java.util.ArrayList getTableCollection()
Method getTableCollection Returns a reference to 'table'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getTableCount

public int getTableCount()
Method getTableCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

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

Parameters:
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
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeTable

public boolean removeTable(Table vTable)
Method removeTable

Parameters:
vTable -
Returns:
boolean

setTable

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

Parameters:
index -
vTable -
Throws:
java.lang.IndexOutOfBoundsException

setTable

public void setTable(Table[] tableArray)
Method setTable

Parameters:
tableArray -

setTable

public void setTable(java.util.ArrayList tableCollection)
Method setTable Sets the value of 'table' by copying the given ArrayList.

Parameters:
tableCollection - the Vector to copy.

setTableCollection

public void setTableCollection(java.util.ArrayList tableCollection)
Method setTableCollection Sets the value of 'table' by setting it to the given ArrayList. No type checking is performed.

Parameters:
tableCollection - the ArrayList to copy.

unmarshal

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

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

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

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.