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

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

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

Class TestDescriptorChoice.

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

Constructor Summary
TestDescriptorChoice()
           
 
Method Summary
 MarshallingTest getMarshallingTest()
          Returns the value of field 'marshallingTest'.
 OnlySourceGenerationTest getOnlySourceGenerationTest()
          Returns the value of field 'onlySourceGenerationTest'.
 SchemaTest getSchemaTest()
          Returns the value of field 'schemaTest'.
 SourceGeneratorTest getSourceGeneratorTest()
          Returns the value of field 'sourceGeneratorTest'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setMarshallingTest(MarshallingTest marshallingTest)
          Sets the value of field 'marshallingTest'.
 void setOnlySourceGenerationTest(OnlySourceGenerationTest onlySourceGenerationTest)
          Sets the value of field 'onlySourceGenerationTest'.
 void setSchemaTest(SchemaTest schemaTest)
          Sets the value of field 'schemaTest'.
 void setSourceGeneratorTest(SourceGeneratorTest sourceGeneratorTest)
          Sets the value of field 'sourceGeneratorTest'.
static TestDescriptorChoice 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

TestDescriptorChoice

public TestDescriptorChoice()
Method Detail

getMarshallingTest

public MarshallingTest getMarshallingTest()
Returns the value of field 'marshallingTest'. The field 'marshallingTest' has the following description: Test marshaling.

Returns:
the value of field 'MarshallingTest'.

getOnlySourceGenerationTest

public OnlySourceGenerationTest getOnlySourceGenerationTest()
Returns the value of field 'onlySourceGenerationTest'. The field 'onlySourceGenerationTest' has the following description: 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.

Returns:
the value of field 'OnlySourceGenerationTest'.

getSchemaTest

public SchemaTest getSchemaTest()
Returns the value of field 'schemaTest'. The field 'schemaTest' has the following description: Tests a schema.

Returns:
the value of field 'SchemaTest'.

getSourceGeneratorTest

public SourceGeneratorTest getSourceGeneratorTest()
Returns the value of field 'sourceGeneratorTest'. The field 'sourceGeneratorTest' has the following description: Tests source generation and then tests the generated source, testing both marshaling and unmarshaling.

Returns:
the value of field 'SourceGeneratorTest'.

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

setMarshallingTest

public void setMarshallingTest(MarshallingTest marshallingTest)
Sets the value of field 'marshallingTest'. The field 'marshallingTest' has the following description: Test marshaling.

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

setOnlySourceGenerationTest

public void setOnlySourceGenerationTest(OnlySourceGenerationTest onlySourceGenerationTest)
Sets the value of field 'onlySourceGenerationTest'. The field 'onlySourceGenerationTest' has the following description: 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.

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

setSchemaTest

public void setSchemaTest(SchemaTest schemaTest)
Sets the value of field 'schemaTest'. The field 'schemaTest' has the following description: Tests a schema.

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

setSourceGeneratorTest

public void setSourceGeneratorTest(SourceGeneratorTest sourceGeneratorTest)
Sets the value of field 'sourceGeneratorTest'. The field 'sourceGeneratorTest' has the following description: Tests source generation and then tests the generated source, testing both marshaling and unmarshaling.

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

unmarshal

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

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