org.castor.cpa.test.framework.xml
Class Database

java.lang.Object
  extended by org.castor.cpa.test.framework.xml.Database
All Implemented Interfaces:
Serializable

public class Database
extends Object
implements Serializable

Class Database.

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

Constructor Summary
Database()
           
 
Method Summary
 DatabaseChoice getDatabaseChoice()
          Returns the value of field 'databaseChoice'.
 String getDescription()
          Returns the value of field 'description'.
 DatabaseEngineType getEngine()
          Returns the value of field 'engine'.
 String getName()
          Returns the value of field 'name'.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setDatabaseChoice(DatabaseChoice databaseChoice)
          Sets the value of field 'databaseChoice'.
 void setDescription(String description)
          Sets the value of field 'description'.
 void setEngine(DatabaseEngineType engine)
          Sets the value of field 'engine'.
 void setName(String name)
          Sets the value of field 'name'.
static Database 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

Database

public Database()
Method Detail

getDatabaseChoice

public DatabaseChoice getDatabaseChoice()
Returns the value of field 'databaseChoice'.

Returns:
the value of field 'DatabaseChoice'.

getDescription

public String getDescription()
Returns the value of field 'description'.

Returns:
the value of field 'Description'.

getEngine

public DatabaseEngineType getEngine()
Returns the value of field 'engine'.

Returns:
the value of field 'Engine'.

getName

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

Returns:
the value of field 'Name'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws MarshalException,
                    ValidationException
Parameters:
out -
Throws:
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

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
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 marshaling

setDatabaseChoice

public void setDatabaseChoice(DatabaseChoice databaseChoice)
Sets the value of field 'databaseChoice'.

Parameters:
databaseChoice - the value of field 'databaseChoice'.

setDescription

public void setDescription(String description)
Sets the value of field 'description'.

Parameters:
description - the value of field 'description'.

setEngine

public void setEngine(DatabaseEngineType engine)
Sets the value of field 'engine'.

Parameters:
engine - the value of field 'engine'.

setName

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

Parameters:
name - the value of field 'name'.

unmarshal

public static Database unmarshal(Reader reader)
                          throws MarshalException,
                                 ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.castor.cpa.test.framework.xml.Database
Throws:
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

validate

public void validate()
              throws ValidationException
Throws:
ValidationException - if this object is an invalid instance according to the schema


Copyright © 2012. All Rights Reserved.