|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.tests.framework.testDescriptor.FailureType
public class FailureType
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.
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(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FailureType()
Method Detail |
---|
public void deleteContent()
public boolean getContent()
public java.lang.String getException()
public FailureStepType getFailureStep()
public boolean hasContent()
public boolean isContent()
public boolean isValid()
public void marshal(java.io.Writer out) throws MarshalException, ValidationException
out
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, MarshalException, ValidationException
handler
-
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 marshalingpublic void setContent(boolean content)
content
- the value of field 'content'.public void setException(java.lang.String exception)
exception
- the value of field 'exception'.public void setFailureStep(FailureStepType failureStep)
failureStep
- the value of field 'failureStep'.public static FailureType unmarshal(java.io.Reader reader) throws MarshalException, ValidationException
reader
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws ValidationException
ValidationException
- if this
object is an invalid instance according to the schema
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |