org.exolab.castor.tests.framework.testDescriptor

Class BugFix

Implemented Interfaces:
java.io.Serializable

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

Encapsulates information about a bug fix, including the reporter's name (or Email address), the date of the report and of the fix, and one or more comments about the bug.
Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary

BugFix()

Method Summary

void
addComment(int index, java.lang.String vComment)
void
addComment(java.lang.String vComment)
java.util.Enumeration
enumerateComment()
Method enumerateComment.
java.lang.String[]
getComment()
Method getComment.Returns the contents of the collection in an Array.
java.lang.String
getComment(int index)
Method getComment.
int
getCommentCount()
Method getCommentCount.
Date
getDate_Fix()
Returns the value of field 'date_Fix'.
Date
getDate_Report()
Returns the value of field 'date_Report'.
java.lang.String
getIssue()
Returns the value of field 'issue'.
java.lang.String
getReporter()
Returns the value of field 'reporter'.
boolean
isValid()
Method isValid.
void
marshal(java.io.Writer out)
void
marshal(org.xml.sax.ContentHandler handler)
void
removeAllComment()
boolean
removeComment(java.lang.String vComment)
Method removeComment.
java.lang.String
removeCommentAt(int index)
Method removeCommentAt.
void
setComment(int index, java.lang.String vComment)
void
setComment(java.lang.String[] vCommentArray)
void
setDate_Fix(Date date_Fix)
Sets the value of field 'date_Fix'.
void
setDate_Report(Date date_Report)
Sets the value of field 'date_Report'.
void
setIssue(java.lang.String issue)
Sets the value of field 'issue'.
void
setReporter(java.lang.String reporter)
Sets the value of field 'reporter'.
static BugFix
unmarshal(java.io.Reader reader)
Method unmarshal.
void
validate()

Constructor Details

BugFix

public BugFix()

Method Details

addComment

public void addComment(int index,
                       java.lang.String vComment)
            throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vComment -

addComment

public void addComment(java.lang.String vComment)
            throws java.lang.IndexOutOfBoundsException
Parameters:
vComment -

enumerateComment

public java.util.Enumeration enumerateComment()
Method enumerateComment.
Returns:
an Enumeration over all java.lang.String elements

getComment

public java.lang.String[] getComment()
Method getComment.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

getComment

public java.lang.String getComment(int index)
            throws java.lang.IndexOutOfBoundsException
Method getComment.
Parameters:
index -
Returns:
the value of the java.lang.String at the given index

getCommentCount

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

getDate_Fix

public Date getDate_Fix()
Returns the value of field 'date_Fix'.
Returns:
the value of field 'Date_Fix'.

getDate_Report

public Date getDate_Report()
Returns the value of field 'date_Report'.
Returns:
the value of field 'Date_Report'.

getIssue

public java.lang.String getIssue()
Returns the value of field 'issue'.
Returns:
the value of field 'Issue'.

getReporter

public java.lang.String getReporter()
Returns the value of field 'reporter'.
Returns:
the value of field 'Reporter'.

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

removeAllComment

public void removeAllComment()

removeComment

public boolean removeComment(java.lang.String vComment)
Method removeComment.
Parameters:
vComment -
Returns:
true if the object was removed from the collection.

removeCommentAt

public java.lang.String removeCommentAt(int index)
Method removeCommentAt.
Parameters:
index -
Returns:
the element removed from the collection

setComment

public void setComment(int index,
                       java.lang.String vComment)
            throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vComment -

setComment

public void setComment(java.lang.String[] vCommentArray)
Parameters:
vCommentArray -

setDate_Fix

public void setDate_Fix(Date date_Fix)
Sets the value of field 'date_Fix'.
Parameters:
date_Fix - the value of field 'date_Fix'.

setDate_Report

public void setDate_Report(Date date_Report)
Sets the value of field 'date_Report'.
Parameters:
date_Report - the value of field 'date_Report'.

setIssue

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

setReporter

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

unmarshal

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