import eu.etaxonomy.taxeditor.store.StoreUtil;
/**
- * @author n.hoffmann
+ * <p>ParseHandler class.</p>
*
+ * @author n.hoffmann
+ * @version $Id: $
*/
public class ParseHandler{
/**
* Factory method to create a new instance of the this class
- *
+ *
* @param textWidget The text widget where the NonViralName may be entered into
- * @param name An initial NonViralName or null when creating a new name
- * @return An instance of this class
+ * @param name An initial NonViralName or null when creating a new name
+ * @return An instance of this class
*/
public static ParseHandler NewInstance(Control textWidget, TaxonNameBase name){
return new ParseHandler(textWidget, name);
}
/**
- * Parses a given string and returns a <code>TaxonNameBase</code> instance with the
+ * Parses a given string and returns a <code>TaxonNameBase</code> instance with the
* reuslts of the parsing.
- *
+ *
* This method should be used to quickly create a new name from a string.
- * Wherever the string will be parsed again in subsequent editing, an instance
+ * Wherever the string will be parsed again in subsequent editing, an instance
* of <code>ParseHandler</code> should be attached to the text widget.
- *
- * @param unparsedNameString
- * @return
+ *
+ * @param unparsedNameString a {@link java.lang.String} object.
+ * @return a {@link eu.etaxonomy.cdm.model.name.TaxonNameBase} object.
*/
public static TaxonNameBase quickParse(String unparsedNameString){
TaxonNameBase name = nonViralNameParser.parseReferencedName(unparsedNameString,
/**
* Creates an empty <code>TaxonNameBase</code> instance with the nomenclatural code
* currently set in preferences.
- *
- * @return
+ *
+ * @return a {@link eu.etaxonomy.cdm.model.name.TaxonNameBase} object.
*/
public static TaxonNameBase createEmptyName(){
return nonViralNameParser.getNonViralNameInstance("", PreferencesUtil.getPreferredNomenclaturalCode());
/**
* Parses the string that was entered into the text widget and returns a
- * NonViralName object that resulted from the parsing process.
- *
+ * NonViralName object that resulted from the parsing process.
+ *
* @return The parsed NonViralName object
*/
public NonViralName parse(){
/**
* Parses the string that was entered into the text widget and returns a
- * NonViralName object that resulted from the parsing process.
- *
+ * NonViralName object that resulted from the parsing process.
+ *
* The atomized fields (scientific name, author and reference) will be matched
- * against the database to find possible duplicates. If duplicates were found
+ * against the database to find possible duplicates. If duplicates were found
* the respective parts of the NonViralName will be replaced with the found
- * objects.
+ * objects.
*
* @return The parsed NonViralName object
*/
}
/**
+ * <p>Getter for the field <code>textWidget</code>.</p>
+ *
* @return The Control this ParseHandler is attached to.
*/
public Control getTextWidget() {
}
/**
+ * <p>Setter for the field <code>textWidget</code>.</p>
+ *
* @param textWidget The textWidget to set
*/
public void setTextWidget(Control textWidget) {