/** * {@inheritDoc} */ @Override public void removeProperty(Object description) { chemobj.removeProperty(description); }
/** * {@inheritDoc} */ @Override public void removeProperty(Object description) { chemobj.removeProperty(description); }
public static void unmarkWithWarning(IChemObject object) { object.removeProperty(WARNING_MARKER); }
public static void unmarkWithError(IChemObject object) { object.removeProperty(ERROR_MARKER); }
obj.removeProperty(StandardGenerator.HIGHLIGHT_COLOR); this.highlight.clear();
obj.removeProperty(StandardGenerator.HIGHLIGHT_COLOR); this.highlight.clear();
aaMapping.getChemObject(0).removeProperty(ATOM_ATOM_MAPPING); aaMapping.getChemObject(1).removeProperty(ATOM_ATOM_MAPPING); mappingMap.put((IAtom) aaMapping.getChemObject(0), (IAtom) aaMapping.getChemObject(1));
@Test public void testRemoveProperty_Object() { IChemObject chemObject = newChemObject(); String cDescription = new String("description"); String cProperty = new String("property"); chemObject.setProperty(cDescription, cProperty); Assert.assertNotNull(chemObject.getProperty(cDescription)); chemObject.removeProperty(cDescription); Assert.assertNull(chemObject.getProperty(cDescription)); }
public static void testNotifyChanged_RemoveProperty(IChemObject chemObject) { chemObject.setProperty("Changed", "Yes"); ChemObjectListener listener = new ChemObjectListener(); chemObject.addListener(listener); chemObject.removeProperty("Changed"); Assert.assertFalse(listener.getChanged()); }
@Test public void testNotifyChanged_RemoveNonExistentProperty() { IChemObject chemObject = newChemObject(); ChemObjectListenerImpl listener = new ChemObjectListenerImpl(); chemObject.addListener(listener); chemObject.removeProperty("Changed"); Assert.assertNull(listener.event); }
obj.removeProperty(StandardGenerator.HIGHLIGHT_COLOR);
@Test public void testNotifyChanged_RemoveProperty() { IChemObject chemObject = newChemObject(); chemObject.setProperty("Changed", "Yes"); ChemObjectListenerImpl listener = new ChemObjectListenerImpl(); chemObject.addListener(listener); chemObject.removeProperty("Changed"); Assert.assertNotNull(listener.event); }
obj.removeProperty(StandardGenerator.HIGHLIGHT_COLOR);