src/main/java/org/helm/notation2/parser/notation/polymer/MonomerNotationGroupOr.java
@Override
  public String toHELM2() {
    StringBuilder notation = new StringBuilder();
    DecimalFormat d = new DecimalFormat("#.##");
    notation.append("(");
    for (int i = 0; i < elements.size(); i++) {
      String text = elements.get(i).getMonomerNotation().getUnit();
      if (!(elements.get(i).isDefaultValue())) {
        String value = d.format(elements.get(i).getValue().get(0)).replace(',', '.');
        if (elements.get(i).isInterval()) {
          value += "-" + d.format(elements.get(i).getValue().get(1)).replace(',', '.');
        }

        if (value.equals("-1")) {
          value = "?";
        }

        text += ":" + value;
      }
      notation.append(text + ",");
    }

    notation.setLength(notation.length() - 1);
    notation.append(")");

    if (!(isDefault)) {
      notation.append("'" + count + "'");
    }

    if (isAnnotationHere) {
      notation.append("\"" + annotation + "\"");
    }

    return notation.toString();

  }
@Override
  public String toHELM2() {
    StringBuilder notation = new StringBuilder();
    DecimalFormat d = new DecimalFormat("#.##");
    notation.append("(");
    for (int i = 0; i < elements.size(); i++) {
      String text = elements.get(i).getMonomerNotation().getUnit();
      if (!(elements.get(i).isDefaultValue())) {
        String value = d.format(elements.get(i).getValue().get(0)).replace(',', '.');
        if (elements.get(i).isInterval()) {
          value += "-" + d.format(elements.get(i).getValue().get(1)).replace(',', '.');
        }

        if (value.equals("-1")) {
          value = "?";
        }

        text += ":" + value;
      }
      notation.append(text + ",");
    }

    notation.setLength(notation.length() - 1);
    notation.append(")");

    if (!(isDefault)) {
      notation.append("'" + count + "'");
    }

    if (isAnnotationHere) {
      notation.append("\"" + annotation + "\"");
    }

    return notation.toString();

  }
@ Override public String toHELM2 ( ) { StringBuilder notation = new StringBuilder ( ) ; DecimalFormat d = new DecimalFormat ( "#.##" ) ; notation . append ( "(" ) ; for ( int i = 0 ; i < elements . size ( ) ; i ++ ) { String text = elements . get ( i ) . getMonomerNotation ( ) . getUnit ( ) ; if ( ! ( elements . get ( i ) . isDefaultValue ( ) ) ) { String value = d . format ( elements . get ( i ) . getValue ( ) . get ( 0 ) ) . replace ( ' ' , ' ' ) ; if ( elements . get ( i ) . isInterval ( ) ) { value += "-" + d . format ( elements . get ( i ) . getValue ( ) . get ( 1 ) ) . replace ( ' ' , ' ' ) ; } if ( value . equals ( "-1" ) ) { value = "?" ; } text += ":" + value ; } notation . append ( text + "," ) ; } notation . setLength ( notation . length ( ) - 1 ) ; notation . append ( ")" ) ; if ( ! ( isDefault ) ) { notation . append ( "'" + count + "'" ) ; } if ( isAnnotationHere ) { notation . append ( "\"" + annotation + "\"" ) ; } return notation . toString ( ) ; }
{@inheritDoc}
{