/** * Adds a new accept element. * * @param accept accept element */ public Collection addAccept(Accept accept) { super.addElement(Accept.KEY, accept); return this; }
/** * Adds a new app categories document. * * @param categories app categories document */ public Collection addCategories(Categories categories) { super.addElement(Categories.KEY, categories); return this; }
/** * Adds a new collection. * * @param collection collection */ public void addCollection(Collection collection) { super.addElement(Collection.KEY, collection); }
/** * Adds a new event reminder. * * @param reminder event reminder */ public When addReminder(Reminder reminder) { super.addElement(Reminder.KEY, reminder); return this; }
/** * Adds a new category. * * @param category category */ public Categories addCategory(Category category) { super.addElement(category); return this; }
/** * Adds a new event reminder. * * @param reminder event reminder */ public When addReminder(Reminder reminder) { super.addElement(Reminder.KEY, reminder); return this; }
/** * Adds a new accept element. * * @param accept accept element */ public Collection addAccept(Accept accept) { super.addElement(Accept.KEY, accept); return this; }
/** * Adds a new event reminder. * * @param reminder event reminder */ public When addReminder(Reminder reminder) { super.addElement(reminder); return this; }
/** * Adds a new workspace. * * @param workspace workspace */ public ServiceDocument addWorkspace(Workspace workspace) { super.addElement(workspace); return this; }
/** * Adds a new category. * * @param category category */ public Categories addCategory(Category category) { super.addElement(Category.KEY, category); return this; }
/** * Adds a new collection. * * @param collection collection */ public void addCollection(Collection collection) { super.addElement(Collection.KEY, collection); }
/** * Adds a new app categories document. * * @param categories app categories document */ public Collection addCategories(Categories categories) { super.addElement(Categories.KEY, categories); return this; }
/** * Adds a new collection. * * @param collection collection */ public void addCollection(Collection collection) { super.addElement(Collection.KEY, collection); }
/** * Adds a new accept string. * * @param accept accept string */ public Collection addAccept(String accept) { super.addElement(Accept.KEY, new Accept(accept)); return this; }
/** * Adds a new accept string. * * @param accept accept string */ public Collection addAccept(String accept) { super.addElement(Accept.KEY, new Accept(accept)); 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; }
/** * Adds a new accept string. * * @param accept accept string */ public Collection addAccept(String accept) { super.addElement(Accept.KEY, new Accept(accept)); 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; }
/** * Add a child element, using the key of the child element as the key into * this element's children. * * @param element child element * @return this element for chaining * @throws NullPointerException if element is null. */ public Element addElement(Element element) { Preconditions.checkNotNull(element); addElement(element.getElementKey(), element); return this; }
/** * Add a child element, using the key of the child element as the key into * this element's children. * * @param element child element * @return this element for chaining * @throws NullPointerException if element is null. */ public Element addElement(Element element) { Preconditions.checkNotNull(element); addElement(element.getElementKey(), element); return this; }