|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.tests.framework.testDescriptor.SourceGeneratorTest
public class SourceGeneratorTest
Tests source generation and then tests the generated source, testing both marshaling and unmarshaling.
Constructor Summary | |
---|---|
SourceGeneratorTest()
|
Method Summary | |
---|---|
void |
addSchema(int index,
java.lang.String vSchema)
|
void |
addSchema(java.lang.String vSchema)
|
void |
addUnitTestCase(int index,
UnitTestCase vUnitTestCase)
|
void |
addUnitTestCase(UnitTestCase vUnitTestCase)
|
java.util.Enumeration |
enumerateSchema()
Method enumerateSchema. |
java.util.Enumeration |
enumerateUnitTestCase()
Method enumerateUnitTestCase. |
java.lang.String |
getBindingFile()
Returns the value of field 'bindingFile'. |
CollectionType |
getCollection()
Returns the value of field 'collection'. |
ExpectedSources |
getExpectedSources()
Returns the value of field 'expectedSources'. |
java.lang.String |
getPackage()
Returns the value of field 'package'. |
java.lang.String |
getProperty_File()
Returns the value of field 'property_File'. |
Root_Object |
getRoot_Object()
Returns the value of field 'root_Object'. |
java.lang.String[] |
getSchema()
Method getSchema.Returns the contents of the collection in an Array. |
java.lang.String |
getSchema(int index)
Method getSchema. |
int |
getSchemaCount()
Method getSchemaCount. |
UnitTestCase[] |
getUnitTestCase()
Method getUnitTestCase.Returns the contents of the collection in an Array. |
UnitTestCase |
getUnitTestCase(int index)
Method getUnitTestCase. |
int |
getUnitTestCaseCount()
Method getUnitTestCaseCount. |
boolean |
isValid()
Method isValid. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllSchema()
|
void |
removeAllUnitTestCase()
|
boolean |
removeSchema(java.lang.String vSchema)
Method removeSchema. |
java.lang.String |
removeSchemaAt(int index)
Method removeSchemaAt. |
boolean |
removeUnitTestCase(UnitTestCase vUnitTestCase)
Method removeUnitTestCase. |
UnitTestCase |
removeUnitTestCaseAt(int index)
Method removeUnitTestCaseAt. |
void |
setBindingFile(java.lang.String bindingFile)
Sets the value of field 'bindingFile'. |
void |
setCollection(CollectionType collection)
Sets the value of field 'collection'. |
void |
setExpectedSources(ExpectedSources expectedSources)
Sets the value of field 'expectedSources'. |
void |
setPackage(java.lang.String _package)
Sets the value of field 'package'. |
void |
setProperty_File(java.lang.String property_File)
Sets the value of field 'property_File'. |
void |
setRoot_Object(Root_Object root_Object)
Sets the value of field 'root_Object'. |
void |
setSchema(int index,
java.lang.String vSchema)
|
void |
setSchema(java.lang.String[] vSchemaArray)
|
void |
setUnitTestCase(int index,
UnitTestCase vUnitTestCase)
|
void |
setUnitTestCase(UnitTestCase[] vUnitTestCaseArray)
|
static SourceGeneratorTest |
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 SourceGeneratorTest()
Method Detail |
---|
public void addSchema(java.lang.String vSchema) throws java.lang.IndexOutOfBoundsException
vSchema
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSchema(int index, java.lang.String vSchema) throws java.lang.IndexOutOfBoundsException
index
- vSchema
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addUnitTestCase(UnitTestCase vUnitTestCase) throws java.lang.IndexOutOfBoundsException
vUnitTestCase
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addUnitTestCase(int index, UnitTestCase vUnitTestCase) throws java.lang.IndexOutOfBoundsException
index
- vUnitTestCase
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration enumerateSchema()
public java.util.Enumeration enumerateUnitTestCase()
public java.lang.String getBindingFile()
public CollectionType getCollection()
public ExpectedSources getExpectedSources()
public java.lang.String getPackage()
public java.lang.String getProperty_File()
public Root_Object getRoot_Object()
public java.lang.String getSchema(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.lang.String[] getSchema()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getSchemaCount()
public UnitTestCase getUnitTestCase(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic UnitTestCase[] getUnitTestCase()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getUnitTestCaseCount()
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 removeAllSchema()
public void removeAllUnitTestCase()
public boolean removeSchema(java.lang.String vSchema)
vSchema
-
public java.lang.String removeSchemaAt(int index)
index
-
public boolean removeUnitTestCase(UnitTestCase vUnitTestCase)
vUnitTestCase
-
public UnitTestCase removeUnitTestCaseAt(int index)
index
-
public void setBindingFile(java.lang.String bindingFile)
bindingFile
- the value of field 'bindingFile'.public void setCollection(CollectionType collection)
collection
- the value of field 'collection'.public void setExpectedSources(ExpectedSources expectedSources)
expectedSources
- the value of field 'expectedSources'.public void setPackage(java.lang.String _package)
_package
- package
- the value of field 'package'.public void setProperty_File(java.lang.String property_File)
property_File
- the value of field 'property_File'.public void setRoot_Object(Root_Object root_Object)
root_Object
- the value of field 'root_Object'.public void setSchema(int index, java.lang.String vSchema) throws java.lang.IndexOutOfBoundsException
index
- vSchema
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSchema(java.lang.String[] vSchemaArray)
vSchemaArray
- public void setUnitTestCase(int index, UnitTestCase vUnitTestCase) throws java.lang.IndexOutOfBoundsException
index
- vUnitTestCase
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setUnitTestCase(UnitTestCase[] vUnitTestCaseArray)
vUnitTestCaseArray
- public static SourceGeneratorTest 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 |