|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.tests.framework.testDescriptor.BugFix
public class BugFix
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.
| Constructor Summary | |
|---|---|
BugFix()
|
|
| Method Summary | |
|---|---|
void |
addComment(int index,
String vComment)
|
void |
addComment(String vComment)
|
Enumeration |
enumerateComment()
Method enumerateComment. |
String[] |
getComment()
Method getComment.Returns the contents of the collection in an Array. |
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'. |
String |
getIssue()
Returns the value of field 'issue'. |
String |
getReporter()
Returns the value of field 'reporter'. |
boolean |
isValid()
Method isValid. |
Iterator |
iterateComment()
Method iterateComment. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllComment()
|
boolean |
removeComment(String vComment)
Method removeComment. |
String |
removeCommentAt(int index)
Method removeCommentAt. |
void |
setComment(int index,
String vComment)
|
void |
setComment(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(String issue)
Sets the value of field 'issue'. |
void |
setReporter(String reporter)
Sets the value of field 'reporter'. |
static BugFix |
unmarshal(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 BugFix()
| Method Detail |
|---|
public void addComment(String vComment)
throws IndexOutOfBoundsException
vComment -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addComment(int index,
String vComment)
throws IndexOutOfBoundsException
index - vComment -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration enumerateComment()
public String getComment(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getComment()
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 getCommentCount()
public Date getDate_Fix()
public Date getDate_Report()
public String getIssue()
public String getReporter()
public boolean isValid()
public Iterator iterateComment()
public void marshal(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 schema
public void marshal(ContentHandler handler)
throws IOException,
MarshalException,
ValidationException
handler -
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 removeAllComment()
public boolean removeComment(String vComment)
vComment -
public String removeCommentAt(int index)
index -
public void setComment(int index,
String vComment)
throws IndexOutOfBoundsException
index - vComment -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setComment(String[] vCommentArray)
vCommentArray - public void setDate_Fix(Date date_Fix)
date_Fix - the value of field 'date_Fix'.public void setDate_Report(Date date_Report)
date_Report - the value of field 'date_Report'.public void setIssue(String issue)
issue - the value of field 'issue'.public void setReporter(String reporter)
reporter - the value of field 'reporter'.
public static BugFix unmarshal(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 schema
public 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 | |||||||||