/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case QueryPackage.VALUE__VALUE: setValue((String) newValue); return; } super.eSet(featureID, newValue); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case QueryPackage.VALUE__VALUE: setValue(VALUE_EDEFAULT); return; } super.eUnset(featureID); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Owl2fsPackage.OBJECT_PROPERTY_ATOM__OBJECT_PROPERTY_EXPRESSION: setObjectPropertyExpression((ObjectPropertyExpression) null); return; case Owl2fsPackage.OBJECT_PROPERTY_ATOM__IARG1: setIArg1((IArg) null); return; case Owl2fsPackage.OBJECT_PROPERTY_ATOM__IARG2: setIArg2((IArg) null); return; } super.eUnset(featureID); }
private void addAtom(String line, Section actualSection) { if (actualSection != null) { List<String> split = reworkLine(line); List<Atom> atoms = actualSection.getAtoms(); AtomImpl a = new AtomImpl(); int length = split.size(); if (length >= 7) { a.setNr(Integer.parseInt(split.get(0))); a.setType(split.get(1)); a.setResNr(Integer.parseInt(split.get(2))); a.setResName(split.get(3)); a.setAtomName(split.get(4)); a.setChargeGroupNr(Integer.parseInt(split.get(5))); a.setC1(new BigDecimal(split.get(6))); } if (length >= 8) { a.setC2(new BigDecimal(split.get(7))); } if (length == 11) { a.setTypeB(split.get(8)); a.setC3(new BigDecimal(split.get(9))); a.setC4(new BigDecimal(split.get(10))); } if (length < 7 || length > 11) { ch.printErrorln(String.format("some ATOMS values are lost! --> %s", line)); } else { atoms.add(a); } } }