/** * Removes all existing workspace instances. */ public void clearWorkspaces() { super.removeElement(Workspace.KEY); }
/** * Removes an existing workspace. * * @param workspace workspace * @return true if the workspace was removed */ public boolean removeWorkspace(Workspace workspace) { return super.removeElement(workspace); }
/** * Removes all existing event reminder instances. */ public void clearReminder() { super.removeElement(Reminder.KEY); }
/** * Removes an existing workspace. * * @param workspace workspace * @return true if the workspace was removed */ public boolean removeWorkspace(Workspace workspace) { return super.removeElement(workspace); }
/** * Removes an existing category. * * @param category category * @return true if the category was removed */ public boolean removeCategory(Category category) { return super.removeElement(category); }
/** * Removes all existing category instances. */ public void clearCategories() { super.removeElement(Category.KEY); }
/** * Removes an existing event reminder. * * @param reminder event reminder * @return true if the reminder was removed */ public boolean removeReminder(Reminder reminder) { return super.removeElement(reminder); }
/** * Removes all existing category instances. */ public void clearCategories() { super.removeElement(Category.KEY); }
/** * Removes an existing collection. * * @param collection collection * @return true if the collection was removed */ public boolean removeCollection(Collection collection) { return super.removeElement(Collection.KEY, collection); }
/** * Removes an existing category. * * @param category category * @return true if the category was removed */ public boolean removeCategory(Category category) { return super.removeElement(category); }
/** * Removes an existing workspace. * * @param workspace workspace * @return true if the workspace was removed */ public boolean removeWorkspace(Workspace workspace) { return super.removeElement(workspace); }
/** * Removes all existing event reminder instances. */ public void clearReminder() { super.removeElement(Reminder.KEY); }
/** * Removes an existing event reminder. * * @param reminder event reminder * @return true if the reminder was removed */ public boolean removeReminder(Reminder reminder) { return super.removeElement(reminder); }
/** * Removes all existing category instances. */ public void clearCategories() { super.removeElement(Category.KEY); }
/** * Sets the value of the child element(s) with the given id. The given element * will replace all existing elements at the given id. If the given element * is {@code null}, this is equivalent to {@link #removeElement(QName)}. */ public Element setElement(QName id, Element element) { removeElement(id); if (element != null) { addElement(id, element); } return this; }
/** * Sets the value of the child element(s) with the given id. The given element * will replace all existing elements at the given id. If the given element * is {@code null}, this is equivalent to {@link #removeElement(QName)}. */ public Element setElement(QName id, Element element) { removeElement(id); if (element != null) { addElement(id, element); } return this; }
/** * Remove a single child element from this element. This method returns true * if the element was found and removed, or false if it was not. It uses * identity and not equality to find a match. * * @param element the child element to remove. * @return true if the child element was removed from this element. */ public boolean removeElement(Element element) { return removeElement(element.getElementKey(), element); }
/** * Remove a single child element from this element. This method returns true * if the element was found and removed, or false if it was not. It uses * identity and not equality to find a match. * * @param element the child element to remove. * @return true if the child element was removed from this element. */ public boolean removeElement(Element element) { return removeElement(element.getElementKey(), element); }
/** * Remove child element(s) of a given name. All elements with the same ID as * the given key will be removed. * * @param childKey key of the element(s) to remove. * @return this element for chaining. */ public Element removeElement(ElementKey<?, ?> childKey) { return removeElement(childKey.getId()); }
/** * Sets the value of the child element(s) with the given id. The given element * will replace all existing elements at the given id. If the given element * is {@code null}, this is equivalent to {@link #removeElement(QName)}. */ public Element setElement(QName id, Element element) { removeElement(id); if (element != null) { addElement(id, element); } return this; }