|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.filter.DatabaseSchema
public class DatabaseSchema
Top-level element for the database-schema.xml configuration file.
| Constructor Summary | |
|---|---|
DatabaseSchema()
|
|
| Method Summary | |
|---|---|
void |
addTable(int index,
Table vTable)
|
void |
addTable(Table vTable)
|
Enumeration<Table> |
enumerateTable()
Method enumerateTable. |
Table[] |
getTable()
Method getTable.Returns the contents of the collection in an Array. |
Table |
getTable(int index)
Method getTable. |
List<Table> |
getTableCollection()
Method getTableCollection.Returns a reference to '_tableList'. |
int |
getTableCount()
Method getTableCount. |
boolean |
isValid()
Method isValid. |
Iterator<Table> |
iterateTable()
Method iterateTable. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllTable()
|
boolean |
removeTable(Table vTable)
Method removeTable. |
Table |
removeTableAt(int index)
Method removeTableAt. |
void |
setTable(int index,
Table vTable)
|
void |
setTable(List<Table> vTableList)
Sets the value of '_tableList' by copying the given Vector. |
void |
setTable(Table[] vTableArray)
|
void |
setTableCollection(List<Table> tableList)
Deprecated. |
static DatabaseSchema |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseSchema()
| Method Detail |
|---|
public void addTable(Table vTable)
throws IndexOutOfBoundsException
vTable -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addTable(int index,
Table vTable)
throws IndexOutOfBoundsException
index - vTable -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Table> enumerateTable()
public Table getTable(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Table[] getTable()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Table> getTableCollection()
public int getTableCount()
public boolean isValid()
public Iterator<Table> iterateTable()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllTable()
public boolean removeTable(Table vTable)
vTable -
public Table removeTableAt(int index)
index -
public void setTable(int index,
Table vTable)
throws IndexOutOfBoundsException
index - vTable -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setTable(Table[] vTableArray)
vTableArray - public void setTable(List<Table> vTableList)
vTableList - the Vector to copy.public void setTableCollection(List<Table> tableList)
tableList - the Vector to set.
public static DatabaseSchema unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||