Skip to content

Commit 459ea4c

Browse files
New generated typed DOM of ODFDOM based on ODF 1.3
1 parent 1271223 commit 459ea4c

File tree

84 files changed

+5538
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+5538
-69
lines changed

odfdom/src/main/java/org/odftoolkit/odfdom/dom/DefaultElementVisitor.java

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import org.odftoolkit.odfdom.dom.element.chart.ChartAxisElement;
4444
import org.odftoolkit.odfdom.dom.element.chart.ChartCategoriesElement;
4545
import org.odftoolkit.odfdom.dom.element.chart.ChartChartElement;
46+
import org.odftoolkit.odfdom.dom.element.chart.ChartCoordinateRegionElement;
4647
import org.odftoolkit.odfdom.dom.element.chart.ChartDataLabelElement;
4748
import org.odftoolkit.odfdom.dom.element.chart.ChartDataPointElement;
4849
import org.odftoolkit.odfdom.dom.element.chart.ChartDomainElement;
@@ -208,6 +209,7 @@
208209
import org.odftoolkit.odfdom.dom.element.math.MathMathElement;
209210
import org.odftoolkit.odfdom.dom.element.meta.MetaAutoReloadElement;
210211
import org.odftoolkit.odfdom.dom.element.meta.MetaCreationDateElement;
212+
import org.odftoolkit.odfdom.dom.element.meta.MetaCreatorInitialsElement;
211213
import org.odftoolkit.odfdom.dom.element.meta.MetaDateStringElement;
212214
import org.odftoolkit.odfdom.dom.element.meta.MetaDocumentStatisticElement;
213215
import org.odftoolkit.odfdom.dom.element.meta.MetaEditingCyclesElement;
@@ -230,6 +232,7 @@
230232
import org.odftoolkit.odfdom.dom.element.number.NumberDayOfWeekElement;
231233
import org.odftoolkit.odfdom.dom.element.number.NumberEmbeddedTextElement;
232234
import org.odftoolkit.odfdom.dom.element.number.NumberEraElement;
235+
import org.odftoolkit.odfdom.dom.element.number.NumberFillCharacterElement;
233236
import org.odftoolkit.odfdom.dom.element.number.NumberFractionElement;
234237
import org.odftoolkit.odfdom.dom.element.number.NumberHoursElement;
235238
import org.odftoolkit.odfdom.dom.element.number.NumberMinutesElement;
@@ -306,12 +309,14 @@
306309
import org.odftoolkit.odfdom.dom.element.style.StyleDropCapElement;
307310
import org.odftoolkit.odfdom.dom.element.style.StyleFontFaceElement;
308311
import org.odftoolkit.odfdom.dom.element.style.StyleFooterElement;
312+
import org.odftoolkit.odfdom.dom.element.style.StyleFooterFirstElement;
309313
import org.odftoolkit.odfdom.dom.element.style.StyleFooterLeftElement;
310314
import org.odftoolkit.odfdom.dom.element.style.StyleFooterStyleElement;
311315
import org.odftoolkit.odfdom.dom.element.style.StyleFootnoteSepElement;
312316
import org.odftoolkit.odfdom.dom.element.style.StyleGraphicPropertiesElement;
313317
import org.odftoolkit.odfdom.dom.element.style.StyleHandoutMasterElement;
314318
import org.odftoolkit.odfdom.dom.element.style.StyleHeaderElement;
319+
import org.odftoolkit.odfdom.dom.element.style.StyleHeaderFirstElement;
315320
import org.odftoolkit.odfdom.dom.element.style.StyleHeaderFooterPropertiesElement;
316321
import org.odftoolkit.odfdom.dom.element.style.StyleHeaderLeftElement;
317322
import org.odftoolkit.odfdom.dom.element.style.StyleHeaderStyleElement;
@@ -484,6 +489,7 @@
484489
import org.odftoolkit.odfdom.dom.element.text.TextDdeConnectionElement;
485490
import org.odftoolkit.odfdom.dom.element.text.TextDeletionElement;
486491
import org.odftoolkit.odfdom.dom.element.text.TextDescriptionElement;
492+
import org.odftoolkit.odfdom.dom.element.text.TextDropDownElement;
487493
import org.odftoolkit.odfdom.dom.element.text.TextEditingCyclesElement;
488494
import org.odftoolkit.odfdom.dom.element.text.TextEditingDurationElement;
489495
import org.odftoolkit.odfdom.dom.element.text.TextExecuteMacroElement;
@@ -513,6 +519,7 @@
513519
import org.odftoolkit.odfdom.dom.element.text.TextInitialCreatorElement;
514520
import org.odftoolkit.odfdom.dom.element.text.TextInsertionElement;
515521
import org.odftoolkit.odfdom.dom.element.text.TextKeywordsElement;
522+
import org.odftoolkit.odfdom.dom.element.text.TextLabelElement;
516523
import org.odftoolkit.odfdom.dom.element.text.TextLineBreakElement;
517524
import org.odftoolkit.odfdom.dom.element.text.TextLinenumberingConfigurationElement;
518525
import org.odftoolkit.odfdom.dom.element.text.TextLinenumberingSeparatorElement;
@@ -776,6 +783,15 @@ public void visit(ChartChartElement ele) {
776783
visit((OdfElement) ele);
777784
}
778785

786+
/**
787+
* A method to visit "chart:coordinate-region" elements
788+
*
789+
* @param ele - an instance of ChartCoordinateRegionElement
790+
*/
791+
public void visit(ChartCoordinateRegionElement ele) {
792+
visit((OdfElement) ele);
793+
}
794+
779795
/**
780796
* A method to visit "chart:data-label" elements
781797
*
@@ -2261,6 +2277,15 @@ public void visit(MetaCreationDateElement ele) {
22612277
visit((OdfElement) ele);
22622278
}
22632279

2280+
/**
2281+
* A method to visit "meta:creator-initials" elements
2282+
*
2283+
* @param ele - an instance of MetaCreatorInitialsElement
2284+
*/
2285+
public void visit(MetaCreatorInitialsElement ele) {
2286+
visit((OdfElement) ele);
2287+
}
2288+
22642289
/**
22652290
* A method to visit "meta:date-string" elements
22662291
*
@@ -2459,6 +2484,15 @@ public void visit(NumberEraElement ele) {
24592484
visit((OdfElement) ele);
24602485
}
24612486

2487+
/**
2488+
* A method to visit "number:fill-character" elements
2489+
*
2490+
* @param ele - an instance of NumberFillCharacterElement
2491+
*/
2492+
public void visit(NumberFillCharacterElement ele) {
2493+
visit((OdfElement) ele);
2494+
}
2495+
24622496
/**
24632497
* A method to visit "number:fraction" elements
24642498
*
@@ -3143,6 +3177,15 @@ public void visit(StyleFooterElement ele) {
31433177
visit((OdfElement) ele);
31443178
}
31453179

3180+
/**
3181+
* A method to visit "style:footer-first" elements
3182+
*
3183+
* @param ele - an instance of StyleFooterFirstElement
3184+
*/
3185+
public void visit(StyleFooterFirstElement ele) {
3186+
visit((OdfElement) ele);
3187+
}
3188+
31463189
/**
31473190
* A method to visit "style:footer-left" elements
31483191
*
@@ -3197,6 +3240,15 @@ public void visit(StyleHeaderElement ele) {
31973240
visit((OdfElement) ele);
31983241
}
31993242

3243+
/**
3244+
* A method to visit "style:header-first" elements
3245+
*
3246+
* @param ele - an instance of StyleHeaderFirstElement
3247+
*/
3248+
public void visit(StyleHeaderFirstElement ele) {
3249+
visit((OdfElement) ele);
3250+
}
3251+
32003252
/**
32013253
* A method to visit "style:header-footer-properties" elements
32023254
*
@@ -4745,6 +4797,15 @@ public void visit(TextDescriptionElement ele) {
47454797
visit((OdfElement) ele);
47464798
}
47474799

4800+
/**
4801+
* A method to visit "text:drop-down" elements
4802+
*
4803+
* @param ele - an instance of TextDropDownElement
4804+
*/
4805+
public void visit(TextDropDownElement ele) {
4806+
visit((OdfElement) ele);
4807+
}
4808+
47484809
/**
47494810
* A method to visit "text:editing-cycles" elements
47504811
*
@@ -5006,6 +5067,15 @@ public void visit(TextKeywordsElement ele) {
50065067
visit((OdfElement) ele);
50075068
}
50085069

5070+
/**
5071+
* A method to visit "text:label" elements
5072+
*
5073+
* @param ele - an instance of TextLabelElement
5074+
*/
5075+
public void visit(TextLabelElement ele) {
5076+
visit((OdfElement) ele);
5077+
}
5078+
50095079
/**
50105080
* A method to visit "text:line-break" elements
50115081
*
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/**
2+
* **********************************************************************
3+
*
4+
* <p>DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
5+
*
6+
* <p>Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
7+
*
8+
* <p>Use is subject to license terms.
9+
*
10+
* <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
11+
* except in compliance with the License. You may obtain a copy of the License at
12+
* http://www.apache.org/licenses/LICENSE-2.0. You can also obtain a copy of the License at
13+
* http://odftoolkit.org/docs/license.txt
14+
*
15+
* <p>Unless required by applicable law or agreed to in writing, software distributed under the
16+
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17+
* express or implied.
18+
*
19+
* <p>See the License for the specific language governing permissions and limitations under the
20+
* License.
21+
*
22+
* <p>**********************************************************************
23+
*/
24+
25+
/*
26+
* This file is automatically generated.
27+
* Don't edit manually.
28+
*/
29+
package org.odftoolkit.odfdom.dom.attribute.chart;
30+
31+
import org.odftoolkit.odfdom.dom.OdfDocumentNamespace;
32+
import org.odftoolkit.odfdom.pkg.OdfAttribute;
33+
import org.odftoolkit.odfdom.pkg.OdfFileDom;
34+
import org.odftoolkit.odfdom.pkg.OdfName;
35+
36+
/** DOM implementation of OpenDocument attribute {@odf.attribute chart:data-label-series}. */
37+
public class ChartDataLabelSeriesAttribute extends OdfAttribute {
38+
39+
public static final OdfName ATTRIBUTE_NAME =
40+
OdfName.newName(OdfDocumentNamespace.CHART, "data-label-series");
41+
42+
/**
43+
* Create the instance of OpenDocument attribute {@odf.attribute chart:data-label-series}.
44+
*
45+
* @param ownerDocument The type is <code>OdfFileDom</code>
46+
*/
47+
public ChartDataLabelSeriesAttribute(OdfFileDom ownerDocument) {
48+
super(ownerDocument, ATTRIBUTE_NAME);
49+
}
50+
51+
/**
52+
* Returns the attribute name.
53+
*
54+
* @return the <code>OdfName</code> for {@odf.attribute chart:data-label-series}.
55+
*/
56+
@Override
57+
public OdfName getOdfName() {
58+
return ATTRIBUTE_NAME;
59+
}
60+
61+
/** @return Returns the name of this attribute. */
62+
@Override
63+
public String getName() {
64+
return ATTRIBUTE_NAME.getLocalName();
65+
}
66+
67+
/** @param value The <code>boolean</code> value of the attribute. */
68+
public void setBooleanValue(boolean value) {
69+
super.setValue(String.valueOf(value));
70+
}
71+
72+
/** @return Returns the <code>boolean</code> value of the attribute */
73+
public boolean booleanValue() {
74+
String val = super.getValue();
75+
return Boolean.parseBoolean(val);
76+
}
77+
78+
/**
79+
* Returns the default value of {@odf.attribute chart:data-label-series}.
80+
*
81+
* @return the default value as <code>String</code> dependent of its element name return <code>
82+
* null</code> if the default value does not exist
83+
*/
84+
@Override
85+
public String getDefault() {
86+
return null;
87+
}
88+
89+
/**
90+
* Default value indicator. As the attribute default value is dependent from its element, the
91+
* attribute has only a default, when a parent element exists.
92+
*
93+
* @return <code>true</code> if {@odf.attribute chart:data-label-series} has an element parent
94+
* otherwise return <code>false</code> as undefined.
95+
*/
96+
@Override
97+
public boolean hasDefault() {
98+
return false;
99+
}
100+
101+
/** @return Returns whether this attribute is known to be of type ID (i.e. xml:id ?) */
102+
@Override
103+
public boolean isId() {
104+
return false;
105+
}
106+
}

odfdom/src/main/java/org/odftoolkit/odfdom/dom/attribute/chart/ChartInterpolationAttribute.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ public String getName() {
6868
public enum Value {
6969
B_SPLINE("b-spline"),
7070
CUBIC_SPLINE("cubic-spline"),
71-
NONE("none");
71+
NONE("none"),
72+
STEP_CENTER_X("step-center-x"),
73+
STEP_CENTER_Y("step-center-y"),
74+
STEP_END("step-end"),
75+
STEP_START("step-start");
7276

7377
private String mValue;
7478

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
/**
2+
* **********************************************************************
3+
*
4+
* <p>DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
5+
*
6+
* <p>Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
7+
*
8+
* <p>Use is subject to license terms.
9+
*
10+
* <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
11+
* except in compliance with the License. You may obtain a copy of the License at
12+
* http://www.apache.org/licenses/LICENSE-2.0. You can also obtain a copy of the License at
13+
* http://odftoolkit.org/docs/license.txt
14+
*
15+
* <p>Unless required by applicable law or agreed to in writing, software distributed under the
16+
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17+
* express or implied.
18+
*
19+
* <p>See the License for the specific language governing permissions and limitations under the
20+
* License.
21+
*
22+
* <p>**********************************************************************
23+
*/
24+
25+
/*
26+
* This file is automatically generated.
27+
* Don't edit manually.
28+
*/
29+
package org.odftoolkit.odfdom.dom.attribute.chart;
30+
31+
import org.odftoolkit.odfdom.dom.OdfDocumentNamespace;
32+
import org.odftoolkit.odfdom.pkg.OdfAttribute;
33+
import org.odftoolkit.odfdom.pkg.OdfFileDom;
34+
import org.odftoolkit.odfdom.pkg.OdfName;
35+
36+
/**
37+
* DOM implementation of OpenDocument attribute {@odf.attribute chart:regression-force-intercept}.
38+
*/
39+
public class ChartRegressionForceInterceptAttribute extends OdfAttribute {
40+
41+
public static final OdfName ATTRIBUTE_NAME =
42+
OdfName.newName(OdfDocumentNamespace.CHART, "regression-force-intercept");
43+
44+
/**
45+
* Create the instance of OpenDocument attribute {@odf.attribute
46+
* chart:regression-force-intercept}.
47+
*
48+
* @param ownerDocument The type is <code>OdfFileDom</code>
49+
*/
50+
public ChartRegressionForceInterceptAttribute(OdfFileDom ownerDocument) {
51+
super(ownerDocument, ATTRIBUTE_NAME);
52+
}
53+
54+
/**
55+
* Returns the attribute name.
56+
*
57+
* @return the <code>OdfName</code> for {@odf.attribute chart:regression-force-intercept}.
58+
*/
59+
@Override
60+
public OdfName getOdfName() {
61+
return ATTRIBUTE_NAME;
62+
}
63+
64+
/** @return Returns the name of this attribute. */
65+
@Override
66+
public String getName() {
67+
return ATTRIBUTE_NAME.getLocalName();
68+
}
69+
70+
/** @param value The <code>boolean</code> value of the attribute. */
71+
public void setBooleanValue(boolean value) {
72+
super.setValue(String.valueOf(value));
73+
}
74+
75+
/** @return Returns the <code>boolean</code> value of the attribute */
76+
public boolean booleanValue() {
77+
String val = super.getValue();
78+
return Boolean.parseBoolean(val);
79+
}
80+
81+
/**
82+
* Returns the default value of {@odf.attribute chart:regression-force-intercept}.
83+
*
84+
* @return the default value as <code>String</code> dependent of its element name return <code>
85+
* null</code> if the default value does not exist
86+
*/
87+
@Override
88+
public String getDefault() {
89+
return null;
90+
}
91+
92+
/**
93+
* Default value indicator. As the attribute default value is dependent from its element, the
94+
* attribute has only a default, when a parent element exists.
95+
*
96+
* @return <code>true</code> if {@odf.attribute chart:regression-force-intercept} has an element
97+
* parent otherwise return <code>false</code> as undefined.
98+
*/
99+
@Override
100+
public boolean hasDefault() {
101+
return false;
102+
}
103+
104+
/** @return Returns whether this attribute is known to be of type ID (i.e. xml:id ?) */
105+
@Override
106+
public boolean isId() {
107+
return false;
108+
}
109+
}

0 commit comments

Comments
 (0)