|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.test.framework.xml.CpactfConf
public class CpactfConf
Class CpactfConf.
| Constructor Summary | |
|---|---|
CpactfConf()
|
|
| Method Summary | |
|---|---|
void |
addDatabase(Database vDatabase)
|
void |
addDatabase(int index,
Database vDatabase)
|
void |
addTransaction(int index,
Transaction vTransaction)
|
void |
addTransaction(Transaction vTransaction)
|
Enumeration<? extends Database> |
enumerateDatabase()
Method enumerateDatabase. |
Enumeration<? extends Transaction> |
enumerateTransaction()
Method enumerateTransaction. |
Database[] |
getDatabase()
Method getDatabase.Returns the contents of the collection in an Array. |
Database |
getDatabase(int index)
Method getDatabase. |
int |
getDatabaseCount()
Method getDatabaseCount. |
String |
getDefaultDatabase()
Returns the value of field 'defaultDatabase'. |
String |
getDefaultTransaction()
Returns the value of field 'defaultTransaction'. |
Transaction[] |
getTransaction()
Method getTransaction.Returns the contents of the collection in an Array. |
Transaction |
getTransaction(int index)
Method getTransaction. |
int |
getTransactionCount()
Method getTransactionCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Database> |
iterateDatabase()
Method iterateDatabase. |
Iterator<? extends Transaction> |
iterateTransaction()
Method iterateTransaction. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllDatabase()
|
void |
removeAllTransaction()
|
boolean |
removeDatabase(Database vDatabase)
Method removeDatabase. |
Database |
removeDatabaseAt(int index)
Method removeDatabaseAt. |
boolean |
removeTransaction(Transaction vTransaction)
Method removeTransaction. |
Transaction |
removeTransactionAt(int index)
Method removeTransactionAt. |
void |
setDatabase(Database[] vDatabaseArray)
|
void |
setDatabase(int index,
Database vDatabase)
|
void |
setDefaultDatabase(String defaultDatabase)
Sets the value of field 'defaultDatabase'. |
void |
setDefaultTransaction(String defaultTransaction)
Sets the value of field 'defaultTransaction'. |
void |
setTransaction(int index,
Transaction vTransaction)
|
void |
setTransaction(Transaction[] vTransactionArray)
|
static CpactfConf |
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 CpactfConf()
| Method Detail |
|---|
public void addDatabase(Database vDatabase)
throws IndexOutOfBoundsException
vDatabase -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addDatabase(int index,
Database vDatabase)
throws IndexOutOfBoundsException
index - vDatabase -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addTransaction(Transaction vTransaction)
throws IndexOutOfBoundsException
vTransaction -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addTransaction(int index,
Transaction vTransaction)
throws IndexOutOfBoundsException
index - vTransaction -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Database> enumerateDatabase()
public Enumeration<? extends Transaction> enumerateTransaction()
public Database getDatabase(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Database[] getDatabase()
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 int getDatabaseCount()
public String getDefaultDatabase()
public String getDefaultTransaction()
public Transaction getTransaction(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Transaction[] getTransaction()
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 int getTransactionCount()
public boolean isValid()
public Iterator<? extends Database> iterateDatabase()
public Iterator<? extends Transaction> iterateTransaction()
public void marshal(Writer out)
throws MarshalException,
ValidationException
out -
MarshalException - if object is
null or if any SAXException is thrown during marshaling
ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
MarshalException,
ValidationException
handler -
IOException - if an IOException occurs during
marshaling
ValidationException - if this
object is an invalid instance according to the schema
MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllDatabase()
public void removeAllTransaction()
public boolean removeDatabase(Database vDatabase)
vDatabase -
public Database removeDatabaseAt(int index)
index -
public boolean removeTransaction(Transaction vTransaction)
vTransaction -
public Transaction removeTransactionAt(int index)
index -
public void setDatabase(int index,
Database vDatabase)
throws IndexOutOfBoundsException
index - vDatabase -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setDatabase(Database[] vDatabaseArray)
vDatabaseArray - public void setDefaultDatabase(String defaultDatabase)
defaultDatabase - the value of field 'defaultDatabase'.public void setDefaultTransaction(String defaultTransaction)
defaultTransaction - the value of field
'defaultTransaction'.
public void setTransaction(int index,
Transaction vTransaction)
throws IndexOutOfBoundsException
index - vTransaction -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setTransaction(Transaction[] vTransactionArray)
vTransactionArray -
public static CpactfConf unmarshal(Reader reader)
throws MarshalException,
ValidationException
reader -
MarshalException - if object is
null or if any SAXException is thrown during marshaling
ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws ValidationException
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 | |||||||||