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

java.lang.Object
  extended by org.exolab.castor.tests.framework.testDescriptor.StringType
      extended by org.exolab.castor.tests.framework.testDescriptor.RootType
All Implemented Interfaces:
java.io.Serializable
Direct Known 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$ $Date$
See Also:
Serialized Form

Constructor Summary
RootType()
           
RootType(java.lang.String defaultValue)
           
 
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(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootType

public RootType()

RootType

public RootType(java.lang.String defaultValue)
Method Detail

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 class 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 class 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 class 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 class StringType
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

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 class 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.

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