org.exolab.castor.tests.framework.testDescriptor
Class UnitTestCaseChoice

java.lang.Object
  extended by org.exolab.castor.tests.framework.testDescriptor.UnitTestCaseChoice
All Implemented Interfaces:
java.io.Serializable

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

Class UnitTestCaseChoice.

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

Constructor Summary
UnitTestCaseChoice()
           
 
Method Summary
 java.lang.String getMapping_File()
          Returns the value of field 'mapping_File'.
 java.lang.String getSchema()
          Returns the value of field 'schema'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setMapping_File(java.lang.String mapping_File)
          Sets the value of field 'mapping_File'.
 void setSchema(java.lang.String schema)
          Sets the value of field 'schema'.
static UnitTestCaseChoice unmarshal(java.io.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

UnitTestCaseChoice

public UnitTestCaseChoice()
Method Detail

getMapping_File

public java.lang.String getMapping_File()
Returns the value of field 'mapping_File'. The field 'mapping_File' has the following description: This element is used only for a MarshallingTest and is optional. It specifies the mapping file to be used (if any).

Returns:
the value of field 'Mapping_File'.

getSchema

public java.lang.String getSchema()
Returns the value of field 'schema'. The field 'schema' has the following description: This element is used only for a SchemaTest and is required for a SchemaTest. It gives the name of the schema to read + write. If the value if this element is '' then the CTF will use all of the schemas present in the directory or jar.

Returns:
the value of field 'Schema'.

isValid

public boolean isValid()
Method isValid.

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

marshal

public void marshal(java.io.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(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
java.io.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

setMapping_File

public void setMapping_File(java.lang.String mapping_File)
Sets the value of field 'mapping_File'. The field 'mapping_File' has the following description: This element is used only for a MarshallingTest and is optional. It specifies the mapping file to be used (if any).

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

setSchema

public void setSchema(java.lang.String schema)
Sets the value of field 'schema'. The field 'schema' has the following description: This element is used only for a SchemaTest and is required for a SchemaTest. It gives the name of the schema to read + write. If the value if this element is '' then the CTF will use all of the schemas present in the directory or jar.

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

unmarshal

public static UnitTestCaseChoice unmarshal(java.io.Reader reader)
                                    throws MarshalException,
                                           ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.exolab.castor.tests.framework.testDescriptor.UnitTestCaseChoice
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


Intalio Inc. (C) 1999-2007. All rights reserved http://www.intalio.com