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

java.lang.Object
  extended by org.exolab.castor.tests.framework.testDescriptor.SourcesNotExpected
All Implemented Interfaces:
java.io.Serializable

public class SourcesNotExpected
extends java.lang.Object
implements java.io.Serializable

Class SourcesNotExpected.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
SourcesNotExpected()
           
 
Method Summary
 void addSourceNotExpected(int index, java.lang.String vSourceNotExpected)
           
 void addSourceNotExpected(java.lang.String vSourceNotExpected)
           
 java.util.Enumeration enumerateSourceNotExpected()
          Method enumerateSourceNotExpected.
 java.lang.String[] getSourceNotExpected()
          Method getSourceNotExpected.Returns the contents of the collection in an Array.
 java.lang.String getSourceNotExpected(int index)
          Method getSourceNotExpected.
 int getSourceNotExpectedCount()
          Method getSourceNotExpectedCount.
 boolean isValid()
          Method isValid.
 java.util.Iterator iterateSourceNotExpected()
          Method iterateSourceNotExpected.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllSourceNotExpected()
           
 boolean removeSourceNotExpected(java.lang.String vSourceNotExpected)
          Method removeSourceNotExpected.
 java.lang.String removeSourceNotExpectedAt(int index)
          Method removeSourceNotExpectedAt.
 void setSourceNotExpected(int index, java.lang.String vSourceNotExpected)
           
 void setSourceNotExpected(java.lang.String[] vSourceNotExpectedArray)
           
static SourcesNotExpected 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

SourcesNotExpected

public SourcesNotExpected()
Method Detail

addSourceNotExpected

public void addSourceNotExpected(java.lang.String vSourceNotExpected)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
vSourceNotExpected -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addSourceNotExpected

public void addSourceNotExpected(int index,
                                 java.lang.String vSourceNotExpected)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vSourceNotExpected -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateSourceNotExpected

public java.util.Enumeration enumerateSourceNotExpected()
Method enumerateSourceNotExpected.

Returns:
an Enumeration over all possible elements of this collection

getSourceNotExpected

public java.lang.String getSourceNotExpected(int index)
                                      throws java.lang.IndexOutOfBoundsException
Method getSourceNotExpected.

Parameters:
index -
Returns:
the value of the java.lang.String at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getSourceNotExpected

public java.lang.String[] getSourceNotExpected()
Method getSourceNotExpected.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getSourceNotExpectedCount

public int getSourceNotExpectedCount()
Method getSourceNotExpectedCount.

Returns:
the size of this collection

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

iterateSourceNotExpected

public java.util.Iterator iterateSourceNotExpected()
Method iterateSourceNotExpected.

Returns:
an Iterator over all possible elements in this collection

marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
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
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

removeAllSourceNotExpected

public void removeAllSourceNotExpected()

removeSourceNotExpected

public boolean removeSourceNotExpected(java.lang.String vSourceNotExpected)
Method removeSourceNotExpected.

Parameters:
vSourceNotExpected -
Returns:
true if the object was removed from the collection.

removeSourceNotExpectedAt

public java.lang.String removeSourceNotExpectedAt(int index)
Method removeSourceNotExpectedAt.

Parameters:
index -
Returns:
the element removed from the collection

setSourceNotExpected

public void setSourceNotExpected(int index,
                                 java.lang.String vSourceNotExpected)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vSourceNotExpected -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setSourceNotExpected

public void setSourceNotExpected(java.lang.String[] vSourceNotExpectedArray)
Parameters:
vSourceNotExpectedArray -

unmarshal

public static SourcesNotExpected unmarshal(java.io.Reader reader)
                                    throws MarshalException,
                                           ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.exolab.castor.tests.framework.testDescriptor.SourcesNotExpected
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
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