src/main/java/org/helm/notation2/parser/simplepolymerssection/BetweenMonomerParser.java
@Override
  public void doAction(char cha) throws SimplePolymerSectionException {
    /* a new monomer section starts */
    if (cha == '.') {
      LOG.info("new monomer unit is starting:");
      _parser.setState(new SimplePolymersNotationParser(_parser));
    } /* polymer is finished */ else if (cha == '}') {
      LOG.info("simple polymer is read:");
      _parser.setState(new BetweenParser(_parser));
    } /* inline annotation */ else if (cha == '"') {
      LOG.info("annotation for simple polymer is starting:");
      _parser.setState(new InlineAnnotationsParser(_parser, 11));
    } else {
      LOG.error("Error in the simple polymers notation section:");
      throw new SimplePolymerSectionException("Error in the simple polymers notation section:");
    }
  }
@Override
  public void doAction(char cha) throws SimplePolymerSectionException {
    /* a new monomer section starts */
    if (cha == '.') {
      LOG.info("new monomer unit is starting:");
      _parser.setState(new SimplePolymersNotationParser(_parser));
    } /* polymer is finished */ else if (cha == '}') {
      LOG.info("simple polymer is read:");
      _parser.setState(new BetweenParser(_parser));
    } /* inline annotation */ else if (cha == '"') {
      LOG.info("annotation for simple polymer is starting:");
      _parser.setState(new InlineAnnotationsParser(_parser, 11));
    } else {
      LOG.error("Error in the simple polymers notation section:");
      throw new SimplePolymerSectionException("Error in the simple polymers notation section:");
    }
  }
@ Override public void doAction ( char cha ) throws SimplePolymerSectionException { /* a new monomer section starts */ if ( cha == ' ' ) { LOG . info ( "new monomer unit is starting:" ) ; _parser . setState ( new SimplePolymersNotationParser ( _parser ) ) ; } /* polymer is finished */ else if ( cha == ' ' ) { LOG . info ( "simple polymer is read:" ) ; _parser . setState ( new BetweenParser ( _parser ) ) ; } /* inline annotation */ else if ( cha == ' ' ) { LOG . info ( "annotation for simple polymer is starting:" ) ; _parser . setState ( new InlineAnnotationsParser ( _parser , 11 ) ) ; } else { LOG . error ( "Error in the simple polymers notation section:" ) ; throw new SimplePolymerSectionException ( "Error in the simple polymers notation section:" ) ; } }
{@inheritDoc}
{