incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian C <...@amham.net>
Subject Re: [jira] [Created] (ODFTOOLKIT-373) metadata.setEditingDuration
Date Tue, 27 Aug 2013 09:56:10 GMT
Hi,

check out the Javadoc for the Simple API and the use of the Meta class.

It has functions to set and get the EditingDuration.


On Tue, Aug 27, 2013 at 1:55 AM, Guzman Rejon (JIRA) <jira@apache.org>wrote:

> Guzman Rejon created ODFTOOLKIT-373:
> ---------------------------------------
>
>              Summary: metadata.setEditingDuration
>                  Key: ODFTOOLKIT-373
>                  URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-373
>              Project: ODF Toolkit
>           Issue Type: Bug
>           Components: odfdom
>     Affects Versions: 0.5-incubating
>          Environment: Windows 7
>             Reporter: Guzman Rejon
>
>
> I want to change the time duration with the instructions:
>
> DatatypeFactory aFactory = DatatypeFactory.newInstance();
> metadata.setEditingDuration(new Duration(aFactory.newDurationDayTime(true,
> 1, 1, 1, 1)));
>
> and when I want to retrieve the values get:
>
> metadata.getEditingDuration().getValue().toString() return "PT0.020S"
>
> thanks in advance.
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA
> administrators
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>



-- 
Cheers,

Ian C

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message