uk.ac.cam.ch.wwmm.opsin
Class ParseRulesResults

java.lang.Object
  extended by uk.ac.cam.ch.wwmm.opsin.ParseRulesResults

public class ParseRulesResults
extends java.lang.Object

A wrapper for the results from parsing a chemical name or part of a chemical name through ParseRules


Constructor Summary
ParseRulesResults(java.util.List<ParseTokens> parseTokensList, java.lang.String uninterpretableName, java.lang.String unparseableName)
           
 
Method Summary
 java.util.List<ParseTokens> getParseTokensList()
          One ParseTokens object is returned for each possible interpretation of a chemical name If none of the name can be interpreted this list will be empty
 java.lang.String getUninterpretableName()
          The substring of the name that could not be classified into a substituent/full/functionalTerm e.g.
 java.lang.String getUnparseableName()
          The substring of the name that could not be tokenised at all.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseRulesResults

public ParseRulesResults(java.util.List<ParseTokens> parseTokensList,
                         java.lang.String uninterpretableName,
                         java.lang.String unparseableName)
Method Detail

getParseTokensList

public java.util.List<ParseTokens> getParseTokensList()
One ParseTokens object is returned for each possible interpretation of a chemical name If none of the name can be interpreted this list will be empty

Returns:

getUninterpretableName

public java.lang.String getUninterpretableName()
The substring of the name that could not be classified into a substituent/full/functionalTerm e.g. in ethyl-2H-fooarene "2H-fooarene" will be returned

Returns:

getUnparseableName

public java.lang.String getUnparseableName()
The substring of the name that could not be tokenised at all. This will always be the same or shorter than the uninterpetable substring of name e.g. in ethyl-2H-fooarene "fooarene" will be returned

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object