/* Copyright Ideaconsult Ltd.(C) 2006 Contact: nina@acad.bg This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ package sicret.rules; import toxTree.tree.rules.RuleAllAllowedElements; import toxTree.tree.rules.RuleElements; /** * Contains only these elements C,O,N. * @author Nina Jeliazkova nina@acad.bg * @author Martin Martinov * Modified Dec 17, 2006 */ public class RuleHasOnlyC_H_O_N extends RuleAllAllowedElements { private static final long serialVersionUID = 0; public RuleHasOnlyC_H_O_N () { super(); addElement("C"); addElement("O"); addElement("N"); setComparisonMode(RuleElements.modeAllSpecifiedElements); title = "Group CN (C,H,O,N)"; explanation = new StringBuffer(); explanation.append("Does the structure contain elements other than C,O,N?"); id = "9"; examples[0] = "O=C=O"; examples[1] = "O=CN"; editable = false; } }