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

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

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

Test marshaling.

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

Constructor Summary
MarshallingTest()
           
 
Method Summary
 void addUnitTestCase(int index, UnitTestCase vUnitTestCase)
           
 void addUnitTestCase(UnitTestCase vUnitTestCase)
           
 java.util.Enumeration enumerateUnitTestCase()
          Method enumerateUnitTestCase.
 Configuration getConfiguration()
          Returns the value of field 'configuration'.
 Root_Object getRoot_Object()
          Returns the value of field 'root_Object'.
 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 removeAllUnitTestCase()
           
 boolean removeUnitTestCase(UnitTestCase vUnitTestCase)
          Method removeUnitTestCase.
 UnitTestCase removeUnitTestCaseAt(int index)
          Method removeUnitTestCaseAt.
 void setConfiguration(Configuration configuration)
          Sets the value of field 'configuration'.
 void setRoot_Object(Root_Object root_Object)
          Sets the value of field 'root_Object'.
 void setUnitTestCase(int index, UnitTestCase vUnitTestCase)
           
 void setUnitTestCase(UnitTestCase[] vUnitTestCaseArray)
           
static MarshallingTest 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

MarshallingTest

public MarshallingTest()
Method Detail

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

enumerateUnitTestCase

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

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

getConfiguration

public Configuration getConfiguration()
Returns the value of field 'configuration'.

Returns:
the value of field 'Configuration'.

getRoot_Object

public Root_Object getRoot_Object()
Returns the value of field 'root_Object'. The field 'root_Object' has the following description: The qualified name of the root Object. TODO: define a pattern to describe a Java quailified name.

Returns:
the value of field 'Root_Object'.

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

removeAllUnitTestCase

public void removeAllUnitTestCase()

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

setConfiguration

public void setConfiguration(Configuration configuration)
Sets the value of field 'configuration'.

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

setRoot_Object

public void setRoot_Object(Root_Object root_Object)
Sets the value of field 'root_Object'. The field 'root_Object' has the following description: The qualified name of the root Object. TODO: define a pattern to describe a Java quailified name.

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

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 MarshallingTest unmarshal(java.io.Reader reader)
                                 throws MarshalException,
                                        ValidationException
Method unmarshal.

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