This class manages the validation and importing of issues.
This classes has a format dictated by the Betwixt
parser. As the parser extracts elements out of the XML file, it
looks for the public getters and setters in this class's signature
and thereby makes determinations on what JavaBean methods to call
in this class. Reading this source file in isolation: Doing so
would make it look like you could do things like remove the data
member 'issue' and its accessor methods because it looks as though
they are unused, whereas they are in fact signals to the Betwixt
parser: It reads them and interprets their presence and instruction
to create instances of issues from the XML being parsed.
Also, of note, the design of this class is that, it has two
modes based off the setting of the inValidationMode class. When
parsing w/ the
ScarabIssues.inValidationMode flag set, the db is not
touched. The code just validates the XML's data content checking
the users exist in the db, that the attributes and modules
referenced already exit. A parse with the
ScarabIssues.inValidationMode set to false will do actual insert of the XML
issues.
author: Jon S. Stevens author: Daniel Rall version: $Id: ScarabIssues.java 10162 2006-06-11 11:20:24Z hair $ |