|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.tests.framework.testDescriptor.ExpectedSources
public class ExpectedSources
Class ExpectedSources.
Constructor Summary | |
---|---|
ExpectedSources()
|
Method Summary | |
---|---|
void |
addExpectedSource(int index,
java.lang.String vExpectedSource)
|
void |
addExpectedSource(java.lang.String vExpectedSource)
|
java.util.Enumeration |
enumerateExpectedSource()
Method enumerateExpectedSource. |
java.lang.String[] |
getExpectedSource()
Method getExpectedSource.Returns the contents of the collection in an Array. |
java.lang.String |
getExpectedSource(int index)
Method getExpectedSource. |
int |
getExpectedSourceCount()
Method getExpectedSourceCount. |
boolean |
isValid()
Method isValid. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllExpectedSource()
|
boolean |
removeExpectedSource(java.lang.String vExpectedSource)
Method removeExpectedSource. |
java.lang.String |
removeExpectedSourceAt(int index)
Method removeExpectedSourceAt. |
void |
setExpectedSource(int index,
java.lang.String vExpectedSource)
|
void |
setExpectedSource(java.lang.String[] vExpectedSourceArray)
|
static ExpectedSources |
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 ExpectedSources()
Method Detail |
---|
public void addExpectedSource(java.lang.String vExpectedSource) throws java.lang.IndexOutOfBoundsException
vExpectedSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addExpectedSource(int index, java.lang.String vExpectedSource) throws java.lang.IndexOutOfBoundsException
index
- vExpectedSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration enumerateExpectedSource()
public java.lang.String getExpectedSource(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.lang.String[] getExpectedSource()
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 getExpectedSourceCount()
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 removeAllExpectedSource()
public boolean removeExpectedSource(java.lang.String vExpectedSource)
vExpectedSource
-
public java.lang.String removeExpectedSourceAt(int index)
index
-
public void setExpectedSource(int index, java.lang.String vExpectedSource) throws java.lang.IndexOutOfBoundsException
index
- vExpectedSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setExpectedSource(java.lang.String[] vExpectedSourceArray)
vExpectedSourceArray
- public static ExpectedSources 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 |