[ 
https://issues.apache.org/jira/browse/ODFTOOLKIT-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215434#comment-13215434
 ] 

Devin Han edited comment on ODFTOOLKIT-305 at 2/24/12 6:39 AM:
---------------------------------------------------------------

Hi,

The enumeration in 
odfdom\src\main\java\org\odftoolkit\odfdom\dom\attribute\text\TextOutlineLevelAttribute.java
 is still there. See:
+        * The value set of {@odf.attribute text:outline-level}.
+        */
+       public enum Value {
+               _1("1"), _2("2"), _3("3"), SEPARATOR("separator") ;
+
+               private String mValue;
+
+               Value(String value) {
+                       mValue = value;
+               }
+
+               @Override
+               public String toString() {
+                       return mValue;
+               }
+
+               public static Value enumValueOf(String value) {
+                       for(Value aIter : values()) {
+                               if (value.equals(aIter.toString())) {
+                               return aIter;
+                               }
+                       }
+                       return null;
+               }
+       }

It's a reasonable fix according to 
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1419062_253892949.

Missed you message, sorry...
For committor is CTR, for others are RTC. We have discussed this in the mail 
list.
Do you think there is a lovely reviewer help me review? No, nearly always. Then 
how long I need to wait for the potential reviewer?
You also are the committor, if you don't like it, you can rollback.

As, you said ODFTOOLKIT-199 is a random issue. Why do you think the former one 
is better than this one?

Update to ODF 1.2 final version is a group of work, include ODFDOM, Taglet and 
Validator. Please forgive me, I have do it step by step. So don't worry about 
the old download link in ODF Validator. You can see I just update Taglets. ODF 
Validator is the next one.

BTW: The suggestion that bring the ODF schema to a Maven repository is very 
valueable, but we can't do it. It's owned by OASIS, not ODF Toolkit.

Thanks,
Devin
                
      was (Author: devinhan):
    Hi,

The enumeration in 
odfdom\src\main\java\org\odftoolkit\odfdom\dom\attribute\text\TextOutlineLevelAttribute.java
 is still there. See:
+        * The value set of {@odf.attribute text:outline-level}.
+        */
+       public enum Value {
+               _1("1"), _2("2"), _3("3"), SEPARATOR("separator") ;
+
+               private String mValue;
+
+               Value(String value) {
+                       mValue = value;
+               }
+
+               @Override
+               public String toString() {
+                       return mValue;
+               }
+
+               public static Value enumValueOf(String value) {
+                       for(Value aIter : values()) {
+                               if (value.equals(aIter.toString())) {
+                               return aIter;
+                               }
+                       }
+                       return null;
+               }
+       }

It's a reasonable fix according to 
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1419062_253892949.

Missed you message, sorry...
For committor is CTR, for others are RTC. We have discussed this in the mail 
list.
Do you think there is a lovely reviewer help me review? No, nearly always. Then 
how long I need to wait for the potential reviewer?
You also are the committor, if you don't like it, you can rollback.

As, you said ODFTOOLKIT-199 is a random issue. Why do you think the former one 
is better than this one?

Update to ODF 1.2 final version is a group of work, include ODFDOM, Taglet and 
Validator. Please forgive me, I have do it step by step. So don't worry about 
the old download link in ODF Validator. You can see I just update Taglets. ODF 
Validator is the next one.

BTW: The suggestion that bring the ODF schema to a Maven repository is very 
valueable, but we can't do it. It's owned by OASIS, not ODF Toolkit.

Thanks,
Svante 
                  
> Update ODF 1.2 schema to OpenDocument-v1.2 final version
> --------------------------------------------------------
>
>                 Key: ODFTOOLKIT-305
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-305
>             Project: ODF Toolkit
>          Issue Type: Improvement
>          Components: odfdom
>    Affects Versions: 0.8.8
>            Reporter: Devin Han
>            Assignee: Devin Han
>              Labels: ODF1.2
>
> The final ODF 1.2 schemas were published last month, see: 
> http://lists.oasis-open.org/archives/tc-announce/201201/msg00001.html
> And we just updated the code generator to support mainfest and data dignature 
> element/attribute in issue ODFTOOLKIT-199.
> So I think it is time to update to the newest schemas for ODFDOM.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to