public class ParseHandler
extends java.lang.Object
ParseHandler class.
Modifier and Type | Method and Description |
---|---|
static eu.etaxonomy.cdm.model.name.TaxonName |
createEmptyName()
Creates an empty
TaxonNameBase instance with the nomenclatural code
currently set in preferences. |
static ParseHandler |
NewInstance(eu.etaxonomy.cdm.model.name.TaxonName name)
Factory method to create a new instance of the this class
|
eu.etaxonomy.cdm.model.name.INonViralName |
parse(java.lang.String unparsedNameString)
Parses the string that was entered into the text widget and returns a
NonViralName object that resulted from the parsing process.
|
eu.etaxonomy.cdm.model.name.INonViralName |
parseAndResolveDuplicates(java.lang.String unparsedNameString)
Parses the string that was entered into the text widget and returns a
NonViralName object that resulted from the parsing process.
|
static eu.etaxonomy.cdm.model.name.TaxonName |
parseName(java.lang.String unparsedNameString,
eu.etaxonomy.cdm.model.name.Rank rank) |
static eu.etaxonomy.cdm.model.name.INonViralName |
parseReferencedName(java.lang.String unparsedNameString,
eu.etaxonomy.cdm.model.name.Rank rank)
Parses a given string and returns a
TaxonNameBase instance with the
results of the parsing. |
public static ParseHandler NewInstance(eu.etaxonomy.cdm.model.name.TaxonName name)
textWidget
- The text widget where the NonViralName may be entered intoname
- An initial NonViralName or null when creating a new namepublic static eu.etaxonomy.cdm.model.name.INonViralName parseReferencedName(java.lang.String unparsedNameString, eu.etaxonomy.cdm.model.name.Rank rank)
TaxonNameBase
instance with the
results 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
of ParseHandler
should be attached to the text widget.unparsedNameString
- a String
object.TaxonNameBase
object.public static eu.etaxonomy.cdm.model.name.TaxonName parseName(java.lang.String unparsedNameString, eu.etaxonomy.cdm.model.name.Rank rank)
public static eu.etaxonomy.cdm.model.name.TaxonName createEmptyName()
TaxonNameBase
instance with the nomenclatural code
currently set in preferences.TaxonNameBase
object.public eu.etaxonomy.cdm.model.name.INonViralName parse(java.lang.String unparsedNameString)
public eu.etaxonomy.cdm.model.name.INonViralName parseAndResolveDuplicates(java.lang.String unparsedNameString)
Copyright © 2007-2018. All Rights Reserved.