org.exolab.castor.tests.framework.testDescriptor

Class CustomTestType

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
CustomTest

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

This element specifies an optional user-provided test. A user- provided test consists of a test class name to be instantiated and a non-static method to call for the method.
Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary

CustomTestType()

Method Summary

Methods
getMethods()
Returns the value of field 'methods'.
java.lang.String
getTestClass()
Returns the value of field 'testClass'.
boolean
isValid()
Method isValid.
void
marshal(java.io.Writer out)
void
marshal(org.xml.sax.ContentHandler handler)
void
setMethods(Methods methods)
Sets the value of field 'methods'.
void
setTestClass(java.lang.String testClass)
Sets the value of field 'testClass'.
static CustomTestType
unmarshal(java.io.Reader reader)
Method unmarshal.
void
validate()

Constructor Details

CustomTestType

public CustomTestType()

Method Details

getMethods

public Methods getMethods()
Returns the value of field 'methods'.
Returns:
the value of field 'Methods'.

getTestClass

public java.lang.String getTestClass()
Returns the value of field 'testClass'.
Returns:
the value of field 'TestClass'.

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:
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

setMethods

public void setMethods(Methods methods)
Sets the value of field 'methods'.
Parameters:
methods - the value of field 'methods'.

setTestClass

public void setTestClass(java.lang.String testClass)
Sets the value of field 'testClass'.
Parameters:
testClass - the value of field 'testClass'.

unmarshal

public static CustomTestType unmarshal(java.io.Reader reader)
            throws MarshalException,
                   ValidationException
Method unmarshal.
Parameters:
reader -
Returns:
the unmarshaled org.exolab.castor.tests.framework.testDescriptor.CustomTestType
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-2008. All rights reserved http://www.intalio.com