error(thing, "complex.incomplete", false, "no components"); } else if(components.size()==1) { String msg = "has one component"; if(stoi.isEmpty()) { error(thing, "complex.incomplete", false, msg + ", but no stoichiometry defined."); } else { if(stoi.size() > 1) error(thing, "complex.stoichiometry.notcomponent", false, s, s.getPhysicalEntity(), pe); error(thing, "complex.incomplete", false, msg + "; which stoichiometry < 2.");
error(validation, thing, "complex.incomplete", false, "no components"); } else if(components.size()==1) { String msg = "has one component"; if(stoi.isEmpty()) { error(validation, thing, "complex.incomplete", false, msg + ", but no stoichiometry defined."); } else { if(stoi.size() > 1) error(validation, thing, "complex.stoichiometry.notcomponent", false, s, s.getPhysicalEntity(), pe); error(validation, thing, "complex.incomplete", false, msg + "; which stoichiometry < 2.");