org.exolab.castor.tests.framework.testDescriptor

Class CallMethod

Implemented Interfaces:
java.io.Serializable

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

A single method to call
Version:
$Revision: 6767 $ $Date$
See Also:
Serialized Form

Constructor Summary

CallMethod()

Method Summary

void
addValue(int index, Value vValue)
void
addValue(Value vValue)
java.util.Enumeration
enumerateValue()
Method enumerateValue.
java.lang.String
getName()
Returns the value of field 'name'.
Value[]
getValue()
Method getValue.Returns the contents of the collection in an Array.
Value
getValue(int index)
Method getValue.
int
getValueCount()
Method getValueCount.
boolean
isValid()
Method isValid.
void
marshal(java.io.Writer out)
void
marshal(org.xml.sax.ContentHandler handler)
void
removeAllValue()
boolean
removeValue(Value vValue)
Method removeValue.
Value
removeValueAt(int index)
Method removeValueAt.
void
setName(java.lang.String name)
Sets the value of field 'name'.
void
setValue(int index, Value vValue)
void
setValue(Value[] vValueArray)
static CallMethod
unmarshal(java.io.Reader reader)
Method unmarshal.
void
validate()

Constructor Details

CallMethod

public CallMethod()

Method Details

addValue

public void addValue(int index,
                     Value vValue)
            throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vValue -

addValue

public void addValue(Value vValue)
            throws java.lang.IndexOutOfBoundsException
Parameters:
vValue -

enumerateValue

public java.util.Enumeration enumerateValue()
Method enumerateValue.
Returns:
an Enumeration over all org.exolab.castor.tests.framework.testDescriptor.Value elements

getName

public java.lang.String getName()
Returns the value of field 'name'.
Returns:
the value of field 'Name'.

getValue

public Value[] getValue()
Method getValue.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

getValue

public Value getValue(int index)
            throws java.lang.IndexOutOfBoundsException
Method getValue.
Parameters:
index -
Returns:
the value of the org.exolab.castor.tests.framework.testDescriptor.Value at the given index

getValueCount

public int getValueCount()
Method getValueCount.
Returns:
the size of this collection

isValid

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

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

removeAllValue

public void removeAllValue()

removeValue

public boolean removeValue(Value vValue)
Method removeValue.
Parameters:
vValue -
Returns:
true if the object was removed from the collection.

removeValueAt

public Value removeValueAt(int index)
Method removeValueAt.
Parameters:
index -
Returns:
the element removed from the collection

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.
Parameters:
name - the value of field 'name'.

setValue

public void setValue(int index,
                     Value vValue)
            throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vValue -

setValue

public void setValue(Value[] vValueArray)
Parameters:
vValueArray -

unmarshal

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