org.exolab.castor.tests.framework.testDescriptor

Class FailureType

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

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

True if this test is expected to throw an Exception and if it would thus be an error if the test does not throw an Exception. False otherwise.

If FailureType is true, then this element optionally contains the attribute exception that contains the class of the Exception that is expected. If this attribute is not provided, then the presence of any exception causes the test to pass. Otherwise, the specific exception has to be thrown for the test to pass.

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

Constructor Summary

FailureType()

Method Summary

void
deleteContent()
boolean
getContent()
Returns the value of field 'content'.
java.lang.String
getException()
Returns the value of field 'exception'.
FailureStepType
getFailureStep()
Returns the value of field 'failureStep'.
boolean
hasContent()
Method hasContent.
boolean
isContent()
Returns the value of field 'content'.
boolean
isValid()
Method isValid.
void
marshal(java.io.Writer out)
void
marshal(org.xml.sax.ContentHandler handler)
void
setContent(boolean content)
Sets the value of field 'content'.
void
setException(java.lang.String exception)
Sets the value of field 'exception'.
void
setFailureStep(FailureStepType failureStep)
Sets the value of field 'failureStep'.
static FailureType
unmarshal(java.io.Reader reader)
Method unmarshal.
void
validate()

Constructor Details

FailureType

public FailureType()

Method Details

deleteContent

public void deleteContent()

getContent

public boolean getContent()
Returns the value of field 'content'. The field 'content' has the following description: internal content storage
Returns:
the value of field 'Content'.

getException

public java.lang.String getException()
Returns the value of field 'exception'.
Returns:
the value of field 'Exception'.

getFailureStep

public FailureStepType getFailureStep()
Returns the value of field 'failureStep'.
Returns:
the value of field 'FailureStep'.

hasContent

public boolean hasContent()
Method hasContent.
Returns:
true if at least one Content has been added

isContent

public boolean isContent()
Returns the value of field 'content'. The field 'content' has the following description: internal content storage
Returns:
the value of field 'Content'.

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

setContent

public void setContent(boolean content)
Sets the value of field 'content'. The field 'content' has the following description: internal content storage
Parameters:
content - the value of field 'content'.

setException

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

setFailureStep

public void setFailureStep(FailureStepType failureStep)
Sets the value of field 'failureStep'.
Parameters:
failureStep - the value of field 'failureStep'.

unmarshal

public static FailureType unmarshal(java.io.Reader reader)
            throws MarshalException,
                   ValidationException
Method unmarshal.
Parameters:
reader -
Returns:
the unmarshaled org.exolab.castor.tests.framework.testDescriptor.FailureType
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