/** * Sets the value of the odf dom element representation * <code>MetaEditingDurationElement</code>. * * @param editingDuration the time need to set * @see org.odftoolkit.odfdom.dom.element.meta.MetaEditingDurationElement */ public void setEditingDuration(Duration editingDuration) { MetaEditingDurationElement editiingDurationEle = OdfElement.findFirstChildNode(MetaEditingDurationElement.class, mOfficeMetaElement); if (editiingDurationEle == null) { editiingDurationEle = mOfficeMetaElement.newMetaEditingDurationElement(); } editiingDurationEle.setTextContent(editingDuration.toString()); }
/** * Sets the value of the odf dom element representation * <code>MetaEditingDurationElement</code>. * * @param editingDuration the time need to set * @see org.odftoolkit.odfdom.dom.element.meta.MetaEditingDurationElement */ public void setEditingDuration(Duration editingDuration) { MetaEditingDurationElement editiingDurationEle = OdfElement.findFirstChildNode(MetaEditingDurationElement.class, mOfficeMetaElement); if (editiingDurationEle == null) { editiingDurationEle = mOfficeMetaElement.newMetaEditingDurationElement(); } editiingDurationEle.setTextContent(editingDuration.toString()); }
/** * Sets the value of the odf dom element representation * <code>MetaEditingDurationElement</code>. * * @param editingDuration the time need to set * @see org.odftoolkit.odfdom.dom.element.meta.MetaEditingDurationElement */ public void setEditingDuration(Duration editingDuration) { MetaEditingDurationElement editiingDurationEle = OdfElement.findFirstChildNode(MetaEditingDurationElement.class, mOfficeMetaElement); if (editiingDurationEle == null) { editiingDurationEle = mOfficeMetaElement.newMetaEditingDurationElement(); } editiingDurationEle.setTextContent(editingDuration.toString()); }
/** * Sets the value of the ODFDOM element representation * <code>MetaEditingDurationElement</code> , See {@odf.element * meta:editing-duration}. * * @param editingDuration the time need to set. NULL will remove the element from the meta.xml. */ public void setEditingDuration(Duration editingDuration) { MetaEditingDurationElement editingDurationEle = OdfElement.findFirstChildNode(MetaEditingDurationElement.class, mOfficeMetaElement); if (editingDuration == null) { if (editingDurationEle != null) { mOfficeMetaElement.removeChild(editingDurationEle); } } else { if (editingDurationEle == null) { editingDurationEle = mOfficeMetaElement.newMetaEditingDurationElement(); } editingDurationEle.setTextContent(editingDuration.toString()); } }
/** * Sets the value of the ODFDOM element representation * <code>MetaEditingDurationElement</code> , See {@odf.element * meta:editing-duration}. * * @param editingDuration the time need to set. NULL will remove the element from the meta.xml. */ public void setEditingDuration(Duration editingDuration) { MetaEditingDurationElement editingDurationEle = OdfElement.findFirstChildNode(MetaEditingDurationElement.class, mOfficeMetaElement); if (editingDuration == null) { if (editingDurationEle != null) { mOfficeMetaElement.removeChild(editingDurationEle); } } else { if (editingDurationEle == null) { editingDurationEle = mOfficeMetaElement.newMetaEditingDurationElement(); } editingDurationEle.setTextContent(editingDuration.toString()); } }
/** * Sets the value of the ODFDOM element representation * <code>MetaEditingDurationElement</code> , See {@odf.element * meta:editing-duration}. * * @param editingDuration the time need to set. NULL will remove the element from the meta.xml. */ public void setEditingDuration(Duration editingDuration) { MetaEditingDurationElement editingDurationEle = OdfElement.findFirstChildNode(MetaEditingDurationElement.class, mOfficeMetaElement); if (editingDuration == null) { if (editingDurationEle != null) { mOfficeMetaElement.removeChild(editingDurationEle); } } else { if (editingDurationEle == null) { editingDurationEle = mOfficeMetaElement.newMetaEditingDurationElement(); } editingDurationEle.setTextContent(editingDuration.toString()); } }