src/main/java/org/helm/notation2/parser/connectionsection/ConnectionsReadSecondIDParser.java
@Override
  public void doAction(char cha) throws ExceptionState {

    /*
     * third part of the connection is starting. It contains information about
     * the connection in detail
     */
    if (cha == ',') {
      if (_parser.checkPolymeridConnection(targetpolymerid)) {
        LOG.info("Target polmyer ID is read:");
        ConnectionNotation current = _parser.notationContainer.getCurrentConnection();
        _parser.notationContainer.changeConnectionNotation(new ConnectionNotation(current.getSourceId(),
            targetpolymerid));
        _parser.setState(new ConnectionsDetailsParser(_parser));
      } else {
        LOG.error("Target polymer ID is not correct in the connection section: " + targetpolymerid);
        throw new ConnectionSectionException("Target polymer ID is not correct in the connection section: "
            + targetpolymerid);
      }
    } /* Read the id of the target polymer id */ else {
      targetpolymerid += cha;
    }
  }
@Override
  public void doAction(char cha) throws ExceptionState {

    /*
     * third part of the connection is starting. It contains information about
     * the connection in detail
     */
    if (cha == ',') {
      if (_parser.checkPolymeridConnection(targetpolymerid)) {
        LOG.info("Target polmyer ID is read:");
        ConnectionNotation current = _parser.notationContainer.getCurrentConnection();
        _parser.notationContainer.changeConnectionNotation(new ConnectionNotation(current.getSourceId(),
            targetpolymerid));
        _parser.setState(new ConnectionsDetailsParser(_parser));
      } else {
        LOG.error("Target polymer ID is not correct in the connection section: " + targetpolymerid);
        throw new ConnectionSectionException("Target polymer ID is not correct in the connection section: "
            + targetpolymerid);
      }
    } /* Read the id of the target polymer id */ else {
      targetpolymerid += cha;
    }
  }
@ Override public void doAction ( char cha ) throws ExceptionState { /*
     * third part of the connection is starting. It contains information about
     * the connection in detail
     */ if ( cha == ' ' ) { if ( _parser . checkPolymeridConnection ( targetpolymerid ) ) { LOG . info ( "Target polmyer ID is read:" ) ; ConnectionNotation current = _parser . notationContainer . getCurrentConnection ( ) ; _parser . notationContainer . changeConnectionNotation ( new ConnectionNotation ( current . getSourceId ( ) , targetpolymerid ) ) ; _parser . setState ( new ConnectionsDetailsParser ( _parser ) ) ; } else { LOG . error ( "Target polymer ID is not correct in the connection section: " + targetpolymerid ) ; throw new ConnectionSectionException ( "Target polymer ID is not correct in the connection section: " + targetpolymerid ) ; } } /* Read the id of the target polymer id */ else { targetpolymerid += cha ; } }
{@inheritDoc}
{