/**
 *                    BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 *
 * Created on Feb 5, 2013
 * Created by Andreas Prlic
 *
 * @since 3.0.2
 */
package org.biojava.bio.structure.io.mmcif.model;


/*
 * _chem_comp_bond.comp_id
_chem_comp_bond.atom_id_1
_chem_comp_bond.atom_id_2
_chem_comp_bond.value_order
_chem_comp_bond.pdbx_aromatic_flag
_chem_comp_bond.pdbx_stereo_config
_chem_comp_bond.pdbx_ordinal
 */
public class ChemCompBond {
	String comp_id;
	String atom_id_1;
	String atom_id_2;
	String value_order;
	String pdbx_aromatic_flag;
	String pdbx_stereo_config;
	String pdbx_ordinal;
	public String getComp_id() {
		return comp_id;
	}
	public void setComp_id(String comp_id) {
		this.comp_id = comp_id;
	}
	public String getAtom_id_1() {
		return atom_id_1;
	}
	public void setAtom_id_1(String atom_id_1) {
		this.atom_id_1 = atom_id_1;
	}
	public String getAtom_id_2() {
		return atom_id_2;
	}
	public void setAtom_id_2(String atom_id_2) {
		this.atom_id_2 = atom_id_2;
	}
	public String getValue_order() {
		return value_order;
	}
	public void setValue_order(String value_order) {
		this.value_order = value_order;
	}
	public String getPdbx_aromatic_flag() {
		return pdbx_aromatic_flag;
	}
	public void setPdbx_aromatic_flag(String pdbx_aromatic_flag) {
		this.pdbx_aromatic_flag = pdbx_aromatic_flag;
	}
	public String getPdbx_stereo_config() {
		return pdbx_stereo_config;
	}
	public void setPdbx_stereo_config(String pdbx_stereo_config) {
		this.pdbx_stereo_config = pdbx_stereo_config;
	}
	public String getPdbx_ordinal() {
		return pdbx_ordinal;
	}
	public void setPdbx_ordinal(String pdbx_ordinal) {
		this.pdbx_ordinal = pdbx_ordinal;
	}
	
	
}

@@ -2181,10 +2181,866 @@
 %0A%09%7D%0A
-%09
 %0A%09
+/**%0A%09 * Converts this ChemCompBond's value_order attribute into an int using the%0A%09 * conversion:%0A%09 * %0A%09 * %3Cpre%3E%0A%09 * %09SING -%3E 1%0A%09 * %09DOUB -%3E 2%0A%09 * %09TRIP -%3E 3%0A%09 * %09QUAD -%3E 4%0A%09 * %3C/pre%3E%0A%09 * %0A%09 * Any other values will return -1.%0A%09 * %3Cp%3E%0A%09 * (Source:%0A%09 * http://mmcif.rcsb.org/dictionaries/mmcif_mdb.dic/Items/_chem_comp_bond.%0A%09 * value_order.html)%0A%09 * %0A%09 * @return the numerical value of this ChemCompBond's bond order, or -1 if%0A%09 *         the value is non-numeric or unknown.%0A%09 */%0A%09public int getNumericalBondOrder() %7B%0A%09%09if (value_order.equals(%22SING%22)) %7B%0A%09%09%09return 1;%0A%09%09%7D else if (value_order.equals(%22DOUB%22)) %7B%0A%09%09%09return 2;%0A%09%09%7D else if (value_order.equals(%22TRIP%22)) %7B%0A%09%09%09return 3;%0A%09%09%7D else if (value_order.equals(%22QUAD%22)) %7B%0A%09%09%09return 4;%0A%09%09%7D else %7B%0A%09%09%09System.err.println(%22Unknown or non-numeric value for value_order: %22%0A%09%09%09%09%09+ value_order);%0A%09%09%09return -1;%0A%09%09%7D%0A%09%7D
 %0A%7D%0A

Add a utility method to convert a ChemCompBond's order into an int