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

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

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

Tests source generation only, and does not attempt to use the generated code. While a SourceGeneratorTest is better because it is more thorough, sometimes the only thing that requires testing is the code generation.

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

Constructor Summary
OnlySourceGenerationTest()
           
 
Method Summary
 void addSchema(int index, java.lang.String vSchema)
           
 void addSchema(java.lang.String vSchema)
           
 void addUnitTestCase(int index, UnitTestCase vUnitTestCase)
           
 void addUnitTestCase(UnitTestCase vUnitTestCase)
           
 java.util.Enumeration enumerateSchema()
          Method enumerateSchema.
 java.util.Enumeration enumerateUnitTestCase()
          Method enumerateUnitTestCase.
 java.lang.String getBindingFile()
          Returns the value of field 'bindingFile'.
 CollectionType getCollection()
          Returns the value of field 'collection'.
 java.lang.String getPackage()
          Returns the value of field 'package'.
 java.lang.String getProperty_File()
          Returns the value of field 'property_File'.
 java.lang.String[] getSchema()
          Method getSchema.Returns the contents of the collection in an Array.
 java.lang.String getSchema(int index)
          Method getSchema.
 int getSchemaCount()
          Method getSchemaCount.
 UnitTestCase[] getUnitTestCase()
          Method getUnitTestCase.Returns the contents of the collection in an Array.
 UnitTestCase getUnitTestCase(int index)
          Method getUnitTestCase.
 int getUnitTestCaseCount()
          Method getUnitTestCaseCount.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllSchema()
           
 void removeAllUnitTestCase()
           
 boolean removeSchema(java.lang.String vSchema)
          Method removeSchema.
 java.lang.String removeSchemaAt(int index)
          Method removeSchemaAt.
 boolean removeUnitTestCase(UnitTestCase vUnitTestCase)
          Method removeUnitTestCase.
 UnitTestCase removeUnitTestCaseAt(int index)
          Method removeUnitTestCaseAt.
 void setBindingFile(java.lang.String bindingFile)
          Sets the value of field 'bindingFile'.
 void setCollection(CollectionType collection)
          Sets the value of field 'collection'.
 void setPackage(java.lang.String _package)
          Sets the value of field 'package'.
 void setProperty_File(java.lang.String property_File)
          Sets the value of field 'property_File'.
 void setSchema(int index, java.lang.String vSchema)
           
 void setSchema(java.lang.String[] vSchemaArray)
           
 void setUnitTestCase(int index, UnitTestCase vUnitTestCase)
           
 void setUnitTestCase(UnitTestCase[] vUnitTestCaseArray)
           
static OnlySourceGenerationTest 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

OnlySourceGenerationTest

public OnlySourceGenerationTest()
Method Detail

addSchema

public void addSchema(java.lang.String vSchema)
               throws java.lang.IndexOutOfBoundsException
Parameters:
vSchema -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addSchema

public void addSchema(int index,
                      java.lang.String vSchema)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vSchema -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addUnitTestCase

public void addUnitTestCase(UnitTestCase vUnitTestCase)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
vUnitTestCase -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addUnitTestCase

public void addUnitTestCase(int index,
                            UnitTestCase vUnitTestCase)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vUnitTestCase -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateSchema

public java.util.Enumeration enumerateSchema()
Method enumerateSchema.

Returns:
an Enumeration over all java.lang.String elements

enumerateUnitTestCase

public java.util.Enumeration enumerateUnitTestCase()
Method enumerateUnitTestCase.

Returns:
an Enumeration over all org.exolab.castor.tests.framework.testDescriptor.UnitTestCase elements

getBindingFile

public java.lang.String getBindingFile()
Returns the value of field 'bindingFile'.

Returns:
the value of field 'BindingFile'.

getCollection

public CollectionType getCollection()
Returns the value of field 'collection'. The field 'collection' has the following description: The data type to use in collections.

Returns:
the value of field 'Collection'.

getPackage

public java.lang.String getPackage()
Returns the value of field 'package'.

Returns:
the value of field 'Package'.

getProperty_File

public java.lang.String getProperty_File()
Returns the value of field 'property_File'.

Returns:
the value of field 'Property_File'.

getSchema

public java.lang.String getSchema(int index)
                           throws java.lang.IndexOutOfBoundsException
Method getSchema.

Parameters:
index -
Returns:
the value of the java.lang.String at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getSchema

public java.lang.String[] getSchema()
Method getSchema.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getSchemaCount

public int getSchemaCount()
Method getSchemaCount.

Returns:
the size of this collection

getUnitTestCase

public UnitTestCase getUnitTestCase(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getUnitTestCase.

Parameters:
index -
Returns:
the value of the org.exolab.castor.tests.framework.testDescriptor.UnitTestCase at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getUnitTestCase

public UnitTestCase[] getUnitTestCase()
Method getUnitTestCase.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getUnitTestCaseCount

public int getUnitTestCaseCount()
Method getUnitTestCaseCount.

Returns:
the size of this collection

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

removeAllSchema

public void removeAllSchema()

removeAllUnitTestCase

public void removeAllUnitTestCase()

removeSchema

public boolean removeSchema(java.lang.String vSchema)
Method removeSchema.

Parameters:
vSchema -
Returns:
true if the object was removed from the collection.

removeSchemaAt

public java.lang.String removeSchemaAt(int index)
Method removeSchemaAt.

Parameters:
index -
Returns:
the element removed from the collection

removeUnitTestCase

public boolean removeUnitTestCase(UnitTestCase vUnitTestCase)
Method removeUnitTestCase.

Parameters:
vUnitTestCase -
Returns:
true if the object was removed from the collection.

removeUnitTestCaseAt

public UnitTestCase removeUnitTestCaseAt(int index)
Method removeUnitTestCaseAt.

Parameters:
index -
Returns:
the element removed from the collection

setBindingFile

public void setBindingFile(java.lang.String bindingFile)
Sets the value of field 'bindingFile'.

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

setCollection

public void setCollection(CollectionType collection)
Sets the value of field 'collection'. The field 'collection' has the following description: The data type to use in collections.

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

setPackage

public void setPackage(java.lang.String _package)
Sets the value of field 'package'.

Parameters:
_package -
package - the value of field 'package'.

setProperty_File

public void setProperty_File(java.lang.String property_File)
Sets the value of field 'property_File'.

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

setSchema

public void setSchema(int index,
                      java.lang.String vSchema)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vSchema -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setSchema

public void setSchema(java.lang.String[] vSchemaArray)
Parameters:
vSchemaArray -

setUnitTestCase

public void setUnitTestCase(int index,
                            UnitTestCase vUnitTestCase)
                     throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vUnitTestCase -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setUnitTestCase

public void setUnitTestCase(UnitTestCase[] vUnitTestCaseArray)
Parameters:
vUnitTestCaseArray -

unmarshal

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

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