src/main/java/org/helm/notation2/parser/simplepolymerssection/BetweenParser.java
@Override
  public void doAction(char cha) throws SimplePolymerSectionException {

    /* an additional annotation is starting */
    if (cha == '\"') {
      LOG.info("Annotation for simple polymer is starting:");
      _parser.setState(new InlineAnnotationsParser(_parser, 1));
    } /* a new unit is starting */ else if (cha == '|') {
      LOG.info("One simple polymer is finished:");
      LOG.info("New simple polymer is starting:");
      _parser.setState(new SimplePolymersParser(_parser));
    } /* a new section is starting */ else if (cha == '$') {
      LOG.info("One simple polymer is finished:");
      LOG.info("Simple polymer section is finished:");
      LOG.info("Transition to connection section:");
      _parser.setState(new ConnectionsParser(_parser));
    } else {
      LOG.error("Invalid syntax in simple polymer section: " + cha);
      throw new SimplePolymerSectionException("Invalid syntax in simple polymer section: " + cha);
    }
  }
@Override
  public void doAction(char cha) throws SimplePolymerSectionException {

    /* an additional annotation is starting */
    if (cha == '\"') {
      LOG.info("Annotation for simple polymer is starting:");
      _parser.setState(new InlineAnnotationsParser(_parser, 1));
    } /* a new unit is starting */ else if (cha == '|') {
      LOG.info("One simple polymer is finished:");
      LOG.info("New simple polymer is starting:");
      _parser.setState(new SimplePolymersParser(_parser));
    } /* a new section is starting */ else if (cha == '$') {
      LOG.info("One simple polymer is finished:");
      LOG.info("Simple polymer section is finished:");
      LOG.info("Transition to connection section:");
      _parser.setState(new ConnectionsParser(_parser));
    } else {
      LOG.error("Invalid syntax in simple polymer section: " + cha);
      throw new SimplePolymerSectionException("Invalid syntax in simple polymer section: " + cha);
    }
  }
@ Override public void doAction ( char cha ) throws SimplePolymerSectionException { /* an additional annotation is starting */ if ( cha == ' ' ) { LOG . info ( "Annotation for simple polymer is starting:" ) ; _parser . setState ( new InlineAnnotationsParser ( _parser , 1 ) ) ; } /* a new unit is starting */ else if ( cha == ' ' ) { LOG . info ( "One simple polymer is finished:" ) ; LOG . info ( "New simple polymer is starting:" ) ; _parser . setState ( new SimplePolymersParser ( _parser ) ) ; } /* a new section is starting */ else if ( cha == ' ' ) { LOG . info ( "One simple polymer is finished:" ) ; LOG . info ( "Simple polymer section is finished:" ) ; LOG . info ( "Transition to connection section:" ) ; _parser . setState ( new ConnectionsParser ( _parser ) ) ; } else { LOG . error ( "Invalid syntax in simple polymer section: " + cha ) ; throw new SimplePolymerSectionException ( "Invalid syntax in simple polymer section: " + cha ) ; } }
{@inheritDoc}
{