org.exolab.castor.tests.framework.testDescriptor

Class RootType

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

public class RootType
extends StringType
implements java.io.Serializable

The definition of the Root Type in the object model. Contains two boolean attributes: random and dump. If random is set to true, a test using randomized objects will be executed. If dump is set to true, the object will be dumped to specific files.
Version:
$Revision: 6721 $ $Date$
See Also:
Serialized Form

Constructor Summary

RootType()

Method Summary

void
deleteDump()
void
deleteRandom()
java.lang.String
getContent()
Returns the value of field 'content'.
boolean
getDump()
Returns the value of field 'dump'.
boolean
getRandom()
Returns the value of field 'random'.
boolean
hasDump()
Method hasDump.
boolean
hasRandom()
Method hasRandom.
boolean
isDump()
Returns the value of field 'dump'.
boolean
isRandom()
Returns the value of field 'random'.
boolean
isValid()
Method isValid.
void
marshal(java.io.Writer out)
void
marshal(org.xml.sax.ContentHandler handler)
void
setContent(java.lang.String content)
Sets the value of field 'content'.
void
setDump(boolean dump)
Sets the value of field 'dump'.
void
setRandom(boolean random)
Sets the value of field 'random'.
static StringType
unmarshal(java.io.Reader reader)
Method unmarshal.
void
validate()

Methods inherited from class org.exolab.castor.tests.framework.testDescriptor.StringType

getContent, isValid, marshal, marshal, setContent, unmarshal, validate

Constructor Details

RootType

public RootType()

Method Details

deleteDump

public void deleteDump()

deleteRandom

public void deleteRandom()

getContent

public java.lang.String getContent()
Returns the value of field 'content'. The field 'content' has the following description: internal content storage
Overrides:
getContent in interface StringType
Returns:
the value of field 'Content'.

getDump

public boolean getDump()
Returns the value of field 'dump'.
Returns:
the value of field 'Dump'.

getRandom

public boolean getRandom()
Returns the value of field 'random'.
Returns:
the value of field 'Random'.

hasDump

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

hasRandom

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

isDump

public boolean isDump()
Returns the value of field 'dump'.
Returns:
the value of field 'Dump'.

isRandom

public boolean isRandom()
Returns the value of field 'random'.
Returns:
the value of field 'Random'.

isValid

public boolean isValid()
Method isValid.
Overrides:
isValid in interface StringType
Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
            throws MarshalException,
                   ValidationException
Overrides:
marshal in interface StringType
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
Overrides:
marshal in interface StringType
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(java.lang.String content)
Sets the value of field 'content'. The field 'content' has the following description: internal content storage
Overrides:
setContent in interface StringType
Parameters:
content - the value of field 'content'.

setDump

public void setDump(boolean dump)
Sets the value of field 'dump'.
Parameters:
dump - the value of field 'dump'.

setRandom

public void setRandom(boolean random)
Sets the value of field 'random'.
Parameters:
random - the value of field 'random'.

unmarshal

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