public final class Validation extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<Monomer> |
getAllMonomers(org.helm.notation2.parser.notation.polymer.MonomerNotation not,
int position)
method to get for one MonomerNotation all valid contained monomers
|
static List<Monomer> |
getAllMonomersOnlyBase(org.helm.notation2.parser.notation.polymer.MonomerNotation not)
method to get for one MonomerNotation all valid contained monomers.
|
static boolean |
validateConnections(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
method to valid all existent connections in the Notation objects
|
static boolean |
validateGrouping(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
method to validate every GroupNotation of the Notation objects
|
protected static boolean |
validateMonomers(List<org.helm.notation2.parser.notation.polymer.MonomerNotation> mon)
method to validate a list of MonomerNotation objects
|
static void |
validateNotationObjects(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
method to check if the generated notation objects by the parser are
correct the polymer ids have to be unique; all monomers have to be valid;
all used polymer ids in the grouping section have to be there; all
connections have to be valid
|
static boolean |
validateUniquePolymerIDs(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
method to check if all existent polymer ids are unique
|
public static void validateNotationObjects(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
throws PolymerIDsException,
MonomerException,
GroupingNotationException,
ConnectionNotationException,
NotationException,
ChemistryException,
MonomerLoadingException,
org.helm.notation2.parser.exceptionparser.NotationException
helm2notation - HELM2Notation objectPolymerIDsException - if the polymer section is not validMonomerException - if a monomer is not validGroupingNotationException - if the grouping section is not validConnectionNotationException - if the connection section is not validNotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedMonomerLoadingException - monomers can not be loadedorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validprotected static boolean validateMonomers(List<org.helm.notation2.parser.notation.polymer.MonomerNotation> mon) throws ChemistryException, MonomerLoadingException, org.helm.notation2.parser.exceptionparser.NotationException
mon - List of MonomerNotation objectsChemistryException - if the Chemistry Engine can not be initializedMonomerLoadingException - if monomer loading was not successfullorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validpublic static boolean validateConnections(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
throws NotationException,
ChemistryException
helm2notation - HELM2Notation objectNotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedpublic static boolean validateGrouping(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
helm2notation - HELM2Notation objectpublic static boolean validateUniquePolymerIDs(org.helm.notation2.parser.notation.HELM2Notation helm2notation)
helm2notation - HELM2Notation objectpublic static List<Monomer> getAllMonomers(org.helm.notation2.parser.notation.polymer.MonomerNotation not, int position) throws HELM2HandledException, MonomerException, NotationException, ChemistryException, org.helm.chemtoolkit.CTKException, MonomerLoadingException
not - MonomerNotationposition - position of monomer notationHELM2HandledException - if HELM2 features were thereMonomerException - if monomer is not validNotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitMonomerLoadingException - if monomer store can not be loadedpublic static List<Monomer> getAllMonomersOnlyBase(org.helm.notation2.parser.notation.polymer.MonomerNotation not) throws HELM2HandledException, MonomerException, NotationException, ChemistryException, org.helm.chemtoolkit.CTKException, MonomerLoadingException
not - MonomerNotationHELM2HandledException - if HELM2 features were thereMonomerException - if monomer is not validNotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitMonomerLoadingException - if monomers can not be loadedCopyright © 2017. All rights reserved.