diff --git a/src/xlsx4j/java/org/xlsx4j/sml/BookViews.java b/src/xlsx4j/java/org/xlsx4j/sml/BookViews.java index 3c497d17bb..5f1c40b21d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/BookViews.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/BookViews.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_BookViews complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_BookViews">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="workbookView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BookView" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_BookViews", propOrder = { - "workbookView" -}) -public class BookViews { - - @XmlElement(required = true) - protected List workbookView; - - /** - * Gets the value of the workbookView property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the workbookView property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getWorkbookView().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTBookView } - * - * - */ - public List getWorkbookView() { - if (workbookView == null) { - workbookView = new ArrayList(); - } - return this.workbookView; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_BookViews complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_BookViews">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="workbookView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BookView" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_BookViews", propOrder = { + "workbookView" +}) +public class BookViews implements Child +{ + + @XmlElement(required = true) + protected List workbookView; + @XmlTransient + private Object parent; + + /** + * Gets the value of the workbookView property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the workbookView property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getWorkbookView().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTBookView } + * + * + */ + public List getWorkbookView() { + if (workbookView == null) { + workbookView = new ArrayList(); + } + return this.workbookView; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTAuthors.java b/src/xlsx4j/java/org/xlsx4j/sml/CTAuthors.java index baf2520106..aaa42d461b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTAuthors.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTAuthors.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Authors complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Authors">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="author" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Authors", propOrder = { - "author" -}) -public class CTAuthors { - - protected List author; - - /** - * Gets the value of the author property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the author property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getAuthor().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getAuthor() { - if (author == null) { - author = new ArrayList(); - } - return this.author; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Authors complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Authors">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Authors", propOrder = { + "author" +}) +public class CTAuthors implements Child +{ + + protected List author; + @XmlTransient + private Object parent; + + /** + * Gets the value of the author property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the author property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAuthor().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getAuthor() { + if (author == null) { + author = new ArrayList(); + } + return this.author; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTAutoFilter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTAutoFilter.java index af6da4dfd7..5156c81ea1 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTAutoFilter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTAutoFilter.java @@ -1,169 +1,181 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_AutoFilter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_AutoFilter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="filterColumn" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FilterColumn" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_AutoFilter", propOrder = { - "filterColumn", - "sortState", - "extLst" -}) -public class CTAutoFilter { - - protected List filterColumn; - protected CTSortState sortState; - protected CTExtensionList extLst; - @XmlAttribute - protected String ref; - - /** - * Gets the value of the filterColumn property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the filterColumn property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFilterColumn().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFilterColumn } - * - * - */ - public List getFilterColumn() { - if (filterColumn == null) { - filterColumn = new ArrayList(); - } - return this.filterColumn; - } - - /** - * Gets the value of the sortState property. - * - * @return - * possible object is - * {@link CTSortState } - * - */ - public CTSortState getSortState() { - return sortState; - } - - /** - * Sets the value of the sortState property. - * - * @param value - * allowed object is - * {@link CTSortState } - * - */ - public void setSortState(CTSortState value) { - this.sortState = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_AutoFilter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_AutoFilter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="filterColumn" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FilterColumn" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_AutoFilter", propOrder = { + "filterColumn", + "sortState", + "extLst" +}) +public class CTAutoFilter implements Child +{ + + protected List filterColumn; + protected CTSortState sortState; + protected CTExtensionList extLst; + @XmlAttribute(name = "ref") + protected String ref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the filterColumn property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the filterColumn property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFilterColumn().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFilterColumn } + * + * + */ + public List getFilterColumn() { + if (filterColumn == null) { + filterColumn = new ArrayList(); + } + return this.filterColumn; + } + + /** + * Gets the value of the sortState property. + * + * @return + * possible object is + * {@link CTSortState } + * + */ + public CTSortState getSortState() { + return sortState; + } + + /** + * Sets the value of the sortState property. + * + * @param value + * allowed object is + * {@link CTSortState } + * + */ + public void setSortState(CTSortState value) { + this.sortState = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTAutoSortScope.java b/src/xlsx4j/java/org/xlsx4j/sml/CTAutoSortScope.java index 0309fd20b6..dd0d504a42 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTAutoSortScope.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTAutoSortScope.java @@ -1,82 +1,94 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_AutoSortScope complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_AutoSortScope">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_AutoSortScope", propOrder = { - "pivotArea" -}) -public class CTAutoSortScope { - - @XmlElement(required = true) - protected CTPivotArea pivotArea; - - /** - * Gets the value of the pivotArea property. - * - * @return - * possible object is - * {@link CTPivotArea } - * - */ - public CTPivotArea getPivotArea() { - return pivotArea; - } - - /** - * Sets the value of the pivotArea property. - * - * @param value - * allowed object is - * {@link CTPivotArea } - * - */ - public void setPivotArea(CTPivotArea value) { - this.pivotArea = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_AutoSortScope complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_AutoSortScope">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_AutoSortScope", propOrder = { + "pivotArea" +}) +public class CTAutoSortScope implements Child +{ + + @XmlElement(required = true) + protected CTPivotArea pivotArea; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotArea property. + * + * @return + * possible object is + * {@link CTPivotArea } + * + */ + public CTPivotArea getPivotArea() { + return pivotArea; + } + + /** + * Sets the value of the pivotArea property. + * + * @param value + * allowed object is + * {@link CTPivotArea } + * + */ + public void setPivotArea(CTPivotArea value) { + this.pivotArea = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTBookView.java b/src/xlsx4j/java/org/xlsx4j/sml/CTBookView.java index 3f8fb58ece..c5ce34867f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTBookView.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTBookView.java @@ -1,474 +1,486 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_BookView complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_BookView">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="visibility" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Visibility" default="visible" />
- *       <attribute name="minimized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showHorizontalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showVerticalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showSheetTabs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="xWindow" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="yWindow" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="windowWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="windowHeight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="tabRatio" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
- *       <attribute name="firstSheet" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="activeTab" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="autoFilterDateGrouping" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_BookView", propOrder = { - "extLst" -}) -public class CTBookView { - - protected CTExtensionList extLst; - @XmlAttribute - protected STVisibility visibility; - @XmlAttribute - protected Boolean minimized; - @XmlAttribute - protected Boolean showHorizontalScroll; - @XmlAttribute - protected Boolean showVerticalScroll; - @XmlAttribute - protected Boolean showSheetTabs; - @XmlAttribute - protected Integer xWindow; - @XmlAttribute - protected Integer yWindow; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long windowWidth; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long windowHeight; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long tabRatio; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long firstSheet; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long activeTab; - @XmlAttribute - protected Boolean autoFilterDateGrouping; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the visibility property. - * - * @return - * possible object is - * {@link STVisibility } - * - */ - public STVisibility getVisibility() { - if (visibility == null) { - return STVisibility.VISIBLE; - } else { - return visibility; - } - } - - /** - * Sets the value of the visibility property. - * - * @param value - * allowed object is - * {@link STVisibility } - * - */ - public void setVisibility(STVisibility value) { - this.visibility = value; - } - - /** - * Gets the value of the minimized property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMinimized() { - if (minimized == null) { - return false; - } else { - return minimized; - } - } - - /** - * Sets the value of the minimized property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMinimized(Boolean value) { - this.minimized = value; - } - - /** - * Gets the value of the showHorizontalScroll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowHorizontalScroll() { - if (showHorizontalScroll == null) { - return true; - } else { - return showHorizontalScroll; - } - } - - /** - * Sets the value of the showHorizontalScroll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowHorizontalScroll(Boolean value) { - this.showHorizontalScroll = value; - } - - /** - * Gets the value of the showVerticalScroll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowVerticalScroll() { - if (showVerticalScroll == null) { - return true; - } else { - return showVerticalScroll; - } - } - - /** - * Sets the value of the showVerticalScroll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowVerticalScroll(Boolean value) { - this.showVerticalScroll = value; - } - - /** - * Gets the value of the showSheetTabs property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowSheetTabs() { - if (showSheetTabs == null) { - return true; - } else { - return showSheetTabs; - } - } - - /** - * Sets the value of the showSheetTabs property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowSheetTabs(Boolean value) { - this.showSheetTabs = value; - } - - /** - * Gets the value of the xWindow property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getXWindow() { - return xWindow; - } - - /** - * Sets the value of the xWindow property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setXWindow(Integer value) { - this.xWindow = value; - } - - /** - * Gets the value of the yWindow property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getYWindow() { - return yWindow; - } - - /** - * Sets the value of the yWindow property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setYWindow(Integer value) { - this.yWindow = value; - } - - /** - * Gets the value of the windowWidth property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getWindowWidth() { - return windowWidth; - } - - /** - * Sets the value of the windowWidth property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setWindowWidth(Long value) { - this.windowWidth = value; - } - - /** - * Gets the value of the windowHeight property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getWindowHeight() { - return windowHeight; - } - - /** - * Sets the value of the windowHeight property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setWindowHeight(Long value) { - this.windowHeight = value; - } - - /** - * Gets the value of the tabRatio property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getTabRatio() { - if (tabRatio == null) { - return 600L; - } else { - return tabRatio; - } - } - - /** - * Sets the value of the tabRatio property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTabRatio(Long value) { - this.tabRatio = value; - } - - /** - * Gets the value of the firstSheet property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getFirstSheet() { - if (firstSheet == null) { - return 0L; - } else { - return firstSheet; - } - } - - /** - * Sets the value of the firstSheet property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFirstSheet(Long value) { - this.firstSheet = value; - } - - /** - * Gets the value of the activeTab property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getActiveTab() { - if (activeTab == null) { - return 0L; - } else { - return activeTab; - } - } - - /** - * Sets the value of the activeTab property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setActiveTab(Long value) { - this.activeTab = value; - } - - /** - * Gets the value of the autoFilterDateGrouping property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoFilterDateGrouping() { - if (autoFilterDateGrouping == null) { - return true; - } else { - return autoFilterDateGrouping; - } - } - - /** - * Sets the value of the autoFilterDateGrouping property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoFilterDateGrouping(Boolean value) { - this.autoFilterDateGrouping = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_BookView complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_BookView">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="visibility" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Visibility" default="visible" />
+ *       <attribute name="minimized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showHorizontalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showVerticalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showSheetTabs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="xWindow" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="yWindow" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="windowWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="windowHeight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="tabRatio" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
+ *       <attribute name="firstSheet" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="activeTab" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="autoFilterDateGrouping" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_BookView", propOrder = { + "extLst" +}) +public class CTBookView implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "visibility") + protected STVisibility visibility; + @XmlAttribute(name = "minimized") + protected Boolean minimized; + @XmlAttribute(name = "showHorizontalScroll") + protected Boolean showHorizontalScroll; + @XmlAttribute(name = "showVerticalScroll") + protected Boolean showVerticalScroll; + @XmlAttribute(name = "showSheetTabs") + protected Boolean showSheetTabs; + @XmlAttribute(name = "xWindow") + protected Integer xWindow; + @XmlAttribute(name = "yWindow") + protected Integer yWindow; + @XmlAttribute(name = "windowWidth") + @XmlSchemaType(name = "unsignedInt") + protected Long windowWidth; + @XmlAttribute(name = "windowHeight") + @XmlSchemaType(name = "unsignedInt") + protected Long windowHeight; + @XmlAttribute(name = "tabRatio") + @XmlSchemaType(name = "unsignedInt") + protected Long tabRatio; + @XmlAttribute(name = "firstSheet") + @XmlSchemaType(name = "unsignedInt") + protected Long firstSheet; + @XmlAttribute(name = "activeTab") + @XmlSchemaType(name = "unsignedInt") + protected Long activeTab; + @XmlAttribute(name = "autoFilterDateGrouping") + protected Boolean autoFilterDateGrouping; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the visibility property. + * + * @return + * possible object is + * {@link STVisibility } + * + */ + public STVisibility getVisibility() { + if (visibility == null) { + return STVisibility.VISIBLE; + } else { + return visibility; + } + } + + /** + * Sets the value of the visibility property. + * + * @param value + * allowed object is + * {@link STVisibility } + * + */ + public void setVisibility(STVisibility value) { + this.visibility = value; + } + + /** + * Gets the value of the minimized property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMinimized() { + if (minimized == null) { + return false; + } else { + return minimized; + } + } + + /** + * Sets the value of the minimized property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMinimized(Boolean value) { + this.minimized = value; + } + + /** + * Gets the value of the showHorizontalScroll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowHorizontalScroll() { + if (showHorizontalScroll == null) { + return true; + } else { + return showHorizontalScroll; + } + } + + /** + * Sets the value of the showHorizontalScroll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowHorizontalScroll(Boolean value) { + this.showHorizontalScroll = value; + } + + /** + * Gets the value of the showVerticalScroll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowVerticalScroll() { + if (showVerticalScroll == null) { + return true; + } else { + return showVerticalScroll; + } + } + + /** + * Sets the value of the showVerticalScroll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowVerticalScroll(Boolean value) { + this.showVerticalScroll = value; + } + + /** + * Gets the value of the showSheetTabs property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowSheetTabs() { + if (showSheetTabs == null) { + return true; + } else { + return showSheetTabs; + } + } + + /** + * Sets the value of the showSheetTabs property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowSheetTabs(Boolean value) { + this.showSheetTabs = value; + } + + /** + * Gets the value of the xWindow property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getXWindow() { + return xWindow; + } + + /** + * Sets the value of the xWindow property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setXWindow(Integer value) { + this.xWindow = value; + } + + /** + * Gets the value of the yWindow property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getYWindow() { + return yWindow; + } + + /** + * Sets the value of the yWindow property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setYWindow(Integer value) { + this.yWindow = value; + } + + /** + * Gets the value of the windowWidth property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getWindowWidth() { + return windowWidth; + } + + /** + * Sets the value of the windowWidth property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setWindowWidth(Long value) { + this.windowWidth = value; + } + + /** + * Gets the value of the windowHeight property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getWindowHeight() { + return windowHeight; + } + + /** + * Sets the value of the windowHeight property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setWindowHeight(Long value) { + this.windowHeight = value; + } + + /** + * Gets the value of the tabRatio property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getTabRatio() { + if (tabRatio == null) { + return 600L; + } else { + return tabRatio; + } + } + + /** + * Sets the value of the tabRatio property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTabRatio(Long value) { + this.tabRatio = value; + } + + /** + * Gets the value of the firstSheet property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getFirstSheet() { + if (firstSheet == null) { + return 0L; + } else { + return firstSheet; + } + } + + /** + * Sets the value of the firstSheet property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFirstSheet(Long value) { + this.firstSheet = value; + } + + /** + * Gets the value of the activeTab property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getActiveTab() { + if (activeTab == null) { + return 0L; + } else { + return activeTab; + } + } + + /** + * Sets the value of the activeTab property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setActiveTab(Long value) { + this.activeTab = value; + } + + /** + * Gets the value of the autoFilterDateGrouping property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoFilterDateGrouping() { + if (autoFilterDateGrouping == null) { + return true; + } else { + return autoFilterDateGrouping; + } + } + + /** + * Sets the value of the autoFilterDateGrouping property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoFilterDateGrouping(Boolean value) { + this.autoFilterDateGrouping = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTBoolean.java b/src/xlsx4j/java/org/xlsx4j/sml/CTBoolean.java index 4c19ddd3d2..b2ddd1c22d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTBoolean.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTBoolean.java @@ -1,217 +1,229 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Boolean complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Boolean">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Boolean", propOrder = { - "x" -}) -public class CTBoolean { - - protected List x; - @XmlAttribute(required = true) - protected boolean v; - @XmlAttribute - protected Boolean u; - @XmlAttribute - protected Boolean f; - @XmlAttribute - protected String c; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cp; - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the v property. - * - */ - public boolean isV() { - return v; - } - - /** - * Sets the value of the v property. - * - */ - public void setV(boolean value) { - this.v = value; - } - - /** - * Gets the value of the u property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isU() { - return u; - } - - /** - * Sets the value of the u property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setU(Boolean value) { - this.u = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setF(Boolean value) { - this.f = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getC() { - return c; - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setC(String value) { - this.c = value; - } - - /** - * Gets the value of the cp property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCp() { - return cp; - } - - /** - * Sets the value of the cp property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCp(Long value) { - this.cp = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Boolean complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Boolean">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="c" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Boolean", propOrder = { + "x" +}) +public class CTBoolean implements Child +{ + + protected List x; + @XmlAttribute(name = "v", required = true) + protected boolean v; + @XmlAttribute(name = "u") + protected Boolean u; + @XmlAttribute(name = "f") + protected Boolean f; + @XmlAttribute(name = "c") + protected String c; + @XmlAttribute(name = "cp") + @XmlSchemaType(name = "unsignedInt") + protected Long cp; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the v property. + * + */ + public boolean isV() { + return v; + } + + /** + * Sets the value of the v property. + * + */ + public void setV(boolean value) { + this.v = value; + } + + /** + * Gets the value of the u property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isU() { + return u; + } + + /** + * Sets the value of the u property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setU(Boolean value) { + this.u = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setF(Boolean value) { + this.f = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getC() { + return c; + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setC(String value) { + this.c = value; + } + + /** + * Gets the value of the cp property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCp() { + return cp; + } + + /** + * Sets the value of the cp property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCp(Long value) { + this.cp = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTBooleanProperty.java b/src/xlsx4j/java/org/xlsx4j/sml/CTBooleanProperty.java index 8dc3f9fd38..6cf8efa0f6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTBooleanProperty.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTBooleanProperty.java @@ -1,82 +1,94 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_BooleanProperty complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_BooleanProperty">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_BooleanProperty") -public class CTBooleanProperty { - - @XmlAttribute - protected Boolean val; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVal() { - if (val == null) { - return true; - } else { - return val; - } - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVal(Boolean value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_BooleanProperty complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_BooleanProperty">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_BooleanProperty") +public class CTBooleanProperty implements Child +{ + + @XmlAttribute(name = "val") + protected Boolean val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVal() { + if (val == null) { + return true; + } else { + return val; + } + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVal(Boolean value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTBorder.java b/src/xlsx4j/java/org/xlsx4j/sml/CTBorder.java index 354c169bbe..ffb41a6f70 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTBorder.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTBorder.java @@ -1,328 +1,394 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Border complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Border">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="left" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
- *         <element name="right" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
- *         <element name="top" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
- *         <element name="bottom" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
- *         <element name="diagonal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
- *         <element name="vertical" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
- *         <element name="horizontal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="diagonalUp" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="diagonalDown" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Border", propOrder = { - "left", - "right", - "top", - "bottom", - "diagonal", - "vertical", - "horizontal" -}) -public class CTBorder { - - protected CTBorderPr left; - protected CTBorderPr right; - protected CTBorderPr top; - protected CTBorderPr bottom; - protected CTBorderPr diagonal; - protected CTBorderPr vertical; - protected CTBorderPr horizontal; - @XmlAttribute - protected Boolean diagonalUp; - @XmlAttribute - protected Boolean diagonalDown; - @XmlAttribute - protected Boolean outline; - - /** - * Gets the value of the left property. - * - * @return - * possible object is - * {@link CTBorderPr } - * - */ - public CTBorderPr getLeft() { - return left; - } - - /** - * Sets the value of the left property. - * - * @param value - * allowed object is - * {@link CTBorderPr } - * - */ - public void setLeft(CTBorderPr value) { - this.left = value; - } - - /** - * Gets the value of the right property. - * - * @return - * possible object is - * {@link CTBorderPr } - * - */ - public CTBorderPr getRight() { - return right; - } - - /** - * Sets the value of the right property. - * - * @param value - * allowed object is - * {@link CTBorderPr } - * - */ - public void setRight(CTBorderPr value) { - this.right = value; - } - - /** - * Gets the value of the top property. - * - * @return - * possible object is - * {@link CTBorderPr } - * - */ - public CTBorderPr getTop() { - return top; - } - - /** - * Sets the value of the top property. - * - * @param value - * allowed object is - * {@link CTBorderPr } - * - */ - public void setTop(CTBorderPr value) { - this.top = value; - } - - /** - * Gets the value of the bottom property. - * - * @return - * possible object is - * {@link CTBorderPr } - * - */ - public CTBorderPr getBottom() { - return bottom; - } - - /** - * Sets the value of the bottom property. - * - * @param value - * allowed object is - * {@link CTBorderPr } - * - */ - public void setBottom(CTBorderPr value) { - this.bottom = value; - } - - /** - * Gets the value of the diagonal property. - * - * @return - * possible object is - * {@link CTBorderPr } - * - */ - public CTBorderPr getDiagonal() { - return diagonal; - } - - /** - * Sets the value of the diagonal property. - * - * @param value - * allowed object is - * {@link CTBorderPr } - * - */ - public void setDiagonal(CTBorderPr value) { - this.diagonal = value; - } - - /** - * Gets the value of the vertical property. - * - * @return - * possible object is - * {@link CTBorderPr } - * - */ - public CTBorderPr getVertical() { - return vertical; - } - - /** - * Sets the value of the vertical property. - * - * @param value - * allowed object is - * {@link CTBorderPr } - * - */ - public void setVertical(CTBorderPr value) { - this.vertical = value; - } - - /** - * Gets the value of the horizontal property. - * - * @return - * possible object is - * {@link CTBorderPr } - * - */ - public CTBorderPr getHorizontal() { - return horizontal; - } - - /** - * Sets the value of the horizontal property. - * - * @param value - * allowed object is - * {@link CTBorderPr } - * - */ - public void setHorizontal(CTBorderPr value) { - this.horizontal = value; - } - - /** - * Gets the value of the diagonalUp property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isDiagonalUp() { - return diagonalUp; - } - - /** - * Sets the value of the diagonalUp property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDiagonalUp(Boolean value) { - this.diagonalUp = value; - } - - /** - * Gets the value of the diagonalDown property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isDiagonalDown() { - return diagonalDown; - } - - /** - * Sets the value of the diagonalDown property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDiagonalDown(Boolean value) { - this.diagonalDown = value; - } - - /** - * Gets the value of the outline property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOutline() { - if (outline == null) { - return true; - } else { - return outline; - } - } - - /** - * Sets the value of the outline property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOutline(Boolean value) { - this.outline = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Border complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Border">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="start" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="end" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="left" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="right" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="top" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="bottom" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="diagonal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="vertical" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *         <element name="horizontal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BorderPr" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="diagonalUp" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="diagonalDown" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Border", propOrder = { + "start", + "end", + "left", + "right", + "top", + "bottom", + "diagonal", + "vertical", + "horizontal" +}) +public class CTBorder implements Child +{ + + protected CTBorderPr start; + protected CTBorderPr end; + protected CTBorderPr left; + protected CTBorderPr right; + protected CTBorderPr top; + protected CTBorderPr bottom; + protected CTBorderPr diagonal; + protected CTBorderPr vertical; + protected CTBorderPr horizontal; + @XmlAttribute(name = "diagonalUp") + protected Boolean diagonalUp; + @XmlAttribute(name = "diagonalDown") + protected Boolean diagonalDown; + @XmlAttribute(name = "outline") + protected Boolean outline; + @XmlTransient + private Object parent; + + /** + * Gets the value of the start property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getStart() { + return start; + } + + /** + * Sets the value of the start property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setStart(CTBorderPr value) { + this.start = value; + } + + /** + * Gets the value of the end property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getEnd() { + return end; + } + + /** + * Sets the value of the end property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setEnd(CTBorderPr value) { + this.end = value; + } + + /** + * Gets the value of the left property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getLeft() { + return left; + } + + /** + * Sets the value of the left property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setLeft(CTBorderPr value) { + this.left = value; + } + + /** + * Gets the value of the right property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getRight() { + return right; + } + + /** + * Sets the value of the right property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setRight(CTBorderPr value) { + this.right = value; + } + + /** + * Gets the value of the top property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getTop() { + return top; + } + + /** + * Sets the value of the top property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setTop(CTBorderPr value) { + this.top = value; + } + + /** + * Gets the value of the bottom property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getBottom() { + return bottom; + } + + /** + * Sets the value of the bottom property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setBottom(CTBorderPr value) { + this.bottom = value; + } + + /** + * Gets the value of the diagonal property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getDiagonal() { + return diagonal; + } + + /** + * Sets the value of the diagonal property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setDiagonal(CTBorderPr value) { + this.diagonal = value; + } + + /** + * Gets the value of the vertical property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getVertical() { + return vertical; + } + + /** + * Sets the value of the vertical property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setVertical(CTBorderPr value) { + this.vertical = value; + } + + /** + * Gets the value of the horizontal property. + * + * @return + * possible object is + * {@link CTBorderPr } + * + */ + public CTBorderPr getHorizontal() { + return horizontal; + } + + /** + * Sets the value of the horizontal property. + * + * @param value + * allowed object is + * {@link CTBorderPr } + * + */ + public void setHorizontal(CTBorderPr value) { + this.horizontal = value; + } + + /** + * Gets the value of the diagonalUp property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isDiagonalUp() { + return diagonalUp; + } + + /** + * Sets the value of the diagonalUp property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDiagonalUp(Boolean value) { + this.diagonalUp = value; + } + + /** + * Gets the value of the diagonalDown property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isDiagonalDown() { + return diagonalDown; + } + + /** + * Sets the value of the diagonalDown property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDiagonalDown(Boolean value) { + this.diagonalDown = value; + } + + /** + * Gets the value of the outline property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOutline() { + if (outline == null) { + return true; + } else { + return outline; + } + } + + /** + * Sets the value of the outline property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOutline(Boolean value) { + this.outline = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTBorderPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTBorderPr.java index 200cb47e08..68b69673fc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTBorderPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTBorderPr.java @@ -1,112 +1,124 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_BorderPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_BorderPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="style" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_BorderStyle" default="none" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_BorderPr", propOrder = { - "color" -}) -public class CTBorderPr { - - protected CTColor color; - @XmlAttribute - protected STBorderStyle style; - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link CTColor } - * - */ - public CTColor getColor() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link CTColor } - * - */ - public void setColor(CTColor value) { - this.color = value; - } - - /** - * Gets the value of the style property. - * - * @return - * possible object is - * {@link STBorderStyle } - * - */ - public STBorderStyle getStyle() { - if (style == null) { - return STBorderStyle.NONE; - } else { - return style; - } - } - - /** - * Sets the value of the style property. - * - * @param value - * allowed object is - * {@link STBorderStyle } - * - */ - public void setStyle(STBorderStyle value) { - this.style = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_BorderPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_BorderPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="style" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_BorderStyle" default="none" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_BorderPr", propOrder = { + "color" +}) +public class CTBorderPr implements Child +{ + + protected CTColor color; + @XmlAttribute(name = "style") + protected STBorderStyle style; + @XmlTransient + private Object parent; + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link CTColor } + * + */ + public CTColor getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link CTColor } + * + */ + public void setColor(CTColor value) { + this.color = value; + } + + /** + * Gets the value of the style property. + * + * @return + * possible object is + * {@link STBorderStyle } + * + */ + public STBorderStyle getStyle() { + if (style == null) { + return STBorderStyle.NONE; + } else { + return style; + } + } + + /** + * Sets the value of the style property. + * + * @param value + * allowed object is + * {@link STBorderStyle } + * + */ + public void setStyle(STBorderStyle value) { + this.style = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTBorders.java b/src/xlsx4j/java/org/xlsx4j/sml/CTBorders.java index bc95d0a3c3..ab208114e8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTBorders.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTBorders.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Borders complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Borders">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="border" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Border" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Borders", propOrder = { - "border" -}) -public class CTBorders { - - protected List border; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the border property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the border property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getBorder().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTBorder } - * - * - */ - public List getBorder() { - if (border == null) { - border = new ArrayList(); - } - return this.border; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Borders complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Borders">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="border" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Border" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Borders", propOrder = { + "border" +}) +public class CTBorders implements Child +{ + + protected List border; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the border property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the border property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getBorder().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTBorder } + * + * + */ + public List getBorder() { + if (border == null) { + border = new ArrayList(); + } + return this.border; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTBreak.java b/src/xlsx4j/java/org/xlsx4j/sml/CTBreak.java index 16a7947dba..c7069854b9 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTBreak.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTBreak.java @@ -1,210 +1,222 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Break complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Break">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="man" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pt" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Break") -public class CTBreak { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long id; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long min; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long max; - @XmlAttribute - protected Boolean man; - @XmlAttribute - protected Boolean pt; - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getId() { - if (id == null) { - return 0L; - } else { - return id; - } - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setId(Long value) { - this.id = value; - } - - /** - * Gets the value of the min property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getMin() { - if (min == null) { - return 0L; - } else { - return min; - } - } - - /** - * Sets the value of the min property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMin(Long value) { - this.min = value; - } - - /** - * Gets the value of the max property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getMax() { - if (max == null) { - return 0L; - } else { - return max; - } - } - - /** - * Sets the value of the max property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMax(Long value) { - this.max = value; - } - - /** - * Gets the value of the man property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMan() { - if (man == null) { - return false; - } else { - return man; - } - } - - /** - * Sets the value of the man property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMan(Boolean value) { - this.man = value; - } - - /** - * Gets the value of the pt property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPt() { - if (pt == null) { - return false; - } else { - return pt; - } - } - - /** - * Sets the value of the pt property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPt(Boolean value) { - this.pt = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Break complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Break">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="man" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pt" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Break") +public class CTBreak implements Child +{ + + @XmlAttribute(name = "id") + @XmlSchemaType(name = "unsignedInt") + protected Long id; + @XmlAttribute(name = "min") + @XmlSchemaType(name = "unsignedInt") + protected Long min; + @XmlAttribute(name = "max") + @XmlSchemaType(name = "unsignedInt") + protected Long max; + @XmlAttribute(name = "man") + protected Boolean man; + @XmlAttribute(name = "pt") + protected Boolean pt; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getId() { + if (id == null) { + return 0L; + } else { + return id; + } + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setId(Long value) { + this.id = value; + } + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getMin() { + if (min == null) { + return 0L; + } else { + return min; + } + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMin(Long value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getMax() { + if (max == null) { + return 0L; + } else { + return max; + } + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMax(Long value) { + this.max = value; + } + + /** + * Gets the value of the man property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMan() { + if (man == null) { + return false; + } else { + return man; + } + } + + /** + * Sets the value of the man property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMan(Boolean value) { + this.man = value; + } + + /** + * Gets the value of the pt property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPt() { + if (pt == null) { + return false; + } else { + return pt; + } + } + + /** + * Sets the value of the pt property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPt(Boolean value) { + this.pt = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheField.java index 092ea13c3f..0203bd45cc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheField.java @@ -1,551 +1,563 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CacheField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CacheField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sharedItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SharedItems" minOccurs="0"/>
- *         <element name="fieldGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FieldGroup" minOccurs="0"/>
- *         <element name="mpMap" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="caption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="propertyName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="serverField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="uniqueList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
- *       <attribute name="formula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sqlType" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="hierarchy" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="databaseField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="mappingCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="memberPropertyField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CacheField", propOrder = { - "sharedItems", - "fieldGroup", - "mpMap", - "extLst" -}) -public class CTCacheField { - - protected CTSharedItems sharedItems; - protected CTFieldGroup fieldGroup; - protected List mpMap; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected String caption; - @XmlAttribute - protected String propertyName; - @XmlAttribute - protected Boolean serverField; - @XmlAttribute - protected Boolean uniqueList; - @XmlAttribute - protected Long numFmtId; - @XmlAttribute - protected String formula; - @XmlAttribute - protected Integer sqlType; - @XmlAttribute - protected Integer hierarchy; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long level; - @XmlAttribute - protected Boolean databaseField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long mappingCount; - @XmlAttribute - protected Boolean memberPropertyField; - - /** - * Gets the value of the sharedItems property. - * - * @return - * possible object is - * {@link CTSharedItems } - * - */ - public CTSharedItems getSharedItems() { - return sharedItems; - } - - /** - * Sets the value of the sharedItems property. - * - * @param value - * allowed object is - * {@link CTSharedItems } - * - */ - public void setSharedItems(CTSharedItems value) { - this.sharedItems = value; - } - - /** - * Gets the value of the fieldGroup property. - * - * @return - * possible object is - * {@link CTFieldGroup } - * - */ - public CTFieldGroup getFieldGroup() { - return fieldGroup; - } - - /** - * Sets the value of the fieldGroup property. - * - * @param value - * allowed object is - * {@link CTFieldGroup } - * - */ - public void setFieldGroup(CTFieldGroup value) { - this.fieldGroup = value; - } - - /** - * Gets the value of the mpMap property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mpMap property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMpMap().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getMpMap() { - if (mpMap == null) { - mpMap = new ArrayList(); - } - return this.mpMap; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - - /** - * Gets the value of the propertyName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPropertyName() { - return propertyName; - } - - /** - * Sets the value of the propertyName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPropertyName(String value) { - this.propertyName = value; - } - - /** - * Gets the value of the serverField property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isServerField() { - if (serverField == null) { - return false; - } else { - return serverField; - } - } - - /** - * Sets the value of the serverField property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setServerField(Boolean value) { - this.serverField = value; - } - - /** - * Gets the value of the uniqueList property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUniqueList() { - if (uniqueList == null) { - return true; - } else { - return uniqueList; - } - } - - /** - * Sets the value of the uniqueList property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUniqueList(Boolean value) { - this.uniqueList = value; - } - - /** - * Gets the value of the numFmtId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getNumFmtId() { - return numFmtId; - } - - /** - * Sets the value of the numFmtId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNumFmtId(Long value) { - this.numFmtId = value; - } - - /** - * Gets the value of the formula property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormula() { - return formula; - } - - /** - * Sets the value of the formula property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormula(String value) { - this.formula = value; - } - - /** - * Gets the value of the sqlType property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getSqlType() { - if (sqlType == null) { - return 0; - } else { - return sqlType; - } - } - - /** - * Sets the value of the sqlType property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setSqlType(Integer value) { - this.sqlType = value; - } - - /** - * Gets the value of the hierarchy property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getHierarchy() { - if (hierarchy == null) { - return 0; - } else { - return hierarchy; - } - } - - /** - * Sets the value of the hierarchy property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setHierarchy(Integer value) { - this.hierarchy = value; - } - - /** - * Gets the value of the level property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getLevel() { - if (level == null) { - return 0L; - } else { - return level; - } - } - - /** - * Sets the value of the level property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setLevel(Long value) { - this.level = value; - } - - /** - * Gets the value of the databaseField property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDatabaseField() { - if (databaseField == null) { - return true; - } else { - return databaseField; - } - } - - /** - * Sets the value of the databaseField property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDatabaseField(Boolean value) { - this.databaseField = value; - } - - /** - * Gets the value of the mappingCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getMappingCount() { - return mappingCount; - } - - /** - * Sets the value of the mappingCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMappingCount(Long value) { - this.mappingCount = value; - } - - /** - * Gets the value of the memberPropertyField property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMemberPropertyField() { - if (memberPropertyField == null) { - return false; - } else { - return memberPropertyField; - } - } - - /** - * Sets the value of the memberPropertyField property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMemberPropertyField(Boolean value) { - this.memberPropertyField = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CacheField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CacheField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sharedItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SharedItems" minOccurs="0"/>
+ *         <element name="fieldGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FieldGroup" minOccurs="0"/>
+ *         <element name="mpMap" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="caption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="propertyName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="serverField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="uniqueList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
+ *       <attribute name="formula" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sqlType" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="hierarchy" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="databaseField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="mappingCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="memberPropertyField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CacheField", propOrder = { + "sharedItems", + "fieldGroup", + "mpMap", + "extLst" +}) +public class CTCacheField implements Child +{ + + protected CTSharedItems sharedItems; + protected CTFieldGroup fieldGroup; + protected List mpMap; + protected CTExtensionList extLst; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "caption") + protected String caption; + @XmlAttribute(name = "propertyName") + protected String propertyName; + @XmlAttribute(name = "serverField") + protected Boolean serverField; + @XmlAttribute(name = "uniqueList") + protected Boolean uniqueList; + @XmlAttribute(name = "numFmtId") + protected Long numFmtId; + @XmlAttribute(name = "formula") + protected String formula; + @XmlAttribute(name = "sqlType") + protected Integer sqlType; + @XmlAttribute(name = "hierarchy") + protected Integer hierarchy; + @XmlAttribute(name = "level") + @XmlSchemaType(name = "unsignedInt") + protected Long level; + @XmlAttribute(name = "databaseField") + protected Boolean databaseField; + @XmlAttribute(name = "mappingCount") + @XmlSchemaType(name = "unsignedInt") + protected Long mappingCount; + @XmlAttribute(name = "memberPropertyField") + protected Boolean memberPropertyField; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sharedItems property. + * + * @return + * possible object is + * {@link CTSharedItems } + * + */ + public CTSharedItems getSharedItems() { + return sharedItems; + } + + /** + * Sets the value of the sharedItems property. + * + * @param value + * allowed object is + * {@link CTSharedItems } + * + */ + public void setSharedItems(CTSharedItems value) { + this.sharedItems = value; + } + + /** + * Gets the value of the fieldGroup property. + * + * @return + * possible object is + * {@link CTFieldGroup } + * + */ + public CTFieldGroup getFieldGroup() { + return fieldGroup; + } + + /** + * Sets the value of the fieldGroup property. + * + * @param value + * allowed object is + * {@link CTFieldGroup } + * + */ + public void setFieldGroup(CTFieldGroup value) { + this.fieldGroup = value; + } + + /** + * Gets the value of the mpMap property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mpMap property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMpMap().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getMpMap() { + if (mpMap == null) { + mpMap = new ArrayList(); + } + return this.mpMap; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the value of the propertyName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPropertyName() { + return propertyName; + } + + /** + * Sets the value of the propertyName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPropertyName(String value) { + this.propertyName = value; + } + + /** + * Gets the value of the serverField property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isServerField() { + if (serverField == null) { + return false; + } else { + return serverField; + } + } + + /** + * Sets the value of the serverField property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setServerField(Boolean value) { + this.serverField = value; + } + + /** + * Gets the value of the uniqueList property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUniqueList() { + if (uniqueList == null) { + return true; + } else { + return uniqueList; + } + } + + /** + * Sets the value of the uniqueList property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUniqueList(Boolean value) { + this.uniqueList = value; + } + + /** + * Gets the value of the numFmtId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getNumFmtId() { + return numFmtId; + } + + /** + * Sets the value of the numFmtId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNumFmtId(Long value) { + this.numFmtId = value; + } + + /** + * Gets the value of the formula property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormula() { + return formula; + } + + /** + * Sets the value of the formula property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormula(String value) { + this.formula = value; + } + + /** + * Gets the value of the sqlType property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getSqlType() { + if (sqlType == null) { + return 0; + } else { + return sqlType; + } + } + + /** + * Sets the value of the sqlType property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSqlType(Integer value) { + this.sqlType = value; + } + + /** + * Gets the value of the hierarchy property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getHierarchy() { + if (hierarchy == null) { + return 0; + } else { + return hierarchy; + } + } + + /** + * Sets the value of the hierarchy property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHierarchy(Integer value) { + this.hierarchy = value; + } + + /** + * Gets the value of the level property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getLevel() { + if (level == null) { + return 0L; + } else { + return level; + } + } + + /** + * Sets the value of the level property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLevel(Long value) { + this.level = value; + } + + /** + * Gets the value of the databaseField property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDatabaseField() { + if (databaseField == null) { + return true; + } else { + return databaseField; + } + } + + /** + * Sets the value of the databaseField property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDatabaseField(Boolean value) { + this.databaseField = value; + } + + /** + * Gets the value of the mappingCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMappingCount() { + return mappingCount; + } + + /** + * Sets the value of the mappingCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMappingCount(Long value) { + this.mappingCount = value; + } + + /** + * Gets the value of the memberPropertyField property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMemberPropertyField() { + if (memberPropertyField == null) { + return false; + } else { + return memberPropertyField; + } + } + + /** + * Sets the value of the memberPropertyField property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMemberPropertyField(Boolean value) { + this.memberPropertyField = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheFields.java index 4d44f598f3..5630fb3e01 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheFields.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CacheFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CacheFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cacheField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheField" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CacheFields", propOrder = { - "cacheField" -}) -public class CTCacheFields { - - protected List cacheField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the cacheField property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cacheField property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCacheField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCacheField } - * - * - */ - public List getCacheField() { - if (cacheField == null) { - cacheField = new ArrayList(); - } - return this.cacheField; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CacheFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CacheFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cacheField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheField" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CacheFields", propOrder = { + "cacheField" +}) +public class CTCacheFields implements Child +{ + + protected List cacheField; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cacheField property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cacheField property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCacheField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCacheField } + * + * + */ + public List getCacheField() { + if (cacheField == null) { + cacheField = new ArrayList(); + } + return this.cacheField; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchies.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchies.java index 27a4bd0dfd..1bb1af1e0a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchies.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchies.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CacheHierarchies complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CacheHierarchies">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cacheHierarchy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheHierarchy" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CacheHierarchies", propOrder = { - "cacheHierarchy" -}) -public class CTCacheHierarchies { - - protected List cacheHierarchy; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the cacheHierarchy property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cacheHierarchy property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCacheHierarchy().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCacheHierarchy } - * - * - */ - public List getCacheHierarchy() { - if (cacheHierarchy == null) { - cacheHierarchy = new ArrayList(); - } - return this.cacheHierarchy; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CacheHierarchies complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CacheHierarchies">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cacheHierarchy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheHierarchy" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CacheHierarchies", propOrder = { + "cacheHierarchy" +}) +public class CTCacheHierarchies implements Child +{ + + protected List cacheHierarchy; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cacheHierarchy property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cacheHierarchy property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCacheHierarchy().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCacheHierarchy } + * + * + */ + public List getCacheHierarchy() { + if (cacheHierarchy == null) { + cacheHierarchy = new ArrayList(); + } + return this.cacheHierarchy; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchy.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchy.java index 4dcf0f6f5e..a16e8c62dc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchy.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheHierarchy.java @@ -1,761 +1,773 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CacheHierarchy complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CacheHierarchy">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="fieldsUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FieldsUsage" minOccurs="0"/>
- *         <element name="groupLevels" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupLevels" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="caption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="measure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="set" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="parentSet" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="iconSet" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="attribute" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="time" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="keyAttribute" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="defaultMemberUniqueName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="allUniqueName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="allCaption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="dimensionUniqueName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="displayFolder" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="measureGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="measures" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="count" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="oneField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="memberValueDatatype" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
- *       <attribute name="unbalanced" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="unbalancedGroup" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CacheHierarchy", propOrder = { - "fieldsUsage", - "groupLevels", - "extLst" -}) -public class CTCacheHierarchy { - - protected CTFieldsUsage fieldsUsage; - protected CTGroupLevels groupLevels; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String uniqueName; - @XmlAttribute - protected String caption; - @XmlAttribute - protected Boolean measure; - @XmlAttribute - protected Boolean set; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long parentSet; - @XmlAttribute - protected Integer iconSet; - @XmlAttribute - protected Boolean attribute; - @XmlAttribute - protected Boolean time; - @XmlAttribute - protected Boolean keyAttribute; - @XmlAttribute - protected String defaultMemberUniqueName; - @XmlAttribute - protected String allUniqueName; - @XmlAttribute - protected String allCaption; - @XmlAttribute - protected String dimensionUniqueName; - @XmlAttribute - protected String displayFolder; - @XmlAttribute - protected String measureGroup; - @XmlAttribute - protected Boolean measures; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long count; - @XmlAttribute - protected Boolean oneField; - @XmlAttribute - @XmlSchemaType(name = "unsignedShort") - protected Integer memberValueDatatype; - @XmlAttribute - protected Boolean unbalanced; - @XmlAttribute - protected Boolean unbalancedGroup; - @XmlAttribute - protected Boolean hidden; - - /** - * Gets the value of the fieldsUsage property. - * - * @return - * possible object is - * {@link CTFieldsUsage } - * - */ - public CTFieldsUsage getFieldsUsage() { - return fieldsUsage; - } - - /** - * Sets the value of the fieldsUsage property. - * - * @param value - * allowed object is - * {@link CTFieldsUsage } - * - */ - public void setFieldsUsage(CTFieldsUsage value) { - this.fieldsUsage = value; - } - - /** - * Gets the value of the groupLevels property. - * - * @return - * possible object is - * {@link CTGroupLevels } - * - */ - public CTGroupLevels getGroupLevels() { - return groupLevels; - } - - /** - * Sets the value of the groupLevels property. - * - * @param value - * allowed object is - * {@link CTGroupLevels } - * - */ - public void setGroupLevels(CTGroupLevels value) { - this.groupLevels = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - - /** - * Gets the value of the measure property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMeasure() { - if (measure == null) { - return false; - } else { - return measure; - } - } - - /** - * Sets the value of the measure property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMeasure(Boolean value) { - this.measure = value; - } - - /** - * Gets the value of the set property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSet() { - if (set == null) { - return false; - } else { - return set; - } - } - - /** - * Sets the value of the set property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSet(Boolean value) { - this.set = value; - } - - /** - * Gets the value of the parentSet property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getParentSet() { - return parentSet; - } - - /** - * Sets the value of the parentSet property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setParentSet(Long value) { - this.parentSet = value; - } - - /** - * Gets the value of the iconSet property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getIconSet() { - if (iconSet == null) { - return 0; - } else { - return iconSet; - } - } - - /** - * Sets the value of the iconSet property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setIconSet(Integer value) { - this.iconSet = value; - } - - /** - * Gets the value of the attribute property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAttribute() { - if (attribute == null) { - return false; - } else { - return attribute; - } - } - - /** - * Sets the value of the attribute property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAttribute(Boolean value) { - this.attribute = value; - } - - /** - * Gets the value of the time property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTime() { - if (time == null) { - return false; - } else { - return time; - } - } - - /** - * Sets the value of the time property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTime(Boolean value) { - this.time = value; - } - - /** - * Gets the value of the keyAttribute property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isKeyAttribute() { - if (keyAttribute == null) { - return false; - } else { - return keyAttribute; - } - } - - /** - * Sets the value of the keyAttribute property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setKeyAttribute(Boolean value) { - this.keyAttribute = value; - } - - /** - * Gets the value of the defaultMemberUniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDefaultMemberUniqueName() { - return defaultMemberUniqueName; - } - - /** - * Sets the value of the defaultMemberUniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDefaultMemberUniqueName(String value) { - this.defaultMemberUniqueName = value; - } - - /** - * Gets the value of the allUniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAllUniqueName() { - return allUniqueName; - } - - /** - * Sets the value of the allUniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAllUniqueName(String value) { - this.allUniqueName = value; - } - - /** - * Gets the value of the allCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAllCaption() { - return allCaption; - } - - /** - * Sets the value of the allCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAllCaption(String value) { - this.allCaption = value; - } - - /** - * Gets the value of the dimensionUniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDimensionUniqueName() { - return dimensionUniqueName; - } - - /** - * Sets the value of the dimensionUniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDimensionUniqueName(String value) { - this.dimensionUniqueName = value; - } - - /** - * Gets the value of the displayFolder property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDisplayFolder() { - return displayFolder; - } - - /** - * Sets the value of the displayFolder property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDisplayFolder(String value) { - this.displayFolder = value; - } - - /** - * Gets the value of the measureGroup property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMeasureGroup() { - return measureGroup; - } - - /** - * Sets the value of the measureGroup property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMeasureGroup(String value) { - this.measureGroup = value; - } - - /** - * Gets the value of the measures property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMeasures() { - if (measures == null) { - return false; - } else { - return measures; - } - } - - /** - * Sets the value of the measures property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMeasures(Boolean value) { - this.measures = value; - } - - /** - * Gets the value of the count property. - * - */ - public long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - */ - public void setCount(long value) { - this.count = value; - } - - /** - * Gets the value of the oneField property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOneField() { - if (oneField == null) { - return false; - } else { - return oneField; - } - } - - /** - * Sets the value of the oneField property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOneField(Boolean value) { - this.oneField = value; - } - - /** - * Gets the value of the memberValueDatatype property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getMemberValueDatatype() { - return memberValueDatatype; - } - - /** - * Sets the value of the memberValueDatatype property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setMemberValueDatatype(Integer value) { - this.memberValueDatatype = value; - } - - /** - * Gets the value of the unbalanced property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isUnbalanced() { - return unbalanced; - } - - /** - * Sets the value of the unbalanced property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUnbalanced(Boolean value) { - this.unbalanced = value; - } - - /** - * Gets the value of the unbalancedGroup property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isUnbalancedGroup() { - return unbalancedGroup; - } - - /** - * Sets the value of the unbalancedGroup property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUnbalancedGroup(Boolean value) { - this.unbalancedGroup = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHidden() { - if (hidden == null) { - return false; - } else { - return hidden; - } - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CacheHierarchy complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CacheHierarchy">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="fieldsUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FieldsUsage" minOccurs="0"/>
+ *         <element name="groupLevels" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupLevels" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="caption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="measure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="set" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="parentSet" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="iconSet" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="attribute" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="time" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="keyAttribute" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="defaultMemberUniqueName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="allUniqueName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="allCaption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="dimensionUniqueName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="displayFolder" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="measureGroup" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="measures" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="count" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="oneField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="memberValueDatatype" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="unbalanced" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="unbalancedGroup" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CacheHierarchy", propOrder = { + "fieldsUsage", + "groupLevels", + "extLst" +}) +public class CTCacheHierarchy implements Child +{ + + protected CTFieldsUsage fieldsUsage; + protected CTGroupLevels groupLevels; + protected CTExtensionList extLst; + @XmlAttribute(name = "uniqueName", required = true) + protected String uniqueName; + @XmlAttribute(name = "caption") + protected String caption; + @XmlAttribute(name = "measure") + protected Boolean measure; + @XmlAttribute(name = "set") + protected Boolean set; + @XmlAttribute(name = "parentSet") + @XmlSchemaType(name = "unsignedInt") + protected Long parentSet; + @XmlAttribute(name = "iconSet") + protected Integer iconSet; + @XmlAttribute(name = "attribute") + protected Boolean attribute; + @XmlAttribute(name = "time") + protected Boolean time; + @XmlAttribute(name = "keyAttribute") + protected Boolean keyAttribute; + @XmlAttribute(name = "defaultMemberUniqueName") + protected String defaultMemberUniqueName; + @XmlAttribute(name = "allUniqueName") + protected String allUniqueName; + @XmlAttribute(name = "allCaption") + protected String allCaption; + @XmlAttribute(name = "dimensionUniqueName") + protected String dimensionUniqueName; + @XmlAttribute(name = "displayFolder") + protected String displayFolder; + @XmlAttribute(name = "measureGroup") + protected String measureGroup; + @XmlAttribute(name = "measures") + protected Boolean measures; + @XmlAttribute(name = "count", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long count; + @XmlAttribute(name = "oneField") + protected Boolean oneField; + @XmlAttribute(name = "memberValueDatatype") + @XmlSchemaType(name = "unsignedShort") + protected Integer memberValueDatatype; + @XmlAttribute(name = "unbalanced") + protected Boolean unbalanced; + @XmlAttribute(name = "unbalancedGroup") + protected Boolean unbalancedGroup; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fieldsUsage property. + * + * @return + * possible object is + * {@link CTFieldsUsage } + * + */ + public CTFieldsUsage getFieldsUsage() { + return fieldsUsage; + } + + /** + * Sets the value of the fieldsUsage property. + * + * @param value + * allowed object is + * {@link CTFieldsUsage } + * + */ + public void setFieldsUsage(CTFieldsUsage value) { + this.fieldsUsage = value; + } + + /** + * Gets the value of the groupLevels property. + * + * @return + * possible object is + * {@link CTGroupLevels } + * + */ + public CTGroupLevels getGroupLevels() { + return groupLevels; + } + + /** + * Sets the value of the groupLevels property. + * + * @param value + * allowed object is + * {@link CTGroupLevels } + * + */ + public void setGroupLevels(CTGroupLevels value) { + this.groupLevels = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the value of the measure property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMeasure() { + if (measure == null) { + return false; + } else { + return measure; + } + } + + /** + * Sets the value of the measure property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMeasure(Boolean value) { + this.measure = value; + } + + /** + * Gets the value of the set property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSet() { + if (set == null) { + return false; + } else { + return set; + } + } + + /** + * Sets the value of the set property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSet(Boolean value) { + this.set = value; + } + + /** + * Gets the value of the parentSet property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getParentSet() { + return parentSet; + } + + /** + * Sets the value of the parentSet property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setParentSet(Long value) { + this.parentSet = value; + } + + /** + * Gets the value of the iconSet property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getIconSet() { + if (iconSet == null) { + return 0; + } else { + return iconSet; + } + } + + /** + * Sets the value of the iconSet property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIconSet(Integer value) { + this.iconSet = value; + } + + /** + * Gets the value of the attribute property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAttribute() { + if (attribute == null) { + return false; + } else { + return attribute; + } + } + + /** + * Sets the value of the attribute property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAttribute(Boolean value) { + this.attribute = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTime() { + if (time == null) { + return false; + } else { + return time; + } + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTime(Boolean value) { + this.time = value; + } + + /** + * Gets the value of the keyAttribute property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isKeyAttribute() { + if (keyAttribute == null) { + return false; + } else { + return keyAttribute; + } + } + + /** + * Sets the value of the keyAttribute property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setKeyAttribute(Boolean value) { + this.keyAttribute = value; + } + + /** + * Gets the value of the defaultMemberUniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDefaultMemberUniqueName() { + return defaultMemberUniqueName; + } + + /** + * Sets the value of the defaultMemberUniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDefaultMemberUniqueName(String value) { + this.defaultMemberUniqueName = value; + } + + /** + * Gets the value of the allUniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAllUniqueName() { + return allUniqueName; + } + + /** + * Sets the value of the allUniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAllUniqueName(String value) { + this.allUniqueName = value; + } + + /** + * Gets the value of the allCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAllCaption() { + return allCaption; + } + + /** + * Sets the value of the allCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAllCaption(String value) { + this.allCaption = value; + } + + /** + * Gets the value of the dimensionUniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDimensionUniqueName() { + return dimensionUniqueName; + } + + /** + * Sets the value of the dimensionUniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDimensionUniqueName(String value) { + this.dimensionUniqueName = value; + } + + /** + * Gets the value of the displayFolder property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayFolder() { + return displayFolder; + } + + /** + * Sets the value of the displayFolder property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayFolder(String value) { + this.displayFolder = value; + } + + /** + * Gets the value of the measureGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMeasureGroup() { + return measureGroup; + } + + /** + * Sets the value of the measureGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMeasureGroup(String value) { + this.measureGroup = value; + } + + /** + * Gets the value of the measures property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMeasures() { + if (measures == null) { + return false; + } else { + return measures; + } + } + + /** + * Sets the value of the measures property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMeasures(Boolean value) { + this.measures = value; + } + + /** + * Gets the value of the count property. + * + */ + public long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + */ + public void setCount(long value) { + this.count = value; + } + + /** + * Gets the value of the oneField property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOneField() { + if (oneField == null) { + return false; + } else { + return oneField; + } + } + + /** + * Sets the value of the oneField property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOneField(Boolean value) { + this.oneField = value; + } + + /** + * Gets the value of the memberValueDatatype property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMemberValueDatatype() { + return memberValueDatatype; + } + + /** + * Sets the value of the memberValueDatatype property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMemberValueDatatype(Integer value) { + this.memberValueDatatype = value; + } + + /** + * Gets the value of the unbalanced property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isUnbalanced() { + return unbalanced; + } + + /** + * Sets the value of the unbalanced property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUnbalanced(Boolean value) { + this.unbalanced = value; + } + + /** + * Gets the value of the unbalancedGroup property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isUnbalancedGroup() { + return unbalancedGroup; + } + + /** + * Sets the value of the unbalancedGroup property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUnbalancedGroup(Boolean value) { + this.unbalancedGroup = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHidden() { + if (hidden == null) { + return false; + } else { + return hidden; + } + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheSource.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheSource.java index 15ef85354a..e48f452f5e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCacheSource.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCacheSource.java @@ -1,195 +1,207 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CacheSource complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CacheSource">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice minOccurs="0">
- *         <element name="worksheetSource" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WorksheetSource"/>
- *         <element name="consolidation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Consolidation"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </choice>
- *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SourceType" />
- *       <attribute name="connectionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CacheSource", propOrder = { - "worksheetSource", - "consolidation", - "extLst" -}) -public class CTCacheSource { - - protected CTWorksheetSource worksheetSource; - protected CTConsolidation consolidation; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected STSourceType type; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long connectionId; - - /** - * Gets the value of the worksheetSource property. - * - * @return - * possible object is - * {@link CTWorksheetSource } - * - */ - public CTWorksheetSource getWorksheetSource() { - return worksheetSource; - } - - /** - * Sets the value of the worksheetSource property. - * - * @param value - * allowed object is - * {@link CTWorksheetSource } - * - */ - public void setWorksheetSource(CTWorksheetSource value) { - this.worksheetSource = value; - } - - /** - * Gets the value of the consolidation property. - * - * @return - * possible object is - * {@link CTConsolidation } - * - */ - public CTConsolidation getConsolidation() { - return consolidation; - } - - /** - * Sets the value of the consolidation property. - * - * @param value - * allowed object is - * {@link CTConsolidation } - * - */ - public void setConsolidation(CTConsolidation value) { - this.consolidation = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STSourceType } - * - */ - public STSourceType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STSourceType } - * - */ - public void setType(STSourceType value) { - this.type = value; - } - - /** - * Gets the value of the connectionId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getConnectionId() { - if (connectionId == null) { - return 0L; - } else { - return connectionId; - } - } - - /** - * Sets the value of the connectionId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setConnectionId(Long value) { - this.connectionId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CacheSource complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CacheSource">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice minOccurs="0">
+ *         <element name="worksheetSource" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WorksheetSource"/>
+ *         <element name="consolidation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Consolidation"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </choice>
+ *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SourceType" />
+ *       <attribute name="connectionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CacheSource", propOrder = { + "worksheetSource", + "consolidation", + "extLst" +}) +public class CTCacheSource implements Child +{ + + protected CTWorksheetSource worksheetSource; + protected CTConsolidation consolidation; + protected CTExtensionList extLst; + @XmlAttribute(name = "type", required = true) + protected STSourceType type; + @XmlAttribute(name = "connectionId") + @XmlSchemaType(name = "unsignedInt") + protected Long connectionId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the worksheetSource property. + * + * @return + * possible object is + * {@link CTWorksheetSource } + * + */ + public CTWorksheetSource getWorksheetSource() { + return worksheetSource; + } + + /** + * Sets the value of the worksheetSource property. + * + * @param value + * allowed object is + * {@link CTWorksheetSource } + * + */ + public void setWorksheetSource(CTWorksheetSource value) { + this.worksheetSource = value; + } + + /** + * Gets the value of the consolidation property. + * + * @return + * possible object is + * {@link CTConsolidation } + * + */ + public CTConsolidation getConsolidation() { + return consolidation; + } + + /** + * Sets the value of the consolidation property. + * + * @param value + * allowed object is + * {@link CTConsolidation } + * + */ + public void setConsolidation(CTConsolidation value) { + this.consolidation = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STSourceType } + * + */ + public STSourceType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STSourceType } + * + */ + public void setType(STSourceType value) { + this.type = value; + } + + /** + * Gets the value of the connectionId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getConnectionId() { + if (connectionId == null) { + return 0L; + } else { + return connectionId; + } + } + + /** + * Sets the value of the connectionId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setConnectionId(Long value) { + this.connectionId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCalcCell.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCalcCell.java index 2e4503cdc6..4d9423f387 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCalcCell.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCalcCell.java @@ -1,233 +1,272 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CalcCell complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CalcCell">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="l" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="t" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="a" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CalcCell") -public class CTCalcCell { - - @XmlAttribute(required = true) - protected String r; - @XmlAttribute - protected Integer i; - @XmlAttribute - protected Boolean s; - @XmlAttribute - protected Boolean l; - @XmlAttribute - protected Boolean t; - @XmlAttribute - protected Boolean a; - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - - /** - * Gets the value of the i property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getI() { - if (i == null) { - return 0; - } else { - return i; - } - } - - /** - * Sets the value of the i property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setI(Integer value) { - this.i = value; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isS() { - if (s == null) { - return false; - } else { - return s; - } - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setS(Boolean value) { - this.s = value; - } - - /** - * Gets the value of the l property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isL() { - if (l == null) { - return false; - } else { - return l; - } - } - - /** - * Sets the value of the l property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setL(Boolean value) { - this.l = value; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isT() { - if (t == null) { - return false; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setT(Boolean value) { - this.t = value; - } - - /** - * Gets the value of the a property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isA() { - if (a == null) { - return false; - } else { - return a; - } - } - - /** - * Sets the value of the a property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setA(Boolean value) { - this.a = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CalcCell complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CalcCell">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="l" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="t" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="a" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CalcCell") +public class CTCalcCell implements Child +{ + + @XmlAttribute(name = "r") + protected String r; + @XmlAttribute(name = "ref") + protected String ref; + @XmlAttribute(name = "i") + protected Integer i; + @XmlAttribute(name = "s") + protected Boolean s; + @XmlAttribute(name = "l") + protected Boolean l; + @XmlAttribute(name = "t") + protected Boolean t; + @XmlAttribute(name = "a") + protected Boolean a; + @XmlTransient + private Object parent; + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the i property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getI() { + if (i == null) { + return 0; + } else { + return i; + } + } + + /** + * Sets the value of the i property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setI(Integer value) { + this.i = value; + } + + /** + * Gets the value of the s property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isS() { + if (s == null) { + return false; + } else { + return s; + } + } + + /** + * Sets the value of the s property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setS(Boolean value) { + this.s = value; + } + + /** + * Gets the value of the l property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isL() { + if (l == null) { + return false; + } else { + return l; + } + } + + /** + * Sets the value of the l property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setL(Boolean value) { + this.l = value; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isT() { + if (t == null) { + return false; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setT(Boolean value) { + this.t = value; + } + + /** + * Gets the value of the a property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isA() { + if (a == null) { + return false; + } else { + return a; + } + } + + /** + * Sets the value of the a property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setA(Boolean value) { + this.a = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCalcChain.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCalcChain.java index 3a6ac2e084..ea4660b1e1 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCalcChain.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCalcChain.java @@ -1,118 +1,130 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CalcChain complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CalcChain">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalcCell" maxOccurs="unbounded"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CalcChain", propOrder = { - "c", - "extLst" -}) -@XmlRootElement(name = "calcChain") -public class CTCalcChain { - - @XmlElement(required = true) - protected List c; - protected CTExtensionList extLst; - - /** - * Gets the value of the c property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the c property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getC().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCalcCell } - * - * - */ - public List getC() { - if (c == null) { - c = new ArrayList(); - } - return this.c; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CalcChain complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CalcChain">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalcCell" maxOccurs="unbounded"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CalcChain", propOrder = { + "c", + "extLst" +}) +@XmlRootElement(name = "calcChain") +public class CTCalcChain implements Child +{ + + @XmlElement(required = true) + protected List c; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the c property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the c property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getC().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCalcCell } + * + * + */ + public List getC() { + if (c == null) { + c = new ArrayList(); + } + return this.c; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCalcPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCalcPr.java index 361b5b1a94..beeeaeb016 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCalcPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCalcPr.java @@ -1,446 +1,458 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CalcPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CalcPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="calcId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="calcMode" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CalcMode" default="auto" />
- *       <attribute name="fullCalcOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="refMode" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RefMode" default="A1" />
- *       <attribute name="iterate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="iterateCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
- *       <attribute name="iterateDelta" type="{http://www.w3.org/2001/XMLSchema}double" default="0.001" />
- *       <attribute name="fullPrecision" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="calcCompleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="calcOnSave" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="concurrentCalc" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="concurrentManualCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="forceFullCalc" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CalcPr") -public class CTCalcPr { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long calcId; - @XmlAttribute - protected STCalcMode calcMode; - @XmlAttribute - protected Boolean fullCalcOnLoad; - @XmlAttribute - protected STRefMode refMode; - @XmlAttribute - protected Boolean iterate; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long iterateCount; - @XmlAttribute - protected Double iterateDelta; - @XmlAttribute - protected Boolean fullPrecision; - @XmlAttribute - protected Boolean calcCompleted; - @XmlAttribute - protected Boolean calcOnSave; - @XmlAttribute - protected Boolean concurrentCalc; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long concurrentManualCount; - @XmlAttribute - protected Boolean forceFullCalc; - - /** - * Gets the value of the calcId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCalcId() { - return calcId; - } - - /** - * Sets the value of the calcId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCalcId(Long value) { - this.calcId = value; - } - - /** - * Gets the value of the calcMode property. - * - * @return - * possible object is - * {@link STCalcMode } - * - */ - public STCalcMode getCalcMode() { - if (calcMode == null) { - return STCalcMode.AUTO; - } else { - return calcMode; - } - } - - /** - * Sets the value of the calcMode property. - * - * @param value - * allowed object is - * {@link STCalcMode } - * - */ - public void setCalcMode(STCalcMode value) { - this.calcMode = value; - } - - /** - * Gets the value of the fullCalcOnLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFullCalcOnLoad() { - if (fullCalcOnLoad == null) { - return false; - } else { - return fullCalcOnLoad; - } - } - - /** - * Sets the value of the fullCalcOnLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFullCalcOnLoad(Boolean value) { - this.fullCalcOnLoad = value; - } - - /** - * Gets the value of the refMode property. - * - * @return - * possible object is - * {@link STRefMode } - * - */ - public STRefMode getRefMode() { - if (refMode == null) { - return STRefMode.A_1; - } else { - return refMode; - } - } - - /** - * Sets the value of the refMode property. - * - * @param value - * allowed object is - * {@link STRefMode } - * - */ - public void setRefMode(STRefMode value) { - this.refMode = value; - } - - /** - * Gets the value of the iterate property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isIterate() { - if (iterate == null) { - return false; - } else { - return iterate; - } - } - - /** - * Sets the value of the iterate property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIterate(Boolean value) { - this.iterate = value; - } - - /** - * Gets the value of the iterateCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getIterateCount() { - if (iterateCount == null) { - return 100L; - } else { - return iterateCount; - } - } - - /** - * Sets the value of the iterateCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIterateCount(Long value) { - this.iterateCount = value; - } - - /** - * Gets the value of the iterateDelta property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getIterateDelta() { - if (iterateDelta == null) { - return 0.0010D; - } else { - return iterateDelta; - } - } - - /** - * Sets the value of the iterateDelta property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setIterateDelta(Double value) { - this.iterateDelta = value; - } - - /** - * Gets the value of the fullPrecision property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFullPrecision() { - if (fullPrecision == null) { - return true; - } else { - return fullPrecision; - } - } - - /** - * Sets the value of the fullPrecision property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFullPrecision(Boolean value) { - this.fullPrecision = value; - } - - /** - * Gets the value of the calcCompleted property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCalcCompleted() { - if (calcCompleted == null) { - return true; - } else { - return calcCompleted; - } - } - - /** - * Sets the value of the calcCompleted property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCalcCompleted(Boolean value) { - this.calcCompleted = value; - } - - /** - * Gets the value of the calcOnSave property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCalcOnSave() { - if (calcOnSave == null) { - return true; - } else { - return calcOnSave; - } - } - - /** - * Sets the value of the calcOnSave property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCalcOnSave(Boolean value) { - this.calcOnSave = value; - } - - /** - * Gets the value of the concurrentCalc property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isConcurrentCalc() { - if (concurrentCalc == null) { - return true; - } else { - return concurrentCalc; - } - } - - /** - * Sets the value of the concurrentCalc property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setConcurrentCalc(Boolean value) { - this.concurrentCalc = value; - } - - /** - * Gets the value of the concurrentManualCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getConcurrentManualCount() { - return concurrentManualCount; - } - - /** - * Sets the value of the concurrentManualCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setConcurrentManualCount(Long value) { - this.concurrentManualCount = value; - } - - /** - * Gets the value of the forceFullCalc property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isForceFullCalc() { - return forceFullCalc; - } - - /** - * Sets the value of the forceFullCalc property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setForceFullCalc(Boolean value) { - this.forceFullCalc = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CalcPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CalcPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="calcId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="calcMode" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CalcMode" default="auto" />
+ *       <attribute name="fullCalcOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="refMode" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RefMode" default="A1" />
+ *       <attribute name="iterate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="iterateCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
+ *       <attribute name="iterateDelta" type="{http://www.w3.org/2001/XMLSchema}double" default="0.001" />
+ *       <attribute name="fullPrecision" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="calcCompleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="calcOnSave" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="concurrentCalc" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="concurrentManualCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="forceFullCalc" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CalcPr") +public class CTCalcPr implements Child +{ + + @XmlAttribute(name = "calcId") + @XmlSchemaType(name = "unsignedInt") + protected Long calcId; + @XmlAttribute(name = "calcMode") + protected STCalcMode calcMode; + @XmlAttribute(name = "fullCalcOnLoad") + protected Boolean fullCalcOnLoad; + @XmlAttribute(name = "refMode") + protected STRefMode refMode; + @XmlAttribute(name = "iterate") + protected Boolean iterate; + @XmlAttribute(name = "iterateCount") + @XmlSchemaType(name = "unsignedInt") + protected Long iterateCount; + @XmlAttribute(name = "iterateDelta") + protected Double iterateDelta; + @XmlAttribute(name = "fullPrecision") + protected Boolean fullPrecision; + @XmlAttribute(name = "calcCompleted") + protected Boolean calcCompleted; + @XmlAttribute(name = "calcOnSave") + protected Boolean calcOnSave; + @XmlAttribute(name = "concurrentCalc") + protected Boolean concurrentCalc; + @XmlAttribute(name = "concurrentManualCount") + @XmlSchemaType(name = "unsignedInt") + protected Long concurrentManualCount; + @XmlAttribute(name = "forceFullCalc") + protected Boolean forceFullCalc; + @XmlTransient + private Object parent; + + /** + * Gets the value of the calcId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCalcId() { + return calcId; + } + + /** + * Sets the value of the calcId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCalcId(Long value) { + this.calcId = value; + } + + /** + * Gets the value of the calcMode property. + * + * @return + * possible object is + * {@link STCalcMode } + * + */ + public STCalcMode getCalcMode() { + if (calcMode == null) { + return STCalcMode.AUTO; + } else { + return calcMode; + } + } + + /** + * Sets the value of the calcMode property. + * + * @param value + * allowed object is + * {@link STCalcMode } + * + */ + public void setCalcMode(STCalcMode value) { + this.calcMode = value; + } + + /** + * Gets the value of the fullCalcOnLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFullCalcOnLoad() { + if (fullCalcOnLoad == null) { + return false; + } else { + return fullCalcOnLoad; + } + } + + /** + * Sets the value of the fullCalcOnLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFullCalcOnLoad(Boolean value) { + this.fullCalcOnLoad = value; + } + + /** + * Gets the value of the refMode property. + * + * @return + * possible object is + * {@link STRefMode } + * + */ + public STRefMode getRefMode() { + if (refMode == null) { + return STRefMode.A_1; + } else { + return refMode; + } + } + + /** + * Sets the value of the refMode property. + * + * @param value + * allowed object is + * {@link STRefMode } + * + */ + public void setRefMode(STRefMode value) { + this.refMode = value; + } + + /** + * Gets the value of the iterate property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIterate() { + if (iterate == null) { + return false; + } else { + return iterate; + } + } + + /** + * Sets the value of the iterate property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIterate(Boolean value) { + this.iterate = value; + } + + /** + * Gets the value of the iterateCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getIterateCount() { + if (iterateCount == null) { + return 100L; + } else { + return iterateCount; + } + } + + /** + * Sets the value of the iterateCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIterateCount(Long value) { + this.iterateCount = value; + } + + /** + * Gets the value of the iterateDelta property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getIterateDelta() { + if (iterateDelta == null) { + return 0.0010D; + } else { + return iterateDelta; + } + } + + /** + * Sets the value of the iterateDelta property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setIterateDelta(Double value) { + this.iterateDelta = value; + } + + /** + * Gets the value of the fullPrecision property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFullPrecision() { + if (fullPrecision == null) { + return true; + } else { + return fullPrecision; + } + } + + /** + * Sets the value of the fullPrecision property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFullPrecision(Boolean value) { + this.fullPrecision = value; + } + + /** + * Gets the value of the calcCompleted property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCalcCompleted() { + if (calcCompleted == null) { + return true; + } else { + return calcCompleted; + } + } + + /** + * Sets the value of the calcCompleted property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCalcCompleted(Boolean value) { + this.calcCompleted = value; + } + + /** + * Gets the value of the calcOnSave property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCalcOnSave() { + if (calcOnSave == null) { + return true; + } else { + return calcOnSave; + } + } + + /** + * Sets the value of the calcOnSave property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCalcOnSave(Boolean value) { + this.calcOnSave = value; + } + + /** + * Gets the value of the concurrentCalc property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isConcurrentCalc() { + if (concurrentCalc == null) { + return true; + } else { + return concurrentCalc; + } + } + + /** + * Sets the value of the concurrentCalc property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setConcurrentCalc(Boolean value) { + this.concurrentCalc = value; + } + + /** + * Gets the value of the concurrentManualCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getConcurrentManualCount() { + return concurrentManualCount; + } + + /** + * Sets the value of the concurrentManualCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setConcurrentManualCount(Long value) { + this.concurrentManualCount = value; + } + + /** + * Gets the value of the forceFullCalc property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isForceFullCalc() { + return forceFullCalc; + } + + /** + * Sets the value of the forceFullCalc property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setForceFullCalc(Boolean value) { + this.forceFullCalc = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItem.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItem.java index 29b3387bc3..57797256a5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItem.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItem.java @@ -1,166 +1,178 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CalculatedItem complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CalculatedItem">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="field" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="formula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CalculatedItem", propOrder = { - "pivotArea", - "extLst" -}) -public class CTCalculatedItem { - - @XmlElement(required = true) - protected CTPivotArea pivotArea; - protected CTExtensionList extLst; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long field; - @XmlAttribute - protected String formula; - - /** - * Gets the value of the pivotArea property. - * - * @return - * possible object is - * {@link CTPivotArea } - * - */ - public CTPivotArea getPivotArea() { - return pivotArea; - } - - /** - * Sets the value of the pivotArea property. - * - * @param value - * allowed object is - * {@link CTPivotArea } - * - */ - public void setPivotArea(CTPivotArea value) { - this.pivotArea = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the field property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getField() { - return field; - } - - /** - * Sets the value of the field property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setField(Long value) { - this.field = value; - } - - /** - * Gets the value of the formula property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormula() { - return formula; - } - - /** - * Sets the value of the formula property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormula(String value) { - this.formula = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CalculatedItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CalculatedItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="field" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="formula" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CalculatedItem", propOrder = { + "pivotArea", + "extLst" +}) +public class CTCalculatedItem implements Child +{ + + @XmlElement(required = true) + protected CTPivotArea pivotArea; + protected CTExtensionList extLst; + @XmlAttribute(name = "field") + @XmlSchemaType(name = "unsignedInt") + protected Long field; + @XmlAttribute(name = "formula") + protected String formula; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotArea property. + * + * @return + * possible object is + * {@link CTPivotArea } + * + */ + public CTPivotArea getPivotArea() { + return pivotArea; + } + + /** + * Sets the value of the pivotArea property. + * + * @param value + * allowed object is + * {@link CTPivotArea } + * + */ + public void setPivotArea(CTPivotArea value) { + this.pivotArea = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the field property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getField() { + return field; + } + + /** + * Sets the value of the field property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setField(Long value) { + this.field = value; + } + + /** + * Gets the value of the formula property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormula() { + return formula; + } + + /** + * Sets the value of the formula property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormula(String value) { + this.formula = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItems.java index 2efd359ea5..060288fe8a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedItems.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CalculatedItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CalculatedItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="calculatedItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedItem" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CalculatedItems", propOrder = { - "calculatedItem" -}) -public class CTCalculatedItems { - - @XmlElement(required = true) - protected List calculatedItem; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the calculatedItem property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the calculatedItem property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCalculatedItem().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCalculatedItem } - * - * - */ - public List getCalculatedItem() { - if (calculatedItem == null) { - calculatedItem = new ArrayList(); - } - return this.calculatedItem; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CalculatedItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CalculatedItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="calculatedItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedItem" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CalculatedItems", propOrder = { + "calculatedItem" +}) +public class CTCalculatedItems implements Child +{ + + @XmlElement(required = true) + protected List calculatedItem; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the calculatedItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the calculatedItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCalculatedItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCalculatedItem } + * + * + */ + public List getCalculatedItem() { + if (calculatedItem == null) { + calculatedItem = new ArrayList(); + } + return this.calculatedItem; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMember.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMember.java index ad9b06bba2..ca36df950d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMember.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMember.java @@ -1,278 +1,290 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CalculatedMember complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CalculatedMember">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence minOccurs="0">
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="mdx" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="memberName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="hierarchy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="parent" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="solveOrder" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="set" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CalculatedMember", propOrder = { - "extLst" -}) -public class CTCalculatedMember { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - protected String mdx; - @XmlAttribute - protected String memberName; - @XmlAttribute - protected String hierarchy; - @XmlAttribute - protected String parent; - @XmlAttribute - protected Integer solveOrder; - @XmlAttribute - protected Boolean set; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the mdx property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMdx() { - return mdx; - } - - /** - * Sets the value of the mdx property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMdx(String value) { - this.mdx = value; - } - - /** - * Gets the value of the memberName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMemberName() { - return memberName; - } - - /** - * Sets the value of the memberName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMemberName(String value) { - this.memberName = value; - } - - /** - * Gets the value of the hierarchy property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHierarchy() { - return hierarchy; - } - - /** - * Sets the value of the hierarchy property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHierarchy(String value) { - this.hierarchy = value; - } - - /** - * Gets the value of the parent property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getParent() { - return parent; - } - - /** - * Sets the value of the parent property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setParent(String value) { - this.parent = value; - } - - /** - * Gets the value of the solveOrder property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getSolveOrder() { - if (solveOrder == null) { - return 0; - } else { - return solveOrder; - } - } - - /** - * Sets the value of the solveOrder property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setSolveOrder(Integer value) { - this.solveOrder = value; - } - - /** - * Gets the value of the set property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSet() { - if (set == null) { - return false; - } else { - return set; - } - } - - /** - * Sets the value of the set property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSet(Boolean value) { - this.set = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CalculatedMember complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CalculatedMember">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence minOccurs="0">
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="mdx" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="memberName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="hierarchy" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="parent" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="solveOrder" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="set" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CalculatedMember", propOrder = { + "extLst" +}) +public class CTCalculatedMember implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "mdx", required = true) + protected String mdx; + @XmlAttribute(name = "memberName") + protected String memberName; + @XmlAttribute(name = "hierarchy") + protected String hierarchy; + @XmlAttribute(name = "parent") + protected String parent; + @XmlAttribute(name = "solveOrder") + protected Integer solveOrder; + @XmlAttribute(name = "set") + protected Boolean set; + @XmlTransient + private Object parentObj; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the mdx property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMdx() { + return mdx; + } + + /** + * Sets the value of the mdx property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMdx(String value) { + this.mdx = value; + } + + /** + * Gets the value of the memberName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMemberName() { + return memberName; + } + + /** + * Sets the value of the memberName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMemberName(String value) { + this.memberName = value; + } + + /** + * Gets the value of the hierarchy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHierarchy() { + return hierarchy; + } + + /** + * Sets the value of the hierarchy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHierarchy(String value) { + this.hierarchy = value; + } + + /** + * Gets the value of the parent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParentAttr() { + return parent; + } + + /** + * Sets the value of the parent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParent(String value) { + this.parent = value; + } + + /** + * Gets the value of the solveOrder property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getSolveOrder() { + if (solveOrder == null) { + return 0; + } else { + return solveOrder; + } + } + + /** + * Sets the value of the solveOrder property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSolveOrder(Integer value) { + this.solveOrder = value; + } + + /** + * Gets the value of the set property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSet() { + if (set == null) { + return false; + } else { + return set; + } + } + + /** + * Sets the value of the set property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSet(Boolean value) { + this.set = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parentObj; + } + + public void setParent(Object parent) { + this.parentObj = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMembers.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMembers.java index ac05af27a5..1d8f999247 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMembers.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCalculatedMembers.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CalculatedMembers complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CalculatedMembers">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="calculatedMember" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedMember" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CalculatedMembers", propOrder = { - "calculatedMember" -}) -public class CTCalculatedMembers { - - @XmlElement(required = true) - protected List calculatedMember; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the calculatedMember property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the calculatedMember property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCalculatedMember().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCalculatedMember } - * - * - */ - public List getCalculatedMember() { - if (calculatedMember == null) { - calculatedMember = new ArrayList(); - } - return this.calculatedMember; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CalculatedMembers complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CalculatedMembers">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="calculatedMember" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedMember" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CalculatedMembers", propOrder = { + "calculatedMember" +}) +public class CTCalculatedMembers implements Child +{ + + @XmlElement(required = true) + protected List calculatedMember; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the calculatedMember property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the calculatedMember property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCalculatedMember().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCalculatedMember } + * + * + */ + public List getCalculatedMember() { + if (calculatedMember == null) { + calculatedMember = new ArrayList(); + } + return this.calculatedMember; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellAlignment.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellAlignment.java index 284440b47c..6b575a81e1 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellAlignment.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellAlignment.java @@ -1,298 +1,310 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellAlignment complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellAlignment">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="horizontal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_HorizontalAlignment" />
- *       <attribute name="vertical" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_VerticalAlignment" />
- *       <attribute name="textRotation" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="wrapText" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="indent" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="relativeIndent" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="justifyLastLine" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="shrinkToFit" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="readingOrder" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellAlignment") -public class CTCellAlignment { - - @XmlAttribute - protected STHorizontalAlignment horizontal; - @XmlAttribute - protected STVerticalAlignment vertical; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long textRotation; - @XmlAttribute - protected Boolean wrapText; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long indent; - @XmlAttribute - protected Integer relativeIndent; - @XmlAttribute - protected Boolean justifyLastLine; - @XmlAttribute - protected Boolean shrinkToFit; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long readingOrder; - - /** - * Gets the value of the horizontal property. - * - * @return - * possible object is - * {@link STHorizontalAlignment } - * - */ - public STHorizontalAlignment getHorizontal() { - return horizontal; - } - - /** - * Sets the value of the horizontal property. - * - * @param value - * allowed object is - * {@link STHorizontalAlignment } - * - */ - public void setHorizontal(STHorizontalAlignment value) { - this.horizontal = value; - } - - /** - * Gets the value of the vertical property. - * - * @return - * possible object is - * {@link STVerticalAlignment } - * - */ - public STVerticalAlignment getVertical() { - return vertical; - } - - /** - * Sets the value of the vertical property. - * - * @param value - * allowed object is - * {@link STVerticalAlignment } - * - */ - public void setVertical(STVerticalAlignment value) { - this.vertical = value; - } - - /** - * Gets the value of the textRotation property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getTextRotation() { - return textRotation; - } - - /** - * Sets the value of the textRotation property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTextRotation(Long value) { - this.textRotation = value; - } - - /** - * Gets the value of the wrapText property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isWrapText() { - return wrapText; - } - - /** - * Sets the value of the wrapText property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setWrapText(Boolean value) { - this.wrapText = value; - } - - /** - * Gets the value of the indent property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIndent() { - return indent; - } - - /** - * Sets the value of the indent property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIndent(Long value) { - this.indent = value; - } - - /** - * Gets the value of the relativeIndent property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getRelativeIndent() { - return relativeIndent; - } - - /** - * Sets the value of the relativeIndent property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setRelativeIndent(Integer value) { - this.relativeIndent = value; - } - - /** - * Gets the value of the justifyLastLine property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isJustifyLastLine() { - return justifyLastLine; - } - - /** - * Sets the value of the justifyLastLine property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setJustifyLastLine(Boolean value) { - this.justifyLastLine = value; - } - - /** - * Gets the value of the shrinkToFit property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShrinkToFit() { - return shrinkToFit; - } - - /** - * Sets the value of the shrinkToFit property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShrinkToFit(Boolean value) { - this.shrinkToFit = value; - } - - /** - * Gets the value of the readingOrder property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getReadingOrder() { - return readingOrder; - } - - /** - * Sets the value of the readingOrder property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setReadingOrder(Long value) { - this.readingOrder = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellAlignment complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellAlignment">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="horizontal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_HorizontalAlignment" />
+ *       <attribute name="vertical" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_VerticalAlignment" />
+ *       <attribute name="textRotation" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="wrapText" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="indent" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="relativeIndent" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="justifyLastLine" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="shrinkToFit" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="readingOrder" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellAlignment") +public class CTCellAlignment implements Child +{ + + @XmlAttribute(name = "horizontal") + protected STHorizontalAlignment horizontal; + @XmlAttribute(name = "vertical") + protected STVerticalAlignment vertical; + @XmlAttribute(name = "textRotation") + @XmlSchemaType(name = "unsignedInt") + protected Long textRotation; + @XmlAttribute(name = "wrapText") + protected Boolean wrapText; + @XmlAttribute(name = "indent") + @XmlSchemaType(name = "unsignedInt") + protected Long indent; + @XmlAttribute(name = "relativeIndent") + protected Integer relativeIndent; + @XmlAttribute(name = "justifyLastLine") + protected Boolean justifyLastLine; + @XmlAttribute(name = "shrinkToFit") + protected Boolean shrinkToFit; + @XmlAttribute(name = "readingOrder") + @XmlSchemaType(name = "unsignedInt") + protected Long readingOrder; + @XmlTransient + private Object parent; + + /** + * Gets the value of the horizontal property. + * + * @return + * possible object is + * {@link STHorizontalAlignment } + * + */ + public STHorizontalAlignment getHorizontal() { + return horizontal; + } + + /** + * Sets the value of the horizontal property. + * + * @param value + * allowed object is + * {@link STHorizontalAlignment } + * + */ + public void setHorizontal(STHorizontalAlignment value) { + this.horizontal = value; + } + + /** + * Gets the value of the vertical property. + * + * @return + * possible object is + * {@link STVerticalAlignment } + * + */ + public STVerticalAlignment getVertical() { + return vertical; + } + + /** + * Sets the value of the vertical property. + * + * @param value + * allowed object is + * {@link STVerticalAlignment } + * + */ + public void setVertical(STVerticalAlignment value) { + this.vertical = value; + } + + /** + * Gets the value of the textRotation property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTextRotation() { + return textRotation; + } + + /** + * Sets the value of the textRotation property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTextRotation(Long value) { + this.textRotation = value; + } + + /** + * Gets the value of the wrapText property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isWrapText() { + return wrapText; + } + + /** + * Sets the value of the wrapText property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWrapText(Boolean value) { + this.wrapText = value; + } + + /** + * Gets the value of the indent property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIndent() { + return indent; + } + + /** + * Sets the value of the indent property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIndent(Long value) { + this.indent = value; + } + + /** + * Gets the value of the relativeIndent property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getRelativeIndent() { + return relativeIndent; + } + + /** + * Sets the value of the relativeIndent property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setRelativeIndent(Integer value) { + this.relativeIndent = value; + } + + /** + * Gets the value of the justifyLastLine property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isJustifyLastLine() { + return justifyLastLine; + } + + /** + * Sets the value of the justifyLastLine property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setJustifyLastLine(Boolean value) { + this.justifyLastLine = value; + } + + /** + * Gets the value of the shrinkToFit property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShrinkToFit() { + return shrinkToFit; + } + + /** + * Sets the value of the shrinkToFit property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShrinkToFit(Boolean value) { + this.shrinkToFit = value; + } + + /** + * Gets the value of the readingOrder property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getReadingOrder() { + return readingOrder; + } + + /** + * Sets the value of the readingOrder property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setReadingOrder(Long value) { + this.readingOrder = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellFormula.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellFormula.java index 83cf97c732..77963f2229 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellFormula.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellFormula.java @@ -1,438 +1,450 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for CT_CellFormula complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellFormula">
- *   <simpleContent>
- *     <extension base="<http://schemas.openxmlformats.org/spreadsheetml/2006/main>ST_Formula">
- *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellFormulaType" default="normal" />
- *       <attribute name="aca" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="dt2D" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="dtr" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="del1" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="del2" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="r1" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="r2" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="ca" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="si" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="bx" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellFormula", propOrder = { - "value" -}) -public class CTCellFormula { - - @XmlValue - protected String value; - @XmlAttribute - protected STCellFormulaType t; - @XmlAttribute - protected Boolean aca; - @XmlAttribute - protected String ref; - @XmlAttribute - protected Boolean dt2D; - @XmlAttribute - protected Boolean dtr; - @XmlAttribute - protected Boolean del1; - @XmlAttribute - protected Boolean del2; - @XmlAttribute - protected String r1; - @XmlAttribute - protected String r2; - @XmlAttribute - protected Boolean ca; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long si; - @XmlAttribute - protected Boolean bx; - - /** - * Formula - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link STCellFormulaType } - * - */ - public STCellFormulaType getT() { - if (t == null) { - return STCellFormulaType.NORMAL; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link STCellFormulaType } - * - */ - public void setT(STCellFormulaType value) { - this.t = value; - } - - /** - * Gets the value of the aca property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAca() { - if (aca == null) { - return false; - } else { - return aca; - } - } - - /** - * Sets the value of the aca property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAca(Boolean value) { - this.aca = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the dt2D property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDt2D() { - if (dt2D == null) { - return false; - } else { - return dt2D; - } - } - - /** - * Sets the value of the dt2D property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDt2D(Boolean value) { - this.dt2D = value; - } - - /** - * Gets the value of the dtr property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDtr() { - if (dtr == null) { - return false; - } else { - return dtr; - } - } - - /** - * Sets the value of the dtr property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDtr(Boolean value) { - this.dtr = value; - } - - /** - * Gets the value of the del1 property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDel1() { - if (del1 == null) { - return false; - } else { - return del1; - } - } - - /** - * Sets the value of the del1 property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDel1(Boolean value) { - this.del1 = value; - } - - /** - * Gets the value of the del2 property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDel2() { - if (del2 == null) { - return false; - } else { - return del2; - } - } - - /** - * Sets the value of the del2 property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDel2(Boolean value) { - this.del2 = value; - } - - /** - * Gets the value of the r1 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR1() { - return r1; - } - - /** - * Sets the value of the r1 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR1(String value) { - this.r1 = value; - } - - /** - * Gets the value of the r2 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR2() { - return r2; - } - - /** - * Sets the value of the r2 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR2(String value) { - this.r2 = value; - } - - /** - * Gets the value of the ca property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCa() { - if (ca == null) { - return false; - } else { - return ca; - } - } - - /** - * Sets the value of the ca property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCa(Boolean value) { - this.ca = value; - } - - /** - * Gets the value of the si property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getSi() { - return si; - } - - /** - * Sets the value of the si property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setSi(Long value) { - this.si = value; - } - - /** - * Gets the value of the bx property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBx() { - if (bx == null) { - return false; - } else { - return bx; - } - } - - /** - * Sets the value of the bx property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBx(Boolean value) { - this.bx = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellFormula complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellFormula">
+ *   <simpleContent>
+ *     <extension base="<http://schemas.openxmlformats.org/spreadsheetml/2006/main>ST_Formula">
+ *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellFormulaType" default="normal" />
+ *       <attribute name="aca" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="dt2D" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="dtr" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="del1" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="del2" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="r1" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="r2" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="ca" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="si" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="bx" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellFormula", propOrder = { + "value" +}) +public class CTCellFormula implements Child +{ + + @XmlValue + protected String value; + @XmlAttribute(name = "t") + protected STCellFormulaType t; + @XmlAttribute(name = "aca") + protected Boolean aca; + @XmlAttribute(name = "ref") + protected String ref; + @XmlAttribute(name = "dt2D") + protected Boolean dt2D; + @XmlAttribute(name = "dtr") + protected Boolean dtr; + @XmlAttribute(name = "del1") + protected Boolean del1; + @XmlAttribute(name = "del2") + protected Boolean del2; + @XmlAttribute(name = "r1") + protected String r1; + @XmlAttribute(name = "r2") + protected String r2; + @XmlAttribute(name = "ca") + protected Boolean ca; + @XmlAttribute(name = "si") + @XmlSchemaType(name = "unsignedInt") + protected Long si; + @XmlAttribute(name = "bx") + protected Boolean bx; + @XmlTransient + private Object parent; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link STCellFormulaType } + * + */ + public STCellFormulaType getT() { + if (t == null) { + return STCellFormulaType.NORMAL; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link STCellFormulaType } + * + */ + public void setT(STCellFormulaType value) { + this.t = value; + } + + /** + * Gets the value of the aca property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAca() { + if (aca == null) { + return false; + } else { + return aca; + } + } + + /** + * Sets the value of the aca property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAca(Boolean value) { + this.aca = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the dt2D property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDt2D() { + if (dt2D == null) { + return false; + } else { + return dt2D; + } + } + + /** + * Sets the value of the dt2D property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDt2D(Boolean value) { + this.dt2D = value; + } + + /** + * Gets the value of the dtr property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDtr() { + if (dtr == null) { + return false; + } else { + return dtr; + } + } + + /** + * Sets the value of the dtr property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDtr(Boolean value) { + this.dtr = value; + } + + /** + * Gets the value of the del1 property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDel1() { + if (del1 == null) { + return false; + } else { + return del1; + } + } + + /** + * Sets the value of the del1 property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDel1(Boolean value) { + this.del1 = value; + } + + /** + * Gets the value of the del2 property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDel2() { + if (del2 == null) { + return false; + } else { + return del2; + } + } + + /** + * Sets the value of the del2 property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDel2(Boolean value) { + this.del2 = value; + } + + /** + * Gets the value of the r1 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR1() { + return r1; + } + + /** + * Sets the value of the r1 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR1(String value) { + this.r1 = value; + } + + /** + * Gets the value of the r2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR2() { + return r2; + } + + /** + * Sets the value of the r2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR2(String value) { + this.r2 = value; + } + + /** + * Gets the value of the ca property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCa() { + if (ca == null) { + return false; + } else { + return ca; + } + } + + /** + * Sets the value of the ca property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCa(Boolean value) { + this.ca = value; + } + + /** + * Gets the value of the si property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSi() { + return si; + } + + /** + * Sets the value of the si property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSi(Long value) { + this.si = value; + } + + /** + * Gets the value of the bx property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBx() { + if (bx == null) { + return false; + } else { + return bx; + } + } + + /** + * Sets the value of the bx property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBx(Boolean value) { + this.bx = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellProtection.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellProtection.java index 30d7c2350b..d6db564f89 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellProtection.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellProtection.java @@ -1,105 +1,117 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellProtection complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellProtection">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellProtection") -public class CTCellProtection { - - @XmlAttribute - protected Boolean locked; - @XmlAttribute - protected Boolean hidden; - - /** - * Gets the value of the locked property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isLocked() { - return locked; - } - - /** - * Sets the value of the locked property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLocked(Boolean value) { - this.locked = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isHidden() { - return hidden; - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellProtection complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellProtection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellProtection") +public class CTCellProtection implements Child +{ + + @XmlAttribute(name = "locked") + protected Boolean locked; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlTransient + private Object parent; + + /** + * Gets the value of the locked property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isLocked() { + return locked; + } + + /** + * Sets the value of the locked property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocked(Boolean value) { + this.locked = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHidden() { + return hidden; + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTag.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTag.java index 1a587ef21f..c6015f5b49 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTag.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTag.java @@ -1,171 +1,183 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellSmartTag complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellSmartTag">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cellSmartTagPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellSmartTagPr" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="xmlBased" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellSmartTag", propOrder = { - "cellSmartTagPr" -}) -public class CTCellSmartTag { - - protected List cellSmartTagPr; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long type; - @XmlAttribute - protected Boolean deleted; - @XmlAttribute - protected Boolean xmlBased; - - /** - * Gets the value of the cellSmartTagPr property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cellSmartTagPr property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCellSmartTagPr().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCellSmartTagPr } - * - * - */ - public List getCellSmartTagPr() { - if (cellSmartTagPr == null) { - cellSmartTagPr = new ArrayList(); - } - return this.cellSmartTagPr; - } - - /** - * Gets the value of the type property. - * - */ - public long getType() { - return type; - } - - /** - * Sets the value of the type property. - * - */ - public void setType(long value) { - this.type = value; - } - - /** - * Gets the value of the deleted property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDeleted() { - if (deleted == null) { - return false; - } else { - return deleted; - } - } - - /** - * Sets the value of the deleted property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDeleted(Boolean value) { - this.deleted = value; - } - - /** - * Gets the value of the xmlBased property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isXmlBased() { - if (xmlBased == null) { - return false; - } else { - return xmlBased; - } - } - - /** - * Sets the value of the xmlBased property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setXmlBased(Boolean value) { - this.xmlBased = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellSmartTag complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellSmartTag">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cellSmartTagPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellSmartTagPr" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="xmlBased" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellSmartTag", propOrder = { + "cellSmartTagPr" +}) +public class CTCellSmartTag implements Child +{ + + protected List cellSmartTagPr; + @XmlAttribute(name = "type", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long type; + @XmlAttribute(name = "deleted") + protected Boolean deleted; + @XmlAttribute(name = "xmlBased") + protected Boolean xmlBased; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cellSmartTagPr property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cellSmartTagPr property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCellSmartTagPr().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCellSmartTagPr } + * + * + */ + public List getCellSmartTagPr() { + if (cellSmartTagPr == null) { + cellSmartTagPr = new ArrayList(); + } + return this.cellSmartTagPr; + } + + /** + * Gets the value of the type property. + * + */ + public long getType() { + return type; + } + + /** + * Sets the value of the type property. + * + */ + public void setType(long value) { + this.type = value; + } + + /** + * Gets the value of the deleted property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDeleted() { + if (deleted == null) { + return false; + } else { + return deleted; + } + } + + /** + * Sets the value of the deleted property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDeleted(Boolean value) { + this.deleted = value; + } + + /** + * Gets the value of the xmlBased property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isXmlBased() { + if (xmlBased == null) { + return false; + } else { + return xmlBased; + } + } + + /** + * Sets the value of the xmlBased property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setXmlBased(Boolean value) { + this.xmlBased = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTagPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTagPr.java index 5b6f4fc4ef..bcc1d7bfbf 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTagPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTagPr.java @@ -1,105 +1,117 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellSmartTagPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellSmartTagPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="key" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellSmartTagPr") -public class CTCellSmartTagPr { - - @XmlAttribute(required = true) - protected String key; - @XmlAttribute(required = true) - protected String val; - - /** - * Gets the value of the key property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getKey() { - return key; - } - - /** - * Sets the value of the key property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setKey(String value) { - this.key = value; - } - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellSmartTagPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellSmartTagPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="key" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellSmartTagPr") +public class CTCellSmartTagPr implements Child +{ + + @XmlAttribute(name = "key", required = true) + protected String key; + @XmlAttribute(name = "val", required = true) + protected String val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTags.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTags.java index cc4a81437b..80cdadfa0f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTags.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellSmartTags.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellSmartTags complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellSmartTags">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cellSmartTag" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellSmartTag" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellSmartTags", propOrder = { - "cellSmartTag" -}) -public class CTCellSmartTags { - - @XmlElement(required = true) - protected List cellSmartTag; - @XmlAttribute(required = true) - protected String r; - - /** - * Gets the value of the cellSmartTag property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cellSmartTag property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCellSmartTag().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCellSmartTag } - * - * - */ - public List getCellSmartTag() { - if (cellSmartTag == null) { - cellSmartTag = new ArrayList(); - } - return this.cellSmartTag; - } - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellSmartTags complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellSmartTags">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cellSmartTag" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellSmartTag" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellSmartTags", propOrder = { + "cellSmartTag" +}) +public class CTCellSmartTags implements Child +{ + + @XmlElement(required = true) + protected List cellSmartTag; + @XmlAttribute(name = "r", required = true) + protected String r; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cellSmartTag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cellSmartTag property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCellSmartTag().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCellSmartTag } + * + * + */ + public List getCellSmartTag() { + if (cellSmartTag == null) { + cellSmartTag = new ArrayList(); + } + return this.cellSmartTag; + } + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyle.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyle.java index 5968c43732..609193c886 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyle.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyle.java @@ -1,238 +1,250 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellStyle complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellStyle">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="xfId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellStyleXfId" />
- *       <attribute name="builtinId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="iLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="customBuiltin" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellStyle", propOrder = { - "extLst" -}) -public class CTCellStyle { - - protected CTExtensionList extLst; - @XmlAttribute - protected String name; - @XmlAttribute(required = true) - protected long xfId; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long builtinId; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long iLevel; - @XmlAttribute - protected Boolean hidden; - @XmlAttribute - protected Boolean customBuiltin; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the xfId property. - * - */ - public long getXfId() { - return xfId; - } - - /** - * Sets the value of the xfId property. - * - */ - public void setXfId(long value) { - this.xfId = value; - } - - /** - * Gets the value of the builtinId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getBuiltinId() { - return builtinId; - } - - /** - * Sets the value of the builtinId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setBuiltinId(Long value) { - this.builtinId = value; - } - - /** - * Gets the value of the iLevel property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getILevel() { - return iLevel; - } - - /** - * Sets the value of the iLevel property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setILevel(Long value) { - this.iLevel = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isHidden() { - return hidden; - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - - /** - * Gets the value of the customBuiltin property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isCustomBuiltin() { - return customBuiltin; - } - - /** - * Sets the value of the customBuiltin property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomBuiltin(Boolean value) { - this.customBuiltin = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellStyle complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellStyle">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="xfId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellStyleXfId" />
+ *       <attribute name="builtinId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="iLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="customBuiltin" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellStyle", propOrder = { + "extLst" +}) +public class CTCellStyle implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "xfId", required = true) + protected long xfId; + @XmlAttribute(name = "builtinId") + @XmlSchemaType(name = "unsignedInt") + protected Long builtinId; + @XmlAttribute(name = "iLevel") + @XmlSchemaType(name = "unsignedInt") + protected Long iLevel; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlAttribute(name = "customBuiltin") + protected Boolean customBuiltin; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the xfId property. + * + */ + public long getXfId() { + return xfId; + } + + /** + * Sets the value of the xfId property. + * + */ + public void setXfId(long value) { + this.xfId = value; + } + + /** + * Gets the value of the builtinId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getBuiltinId() { + return builtinId; + } + + /** + * Sets the value of the builtinId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setBuiltinId(Long value) { + this.builtinId = value; + } + + /** + * Gets the value of the iLevel property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getILevel() { + return iLevel; + } + + /** + * Sets the value of the iLevel property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setILevel(Long value) { + this.iLevel = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHidden() { + return hidden; + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the value of the customBuiltin property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCustomBuiltin() { + return customBuiltin; + } + + /** + * Sets the value of the customBuiltin property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomBuiltin(Boolean value) { + this.customBuiltin = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyleXfs.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyleXfs.java index dd0ffc0e95..4753cd78c6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyleXfs.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyleXfs.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellStyleXfs complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellStyleXfs">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="xf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Xf" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellStyleXfs", propOrder = { - "xf" -}) -public class CTCellStyleXfs { - - @XmlElement(required = true) - protected List xf; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the xf property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the xf property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getXf().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTXf } - * - * - */ - public List getXf() { - if (xf == null) { - xf = new ArrayList(); - } - return this.xf; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellStyleXfs complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellStyleXfs">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="xf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Xf" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellStyleXfs", propOrder = { + "xf" +}) +public class CTCellStyleXfs implements Child +{ + + @XmlElement(required = true) + protected List xf; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the xf property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xf property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXf().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTXf } + * + * + */ + public List getXf() { + if (xf == null) { + xf = new ArrayList(); + } + return this.xf; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyles.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyles.java index fc58318e74..1c51751001 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyles.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellStyles.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellStyles complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellStyles">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellStyle" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellStyles", propOrder = { - "cellStyle" -}) -public class CTCellStyles { - - @XmlElement(required = true) - protected List cellStyle; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the cellStyle property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cellStyle property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCellStyle().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCellStyle } - * - * - */ - public List getCellStyle() { - if (cellStyle == null) { - cellStyle = new ArrayList(); - } - return this.cellStyle; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellStyles complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellStyles">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellStyle" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellStyles", propOrder = { + "cellStyle" +}) +public class CTCellStyles implements Child +{ + + @XmlElement(required = true) + protected List cellStyle; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cellStyle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cellStyle property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCellStyle().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCellStyle } + * + * + */ + public List getCellStyle() { + if (cellStyle == null) { + cellStyle = new ArrayList(); + } + return this.cellStyle; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatch.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatch.java index 57b93326a0..99ea881b8b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatch.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatch.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellWatch complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellWatch">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellWatch") -public class CTCellWatch { - - @XmlAttribute(required = true) - protected String r; - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellWatch complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellWatch">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellWatch") +public class CTCellWatch implements Child +{ + + @XmlAttribute(name = "r", required = true) + protected String r; + @XmlTransient + private Object parent; + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatches.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatches.java index 8ea3c6cbb6..80f058589a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatches.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellWatches.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellWatches complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellWatches">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cellWatch" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellWatch" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellWatches", propOrder = { - "cellWatch" -}) -public class CTCellWatches { - - @XmlElement(required = true) - protected List cellWatch; - - /** - * Gets the value of the cellWatch property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cellWatch property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCellWatch().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCellWatch } - * - * - */ - public List getCellWatch() { - if (cellWatch == null) { - cellWatch = new ArrayList(); - } - return this.cellWatch; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellWatches complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellWatches">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cellWatch" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellWatch" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellWatches", propOrder = { + "cellWatch" +}) +public class CTCellWatches implements Child +{ + + @XmlElement(required = true) + protected List cellWatch; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cellWatch property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cellWatch property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCellWatch().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCellWatch } + * + * + */ + public List getCellWatch() { + if (cellWatch == null) { + cellWatch = new ArrayList(); + } + return this.cellWatch; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCellXfs.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCellXfs.java index cb9285f19a..6cfc088c21 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCellXfs.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCellXfs.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CellXfs complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CellXfs">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="xf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Xf" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CellXfs", propOrder = { - "xf" -}) -public class CTCellXfs { - - @XmlElement(required = true) - protected List xf; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the xf property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the xf property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getXf().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTXf } - * - * - */ - public List getXf() { - if (xf == null) { - xf = new ArrayList(); - } - return this.xf; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CellXfs complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CellXfs">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="xf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Xf" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CellXfs", propOrder = { + "xf" +}) +public class CTCellXfs implements Child +{ + + @XmlElement(required = true) + protected List xf; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the xf property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the xf property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getXf().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTXf } + * + * + */ + public List getXf() { + if (xf == null) { + xf = new ArrayList(); + } + return this.xf; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCfRule.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCfRule.java index adbb843401..86853fa1ab 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCfRule.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCfRule.java @@ -1,561 +1,573 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CfRule complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CfRule">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="formula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" maxOccurs="3" minOccurs="0"/>
- *         <element name="colorScale" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColorScale" minOccurs="0"/>
- *         <element name="dataBar" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataBar" minOccurs="0"/>
- *         <element name="iconSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IconSet" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CfType" />
- *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="priority" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="stopIfTrue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="aboveAverage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="percent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="bottom" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ConditionalFormattingOperator" />
- *       <attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="timePeriod" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TimePeriod" />
- *       <attribute name="rank" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="stdDev" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="equalAverage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CfRule", propOrder = { - "formula", - "colorScale", - "dataBar", - "iconSet", - "extLst" -}) -public class CTCfRule { - - protected List formula; - protected CTColorScale colorScale; - protected CTDataBar dataBar; - protected CTIconSet iconSet; - protected CTExtensionList extLst; - @XmlAttribute - protected STCfType type; - @XmlAttribute - protected Long dxfId; - @XmlAttribute(required = true) - protected int priority; - @XmlAttribute - protected Boolean stopIfTrue; - @XmlAttribute - protected Boolean aboveAverage; - @XmlAttribute - protected Boolean percent; - @XmlAttribute - protected Boolean bottom; - @XmlAttribute - protected STConditionalFormattingOperator operator; - @XmlAttribute - protected String text; - @XmlAttribute - protected STTimePeriod timePeriod; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long rank; - @XmlAttribute - protected Integer stdDev; - @XmlAttribute - protected Boolean equalAverage; - - /** - * Gets the value of the formula property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the formula property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFormula().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getFormula() { - if (formula == null) { - formula = new ArrayList(); - } - return this.formula; - } - - /** - * Gets the value of the colorScale property. - * - * @return - * possible object is - * {@link CTColorScale } - * - */ - public CTColorScale getColorScale() { - return colorScale; - } - - /** - * Sets the value of the colorScale property. - * - * @param value - * allowed object is - * {@link CTColorScale } - * - */ - public void setColorScale(CTColorScale value) { - this.colorScale = value; - } - - /** - * Gets the value of the dataBar property. - * - * @return - * possible object is - * {@link CTDataBar } - * - */ - public CTDataBar getDataBar() { - return dataBar; - } - - /** - * Sets the value of the dataBar property. - * - * @param value - * allowed object is - * {@link CTDataBar } - * - */ - public void setDataBar(CTDataBar value) { - this.dataBar = value; - } - - /** - * Gets the value of the iconSet property. - * - * @return - * possible object is - * {@link CTIconSet } - * - */ - public CTIconSet getIconSet() { - return iconSet; - } - - /** - * Sets the value of the iconSet property. - * - * @param value - * allowed object is - * {@link CTIconSet } - * - */ - public void setIconSet(CTIconSet value) { - this.iconSet = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STCfType } - * - */ - public STCfType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STCfType } - * - */ - public void setType(STCfType value) { - this.type = value; - } - - /** - * Gets the value of the dxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDxfId() { - return dxfId; - } - - /** - * Sets the value of the dxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDxfId(Long value) { - this.dxfId = value; - } - - /** - * Gets the value of the priority property. - * - */ - public int getPriority() { - return priority; - } - - /** - * Sets the value of the priority property. - * - */ - public void setPriority(int value) { - this.priority = value; - } - - /** - * Gets the value of the stopIfTrue property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isStopIfTrue() { - if (stopIfTrue == null) { - return false; - } else { - return stopIfTrue; - } - } - - /** - * Sets the value of the stopIfTrue property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setStopIfTrue(Boolean value) { - this.stopIfTrue = value; - } - - /** - * Gets the value of the aboveAverage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAboveAverage() { - if (aboveAverage == null) { - return true; - } else { - return aboveAverage; - } - } - - /** - * Sets the value of the aboveAverage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAboveAverage(Boolean value) { - this.aboveAverage = value; - } - - /** - * Gets the value of the percent property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPercent() { - if (percent == null) { - return false; - } else { - return percent; - } - } - - /** - * Sets the value of the percent property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPercent(Boolean value) { - this.percent = value; - } - - /** - * Gets the value of the bottom property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBottom() { - if (bottom == null) { - return false; - } else { - return bottom; - } - } - - /** - * Sets the value of the bottom property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBottom(Boolean value) { - this.bottom = value; - } - - /** - * Gets the value of the operator property. - * - * @return - * possible object is - * {@link STConditionalFormattingOperator } - * - */ - public STConditionalFormattingOperator getOperator() { - return operator; - } - - /** - * Sets the value of the operator property. - * - * @param value - * allowed object is - * {@link STConditionalFormattingOperator } - * - */ - public void setOperator(STConditionalFormattingOperator value) { - this.operator = value; - } - - /** - * Gets the value of the text property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getText() { - return text; - } - - /** - * Sets the value of the text property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setText(String value) { - this.text = value; - } - - /** - * Gets the value of the timePeriod property. - * - * @return - * possible object is - * {@link STTimePeriod } - * - */ - public STTimePeriod getTimePeriod() { - return timePeriod; - } - - /** - * Sets the value of the timePeriod property. - * - * @param value - * allowed object is - * {@link STTimePeriod } - * - */ - public void setTimePeriod(STTimePeriod value) { - this.timePeriod = value; - } - - /** - * Gets the value of the rank property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getRank() { - return rank; - } - - /** - * Sets the value of the rank property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setRank(Long value) { - this.rank = value; - } - - /** - * Gets the value of the stdDev property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getStdDev() { - return stdDev; - } - - /** - * Sets the value of the stdDev property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setStdDev(Integer value) { - this.stdDev = value; - } - - /** - * Gets the value of the equalAverage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEqualAverage() { - if (equalAverage == null) { - return false; - } else { - return equalAverage; - } - } - - /** - * Sets the value of the equalAverage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEqualAverage(Boolean value) { - this.equalAverage = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CfRule complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CfRule">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="formula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" maxOccurs="3" minOccurs="0"/>
+ *         <element name="colorScale" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColorScale" minOccurs="0"/>
+ *         <element name="dataBar" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataBar" minOccurs="0"/>
+ *         <element name="iconSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IconSet" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CfType" />
+ *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="priority" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="stopIfTrue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="aboveAverage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="percent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="bottom" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ConditionalFormattingOperator" />
+ *       <attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="timePeriod" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TimePeriod" />
+ *       <attribute name="rank" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="stdDev" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="equalAverage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CfRule", propOrder = { + "formula", + "colorScale", + "dataBar", + "iconSet", + "extLst" +}) +public class CTCfRule implements Child +{ + + protected List formula; + protected CTColorScale colorScale; + protected CTDataBar dataBar; + protected CTIconSet iconSet; + protected CTExtensionList extLst; + @XmlAttribute(name = "type") + protected STCfType type; + @XmlAttribute(name = "dxfId") + protected Long dxfId; + @XmlAttribute(name = "priority", required = true) + protected int priority; + @XmlAttribute(name = "stopIfTrue") + protected Boolean stopIfTrue; + @XmlAttribute(name = "aboveAverage") + protected Boolean aboveAverage; + @XmlAttribute(name = "percent") + protected Boolean percent; + @XmlAttribute(name = "bottom") + protected Boolean bottom; + @XmlAttribute(name = "operator") + protected STConditionalFormattingOperator operator; + @XmlAttribute(name = "text") + protected String text; + @XmlAttribute(name = "timePeriod") + protected STTimePeriod timePeriod; + @XmlAttribute(name = "rank") + @XmlSchemaType(name = "unsignedInt") + protected Long rank; + @XmlAttribute(name = "stdDev") + protected Integer stdDev; + @XmlAttribute(name = "equalAverage") + protected Boolean equalAverage; + @XmlTransient + private Object parent; + + /** + * Gets the value of the formula property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the formula property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFormula().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getFormula() { + if (formula == null) { + formula = new ArrayList(); + } + return this.formula; + } + + /** + * Gets the value of the colorScale property. + * + * @return + * possible object is + * {@link CTColorScale } + * + */ + public CTColorScale getColorScale() { + return colorScale; + } + + /** + * Sets the value of the colorScale property. + * + * @param value + * allowed object is + * {@link CTColorScale } + * + */ + public void setColorScale(CTColorScale value) { + this.colorScale = value; + } + + /** + * Gets the value of the dataBar property. + * + * @return + * possible object is + * {@link CTDataBar } + * + */ + public CTDataBar getDataBar() { + return dataBar; + } + + /** + * Sets the value of the dataBar property. + * + * @param value + * allowed object is + * {@link CTDataBar } + * + */ + public void setDataBar(CTDataBar value) { + this.dataBar = value; + } + + /** + * Gets the value of the iconSet property. + * + * @return + * possible object is + * {@link CTIconSet } + * + */ + public CTIconSet getIconSet() { + return iconSet; + } + + /** + * Sets the value of the iconSet property. + * + * @param value + * allowed object is + * {@link CTIconSet } + * + */ + public void setIconSet(CTIconSet value) { + this.iconSet = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STCfType } + * + */ + public STCfType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STCfType } + * + */ + public void setType(STCfType value) { + this.type = value; + } + + /** + * Gets the value of the dxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDxfId() { + return dxfId; + } + + /** + * Sets the value of the dxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDxfId(Long value) { + this.dxfId = value; + } + + /** + * Gets the value of the priority property. + * + */ + public int getPriority() { + return priority; + } + + /** + * Sets the value of the priority property. + * + */ + public void setPriority(int value) { + this.priority = value; + } + + /** + * Gets the value of the stopIfTrue property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStopIfTrue() { + if (stopIfTrue == null) { + return false; + } else { + return stopIfTrue; + } + } + + /** + * Sets the value of the stopIfTrue property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStopIfTrue(Boolean value) { + this.stopIfTrue = value; + } + + /** + * Gets the value of the aboveAverage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAboveAverage() { + if (aboveAverage == null) { + return true; + } else { + return aboveAverage; + } + } + + /** + * Sets the value of the aboveAverage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAboveAverage(Boolean value) { + this.aboveAverage = value; + } + + /** + * Gets the value of the percent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPercent() { + if (percent == null) { + return false; + } else { + return percent; + } + } + + /** + * Sets the value of the percent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPercent(Boolean value) { + this.percent = value; + } + + /** + * Gets the value of the bottom property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBottom() { + if (bottom == null) { + return false; + } else { + return bottom; + } + } + + /** + * Sets the value of the bottom property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBottom(Boolean value) { + this.bottom = value; + } + + /** + * Gets the value of the operator property. + * + * @return + * possible object is + * {@link STConditionalFormattingOperator } + * + */ + public STConditionalFormattingOperator getOperator() { + return operator; + } + + /** + * Sets the value of the operator property. + * + * @param value + * allowed object is + * {@link STConditionalFormattingOperator } + * + */ + public void setOperator(STConditionalFormattingOperator value) { + this.operator = value; + } + + /** + * Gets the value of the text property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setText(String value) { + this.text = value; + } + + /** + * Gets the value of the timePeriod property. + * + * @return + * possible object is + * {@link STTimePeriod } + * + */ + public STTimePeriod getTimePeriod() { + return timePeriod; + } + + /** + * Sets the value of the timePeriod property. + * + * @param value + * allowed object is + * {@link STTimePeriod } + * + */ + public void setTimePeriod(STTimePeriod value) { + this.timePeriod = value; + } + + /** + * Gets the value of the rank property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRank() { + return rank; + } + + /** + * Sets the value of the rank property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRank(Long value) { + this.rank = value; + } + + /** + * Gets the value of the stdDev property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getStdDev() { + return stdDev; + } + + /** + * Sets the value of the stdDev property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setStdDev(Integer value) { + this.stdDev = value; + } + + /** + * Gets the value of the equalAverage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEqualAverage() { + if (equalAverage == null) { + return false; + } else { + return equalAverage; + } + } + + /** + * Sets the value of the equalAverage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEqualAverage(Boolean value) { + this.equalAverage = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCfvo.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCfvo.java index 99591cbd6f..6f3d53615a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCfvo.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCfvo.java @@ -1,166 +1,178 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Cfvo complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Cfvo">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CfvoType" />
- *       <attribute name="val" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="gte" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Cfvo", propOrder = { - "extLst" -}) -public class CTCfvo { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected STCfvoType type; - @XmlAttribute - protected String val; - @XmlAttribute - protected Boolean gte; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STCfvoType } - * - */ - public STCfvoType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STCfvoType } - * - */ - public void setType(STCfvoType value) { - this.type = value; - } - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - - /** - * Gets the value of the gte property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGte() { - if (gte == null) { - return true; - } else { - return gte; - } - } - - /** - * Sets the value of the gte property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGte(Boolean value) { - this.gte = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Cfvo complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Cfvo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CfvoType" />
+ *       <attribute name="val" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="gte" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Cfvo", propOrder = { + "extLst" +}) +public class CTCfvo implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "type", required = true) + protected STCfvoType type; + @XmlAttribute(name = "val") + protected String val; + @XmlAttribute(name = "gte") + protected Boolean gte; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STCfvoType } + * + */ + public STCfvoType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STCfvoType } + * + */ + public void setType(STCfvoType value) { + this.type = value; + } + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the value of the gte property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGte() { + if (gte == null) { + return true; + } else { + return gte; + } + } + + /** + * Sets the value of the gte property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGte(Boolean value) { + this.gte = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormat.java b/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormat.java index 0c46acfd49..4e1616e552 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormat.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormat.java @@ -1,155 +1,167 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ChartFormat complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ChartFormat">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
- *       </sequence>
- *       <attribute name="chart" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="format" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="series" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ChartFormat", propOrder = { - "pivotArea" -}) -public class CTChartFormat { - - @XmlElement(required = true) - protected CTPivotArea pivotArea; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long chart; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long format; - @XmlAttribute - protected Boolean series; - - /** - * Gets the value of the pivotArea property. - * - * @return - * possible object is - * {@link CTPivotArea } - * - */ - public CTPivotArea getPivotArea() { - return pivotArea; - } - - /** - * Sets the value of the pivotArea property. - * - * @param value - * allowed object is - * {@link CTPivotArea } - * - */ - public void setPivotArea(CTPivotArea value) { - this.pivotArea = value; - } - - /** - * Gets the value of the chart property. - * - */ - public long getChart() { - return chart; - } - - /** - * Sets the value of the chart property. - * - */ - public void setChart(long value) { - this.chart = value; - } - - /** - * Gets the value of the format property. - * - */ - public long getFormat() { - return format; - } - - /** - * Sets the value of the format property. - * - */ - public void setFormat(long value) { - this.format = value; - } - - /** - * Gets the value of the series property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSeries() { - if (series == null) { - return false; - } else { - return series; - } - } - - /** - * Sets the value of the series property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSeries(Boolean value) { - this.series = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ChartFormat complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ChartFormat">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
+ *       </sequence>
+ *       <attribute name="chart" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="format" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="series" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ChartFormat", propOrder = { + "pivotArea" +}) +public class CTChartFormat implements Child +{ + + @XmlElement(required = true) + protected CTPivotArea pivotArea; + @XmlAttribute(name = "chart", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long chart; + @XmlAttribute(name = "format", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long format; + @XmlAttribute(name = "series") + protected Boolean series; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotArea property. + * + * @return + * possible object is + * {@link CTPivotArea } + * + */ + public CTPivotArea getPivotArea() { + return pivotArea; + } + + /** + * Sets the value of the pivotArea property. + * + * @param value + * allowed object is + * {@link CTPivotArea } + * + */ + public void setPivotArea(CTPivotArea value) { + this.pivotArea = value; + } + + /** + * Gets the value of the chart property. + * + */ + public long getChart() { + return chart; + } + + /** + * Sets the value of the chart property. + * + */ + public void setChart(long value) { + this.chart = value; + } + + /** + * Gets the value of the format property. + * + */ + public long getFormat() { + return format; + } + + /** + * Sets the value of the format property. + * + */ + public void setFormat(long value) { + this.format = value; + } + + /** + * Gets the value of the series property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSeries() { + if (series == null) { + return false; + } else { + return series; + } + } + + /** + * Sets the value of the series property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSeries(Boolean value) { + this.series = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormats.java b/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormats.java index 14139af978..58b83d6ffe 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormats.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTChartFormats.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ChartFormats complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ChartFormats">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="chartFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartFormat" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ChartFormats", propOrder = { - "chartFormat" -}) -public class CTChartFormats { - - @XmlElement(required = true) - protected List chartFormat; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the chartFormat property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the chartFormat property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getChartFormat().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTChartFormat } - * - * - */ - public List getChartFormat() { - if (chartFormat == null) { - chartFormat = new ArrayList(); - } - return this.chartFormat; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ChartFormats complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ChartFormats">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="chartFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartFormat" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ChartFormats", propOrder = { + "chartFormat" +}) +public class CTChartFormats implements Child +{ + + @XmlElement(required = true) + protected List chartFormat; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the chartFormat property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the chartFormat property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getChartFormat().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTChartFormat } + * + * + */ + public List getChartFormat() { + if (chartFormat == null) { + chartFormat = new ArrayList(); + } + return this.chartFormat; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheet.java index 9167f09b5c..b872b6e5bf 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheet.java @@ -1,407 +1,446 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Chartsheet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Chartsheet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetPr" minOccurs="0"/>
- *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetViews"/>
- *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetProtection" minOccurs="0"/>
- *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomChartsheetViews" minOccurs="0"/>
- *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
- *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CsPageSetup" minOccurs="0"/>
- *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
- *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing"/>
- *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="picture" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetBackgroundPicture" minOccurs="0"/>
- *         <element name="webPublishItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishItems" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Chartsheet", propOrder = { - "sheetPr", - "sheetViews", - "sheetProtection", - "customSheetViews", - "pageMargins", - "pageSetup", - "headerFooter", - "drawing", - "legacyDrawing", - "legacyDrawingHF", - "picture", - "webPublishItems", - "extLst" -}) -public class CTChartsheet { - - protected CTChartsheetPr sheetPr; - @XmlElement(required = true) - protected CTChartsheetViews sheetViews; - protected CTChartsheetProtection sheetProtection; - protected CTCustomChartsheetViews customSheetViews; - protected CTPageMargins pageMargins; - protected CTCsPageSetup pageSetup; - protected CTHeaderFooter headerFooter; - @XmlElement(required = true) - protected CTDrawing drawing; - protected CTLegacyDrawing legacyDrawing; - protected CTLegacyDrawing legacyDrawingHF; - protected CTSheetBackgroundPicture picture; - protected CTWebPublishItems webPublishItems; - protected CTExtensionList extLst; - - /** - * Gets the value of the sheetPr property. - * - * @return - * possible object is - * {@link CTChartsheetPr } - * - */ - public CTChartsheetPr getSheetPr() { - return sheetPr; - } - - /** - * Sets the value of the sheetPr property. - * - * @param value - * allowed object is - * {@link CTChartsheetPr } - * - */ - public void setSheetPr(CTChartsheetPr value) { - this.sheetPr = value; - } - - /** - * Gets the value of the sheetViews property. - * - * @return - * possible object is - * {@link CTChartsheetViews } - * - */ - public CTChartsheetViews getSheetViews() { - return sheetViews; - } - - /** - * Sets the value of the sheetViews property. - * - * @param value - * allowed object is - * {@link CTChartsheetViews } - * - */ - public void setSheetViews(CTChartsheetViews value) { - this.sheetViews = value; - } - - /** - * Gets the value of the sheetProtection property. - * - * @return - * possible object is - * {@link CTChartsheetProtection } - * - */ - public CTChartsheetProtection getSheetProtection() { - return sheetProtection; - } - - /** - * Sets the value of the sheetProtection property. - * - * @param value - * allowed object is - * {@link CTChartsheetProtection } - * - */ - public void setSheetProtection(CTChartsheetProtection value) { - this.sheetProtection = value; - } - - /** - * Gets the value of the customSheetViews property. - * - * @return - * possible object is - * {@link CTCustomChartsheetViews } - * - */ - public CTCustomChartsheetViews getCustomSheetViews() { - return customSheetViews; - } - - /** - * Sets the value of the customSheetViews property. - * - * @param value - * allowed object is - * {@link CTCustomChartsheetViews } - * - */ - public void setCustomSheetViews(CTCustomChartsheetViews value) { - this.customSheetViews = value; - } - - /** - * Gets the value of the pageMargins property. - * - * @return - * possible object is - * {@link CTPageMargins } - * - */ - public CTPageMargins getPageMargins() { - return pageMargins; - } - - /** - * Sets the value of the pageMargins property. - * - * @param value - * allowed object is - * {@link CTPageMargins } - * - */ - public void setPageMargins(CTPageMargins value) { - this.pageMargins = value; - } - - /** - * Gets the value of the pageSetup property. - * - * @return - * possible object is - * {@link CTCsPageSetup } - * - */ - public CTCsPageSetup getPageSetup() { - return pageSetup; - } - - /** - * Sets the value of the pageSetup property. - * - * @param value - * allowed object is - * {@link CTCsPageSetup } - * - */ - public void setPageSetup(CTCsPageSetup value) { - this.pageSetup = value; - } - - /** - * Gets the value of the headerFooter property. - * - * @return - * possible object is - * {@link CTHeaderFooter } - * - */ - public CTHeaderFooter getHeaderFooter() { - return headerFooter; - } - - /** - * Sets the value of the headerFooter property. - * - * @param value - * allowed object is - * {@link CTHeaderFooter } - * - */ - public void setHeaderFooter(CTHeaderFooter value) { - this.headerFooter = value; - } - - /** - * Gets the value of the drawing property. - * - * @return - * possible object is - * {@link CTDrawing } - * - */ - public CTDrawing getDrawing() { - return drawing; - } - - /** - * Sets the value of the drawing property. - * - * @param value - * allowed object is - * {@link CTDrawing } - * - */ - public void setDrawing(CTDrawing value) { - this.drawing = value; - } - - /** - * Gets the value of the legacyDrawing property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawing() { - return legacyDrawing; - } - - /** - * Sets the value of the legacyDrawing property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawing(CTLegacyDrawing value) { - this.legacyDrawing = value; - } - - /** - * Gets the value of the legacyDrawingHF property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawingHF() { - return legacyDrawingHF; - } - - /** - * Sets the value of the legacyDrawingHF property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawingHF(CTLegacyDrawing value) { - this.legacyDrawingHF = value; - } - - /** - * Gets the value of the picture property. - * - * @return - * possible object is - * {@link CTSheetBackgroundPicture } - * - */ - public CTSheetBackgroundPicture getPicture() { - return picture; - } - - /** - * Sets the value of the picture property. - * - * @param value - * allowed object is - * {@link CTSheetBackgroundPicture } - * - */ - public void setPicture(CTSheetBackgroundPicture value) { - this.picture = value; - } - - /** - * Gets the value of the webPublishItems property. - * - * @return - * possible object is - * {@link CTWebPublishItems } - * - */ - public CTWebPublishItems getWebPublishItems() { - return webPublishItems; - } - - /** - * Sets the value of the webPublishItems property. - * - * @param value - * allowed object is - * {@link CTWebPublishItems } - * - */ - public void setWebPublishItems(CTWebPublishItems value) { - this.webPublishItems = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Chartsheet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Chartsheet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetPr" minOccurs="0"/>
+ *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetViews"/>
+ *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetProtection" minOccurs="0"/>
+ *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomChartsheetViews" minOccurs="0"/>
+ *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
+ *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CsPageSetup" minOccurs="0"/>
+ *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
+ *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing"/>
+ *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="drawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DrawingHF" minOccurs="0"/>
+ *         <element name="picture" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetBackgroundPicture" minOccurs="0"/>
+ *         <element name="webPublishItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishItems" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Chartsheet", propOrder = { + "sheetPr", + "sheetViews", + "sheetProtection", + "customSheetViews", + "pageMargins", + "pageSetup", + "headerFooter", + "drawing", + "legacyDrawing", + "legacyDrawingHF", + "drawingHF", + "picture", + "webPublishItems", + "extLst" +}) +public class CTChartsheet implements Child +{ + + protected CTChartsheetPr sheetPr; + @XmlElement(required = true) + protected CTChartsheetViews sheetViews; + protected CTChartsheetProtection sheetProtection; + protected CTCustomChartsheetViews customSheetViews; + protected CTPageMargins pageMargins; + protected CTCsPageSetup pageSetup; + protected CTHeaderFooter headerFooter; + @XmlElement(required = true) + protected CTDrawing drawing; + protected CTLegacyDrawing legacyDrawing; + protected CTLegacyDrawing legacyDrawingHF; + protected CTDrawingHF drawingHF; + protected CTSheetBackgroundPicture picture; + protected CTWebPublishItems webPublishItems; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetPr property. + * + * @return + * possible object is + * {@link CTChartsheetPr } + * + */ + public CTChartsheetPr getSheetPr() { + return sheetPr; + } + + /** + * Sets the value of the sheetPr property. + * + * @param value + * allowed object is + * {@link CTChartsheetPr } + * + */ + public void setSheetPr(CTChartsheetPr value) { + this.sheetPr = value; + } + + /** + * Gets the value of the sheetViews property. + * + * @return + * possible object is + * {@link CTChartsheetViews } + * + */ + public CTChartsheetViews getSheetViews() { + return sheetViews; + } + + /** + * Sets the value of the sheetViews property. + * + * @param value + * allowed object is + * {@link CTChartsheetViews } + * + */ + public void setSheetViews(CTChartsheetViews value) { + this.sheetViews = value; + } + + /** + * Gets the value of the sheetProtection property. + * + * @return + * possible object is + * {@link CTChartsheetProtection } + * + */ + public CTChartsheetProtection getSheetProtection() { + return sheetProtection; + } + + /** + * Sets the value of the sheetProtection property. + * + * @param value + * allowed object is + * {@link CTChartsheetProtection } + * + */ + public void setSheetProtection(CTChartsheetProtection value) { + this.sheetProtection = value; + } + + /** + * Gets the value of the customSheetViews property. + * + * @return + * possible object is + * {@link CTCustomChartsheetViews } + * + */ + public CTCustomChartsheetViews getCustomSheetViews() { + return customSheetViews; + } + + /** + * Sets the value of the customSheetViews property. + * + * @param value + * allowed object is + * {@link CTCustomChartsheetViews } + * + */ + public void setCustomSheetViews(CTCustomChartsheetViews value) { + this.customSheetViews = value; + } + + /** + * Gets the value of the pageMargins property. + * + * @return + * possible object is + * {@link CTPageMargins } + * + */ + public CTPageMargins getPageMargins() { + return pageMargins; + } + + /** + * Sets the value of the pageMargins property. + * + * @param value + * allowed object is + * {@link CTPageMargins } + * + */ + public void setPageMargins(CTPageMargins value) { + this.pageMargins = value; + } + + /** + * Gets the value of the pageSetup property. + * + * @return + * possible object is + * {@link CTCsPageSetup } + * + */ + public CTCsPageSetup getPageSetup() { + return pageSetup; + } + + /** + * Sets the value of the pageSetup property. + * + * @param value + * allowed object is + * {@link CTCsPageSetup } + * + */ + public void setPageSetup(CTCsPageSetup value) { + this.pageSetup = value; + } + + /** + * Gets the value of the headerFooter property. + * + * @return + * possible object is + * {@link CTHeaderFooter } + * + */ + public CTHeaderFooter getHeaderFooter() { + return headerFooter; + } + + /** + * Sets the value of the headerFooter property. + * + * @param value + * allowed object is + * {@link CTHeaderFooter } + * + */ + public void setHeaderFooter(CTHeaderFooter value) { + this.headerFooter = value; + } + + /** + * Gets the value of the drawing property. + * + * @return + * possible object is + * {@link CTDrawing } + * + */ + public CTDrawing getDrawing() { + return drawing; + } + + /** + * Sets the value of the drawing property. + * + * @param value + * allowed object is + * {@link CTDrawing } + * + */ + public void setDrawing(CTDrawing value) { + this.drawing = value; + } + + /** + * Gets the value of the legacyDrawing property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawing() { + return legacyDrawing; + } + + /** + * Sets the value of the legacyDrawing property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawing(CTLegacyDrawing value) { + this.legacyDrawing = value; + } + + /** + * Gets the value of the legacyDrawingHF property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawingHF() { + return legacyDrawingHF; + } + + /** + * Sets the value of the legacyDrawingHF property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawingHF(CTLegacyDrawing value) { + this.legacyDrawingHF = value; + } + + /** + * Gets the value of the drawingHF property. + * + * @return + * possible object is + * {@link CTDrawingHF } + * + */ + public CTDrawingHF getDrawingHF() { + return drawingHF; + } + + /** + * Sets the value of the drawingHF property. + * + * @param value + * allowed object is + * {@link CTDrawingHF } + * + */ + public void setDrawingHF(CTDrawingHF value) { + this.drawingHF = value; + } + + /** + * Gets the value of the picture property. + * + * @return + * possible object is + * {@link CTSheetBackgroundPicture } + * + */ + public CTSheetBackgroundPicture getPicture() { + return picture; + } + + /** + * Sets the value of the picture property. + * + * @param value + * allowed object is + * {@link CTSheetBackgroundPicture } + * + */ + public void setPicture(CTSheetBackgroundPicture value) { + this.picture = value; + } + + /** + * Gets the value of the webPublishItems property. + * + * @return + * possible object is + * {@link CTWebPublishItems } + * + */ + public CTWebPublishItems getWebPublishItems() { + return webPublishItems; + } + + /** + * Sets the value of the webPublishItems property. + * + * @param value + * allowed object is + * {@link CTWebPublishItems } + * + */ + public void setWebPublishItems(CTWebPublishItems value) { + this.webPublishItems = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetPr.java index 70cc80e1ef..b5855d900f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetPr.java @@ -1,139 +1,151 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ChartsheetPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ChartsheetPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tabColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="codeName" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ChartsheetPr", propOrder = { - "tabColor" -}) -public class CTChartsheetPr { - - protected CTColor tabColor; - @XmlAttribute - protected Boolean published; - @XmlAttribute - protected String codeName; - - /** - * Gets the value of the tabColor property. - * - * @return - * possible object is - * {@link CTColor } - * - */ - public CTColor getTabColor() { - return tabColor; - } - - /** - * Sets the value of the tabColor property. - * - * @param value - * allowed object is - * {@link CTColor } - * - */ - public void setTabColor(CTColor value) { - this.tabColor = value; - } - - /** - * Gets the value of the published property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPublished() { - if (published == null) { - return true; - } else { - return published; - } - } - - /** - * Sets the value of the published property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPublished(Boolean value) { - this.published = value; - } - - /** - * Gets the value of the codeName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCodeName() { - return codeName; - } - - /** - * Sets the value of the codeName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCodeName(String value) { - this.codeName = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ChartsheetPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ChartsheetPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tabColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="codeName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ChartsheetPr", propOrder = { + "tabColor" +}) +public class CTChartsheetPr implements Child +{ + + protected CTColor tabColor; + @XmlAttribute(name = "published") + protected Boolean published; + @XmlAttribute(name = "codeName") + protected String codeName; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tabColor property. + * + * @return + * possible object is + * {@link CTColor } + * + */ + public CTColor getTabColor() { + return tabColor; + } + + /** + * Sets the value of the tabColor property. + * + * @param value + * allowed object is + * {@link CTColor } + * + */ + public void setTabColor(CTColor value) { + this.tabColor = value; + } + + /** + * Gets the value of the published property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPublished() { + if (published == null) { + return true; + } else { + return published; + } + } + + /** + * Sets the value of the published property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPublished(Boolean value) { + this.published = value; + } + + /** + * Gets the value of the codeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCodeName() { + return codeName; + } + + /** + * Sets the value of the codeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCodeName(String value) { + this.codeName = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetProtection.java b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetProtection.java index 9e387e9230..be70624e1b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetProtection.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetProtection.java @@ -1,143 +1,261 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_ChartsheetProtection complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ChartsheetProtection">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="password" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
- *       <attribute name="content" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="objects" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ChartsheetProtection") -public class CTChartsheetProtection { - - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] password; - @XmlAttribute - protected Boolean content; - @XmlAttribute - protected Boolean objects; - - /** - * Gets the value of the password property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getPassword() { - return password; - } - - /** - * Sets the value of the password property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPassword(byte[] value) { - this.password = ((byte[]) value); - } - - /** - * Gets the value of the content property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContent() { - if (content == null) { - return false; - } else { - return content; - } - } - - /** - * Sets the value of the content property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContent(Boolean value) { - this.content = value; - } - - /** - * Gets the value of the objects property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isObjects() { - if (objects == null) { - return false; - } else { - return objects; - } - } - - /** - * Sets the value of the objects property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setObjects(Boolean value) { - this.objects = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ChartsheetProtection complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ChartsheetProtection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="password" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
+ *       <attribute name="algorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="hashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="saltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="spinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="content" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="objects" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ChartsheetProtection") +public class CTChartsheetProtection implements Child +{ + + @XmlAttribute(name = "password") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] password; + @XmlAttribute(name = "algorithmName") + protected String algorithmName; + @XmlAttribute(name = "hashValue") + protected byte[] hashValue; + @XmlAttribute(name = "saltValue") + protected byte[] saltValue; + @XmlAttribute(name = "spinCount") + @XmlSchemaType(name = "unsignedInt") + protected Long spinCount; + @XmlAttribute(name = "content") + protected Boolean content; + @XmlAttribute(name = "objects") + protected Boolean objects; + @XmlTransient + private Object parent; + + /** + * Gets the value of the password property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getPassword() { + return password; + } + + /** + * Sets the value of the password property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPassword(byte[] value) { + this.password = value; + } + + /** + * Gets the value of the algorithmName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithmName() { + return algorithmName; + } + + /** + * Sets the value of the algorithmName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithmName(String value) { + this.algorithmName = value; + } + + /** + * Gets the value of the hashValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashValue() { + return hashValue; + } + + /** + * Sets the value of the hashValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashValue(byte[] value) { + this.hashValue = value; + } + + /** + * Gets the value of the saltValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getSaltValue() { + return saltValue; + } + + /** + * Sets the value of the saltValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setSaltValue(byte[] value) { + this.saltValue = value; + } + + /** + * Gets the value of the spinCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSpinCount() { + return spinCount; + } + + /** + * Sets the value of the spinCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSpinCount(Long value) { + this.spinCount = value; + } + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContent() { + if (content == null) { + return false; + } else { + return content; + } + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContent(Boolean value) { + this.content = value; + } + + /** + * Gets the value of the objects property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isObjects() { + if (objects == null) { + return false; + } else { + return objects; + } + } + + /** + * Sets the value of the objects property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setObjects(Boolean value) { + this.objects = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetView.java b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetView.java index aa96c5bb9b..b995de5a85 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetView.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetView.java @@ -1,196 +1,208 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ChartsheetView complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ChartsheetView">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="tabSelected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="zoomScale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
- *       <attribute name="workbookViewId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="zoomToFit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ChartsheetView", propOrder = { - "extLst" -}) -public class CTChartsheetView { - - protected CTExtensionList extLst; - @XmlAttribute - protected Boolean tabSelected; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long zoomScale; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long workbookViewId; - @XmlAttribute - protected Boolean zoomToFit; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the tabSelected property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTabSelected() { - if (tabSelected == null) { - return false; - } else { - return tabSelected; - } - } - - /** - * Sets the value of the tabSelected property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTabSelected(Boolean value) { - this.tabSelected = value; - } - - /** - * Gets the value of the zoomScale property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getZoomScale() { - if (zoomScale == null) { - return 100L; - } else { - return zoomScale; - } - } - - /** - * Sets the value of the zoomScale property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setZoomScale(Long value) { - this.zoomScale = value; - } - - /** - * Gets the value of the workbookViewId property. - * - */ - public long getWorkbookViewId() { - return workbookViewId; - } - - /** - * Sets the value of the workbookViewId property. - * - */ - public void setWorkbookViewId(long value) { - this.workbookViewId = value; - } - - /** - * Gets the value of the zoomToFit property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isZoomToFit() { - if (zoomToFit == null) { - return false; - } else { - return zoomToFit; - } - } - - /** - * Sets the value of the zoomToFit property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setZoomToFit(Boolean value) { - this.zoomToFit = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ChartsheetView complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ChartsheetView">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="tabSelected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="zoomScale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
+ *       <attribute name="workbookViewId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="zoomToFit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ChartsheetView", propOrder = { + "extLst" +}) +public class CTChartsheetView implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "tabSelected") + protected Boolean tabSelected; + @XmlAttribute(name = "zoomScale") + @XmlSchemaType(name = "unsignedInt") + protected Long zoomScale; + @XmlAttribute(name = "workbookViewId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long workbookViewId; + @XmlAttribute(name = "zoomToFit") + protected Boolean zoomToFit; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the tabSelected property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTabSelected() { + if (tabSelected == null) { + return false; + } else { + return tabSelected; + } + } + + /** + * Sets the value of the tabSelected property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTabSelected(Boolean value) { + this.tabSelected = value; + } + + /** + * Gets the value of the zoomScale property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getZoomScale() { + if (zoomScale == null) { + return 100L; + } else { + return zoomScale; + } + } + + /** + * Sets the value of the zoomScale property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setZoomScale(Long value) { + this.zoomScale = value; + } + + /** + * Gets the value of the workbookViewId property. + * + */ + public long getWorkbookViewId() { + return workbookViewId; + } + + /** + * Sets the value of the workbookViewId property. + * + */ + public void setWorkbookViewId(long value) { + this.workbookViewId = value; + } + + /** + * Gets the value of the zoomToFit property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isZoomToFit() { + if (zoomToFit == null) { + return false; + } else { + return zoomToFit; + } + } + + /** + * Sets the value of the zoomToFit property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setZoomToFit(Boolean value) { + this.zoomToFit = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetViews.java b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetViews.java index d777c76200..0977c3f8b6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetViews.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTChartsheetViews.java @@ -1,116 +1,128 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ChartsheetViews complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ChartsheetViews">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetView" maxOccurs="unbounded"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ChartsheetViews", propOrder = { - "sheetView", - "extLst" -}) -public class CTChartsheetViews { - - @XmlElement(required = true) - protected List sheetView; - protected CTExtensionList extLst; - - /** - * Gets the value of the sheetView property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sheetView property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSheetView().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTChartsheetView } - * - * - */ - public List getSheetView() { - if (sheetView == null) { - sheetView = new ArrayList(); - } - return this.sheetView; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ChartsheetViews complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ChartsheetViews">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartsheetView" maxOccurs="unbounded"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ChartsheetViews", propOrder = { + "sheetView", + "extLst" +}) +public class CTChartsheetViews implements Child +{ + + @XmlElement(required = true) + protected List sheetView; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetView property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sheetView property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSheetView().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTChartsheetView } + * + * + */ + public List getSheetView() { + if (sheetView == null) { + sheetView = new ArrayList(); + } + return this.sheetView; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTColFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTColFields.java index 7099b10d21..feb3eb81f8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTColFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTColFields.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ColFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ColFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="field" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Field" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ColFields", propOrder = { - "field" -}) -public class CTColFields { - - @XmlElement(required = true) - protected List field; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the field property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the field property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTField } - * - * - */ - public List getField() { - if (field == null) { - field = new ArrayList(); - } - return this.field; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ColFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ColFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="field" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Field" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ColFields", propOrder = { + "field" +}) +public class CTColFields implements Child +{ + + @XmlElement(required = true) + protected List field; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the field property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the field property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTField } + * + * + */ + public List getField() { + if (field == null) { + field = new ArrayList(); + } + return this.field; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTColHierarchiesUsage.java b/src/xlsx4j/java/org/xlsx4j/sml/CTColHierarchiesUsage.java index 1f65194b36..635bfad879 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTColHierarchiesUsage.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTColHierarchiesUsage.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ColHierarchiesUsage complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ColHierarchiesUsage">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="colHierarchyUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HierarchyUsage" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ColHierarchiesUsage", propOrder = { - "colHierarchyUsage" -}) -public class CTColHierarchiesUsage { - - @XmlElement(required = true) - protected List colHierarchyUsage; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the colHierarchyUsage property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the colHierarchyUsage property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getColHierarchyUsage().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTHierarchyUsage } - * - * - */ - public List getColHierarchyUsage() { - if (colHierarchyUsage == null) { - colHierarchyUsage = new ArrayList(); - } - return this.colHierarchyUsage; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ColHierarchiesUsage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ColHierarchiesUsage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="colHierarchyUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HierarchyUsage" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ColHierarchiesUsage", propOrder = { + "colHierarchyUsage" +}) +public class CTColHierarchiesUsage implements Child +{ + + @XmlElement(required = true) + protected List colHierarchyUsage; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the colHierarchyUsage property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the colHierarchyUsage property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getColHierarchyUsage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTHierarchyUsage } + * + * + */ + public List getColHierarchyUsage() { + if (colHierarchyUsage == null) { + colHierarchyUsage = new ArrayList(); + } + return this.colHierarchyUsage; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTColItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTColItems.java index 26260d5a03..20b4b4a617 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTColItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTColItems.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_colItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_colItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_I" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_colItems", propOrder = { - "i" -}) -public class CTColItems { - - @XmlElement(required = true) - protected List i; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the i property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the i property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getI().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTI } - * - * - */ - public List getI() { - if (i == null) { - i = new ArrayList(); - } - return this.i; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_colItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_colItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_I" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_colItems", propOrder = { + "i" +}) +public class CTColItems implements Child +{ + + @XmlElement(required = true) + protected List i; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the i property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the i property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getI().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTI } + * + * + */ + public List getI() { + if (i == null) { + i = new ArrayList(); + } + return this.i; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTColor.java b/src/xlsx4j/java/org/xlsx4j/sml/CTColor.java index bbedc3ece8..9341919f68 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTColor.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTColor.java @@ -1,196 +1,208 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_Color complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Color">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="auto" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="indexed" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="rgb" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="theme" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="tint" type="{http://www.w3.org/2001/XMLSchema}double" default="0.0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Color") -public class CTColor { - - @XmlAttribute - protected Boolean auto; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long indexed; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] rgb; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long theme; - @XmlAttribute - protected Double tint; - - /** - * Gets the value of the auto property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isAuto() { - return auto; - } - - /** - * Sets the value of the auto property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAuto(Boolean value) { - this.auto = value; - } - - /** - * Gets the value of the indexed property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIndexed() { - return indexed; - } - - /** - * Sets the value of the indexed property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIndexed(Long value) { - this.indexed = value; - } - - /** - * Gets the value of the rgb property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getRgb() { - return rgb; - } - - /** - * Sets the value of the rgb property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRgb(byte[] value) { - this.rgb = ((byte[]) value); - } - - /** - * Gets the value of the theme property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getTheme() { - return theme; - } - - /** - * Sets the value of the theme property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTheme(Long value) { - this.theme = value; - } - - /** - * Gets the value of the tint property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getTint() { - if (tint == null) { - return 0.0D; - } else { - return tint; - } - } - - /** - * Sets the value of the tint property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setTint(Double value) { - this.tint = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Color complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Color">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="auto" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="indexed" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rgb" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="theme" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="tint" type="{http://www.w3.org/2001/XMLSchema}double" default="0.0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Color") +public class CTColor implements Child +{ + + @XmlAttribute(name = "auto") + protected Boolean auto; + @XmlAttribute(name = "indexed") + @XmlSchemaType(name = "unsignedInt") + protected Long indexed; + @XmlAttribute(name = "rgb") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] rgb; + @XmlAttribute(name = "theme") + @XmlSchemaType(name = "unsignedInt") + protected Long theme; + @XmlAttribute(name = "tint") + protected Double tint; + @XmlTransient + private Object parent; + + /** + * Gets the value of the auto property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isAuto() { + return auto; + } + + /** + * Sets the value of the auto property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAuto(Boolean value) { + this.auto = value; + } + + /** + * Gets the value of the indexed property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIndexed() { + return indexed; + } + + /** + * Sets the value of the indexed property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIndexed(Long value) { + this.indexed = value; + } + + /** + * Gets the value of the rgb property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getRgb() { + return rgb; + } + + /** + * Sets the value of the rgb property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRgb(byte[] value) { + this.rgb = value; + } + + /** + * Gets the value of the theme property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTheme() { + return theme; + } + + /** + * Sets the value of the theme property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTheme(Long value) { + this.theme = value; + } + + /** + * Gets the value of the tint property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getTint() { + if (tint == null) { + return 0.0D; + } else { + return tint; + } + } + + /** + * Sets the value of the tint property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setTint(Double value) { + this.tint = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTColorFilter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTColorFilter.java index 5d427bf688..7bac5689c8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTColorFilter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTColorFilter.java @@ -1,109 +1,121 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ColorFilter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ColorFilter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="cellColor" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ColorFilter") -public class CTColorFilter { - - @XmlAttribute - protected Long dxfId; - @XmlAttribute - protected Boolean cellColor; - - /** - * Gets the value of the dxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDxfId() { - return dxfId; - } - - /** - * Sets the value of the dxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDxfId(Long value) { - this.dxfId = value; - } - - /** - * Gets the value of the cellColor property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCellColor() { - if (cellColor == null) { - return true; - } else { - return cellColor; - } - } - - /** - * Sets the value of the cellColor property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCellColor(Boolean value) { - this.cellColor = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ColorFilter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ColorFilter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="cellColor" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ColorFilter") +public class CTColorFilter implements Child +{ + + @XmlAttribute(name = "dxfId") + protected Long dxfId; + @XmlAttribute(name = "cellColor") + protected Boolean cellColor; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDxfId() { + return dxfId; + } + + /** + * Sets the value of the dxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDxfId(Long value) { + this.dxfId = value; + } + + /** + * Gets the value of the cellColor property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCellColor() { + if (cellColor == null) { + return true; + } else { + return cellColor; + } + } + + /** + * Sets the value of the cellColor property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCellColor(Boolean value) { + this.cellColor = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTColorScale.java b/src/xlsx4j/java/org/xlsx4j/sml/CTColorScale.java index b281ab6c5a..7d3ab4ffaa 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTColorScale.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTColorScale.java @@ -1,122 +1,134 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ColorScale complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ColorScale">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cfvo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cfvo" maxOccurs="unbounded" minOccurs="2"/>
- *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" maxOccurs="unbounded" minOccurs="2"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ColorScale", propOrder = { - "cfvo", - "color" -}) -public class CTColorScale { - - @XmlElement(required = true) - protected List cfvo; - @XmlElement(required = true) - protected List color; - - /** - * Gets the value of the cfvo property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cfvo property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCfvo().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCfvo } - * - * - */ - public List getCfvo() { - if (cfvo == null) { - cfvo = new ArrayList(); - } - return this.cfvo; - } - - /** - * Gets the value of the color property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the color property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getColor().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTColor } - * - * - */ - public List getColor() { - if (color == null) { - color = new ArrayList(); - } - return this.color; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ColorScale complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ColorScale">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cfvo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cfvo" maxOccurs="unbounded" minOccurs="2"/>
+ *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" maxOccurs="unbounded" minOccurs="2"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ColorScale", propOrder = { + "cfvo", + "color" +}) +public class CTColorScale implements Child +{ + + @XmlElement(required = true) + protected List cfvo; + @XmlElement(required = true) + protected List color; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cfvo property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cfvo property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCfvo().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCfvo } + * + * + */ + public List getCfvo() { + if (cfvo == null) { + cfvo = new ArrayList(); + } + return this.cfvo; + } + + /** + * Gets the value of the color property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the color property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getColor().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTColor } + * + * + */ + public List getColor() { + if (color == null) { + color = new ArrayList(); + } + return this.color; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTColors.java b/src/xlsx4j/java/org/xlsx4j/sml/CTColors.java index 778750c5bb..476f329150 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTColors.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTColors.java @@ -1,107 +1,119 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Colors complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Colors">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="indexedColors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IndexedColors" minOccurs="0"/>
- *         <element name="mruColors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MRUColors" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Colors", propOrder = { - "indexedColors", - "mruColors" -}) -public class CTColors { - - protected CTIndexedColors indexedColors; - protected CTMRUColors mruColors; - - /** - * Gets the value of the indexedColors property. - * - * @return - * possible object is - * {@link CTIndexedColors } - * - */ - public CTIndexedColors getIndexedColors() { - return indexedColors; - } - - /** - * Sets the value of the indexedColors property. - * - * @param value - * allowed object is - * {@link CTIndexedColors } - * - */ - public void setIndexedColors(CTIndexedColors value) { - this.indexedColors = value; - } - - /** - * Gets the value of the mruColors property. - * - * @return - * possible object is - * {@link CTMRUColors } - * - */ - public CTMRUColors getMruColors() { - return mruColors; - } - - /** - * Sets the value of the mruColors property. - * - * @param value - * allowed object is - * {@link CTMRUColors } - * - */ - public void setMruColors(CTMRUColors value) { - this.mruColors = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Colors complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Colors">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="indexedColors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IndexedColors" minOccurs="0"/>
+ *         <element name="mruColors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MRUColors" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Colors", propOrder = { + "indexedColors", + "mruColors" +}) +public class CTColors implements Child +{ + + protected CTIndexedColors indexedColors; + protected CTMRUColors mruColors; + @XmlTransient + private Object parent; + + /** + * Gets the value of the indexedColors property. + * + * @return + * possible object is + * {@link CTIndexedColors } + * + */ + public CTIndexedColors getIndexedColors() { + return indexedColors; + } + + /** + * Sets the value of the indexedColors property. + * + * @param value + * allowed object is + * {@link CTIndexedColors } + * + */ + public void setIndexedColors(CTIndexedColors value) { + this.indexedColors = value; + } + + /** + * Gets the value of the mruColors property. + * + * @return + * possible object is + * {@link CTMRUColors } + * + */ + public CTMRUColors getMruColors() { + return mruColors; + } + + /** + * Sets the value of the mruColors property. + * + * @param value + * allowed object is + * {@link CTMRUColors } + * + */ + public void setMruColors(CTMRUColors value) { + this.mruColors = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTComment.java b/src/xlsx4j/java/org/xlsx4j/sml/CTComment.java index 48073f5f8f..85124b8d37 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTComment.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTComment.java @@ -1,161 +1,228 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_Comment complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Comment">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="text" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst"/>
- *       </sequence>
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="authorId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="guid" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Comment", propOrder = { - "text" -}) -public class CTComment { - - @XmlElement(required = true) - protected CTRst text; - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long authorId; - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - - /** - * Gets the value of the text property. - * - * @return - * possible object is - * {@link CTRst } - * - */ - public CTRst getText() { - return text; - } - - /** - * Sets the value of the text property. - * - * @param value - * allowed object is - * {@link CTRst } - * - */ - public void setText(CTRst value) { - this.text = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the authorId property. - * - */ - public long getAuthorId() { - return authorId; - } - - /** - * Sets the value of the authorId property. - * - */ - public void setAuthorId(long value) { - this.authorId = value; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Comment complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Comment">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="text" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst"/>
+ *         <element name="commentPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CommentPr" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="authorId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="guid" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="shapeId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Comment", propOrder = { + "text", + "commentPr" +}) +public class CTComment implements Child +{ + + @XmlElement(required = true) + protected CTRst text; + protected CTCommentPr commentPr; + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "authorId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long authorId; + @XmlAttribute(name = "guid") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "shapeId") + @XmlSchemaType(name = "unsignedInt") + protected Long shapeId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the text property. + * + * @return + * possible object is + * {@link CTRst } + * + */ + public CTRst getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value + * allowed object is + * {@link CTRst } + * + */ + public void setText(CTRst value) { + this.text = value; + } + + /** + * Gets the value of the commentPr property. + * + * @return + * possible object is + * {@link CTCommentPr } + * + */ + public CTCommentPr getCommentPr() { + return commentPr; + } + + /** + * Sets the value of the commentPr property. + * + * @param value + * allowed object is + * {@link CTCommentPr } + * + */ + public void setCommentPr(CTCommentPr value) { + this.commentPr = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the authorId property. + * + */ + public long getAuthorId() { + return authorId; + } + + /** + * Sets the value of the authorId property. + * + */ + public void setAuthorId(long value) { + this.authorId = value; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the shapeId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getShapeId() { + return shapeId; + } + + /** + * Sets the value of the shapeId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setShapeId(Long value) { + this.shapeId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCommentList.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCommentList.java index 0ce02cd9d2..d9826d9fa6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCommentList.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCommentList.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CommentList complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CommentList">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="comment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Comment" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CommentList", propOrder = { - "comment" -}) -public class CTCommentList { - - protected List comment; - - /** - * Gets the value of the comment property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the comment property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getComment().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTComment } - * - * - */ - public List getComment() { - if (comment == null) { - comment = new ArrayList(); - } - return this.comment; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CommentList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CommentList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="comment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Comment" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CommentList", propOrder = { + "comment" +}) +public class CTCommentList implements Child +{ + + protected List comment; + @XmlTransient + private Object parent; + + /** + * Gets the value of the comment property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the comment property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getComment().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTComment } + * + * + */ + public List getComment() { + if (comment == null) { + comment = new ArrayList(); + } + return this.comment; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCommentPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCommentPr.java new file mode 100644 index 0000000000..c3e7cf5dc0 --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCommentPr.java @@ -0,0 +1,463 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CommentPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CommentPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="anchor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ObjectAnchor"/>
+ *       </sequence>
+ *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="defaultSize" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="print" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="disabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="autoFill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="autoLine" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="altText" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="textHAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TextHAlign" default="left" />
+ *       <attribute name="textVAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TextVAlign" default="top" />
+ *       <attribute name="lockText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="justLastX" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="autoScale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CommentPr", propOrder = { + "anchor" +}) +public class CTCommentPr implements Child +{ + + @XmlElement(required = true) + protected CTObjectAnchor anchor; + @XmlAttribute(name = "locked") + protected Boolean locked; + @XmlAttribute(name = "defaultSize") + protected Boolean defaultSize; + @XmlAttribute(name = "print") + protected Boolean print; + @XmlAttribute(name = "disabled") + protected Boolean disabled; + @XmlAttribute(name = "autoFill") + protected Boolean autoFill; + @XmlAttribute(name = "autoLine") + protected Boolean autoLine; + @XmlAttribute(name = "altText") + protected String altText; + @XmlAttribute(name = "textHAlign") + protected STTextHAlign textHAlign; + @XmlAttribute(name = "textVAlign") + protected STTextVAlign textVAlign; + @XmlAttribute(name = "lockText") + protected Boolean lockText; + @XmlAttribute(name = "justLastX") + protected Boolean justLastX; + @XmlAttribute(name = "autoScale") + protected Boolean autoScale; + @XmlTransient + private Object parent; + + /** + * Gets the value of the anchor property. + * + * @return + * possible object is + * {@link CTObjectAnchor } + * + */ + public CTObjectAnchor getAnchor() { + return anchor; + } + + /** + * Sets the value of the anchor property. + * + * @param value + * allowed object is + * {@link CTObjectAnchor } + * + */ + public void setAnchor(CTObjectAnchor value) { + this.anchor = value; + } + + /** + * Gets the value of the locked property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLocked() { + if (locked == null) { + return true; + } else { + return locked; + } + } + + /** + * Sets the value of the locked property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocked(Boolean value) { + this.locked = value; + } + + /** + * Gets the value of the defaultSize property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDefaultSize() { + if (defaultSize == null) { + return true; + } else { + return defaultSize; + } + } + + /** + * Sets the value of the defaultSize property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDefaultSize(Boolean value) { + this.defaultSize = value; + } + + /** + * Gets the value of the print property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPrint() { + if (print == null) { + return true; + } else { + return print; + } + } + + /** + * Sets the value of the print property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPrint(Boolean value) { + this.print = value; + } + + /** + * Gets the value of the disabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDisabled() { + if (disabled == null) { + return false; + } else { + return disabled; + } + } + + /** + * Sets the value of the disabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisabled(Boolean value) { + this.disabled = value; + } + + /** + * Gets the value of the autoFill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoFill() { + if (autoFill == null) { + return true; + } else { + return autoFill; + } + } + + /** + * Sets the value of the autoFill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoFill(Boolean value) { + this.autoFill = value; + } + + /** + * Gets the value of the autoLine property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoLine() { + if (autoLine == null) { + return true; + } else { + return autoLine; + } + } + + /** + * Sets the value of the autoLine property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoLine(Boolean value) { + this.autoLine = value; + } + + /** + * Gets the value of the altText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltText() { + return altText; + } + + /** + * Sets the value of the altText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltText(String value) { + this.altText = value; + } + + /** + * Gets the value of the textHAlign property. + * + * @return + * possible object is + * {@link STTextHAlign } + * + */ + public STTextHAlign getTextHAlign() { + if (textHAlign == null) { + return STTextHAlign.LEFT; + } else { + return textHAlign; + } + } + + /** + * Sets the value of the textHAlign property. + * + * @param value + * allowed object is + * {@link STTextHAlign } + * + */ + public void setTextHAlign(STTextHAlign value) { + this.textHAlign = value; + } + + /** + * Gets the value of the textVAlign property. + * + * @return + * possible object is + * {@link STTextVAlign } + * + */ + public STTextVAlign getTextVAlign() { + if (textVAlign == null) { + return STTextVAlign.TOP; + } else { + return textVAlign; + } + } + + /** + * Sets the value of the textVAlign property. + * + * @param value + * allowed object is + * {@link STTextVAlign } + * + */ + public void setTextVAlign(STTextVAlign value) { + this.textVAlign = value; + } + + /** + * Gets the value of the lockText property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLockText() { + if (lockText == null) { + return true; + } else { + return lockText; + } + } + + /** + * Sets the value of the lockText property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLockText(Boolean value) { + this.lockText = value; + } + + /** + * Gets the value of the justLastX property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isJustLastX() { + if (justLastX == null) { + return false; + } else { + return justLastX; + } + } + + /** + * Sets the value of the justLastX property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setJustLastX(Boolean value) { + this.justLastX = value; + } + + /** + * Gets the value of the autoScale property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoScale() { + if (autoScale == null) { + return false; + } else { + return autoScale; + } + } + + /** + * Sets the value of the autoScale property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoScale(Boolean value) { + this.autoScale = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTComments.java b/src/xlsx4j/java/org/xlsx4j/sml/CTComments.java index 37e4b71e3b..8d26ff084a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTComments.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTComments.java @@ -1,139 +1,151 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Comments complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Comments">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="authors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Authors"/>
- *         <element name="commentList" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CommentList"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Comments", propOrder = { - "authors", - "commentList", - "extLst" -}) -@XmlRootElement(name="comments") -public class CTComments { - - @XmlElement(required = true) - protected CTAuthors authors; - @XmlElement(required = true) - protected CTCommentList commentList; - protected CTExtensionList extLst; - - /** - * Gets the value of the authors property. - * - * @return - * possible object is - * {@link CTAuthors } - * - */ - public CTAuthors getAuthors() { - return authors; - } - - /** - * Sets the value of the authors property. - * - * @param value - * allowed object is - * {@link CTAuthors } - * - */ - public void setAuthors(CTAuthors value) { - this.authors = value; - } - - /** - * Gets the value of the commentList property. - * - * @return - * possible object is - * {@link CTCommentList } - * - */ - public CTCommentList getCommentList() { - return commentList; - } - - /** - * Sets the value of the commentList property. - * - * @param value - * allowed object is - * {@link CTCommentList } - * - */ - public void setCommentList(CTCommentList value) { - this.commentList = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Comments complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Comments">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="authors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Authors"/>
+ *         <element name="commentList" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CommentList"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Comments", propOrder = { + "authors", + "commentList", + "extLst" +}) +@XmlRootElement(name="comments") +public class CTComments implements Child +{ + + @XmlElement(required = true) + protected CTAuthors authors; + @XmlElement(required = true) + protected CTCommentList commentList; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the authors property. + * + * @return + * possible object is + * {@link CTAuthors } + * + */ + public CTAuthors getAuthors() { + return authors; + } + + /** + * Sets the value of the authors property. + * + * @param value + * allowed object is + * {@link CTAuthors } + * + */ + public void setAuthors(CTAuthors value) { + this.authors = value; + } + + /** + * Gets the value of the commentList property. + * + * @return + * possible object is + * {@link CTCommentList } + * + */ + public CTCommentList getCommentList() { + return commentList; + } + + /** + * Sets the value of the commentList property. + * + * @param value + * allowed object is + * {@link CTCommentList } + * + */ + public void setCommentList(CTCommentList value) { + this.commentList = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormat.java b/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormat.java index 2907e7de6c..5fe8b13c6f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormat.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormat.java @@ -1,193 +1,205 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ConditionalFormat complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ConditionalFormat">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotAreas" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotAreas"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="scope" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Scope" default="selection" />
- *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Type" default="none" />
- *       <attribute name="priority" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ConditionalFormat", propOrder = { - "pivotAreas", - "extLst" -}) -public class CTConditionalFormat { - - @XmlElement(required = true) - protected CTPivotAreas pivotAreas; - protected CTExtensionList extLst; - @XmlAttribute - protected STScope scope; - @XmlAttribute - protected STType type; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long priority; - - /** - * Gets the value of the pivotAreas property. - * - * @return - * possible object is - * {@link CTPivotAreas } - * - */ - public CTPivotAreas getPivotAreas() { - return pivotAreas; - } - - /** - * Sets the value of the pivotAreas property. - * - * @param value - * allowed object is - * {@link CTPivotAreas } - * - */ - public void setPivotAreas(CTPivotAreas value) { - this.pivotAreas = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the scope property. - * - * @return - * possible object is - * {@link STScope } - * - */ - public STScope getScope() { - if (scope == null) { - return STScope.SELECTION; - } else { - return scope; - } - } - - /** - * Sets the value of the scope property. - * - * @param value - * allowed object is - * {@link STScope } - * - */ - public void setScope(STScope value) { - this.scope = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STType } - * - */ - public STType getType() { - if (type == null) { - return STType.NONE; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STType } - * - */ - public void setType(STType value) { - this.type = value; - } - - /** - * Gets the value of the priority property. - * - */ - public long getPriority() { - return priority; - } - - /** - * Sets the value of the priority property. - * - */ - public void setPriority(long value) { - this.priority = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ConditionalFormat complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ConditionalFormat">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotAreas" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotAreas"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="scope" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Scope" default="selection" />
+ *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Type" default="none" />
+ *       <attribute name="priority" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ConditionalFormat", propOrder = { + "pivotAreas", + "extLst" +}) +public class CTConditionalFormat implements Child +{ + + @XmlElement(required = true) + protected CTPivotAreas pivotAreas; + protected CTExtensionList extLst; + @XmlAttribute(name = "scope") + protected STScope scope; + @XmlAttribute(name = "type") + protected STType type; + @XmlAttribute(name = "priority", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long priority; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotAreas property. + * + * @return + * possible object is + * {@link CTPivotAreas } + * + */ + public CTPivotAreas getPivotAreas() { + return pivotAreas; + } + + /** + * Sets the value of the pivotAreas property. + * + * @param value + * allowed object is + * {@link CTPivotAreas } + * + */ + public void setPivotAreas(CTPivotAreas value) { + this.pivotAreas = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the scope property. + * + * @return + * possible object is + * {@link STScope } + * + */ + public STScope getScope() { + if (scope == null) { + return STScope.SELECTION; + } else { + return scope; + } + } + + /** + * Sets the value of the scope property. + * + * @param value + * allowed object is + * {@link STScope } + * + */ + public void setScope(STScope value) { + this.scope = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STType } + * + */ + public STType getType() { + if (type == null) { + return STType.NONE; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STType } + * + */ + public void setType(STType value) { + this.type = value; + } + + /** + * Gets the value of the priority property. + * + */ + public long getPriority() { + return priority; + } + + /** + * Sets the value of the priority property. + * + */ + public void setPriority(long value) { + this.priority = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormats.java b/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormats.java index 118590e58e..dda6ecf059 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormats.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormats.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ConditionalFormats complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ConditionalFormats">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="conditionalFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormat" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ConditionalFormats", propOrder = { - "conditionalFormat" -}) -public class CTConditionalFormats { - - @XmlElement(required = true) - protected List conditionalFormat; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the conditionalFormat property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the conditionalFormat property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getConditionalFormat().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTConditionalFormat } - * - * - */ - public List getConditionalFormat() { - if (conditionalFormat == null) { - conditionalFormat = new ArrayList(); - } - return this.conditionalFormat; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ConditionalFormats complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ConditionalFormats">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="conditionalFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormat" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ConditionalFormats", propOrder = { + "conditionalFormat" +}) +public class CTConditionalFormats implements Child +{ + + @XmlElement(required = true) + protected List conditionalFormat; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the conditionalFormat property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the conditionalFormat property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getConditionalFormat().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTConditionalFormat } + * + * + */ + public List getConditionalFormat() { + if (conditionalFormat == null) { + conditionalFormat = new ArrayList(); + } + return this.conditionalFormat; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormatting.java b/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormatting.java index 2ef92f2de3..3785052497 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormatting.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTConditionalFormatting.java @@ -1,180 +1,192 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ConditionalFormatting complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ConditionalFormatting">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cfRule" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CfRule" maxOccurs="unbounded"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="pivot" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sqref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ConditionalFormatting", propOrder = { - "cfRule", - "extLst" -}) -public class CTConditionalFormatting { - - @XmlElement(required = true) - protected List cfRule; - protected CTExtensionList extLst; - @XmlAttribute - protected Boolean pivot; - @XmlAttribute - protected List sqref; - - /** - * Gets the value of the cfRule property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cfRule property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCfRule().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCfRule } - * - * - */ - public List getCfRule() { - if (cfRule == null) { - cfRule = new ArrayList(); - } - return this.cfRule; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the pivot property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPivot() { - if (pivot == null) { - return false; - } else { - return pivot; - } - } - - /** - * Sets the value of the pivot property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPivot(Boolean value) { - this.pivot = value; - } - - /** - * Gets the value of the sqref property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sqref property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSqref().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSqref() { - if (sqref == null) { - sqref = new ArrayList(); - } - return this.sqref; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ConditionalFormatting complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ConditionalFormatting">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cfRule" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CfRule" maxOccurs="unbounded"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="pivot" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sqref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ConditionalFormatting", propOrder = { + "cfRule", + "extLst" +}) +public class CTConditionalFormatting implements Child +{ + + @XmlElement(required = true) + protected List cfRule; + protected CTExtensionList extLst; + @XmlAttribute(name = "pivot") + protected Boolean pivot; + @XmlAttribute(name = "sqref") + protected List sqref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cfRule property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cfRule property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCfRule().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCfRule } + * + * + */ + public List getCfRule() { + if (cfRule == null) { + cfRule = new ArrayList(); + } + return this.cfRule; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the pivot property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPivot() { + if (pivot == null) { + return false; + } else { + return pivot; + } + } + + /** + * Sets the value of the pivot property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPivot(Boolean value) { + this.pivot = value; + } + + /** + * Gets the value of the sqref property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sqref property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSqref().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSqref() { + if (sqref == null) { + sqref = new ArrayList(); + } + return this.sqref; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTConnection.java b/src/xlsx4j/java/org/xlsx4j/sml/CTConnection.java index 15b2140463..05b94feacd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTConnection.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTConnection.java @@ -1,795 +1,807 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Connection complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Connection">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dbPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DbPr" minOccurs="0"/>
- *         <element name="olapPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OlapPr" minOccurs="0"/>
- *         <element name="webPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPr" minOccurs="0"/>
- *         <element name="textPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextPr" minOccurs="0"/>
- *         <element name="parameters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Parameters" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="sourceFile" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="odcFile" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="keepAlive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="interval" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="description" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="reconnectionMethod" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="refreshedVersion" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
- *       <attribute name="minRefreshableVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="savePassword" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="new" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="onlyUseConnectionFile" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="background" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="refreshOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="saveData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="credentials" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CredMethod" default="integrated" />
- *       <attribute name="singleSignOnId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Connection", propOrder = { - "dbPr", - "olapPr", - "webPr", - "textPr", - "parameters", - "extLst" -}) -public class CTConnection { - - protected CTDbPr dbPr; - protected CTOlapPr olapPr; - protected CTWebPr webPr; - protected CTTextPr textPr; - protected CTParameters parameters; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute - protected String sourceFile; - @XmlAttribute - protected String odcFile; - @XmlAttribute - protected Boolean keepAlive; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long interval; - @XmlAttribute - protected String name; - @XmlAttribute - protected String description; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long type; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long reconnectionMethod; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedByte") - protected short refreshedVersion; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short minRefreshableVersion; - @XmlAttribute - protected Boolean savePassword; - @XmlAttribute(name = "new") - protected Boolean _new; - @XmlAttribute - protected Boolean deleted; - @XmlAttribute - protected Boolean onlyUseConnectionFile; - @XmlAttribute - protected Boolean background; - @XmlAttribute - protected Boolean refreshOnLoad; - @XmlAttribute - protected Boolean saveData; - @XmlAttribute - protected STCredMethod credentials; - @XmlAttribute - protected String singleSignOnId; - - /** - * Gets the value of the dbPr property. - * - * @return - * possible object is - * {@link CTDbPr } - * - */ - public CTDbPr getDbPr() { - return dbPr; - } - - /** - * Sets the value of the dbPr property. - * - * @param value - * allowed object is - * {@link CTDbPr } - * - */ - public void setDbPr(CTDbPr value) { - this.dbPr = value; - } - - /** - * Gets the value of the olapPr property. - * - * @return - * possible object is - * {@link CTOlapPr } - * - */ - public CTOlapPr getOlapPr() { - return olapPr; - } - - /** - * Sets the value of the olapPr property. - * - * @param value - * allowed object is - * {@link CTOlapPr } - * - */ - public void setOlapPr(CTOlapPr value) { - this.olapPr = value; - } - - /** - * Gets the value of the webPr property. - * - * @return - * possible object is - * {@link CTWebPr } - * - */ - public CTWebPr getWebPr() { - return webPr; - } - - /** - * Sets the value of the webPr property. - * - * @param value - * allowed object is - * {@link CTWebPr } - * - */ - public void setWebPr(CTWebPr value) { - this.webPr = value; - } - - /** - * Gets the value of the textPr property. - * - * @return - * possible object is - * {@link CTTextPr } - * - */ - public CTTextPr getTextPr() { - return textPr; - } - - /** - * Sets the value of the textPr property. - * - * @param value - * allowed object is - * {@link CTTextPr } - * - */ - public void setTextPr(CTTextPr value) { - this.textPr = value; - } - - /** - * Gets the value of the parameters property. - * - * @return - * possible object is - * {@link CTParameters } - * - */ - public CTParameters getParameters() { - return parameters; - } - - /** - * Sets the value of the parameters property. - * - * @param value - * allowed object is - * {@link CTParameters } - * - */ - public void setParameters(CTParameters value) { - this.parameters = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the sourceFile property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSourceFile() { - return sourceFile; - } - - /** - * Sets the value of the sourceFile property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSourceFile(String value) { - this.sourceFile = value; - } - - /** - * Gets the value of the odcFile property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOdcFile() { - return odcFile; - } - - /** - * Sets the value of the odcFile property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOdcFile(String value) { - this.odcFile = value; - } - - /** - * Gets the value of the keepAlive property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isKeepAlive() { - if (keepAlive == null) { - return false; - } else { - return keepAlive; - } - } - - /** - * Sets the value of the keepAlive property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setKeepAlive(Boolean value) { - this.keepAlive = value; - } - - /** - * Gets the value of the interval property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getInterval() { - if (interval == null) { - return 0L; - } else { - return interval; - } - } - - /** - * Sets the value of the interval property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setInterval(Long value) { - this.interval = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the description property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescription(String value) { - this.description = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setType(Long value) { - this.type = value; - } - - /** - * Gets the value of the reconnectionMethod property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getReconnectionMethod() { - if (reconnectionMethod == null) { - return 1L; - } else { - return reconnectionMethod; - } - } - - /** - * Sets the value of the reconnectionMethod property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setReconnectionMethod(Long value) { - this.reconnectionMethod = value; - } - - /** - * Gets the value of the refreshedVersion property. - * - */ - public short getRefreshedVersion() { - return refreshedVersion; - } - - /** - * Sets the value of the refreshedVersion property. - * - */ - public void setRefreshedVersion(short value) { - this.refreshedVersion = value; - } - - /** - * Gets the value of the minRefreshableVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getMinRefreshableVersion() { - if (minRefreshableVersion == null) { - return ((short) 0); - } else { - return minRefreshableVersion; - } - } - - /** - * Sets the value of the minRefreshableVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setMinRefreshableVersion(Short value) { - this.minRefreshableVersion = value; - } - - /** - * Gets the value of the savePassword property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSavePassword() { - if (savePassword == null) { - return false; - } else { - return savePassword; - } - } - - /** - * Sets the value of the savePassword property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSavePassword(Boolean value) { - this.savePassword = value; - } - - /** - * Gets the value of the new property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isNew() { - if (_new == null) { - return false; - } else { - return _new; - } - } - - /** - * Sets the value of the new property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setNew(Boolean value) { - this._new = value; - } - - /** - * Gets the value of the deleted property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDeleted() { - if (deleted == null) { - return false; - } else { - return deleted; - } - } - - /** - * Sets the value of the deleted property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDeleted(Boolean value) { - this.deleted = value; - } - - /** - * Gets the value of the onlyUseConnectionFile property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOnlyUseConnectionFile() { - if (onlyUseConnectionFile == null) { - return false; - } else { - return onlyUseConnectionFile; - } - } - - /** - * Sets the value of the onlyUseConnectionFile property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOnlyUseConnectionFile(Boolean value) { - this.onlyUseConnectionFile = value; - } - - /** - * Gets the value of the background property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBackground() { - if (background == null) { - return false; - } else { - return background; - } - } - - /** - * Sets the value of the background property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBackground(Boolean value) { - this.background = value; - } - - /** - * Gets the value of the refreshOnLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRefreshOnLoad() { - if (refreshOnLoad == null) { - return false; - } else { - return refreshOnLoad; - } - } - - /** - * Sets the value of the refreshOnLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRefreshOnLoad(Boolean value) { - this.refreshOnLoad = value; - } - - /** - * Gets the value of the saveData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSaveData() { - if (saveData == null) { - return false; - } else { - return saveData; - } - } - - /** - * Sets the value of the saveData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSaveData(Boolean value) { - this.saveData = value; - } - - /** - * Gets the value of the credentials property. - * - * @return - * possible object is - * {@link STCredMethod } - * - */ - public STCredMethod getCredentials() { - if (credentials == null) { - return STCredMethod.INTEGRATED; - } else { - return credentials; - } - } - - /** - * Sets the value of the credentials property. - * - * @param value - * allowed object is - * {@link STCredMethod } - * - */ - public void setCredentials(STCredMethod value) { - this.credentials = value; - } - - /** - * Gets the value of the singleSignOnId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSingleSignOnId() { - return singleSignOnId; - } - - /** - * Sets the value of the singleSignOnId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSingleSignOnId(String value) { - this.singleSignOnId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Connection complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Connection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dbPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DbPr" minOccurs="0"/>
+ *         <element name="olapPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OlapPr" minOccurs="0"/>
+ *         <element name="webPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPr" minOccurs="0"/>
+ *         <element name="textPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextPr" minOccurs="0"/>
+ *         <element name="parameters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Parameters" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="sourceFile" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="odcFile" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="keepAlive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="interval" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="description" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="reconnectionMethod" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="refreshedVersion" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
+ *       <attribute name="minRefreshableVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="savePassword" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="new" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="onlyUseConnectionFile" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="background" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="refreshOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="saveData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="credentials" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CredMethod" default="integrated" />
+ *       <attribute name="singleSignOnId" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Connection", propOrder = { + "dbPr", + "olapPr", + "webPr", + "textPr", + "parameters", + "extLst" +}) +public class CTConnection implements Child +{ + + protected CTDbPr dbPr; + protected CTOlapPr olapPr; + protected CTWebPr webPr; + protected CTTextPr textPr; + protected CTParameters parameters; + protected CTExtensionList extLst; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "sourceFile") + protected String sourceFile; + @XmlAttribute(name = "odcFile") + protected String odcFile; + @XmlAttribute(name = "keepAlive") + protected Boolean keepAlive; + @XmlAttribute(name = "interval") + @XmlSchemaType(name = "unsignedInt") + protected Long interval; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "description") + protected String description; + @XmlAttribute(name = "type") + @XmlSchemaType(name = "unsignedInt") + protected Long type; + @XmlAttribute(name = "reconnectionMethod") + @XmlSchemaType(name = "unsignedInt") + protected Long reconnectionMethod; + @XmlAttribute(name = "refreshedVersion", required = true) + @XmlSchemaType(name = "unsignedByte") + protected short refreshedVersion; + @XmlAttribute(name = "minRefreshableVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short minRefreshableVersion; + @XmlAttribute(name = "savePassword") + protected Boolean savePassword; + @XmlAttribute(name = "new") + protected Boolean _new; + @XmlAttribute(name = "deleted") + protected Boolean deleted; + @XmlAttribute(name = "onlyUseConnectionFile") + protected Boolean onlyUseConnectionFile; + @XmlAttribute(name = "background") + protected Boolean background; + @XmlAttribute(name = "refreshOnLoad") + protected Boolean refreshOnLoad; + @XmlAttribute(name = "saveData") + protected Boolean saveData; + @XmlAttribute(name = "credentials") + protected STCredMethod credentials; + @XmlAttribute(name = "singleSignOnId") + protected String singleSignOnId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dbPr property. + * + * @return + * possible object is + * {@link CTDbPr } + * + */ + public CTDbPr getDbPr() { + return dbPr; + } + + /** + * Sets the value of the dbPr property. + * + * @param value + * allowed object is + * {@link CTDbPr } + * + */ + public void setDbPr(CTDbPr value) { + this.dbPr = value; + } + + /** + * Gets the value of the olapPr property. + * + * @return + * possible object is + * {@link CTOlapPr } + * + */ + public CTOlapPr getOlapPr() { + return olapPr; + } + + /** + * Sets the value of the olapPr property. + * + * @param value + * allowed object is + * {@link CTOlapPr } + * + */ + public void setOlapPr(CTOlapPr value) { + this.olapPr = value; + } + + /** + * Gets the value of the webPr property. + * + * @return + * possible object is + * {@link CTWebPr } + * + */ + public CTWebPr getWebPr() { + return webPr; + } + + /** + * Sets the value of the webPr property. + * + * @param value + * allowed object is + * {@link CTWebPr } + * + */ + public void setWebPr(CTWebPr value) { + this.webPr = value; + } + + /** + * Gets the value of the textPr property. + * + * @return + * possible object is + * {@link CTTextPr } + * + */ + public CTTextPr getTextPr() { + return textPr; + } + + /** + * Sets the value of the textPr property. + * + * @param value + * allowed object is + * {@link CTTextPr } + * + */ + public void setTextPr(CTTextPr value) { + this.textPr = value; + } + + /** + * Gets the value of the parameters property. + * + * @return + * possible object is + * {@link CTParameters } + * + */ + public CTParameters getParameters() { + return parameters; + } + + /** + * Sets the value of the parameters property. + * + * @param value + * allowed object is + * {@link CTParameters } + * + */ + public void setParameters(CTParameters value) { + this.parameters = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the sourceFile property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceFile() { + return sourceFile; + } + + /** + * Sets the value of the sourceFile property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceFile(String value) { + this.sourceFile = value; + } + + /** + * Gets the value of the odcFile property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOdcFile() { + return odcFile; + } + + /** + * Sets the value of the odcFile property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOdcFile(String value) { + this.odcFile = value; + } + + /** + * Gets the value of the keepAlive property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isKeepAlive() { + if (keepAlive == null) { + return false; + } else { + return keepAlive; + } + } + + /** + * Sets the value of the keepAlive property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setKeepAlive(Boolean value) { + this.keepAlive = value; + } + + /** + * Gets the value of the interval property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getInterval() { + if (interval == null) { + return 0L; + } else { + return interval; + } + } + + /** + * Sets the value of the interval property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setInterval(Long value) { + this.interval = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setType(Long value) { + this.type = value; + } + + /** + * Gets the value of the reconnectionMethod property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getReconnectionMethod() { + if (reconnectionMethod == null) { + return 1L; + } else { + return reconnectionMethod; + } + } + + /** + * Sets the value of the reconnectionMethod property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setReconnectionMethod(Long value) { + this.reconnectionMethod = value; + } + + /** + * Gets the value of the refreshedVersion property. + * + */ + public short getRefreshedVersion() { + return refreshedVersion; + } + + /** + * Sets the value of the refreshedVersion property. + * + */ + public void setRefreshedVersion(short value) { + this.refreshedVersion = value; + } + + /** + * Gets the value of the minRefreshableVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getMinRefreshableVersion() { + if (minRefreshableVersion == null) { + return ((short) 0); + } else { + return minRefreshableVersion; + } + } + + /** + * Sets the value of the minRefreshableVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setMinRefreshableVersion(Short value) { + this.minRefreshableVersion = value; + } + + /** + * Gets the value of the savePassword property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSavePassword() { + if (savePassword == null) { + return false; + } else { + return savePassword; + } + } + + /** + * Sets the value of the savePassword property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSavePassword(Boolean value) { + this.savePassword = value; + } + + /** + * Gets the value of the new property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isNew() { + if (_new == null) { + return false; + } else { + return _new; + } + } + + /** + * Sets the value of the new property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNew(Boolean value) { + this._new = value; + } + + /** + * Gets the value of the deleted property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDeleted() { + if (deleted == null) { + return false; + } else { + return deleted; + } + } + + /** + * Sets the value of the deleted property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDeleted(Boolean value) { + this.deleted = value; + } + + /** + * Gets the value of the onlyUseConnectionFile property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOnlyUseConnectionFile() { + if (onlyUseConnectionFile == null) { + return false; + } else { + return onlyUseConnectionFile; + } + } + + /** + * Sets the value of the onlyUseConnectionFile property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOnlyUseConnectionFile(Boolean value) { + this.onlyUseConnectionFile = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBackground() { + if (background == null) { + return false; + } else { + return background; + } + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBackground(Boolean value) { + this.background = value; + } + + /** + * Gets the value of the refreshOnLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRefreshOnLoad() { + if (refreshOnLoad == null) { + return false; + } else { + return refreshOnLoad; + } + } + + /** + * Sets the value of the refreshOnLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRefreshOnLoad(Boolean value) { + this.refreshOnLoad = value; + } + + /** + * Gets the value of the saveData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSaveData() { + if (saveData == null) { + return false; + } else { + return saveData; + } + } + + /** + * Sets the value of the saveData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSaveData(Boolean value) { + this.saveData = value; + } + + /** + * Gets the value of the credentials property. + * + * @return + * possible object is + * {@link STCredMethod } + * + */ + public STCredMethod getCredentials() { + if (credentials == null) { + return STCredMethod.INTEGRATED; + } else { + return credentials; + } + } + + /** + * Sets the value of the credentials property. + * + * @param value + * allowed object is + * {@link STCredMethod } + * + */ + public void setCredentials(STCredMethod value) { + this.credentials = value; + } + + /** + * Gets the value of the singleSignOnId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSingleSignOnId() { + return singleSignOnId; + } + + /** + * Sets the value of the singleSignOnId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSingleSignOnId(String value) { + this.singleSignOnId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTConnections.java b/src/xlsx4j/java/org/xlsx4j/sml/CTConnections.java index 59cc098afe..ec6a7aae53 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTConnections.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTConnections.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Connections complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Connections">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="connection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Connection" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Connections", propOrder = { - "connection" -}) -public class CTConnections { - - @XmlElement(required = true) - protected List connection; - - /** - * Gets the value of the connection property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the connection property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getConnection().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTConnection } - * - * - */ - public List getConnection() { - if (connection == null) { - connection = new ArrayList(); - } - return this.connection; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Connections complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Connections">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="connection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Connection" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Connections", propOrder = { + "connection" +}) +public class CTConnections implements Child +{ + + @XmlElement(required = true) + protected List connection; + @XmlTransient + private Object parent; + + /** + * Gets the value of the connection property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the connection property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getConnection().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTConnection } + * + * + */ + public List getConnection() { + if (connection == null) { + connection = new ArrayList(); + } + return this.connection; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTConsolidation.java b/src/xlsx4j/java/org/xlsx4j/sml/CTConsolidation.java index 03ba877407..0d8a619491 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTConsolidation.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTConsolidation.java @@ -1,141 +1,153 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Consolidation complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Consolidation">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pages" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Pages" minOccurs="0"/>
- *         <element name="rangeSets" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RangeSets"/>
- *       </sequence>
- *       <attribute name="autoPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Consolidation", propOrder = { - "pages", - "rangeSets" -}) -public class CTConsolidation { - - protected CTPages pages; - @XmlElement(required = true) - protected CTRangeSets rangeSets; - @XmlAttribute - protected Boolean autoPage; - - /** - * Gets the value of the pages property. - * - * @return - * possible object is - * {@link CTPages } - * - */ - public CTPages getPages() { - return pages; - } - - /** - * Sets the value of the pages property. - * - * @param value - * allowed object is - * {@link CTPages } - * - */ - public void setPages(CTPages value) { - this.pages = value; - } - - /** - * Gets the value of the rangeSets property. - * - * @return - * possible object is - * {@link CTRangeSets } - * - */ - public CTRangeSets getRangeSets() { - return rangeSets; - } - - /** - * Sets the value of the rangeSets property. - * - * @param value - * allowed object is - * {@link CTRangeSets } - * - */ - public void setRangeSets(CTRangeSets value) { - this.rangeSets = value; - } - - /** - * Gets the value of the autoPage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoPage() { - if (autoPage == null) { - return true; - } else { - return autoPage; - } - } - - /** - * Sets the value of the autoPage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoPage(Boolean value) { - this.autoPage = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Consolidation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Consolidation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pages" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Pages" minOccurs="0"/>
+ *         <element name="rangeSets" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RangeSets"/>
+ *       </sequence>
+ *       <attribute name="autoPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Consolidation", propOrder = { + "pages", + "rangeSets" +}) +public class CTConsolidation implements Child +{ + + protected CTPages pages; + @XmlElement(required = true) + protected CTRangeSets rangeSets; + @XmlAttribute(name = "autoPage") + protected Boolean autoPage; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pages property. + * + * @return + * possible object is + * {@link CTPages } + * + */ + public CTPages getPages() { + return pages; + } + + /** + * Sets the value of the pages property. + * + * @param value + * allowed object is + * {@link CTPages } + * + */ + public void setPages(CTPages value) { + this.pages = value; + } + + /** + * Gets the value of the rangeSets property. + * + * @return + * possible object is + * {@link CTRangeSets } + * + */ + public CTRangeSets getRangeSets() { + return rangeSets; + } + + /** + * Sets the value of the rangeSets property. + * + * @param value + * allowed object is + * {@link CTRangeSets } + * + */ + public void setRangeSets(CTRangeSets value) { + this.rangeSets = value; + } + + /** + * Gets the value of the autoPage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoPage() { + if (autoPage == null) { + return true; + } else { + return autoPage; + } + } + + /** + * Sets the value of the autoPage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoPage(Boolean value) { + this.autoPage = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTControl.java b/src/xlsx4j/java/org/xlsx4j/sml/CTControl.java index cf74b782e3..0a684af1ab 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTControl.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTControl.java @@ -1,126 +1,168 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Control complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Control">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="shapeId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Control") -public class CTControl { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long shapeId; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - @XmlAttribute - protected String name; - - /** - * Gets the value of the shapeId property. - * - */ - public long getShapeId() { - return shapeId; - } - - /** - * Sets the value of the shapeId property. - * - */ - public void setShapeId(long value) { - this.shapeId = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Control complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Control">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="controlPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ControlPr" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="shapeId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Control", propOrder = { + "controlPr" +}) +public class CTControl implements Child +{ + + protected CTControlPr controlPr; + @XmlAttribute(name = "shapeId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long shapeId; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlAttribute(name = "name") + protected String name; + @XmlTransient + private Object parent; + + /** + * Gets the value of the controlPr property. + * + * @return + * possible object is + * {@link CTControlPr } + * + */ + public CTControlPr getControlPr() { + return controlPr; + } + + /** + * Sets the value of the controlPr property. + * + * @param value + * allowed object is + * {@link CTControlPr } + * + */ + public void setControlPr(CTControlPr value) { + this.controlPr = value; + } + + /** + * Gets the value of the shapeId property. + * + */ + public long getShapeId() { + return shapeId; + } + + /** + * Sets the value of the shapeId property. + * + */ + public void setShapeId(long value) { + this.shapeId = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTControlPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTControlPr.java new file mode 100644 index 0000000000..ec6fb6b31e --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTControlPr.java @@ -0,0 +1,540 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ControlPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ControlPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="anchor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ObjectAnchor"/>
+ *       </sequence>
+ *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="defaultSize" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="print" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="disabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="recalcAlways" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="uiObject" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="autoFill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="autoLine" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="autoPict" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="macro" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" />
+ *       <attribute name="altText" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="linkedCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" />
+ *       <attribute name="listFillRange" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" />
+ *       <attribute name="cf" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="pict" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ControlPr", propOrder = { + "anchor" +}) +public class CTControlPr implements Child +{ + + @XmlElement(required = true) + protected CTObjectAnchor anchor; + @XmlAttribute(name = "locked") + protected Boolean locked; + @XmlAttribute(name = "defaultSize") + protected Boolean defaultSize; + @XmlAttribute(name = "print") + protected Boolean print; + @XmlAttribute(name = "disabled") + protected Boolean disabled; + @XmlAttribute(name = "recalcAlways") + protected Boolean recalcAlways; + @XmlAttribute(name = "uiObject") + protected Boolean uiObject; + @XmlAttribute(name = "autoFill") + protected Boolean autoFill; + @XmlAttribute(name = "autoLine") + protected Boolean autoLine; + @XmlAttribute(name = "autoPict") + protected Boolean autoPict; + @XmlAttribute(name = "macro") + protected String macro; + @XmlAttribute(name = "altText") + protected String altText; + @XmlAttribute(name = "linkedCell") + protected String linkedCell; + @XmlAttribute(name = "listFillRange") + protected String listFillRange; + @XmlAttribute(name = "cf") + protected String cf; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the anchor property. + * + * @return + * possible object is + * {@link CTObjectAnchor } + * + */ + public CTObjectAnchor getAnchor() { + return anchor; + } + + /** + * Sets the value of the anchor property. + * + * @param value + * allowed object is + * {@link CTObjectAnchor } + * + */ + public void setAnchor(CTObjectAnchor value) { + this.anchor = value; + } + + /** + * Gets the value of the locked property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLocked() { + if (locked == null) { + return true; + } else { + return locked; + } + } + + /** + * Sets the value of the locked property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocked(Boolean value) { + this.locked = value; + } + + /** + * Gets the value of the defaultSize property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDefaultSize() { + if (defaultSize == null) { + return true; + } else { + return defaultSize; + } + } + + /** + * Sets the value of the defaultSize property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDefaultSize(Boolean value) { + this.defaultSize = value; + } + + /** + * Gets the value of the print property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPrint() { + if (print == null) { + return true; + } else { + return print; + } + } + + /** + * Sets the value of the print property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPrint(Boolean value) { + this.print = value; + } + + /** + * Gets the value of the disabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDisabled() { + if (disabled == null) { + return false; + } else { + return disabled; + } + } + + /** + * Sets the value of the disabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisabled(Boolean value) { + this.disabled = value; + } + + /** + * Gets the value of the recalcAlways property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRecalcAlways() { + if (recalcAlways == null) { + return false; + } else { + return recalcAlways; + } + } + + /** + * Sets the value of the recalcAlways property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRecalcAlways(Boolean value) { + this.recalcAlways = value; + } + + /** + * Gets the value of the uiObject property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUiObject() { + if (uiObject == null) { + return false; + } else { + return uiObject; + } + } + + /** + * Sets the value of the uiObject property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUiObject(Boolean value) { + this.uiObject = value; + } + + /** + * Gets the value of the autoFill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoFill() { + if (autoFill == null) { + return true; + } else { + return autoFill; + } + } + + /** + * Sets the value of the autoFill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoFill(Boolean value) { + this.autoFill = value; + } + + /** + * Gets the value of the autoLine property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoLine() { + if (autoLine == null) { + return true; + } else { + return autoLine; + } + } + + /** + * Sets the value of the autoLine property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoLine(Boolean value) { + this.autoLine = value; + } + + /** + * Gets the value of the autoPict property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoPict() { + if (autoPict == null) { + return true; + } else { + return autoPict; + } + } + + /** + * Sets the value of the autoPict property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoPict(Boolean value) { + this.autoPict = value; + } + + /** + * Gets the value of the macro property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMacro() { + return macro; + } + + /** + * Sets the value of the macro property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMacro(String value) { + this.macro = value; + } + + /** + * Gets the value of the altText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltText() { + return altText; + } + + /** + * Sets the value of the altText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltText(String value) { + this.altText = value; + } + + /** + * Gets the value of the linkedCell property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLinkedCell() { + return linkedCell; + } + + /** + * Sets the value of the linkedCell property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLinkedCell(String value) { + this.linkedCell = value; + } + + /** + * Gets the value of the listFillRange property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getListFillRange() { + return listFillRange; + } + + /** + * Sets the value of the listFillRange property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setListFillRange(String value) { + this.listFillRange = value; + } + + /** + * Gets the value of the cf property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCf() { + if (cf == null) { + return "pict"; + } else { + return cf; + } + } + + /** + * Sets the value of the cf property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCf(String value) { + this.cf = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTControls.java b/src/xlsx4j/java/org/xlsx4j/sml/CTControls.java index e7d33d5873..ae46d6d7c8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTControls.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTControls.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Controls complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Controls">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="control" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Control" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Controls", propOrder = { - "control" -}) -public class CTControls { - - @XmlElement(required = true) - protected List control; - - /** - * Gets the value of the control property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the control property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getControl().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTControl } - * - * - */ - public List getControl() { - if (control == null) { - control = new ArrayList(); - } - return this.control; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Controls complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Controls">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="control" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Control" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Controls", propOrder = { + "control" +}) +public class CTControls implements Child +{ + + @XmlElement(required = true) + protected List control; + @XmlTransient + private Object parent; + + /** + * Gets the value of the control property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the control property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getControl().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTControl } + * + * + */ + public List getControl() { + if (control == null) { + control = new ArrayList(); + } + return this.control; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCsPageSetup.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCsPageSetup.java index 37d7948159..3e190bebbd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCsPageSetup.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCsPageSetup.java @@ -1,394 +1,460 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CsPageSetup complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CsPageSetup">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="orientation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Orientation" default="default" />
- *       <attribute name="usePrinterDefaults" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
- *       <attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
- *       <attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CsPageSetup") -public class CTCsPageSetup { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long paperSize; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long firstPageNumber; - @XmlAttribute - protected STOrientation orientation; - @XmlAttribute - protected Boolean usePrinterDefaults; - @XmlAttribute - protected Boolean blackAndWhite; - @XmlAttribute - protected Boolean draft; - @XmlAttribute - protected Boolean useFirstPageNumber; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long horizontalDpi; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long verticalDpi; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long copies; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - - /** - * Gets the value of the paperSize property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getPaperSize() { - if (paperSize == null) { - return 1L; - } else { - return paperSize; - } - } - - /** - * Sets the value of the paperSize property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPaperSize(Long value) { - this.paperSize = value; - } - - /** - * Gets the value of the firstPageNumber property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getFirstPageNumber() { - if (firstPageNumber == null) { - return 1L; - } else { - return firstPageNumber; - } - } - - /** - * Sets the value of the firstPageNumber property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFirstPageNumber(Long value) { - this.firstPageNumber = value; - } - - /** - * Gets the value of the orientation property. - * - * @return - * possible object is - * {@link STOrientation } - * - */ - public STOrientation getOrientation() { - if (orientation == null) { - return STOrientation.DEFAULT; - } else { - return orientation; - } - } - - /** - * Sets the value of the orientation property. - * - * @param value - * allowed object is - * {@link STOrientation } - * - */ - public void setOrientation(STOrientation value) { - this.orientation = value; - } - - /** - * Gets the value of the usePrinterDefaults property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUsePrinterDefaults() { - if (usePrinterDefaults == null) { - return true; - } else { - return usePrinterDefaults; - } - } - - /** - * Sets the value of the usePrinterDefaults property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUsePrinterDefaults(Boolean value) { - this.usePrinterDefaults = value; - } - - /** - * Gets the value of the blackAndWhite property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBlackAndWhite() { - if (blackAndWhite == null) { - return false; - } else { - return blackAndWhite; - } - } - - /** - * Sets the value of the blackAndWhite property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBlackAndWhite(Boolean value) { - this.blackAndWhite = value; - } - - /** - * Gets the value of the draft property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDraft() { - if (draft == null) { - return false; - } else { - return draft; - } - } - - /** - * Sets the value of the draft property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDraft(Boolean value) { - this.draft = value; - } - - /** - * Gets the value of the useFirstPageNumber property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUseFirstPageNumber() { - if (useFirstPageNumber == null) { - return false; - } else { - return useFirstPageNumber; - } - } - - /** - * Sets the value of the useFirstPageNumber property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUseFirstPageNumber(Boolean value) { - this.useFirstPageNumber = value; - } - - /** - * Gets the value of the horizontalDpi property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getHorizontalDpi() { - if (horizontalDpi == null) { - return 600L; - } else { - return horizontalDpi; - } - } - - /** - * Sets the value of the horizontalDpi property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setHorizontalDpi(Long value) { - this.horizontalDpi = value; - } - - /** - * Gets the value of the verticalDpi property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getVerticalDpi() { - if (verticalDpi == null) { - return 600L; - } else { - return verticalDpi; - } - } - - /** - * Sets the value of the verticalDpi property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setVerticalDpi(Long value) { - this.verticalDpi = value; - } - - /** - * Gets the value of the copies property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCopies() { - if (copies == null) { - return 1L; - } else { - return copies; - } - } - - /** - * Sets the value of the copies property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCopies(Long value) { - this.copies = value; - } - - /** - * Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CsPageSetup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CsPageSetup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="paperHeight" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
+ *       <attribute name="paperWidth" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
+ *       <attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="orientation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Orientation" default="default" />
+ *       <attribute name="usePrinterDefaults" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
+ *       <attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
+ *       <attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CsPageSetup") +public class CTCsPageSetup implements Child +{ + + @XmlAttribute(name = "paperSize") + @XmlSchemaType(name = "unsignedInt") + protected Long paperSize; + @XmlAttribute(name = "paperHeight") + protected String paperHeight; + @XmlAttribute(name = "paperWidth") + protected String paperWidth; + @XmlAttribute(name = "firstPageNumber") + @XmlSchemaType(name = "unsignedInt") + protected Long firstPageNumber; + @XmlAttribute(name = "orientation") + protected STOrientation orientation; + @XmlAttribute(name = "usePrinterDefaults") + protected Boolean usePrinterDefaults; + @XmlAttribute(name = "blackAndWhite") + protected Boolean blackAndWhite; + @XmlAttribute(name = "draft") + protected Boolean draft; + @XmlAttribute(name = "useFirstPageNumber") + protected Boolean useFirstPageNumber; + @XmlAttribute(name = "horizontalDpi") + @XmlSchemaType(name = "unsignedInt") + protected Long horizontalDpi; + @XmlAttribute(name = "verticalDpi") + @XmlSchemaType(name = "unsignedInt") + protected Long verticalDpi; + @XmlAttribute(name = "copies") + @XmlSchemaType(name = "unsignedInt") + protected Long copies; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the paperSize property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getPaperSize() { + if (paperSize == null) { + return 1L; + } else { + return paperSize; + } + } + + /** + * Sets the value of the paperSize property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPaperSize(Long value) { + this.paperSize = value; + } + + /** + * Gets the value of the paperHeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPaperHeight() { + return paperHeight; + } + + /** + * Sets the value of the paperHeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPaperHeight(String value) { + this.paperHeight = value; + } + + /** + * Gets the value of the paperWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPaperWidth() { + return paperWidth; + } + + /** + * Sets the value of the paperWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPaperWidth(String value) { + this.paperWidth = value; + } + + /** + * Gets the value of the firstPageNumber property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getFirstPageNumber() { + if (firstPageNumber == null) { + return 1L; + } else { + return firstPageNumber; + } + } + + /** + * Sets the value of the firstPageNumber property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFirstPageNumber(Long value) { + this.firstPageNumber = value; + } + + /** + * Gets the value of the orientation property. + * + * @return + * possible object is + * {@link STOrientation } + * + */ + public STOrientation getOrientation() { + if (orientation == null) { + return STOrientation.DEFAULT; + } else { + return orientation; + } + } + + /** + * Sets the value of the orientation property. + * + * @param value + * allowed object is + * {@link STOrientation } + * + */ + public void setOrientation(STOrientation value) { + this.orientation = value; + } + + /** + * Gets the value of the usePrinterDefaults property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUsePrinterDefaults() { + if (usePrinterDefaults == null) { + return true; + } else { + return usePrinterDefaults; + } + } + + /** + * Sets the value of the usePrinterDefaults property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUsePrinterDefaults(Boolean value) { + this.usePrinterDefaults = value; + } + + /** + * Gets the value of the blackAndWhite property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBlackAndWhite() { + if (blackAndWhite == null) { + return false; + } else { + return blackAndWhite; + } + } + + /** + * Sets the value of the blackAndWhite property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBlackAndWhite(Boolean value) { + this.blackAndWhite = value; + } + + /** + * Gets the value of the draft property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDraft() { + if (draft == null) { + return false; + } else { + return draft; + } + } + + /** + * Sets the value of the draft property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDraft(Boolean value) { + this.draft = value; + } + + /** + * Gets the value of the useFirstPageNumber property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUseFirstPageNumber() { + if (useFirstPageNumber == null) { + return false; + } else { + return useFirstPageNumber; + } + } + + /** + * Sets the value of the useFirstPageNumber property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUseFirstPageNumber(Boolean value) { + this.useFirstPageNumber = value; + } + + /** + * Gets the value of the horizontalDpi property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getHorizontalDpi() { + if (horizontalDpi == null) { + return 600L; + } else { + return horizontalDpi; + } + } + + /** + * Sets the value of the horizontalDpi property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setHorizontalDpi(Long value) { + this.horizontalDpi = value; + } + + /** + * Gets the value of the verticalDpi property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getVerticalDpi() { + if (verticalDpi == null) { + return 600L; + } else { + return verticalDpi; + } + } + + /** + * Sets the value of the verticalDpi property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setVerticalDpi(Long value) { + this.verticalDpi = value; + } + + /** + * Gets the value of the copies property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCopies() { + if (copies == null) { + return 1L; + } else { + return copies; + } + } + + /** + * Sets the value of the copies property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCopies(Long value) { + this.copies = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetView.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetView.java index 93135c11c5..b75539bc02 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetView.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetView.java @@ -1,260 +1,272 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_CustomChartsheetView complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomChartsheetView">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
- *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CsPageSetup" minOccurs="0"/>
- *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
- *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetState" default="visible" />
- *       <attribute name="zoomToFit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomChartsheetView", propOrder = { - "pageMargins", - "pageSetup", - "headerFooter" -}) -public class CTCustomChartsheetView { - - protected CTPageMargins pageMargins; - protected CTCsPageSetup pageSetup; - protected CTHeaderFooter headerFooter; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long scale; - @XmlAttribute - protected STSheetState state; - @XmlAttribute - protected Boolean zoomToFit; - - /** - * Gets the value of the pageMargins property. - * - * @return - * possible object is - * {@link CTPageMargins } - * - */ - public CTPageMargins getPageMargins() { - return pageMargins; - } - - /** - * Sets the value of the pageMargins property. - * - * @param value - * allowed object is - * {@link CTPageMargins } - * - */ - public void setPageMargins(CTPageMargins value) { - this.pageMargins = value; - } - - /** - * Gets the value of the pageSetup property. - * - * @return - * possible object is - * {@link CTCsPageSetup } - * - */ - public CTCsPageSetup getPageSetup() { - return pageSetup; - } - - /** - * Sets the value of the pageSetup property. - * - * @param value - * allowed object is - * {@link CTCsPageSetup } - * - */ - public void setPageSetup(CTCsPageSetup value) { - this.pageSetup = value; - } - - /** - * Gets the value of the headerFooter property. - * - * @return - * possible object is - * {@link CTHeaderFooter } - * - */ - public CTHeaderFooter getHeaderFooter() { - return headerFooter; - } - - /** - * Sets the value of the headerFooter property. - * - * @param value - * allowed object is - * {@link CTHeaderFooter } - * - */ - public void setHeaderFooter(CTHeaderFooter value) { - this.headerFooter = value; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the scale property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getScale() { - if (scale == null) { - return 100L; - } else { - return scale; - } - } - - /** - * Sets the value of the scale property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setScale(Long value) { - this.scale = value; - } - - /** - * Gets the value of the state property. - * - * @return - * possible object is - * {@link STSheetState } - * - */ - public STSheetState getState() { - if (state == null) { - return STSheetState.VISIBLE; - } else { - return state; - } - } - - /** - * Sets the value of the state property. - * - * @param value - * allowed object is - * {@link STSheetState } - * - */ - public void setState(STSheetState value) { - this.state = value; - } - - /** - * Gets the value of the zoomToFit property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isZoomToFit() { - if (zoomToFit == null) { - return false; - } else { - return zoomToFit; - } - } - - /** - * Sets the value of the zoomToFit property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setZoomToFit(Boolean value) { - this.zoomToFit = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomChartsheetView complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomChartsheetView">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
+ *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CsPageSetup" minOccurs="0"/>
+ *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
+ *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetState" default="visible" />
+ *       <attribute name="zoomToFit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomChartsheetView", propOrder = { + "pageMargins", + "pageSetup", + "headerFooter" +}) +public class CTCustomChartsheetView implements Child +{ + + protected CTPageMargins pageMargins; + protected CTCsPageSetup pageSetup; + protected CTHeaderFooter headerFooter; + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "scale") + @XmlSchemaType(name = "unsignedInt") + protected Long scale; + @XmlAttribute(name = "state") + protected STSheetState state; + @XmlAttribute(name = "zoomToFit") + protected Boolean zoomToFit; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pageMargins property. + * + * @return + * possible object is + * {@link CTPageMargins } + * + */ + public CTPageMargins getPageMargins() { + return pageMargins; + } + + /** + * Sets the value of the pageMargins property. + * + * @param value + * allowed object is + * {@link CTPageMargins } + * + */ + public void setPageMargins(CTPageMargins value) { + this.pageMargins = value; + } + + /** + * Gets the value of the pageSetup property. + * + * @return + * possible object is + * {@link CTCsPageSetup } + * + */ + public CTCsPageSetup getPageSetup() { + return pageSetup; + } + + /** + * Sets the value of the pageSetup property. + * + * @param value + * allowed object is + * {@link CTCsPageSetup } + * + */ + public void setPageSetup(CTCsPageSetup value) { + this.pageSetup = value; + } + + /** + * Gets the value of the headerFooter property. + * + * @return + * possible object is + * {@link CTHeaderFooter } + * + */ + public CTHeaderFooter getHeaderFooter() { + return headerFooter; + } + + /** + * Sets the value of the headerFooter property. + * + * @param value + * allowed object is + * {@link CTHeaderFooter } + * + */ + public void setHeaderFooter(CTHeaderFooter value) { + this.headerFooter = value; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the scale property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getScale() { + if (scale == null) { + return 100L; + } else { + return scale; + } + } + + /** + * Sets the value of the scale property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setScale(Long value) { + this.scale = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link STSheetState } + * + */ + public STSheetState getState() { + if (state == null) { + return STSheetState.VISIBLE; + } else { + return state; + } + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link STSheetState } + * + */ + public void setState(STSheetState value) { + this.state = value; + } + + /** + * Gets the value of the zoomToFit property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isZoomToFit() { + if (zoomToFit == null) { + return false; + } else { + return zoomToFit; + } + } + + /** + * Sets the value of the zoomToFit property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setZoomToFit(Boolean value) { + this.zoomToFit = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetViews.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetViews.java index 4223027057..20d9d48289 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetViews.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomChartsheetViews.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CustomChartsheetViews complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomChartsheetViews">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="customSheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomChartsheetView" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomChartsheetViews", propOrder = { - "customSheetView" -}) -public class CTCustomChartsheetViews { - - protected List customSheetView; - - /** - * Gets the value of the customSheetView property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the customSheetView property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCustomSheetView().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCustomChartsheetView } - * - * - */ - public List getCustomSheetView() { - if (customSheetView == null) { - customSheetView = new ArrayList(); - } - return this.customSheetView; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomChartsheetViews complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomChartsheetViews">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="customSheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomChartsheetView" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomChartsheetViews", propOrder = { + "customSheetView" +}) +public class CTCustomChartsheetViews implements Child +{ + + protected List customSheetView; + @XmlTransient + private Object parent; + + /** + * Gets the value of the customSheetView property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the customSheetView property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCustomSheetView().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCustomChartsheetView } + * + * + */ + public List getCustomSheetView() { + if (customSheetView == null) { + customSheetView = new ArrayList(); + } + return this.customSheetView; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilter.java index 0f811fb5d3..6cca5daff6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilter.java @@ -1,109 +1,121 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CustomFilter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomFilter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FilterOperator" default="equal" />
- *       <attribute name="val" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomFilter") -public class CTCustomFilter { - - @XmlAttribute - protected STFilterOperator operator; - @XmlAttribute - protected String val; - - /** - * Gets the value of the operator property. - * - * @return - * possible object is - * {@link STFilterOperator } - * - */ - public STFilterOperator getOperator() { - if (operator == null) { - return STFilterOperator.EQUAL; - } else { - return operator; - } - } - - /** - * Sets the value of the operator property. - * - * @param value - * allowed object is - * {@link STFilterOperator } - * - */ - public void setOperator(STFilterOperator value) { - this.operator = value; - } - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomFilter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomFilter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FilterOperator" default="equal" />
+ *       <attribute name="val" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomFilter") +public class CTCustomFilter implements Child +{ + + @XmlAttribute(name = "operator") + protected STFilterOperator operator; + @XmlAttribute(name = "val") + protected String val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the operator property. + * + * @return + * possible object is + * {@link STFilterOperator } + * + */ + public STFilterOperator getOperator() { + if (operator == null) { + return STFilterOperator.EQUAL; + } else { + return operator; + } + } + + /** + * Sets the value of the operator property. + * + * @param value + * allowed object is + * {@link STFilterOperator } + * + */ + public void setOperator(STFilterOperator value) { + this.operator = value; + } + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilters.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilters.java index 88086fb0dd..0f46b5c427 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilters.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomFilters.java @@ -1,121 +1,133 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CustomFilters complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomFilters">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="customFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomFilter" maxOccurs="2"/>
- *       </sequence>
- *       <attribute name="and" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomFilters", propOrder = { - "customFilter" -}) -public class CTCustomFilters { - - @XmlElement(required = true) - protected List customFilter; - @XmlAttribute - protected Boolean and; - - /** - * Gets the value of the customFilter property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the customFilter property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCustomFilter().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCustomFilter } - * - * - */ - public List getCustomFilter() { - if (customFilter == null) { - customFilter = new ArrayList(); - } - return this.customFilter; - } - - /** - * Gets the value of the and property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAnd() { - if (and == null) { - return false; - } else { - return and; - } - } - - /** - * Sets the value of the and property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAnd(Boolean value) { - this.and = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomFilters complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomFilters">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="customFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomFilter" maxOccurs="2"/>
+ *       </sequence>
+ *       <attribute name="and" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomFilters", propOrder = { + "customFilter" +}) +public class CTCustomFilters implements Child +{ + + @XmlElement(required = true) + protected List customFilter; + @XmlAttribute(name = "and") + protected Boolean and; + @XmlTransient + private Object parent; + + /** + * Gets the value of the customFilter property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the customFilter property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCustomFilter().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCustomFilter } + * + * + */ + public List getCustomFilter() { + if (customFilter == null) { + customFilter = new ArrayList(); + } + return this.customFilter; + } + + /** + * Gets the value of the and property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAnd() { + if (and == null) { + return false; + } else { + return and; + } + } + + /** + * Sets the value of the and property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAnd(Boolean value) { + this.and = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperties.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperties.java index b79006d72e..c995938d8e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperties.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperties.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CustomProperties complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomProperties">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="customPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomProperty" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomProperties", propOrder = { - "customPr" -}) -public class CTCustomProperties { - - @XmlElement(required = true) - protected List customPr; - - /** - * Gets the value of the customPr property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the customPr property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCustomPr().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCustomProperty } - * - * - */ - public List getCustomPr() { - if (customPr == null) { - customPr = new ArrayList(); - } - return this.customPr; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="customPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomProperty" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomProperties", propOrder = { + "customPr" +}) +public class CTCustomProperties implements Child +{ + + @XmlElement(required = true) + protected List customPr; + @XmlTransient + private Object parent; + + /** + * Gets the value of the customPr property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the customPr property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCustomPr().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCustomProperty } + * + * + */ + public List getCustomPr() { + if (customPr == null) { + customPr = new ArrayList(); + } + return this.customPr; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperty.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperty.java index 04ad6fb508..211abcf5aa 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperty.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomProperty.java @@ -1,105 +1,117 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CustomProperty complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomProperty">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomProperty") -public class CTCustomProperty { - - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomProperty complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomProperty">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomProperty") +public class CTCustomProperty implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetView.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetView.java index a438444c5f..940e8f25d3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetView.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetView.java @@ -1,942 +1,954 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_CustomSheetView complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomSheetView">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Pane" minOccurs="0"/>
- *         <element name="selection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Selection" minOccurs="0"/>
- *         <element name="rowBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
- *         <element name="colBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
- *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
- *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
- *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
- *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
- *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
- *       <attribute name="colorId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="64" />
- *       <attribute name="showPageBreaks" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showGridLines" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showRowCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="outlineSymbols" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="zeroValues" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="fitToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="printArea" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="filter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showAutoFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="hiddenRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="hiddenColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetState" default="visible" />
- *       <attribute name="filterUnique" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="view" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetViewType" default="normal" />
- *       <attribute name="showRuler" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="topLeftCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomSheetView", propOrder = { - "pane", - "selection", - "rowBreaks", - "colBreaks", - "pageMargins", - "printOptions", - "pageSetup", - "headerFooter", - "autoFilter", - "extLst" -}) -public class CTCustomSheetView { - - protected CTPane pane; - protected CTSelection selection; - protected CTPageBreak rowBreaks; - protected CTPageBreak colBreaks; - protected CTPageMargins pageMargins; - protected CTPrintOptions printOptions; - protected CTPageSetup pageSetup; - protected CTHeaderFooter headerFooter; - protected CTAutoFilter autoFilter; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long scale; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long colorId; - @XmlAttribute - protected Boolean showPageBreaks; - @XmlAttribute - protected Boolean showFormulas; - @XmlAttribute - protected Boolean showGridLines; - @XmlAttribute - protected Boolean showRowCol; - @XmlAttribute - protected Boolean outlineSymbols; - @XmlAttribute - protected Boolean zeroValues; - @XmlAttribute - protected Boolean fitToPage; - @XmlAttribute - protected Boolean printArea; - @XmlAttribute - protected Boolean filter; - @XmlAttribute - protected Boolean showAutoFilter; - @XmlAttribute - protected Boolean hiddenRows; - @XmlAttribute - protected Boolean hiddenColumns; - @XmlAttribute - protected STSheetState state; - @XmlAttribute - protected Boolean filterUnique; - @XmlAttribute - protected STSheetViewType view; - @XmlAttribute - protected Boolean showRuler; - @XmlAttribute - protected String topLeftCell; - - /** - * Gets the value of the pane property. - * - * @return - * possible object is - * {@link CTPane } - * - */ - public CTPane getPane() { - return pane; - } - - /** - * Sets the value of the pane property. - * - * @param value - * allowed object is - * {@link CTPane } - * - */ - public void setPane(CTPane value) { - this.pane = value; - } - - /** - * Gets the value of the selection property. - * - * @return - * possible object is - * {@link CTSelection } - * - */ - public CTSelection getSelection() { - return selection; - } - - /** - * Sets the value of the selection property. - * - * @param value - * allowed object is - * {@link CTSelection } - * - */ - public void setSelection(CTSelection value) { - this.selection = value; - } - - /** - * Gets the value of the rowBreaks property. - * - * @return - * possible object is - * {@link CTPageBreak } - * - */ - public CTPageBreak getRowBreaks() { - return rowBreaks; - } - - /** - * Sets the value of the rowBreaks property. - * - * @param value - * allowed object is - * {@link CTPageBreak } - * - */ - public void setRowBreaks(CTPageBreak value) { - this.rowBreaks = value; - } - - /** - * Gets the value of the colBreaks property. - * - * @return - * possible object is - * {@link CTPageBreak } - * - */ - public CTPageBreak getColBreaks() { - return colBreaks; - } - - /** - * Sets the value of the colBreaks property. - * - * @param value - * allowed object is - * {@link CTPageBreak } - * - */ - public void setColBreaks(CTPageBreak value) { - this.colBreaks = value; - } - - /** - * Gets the value of the pageMargins property. - * - * @return - * possible object is - * {@link CTPageMargins } - * - */ - public CTPageMargins getPageMargins() { - return pageMargins; - } - - /** - * Sets the value of the pageMargins property. - * - * @param value - * allowed object is - * {@link CTPageMargins } - * - */ - public void setPageMargins(CTPageMargins value) { - this.pageMargins = value; - } - - /** - * Gets the value of the printOptions property. - * - * @return - * possible object is - * {@link CTPrintOptions } - * - */ - public CTPrintOptions getPrintOptions() { - return printOptions; - } - - /** - * Sets the value of the printOptions property. - * - * @param value - * allowed object is - * {@link CTPrintOptions } - * - */ - public void setPrintOptions(CTPrintOptions value) { - this.printOptions = value; - } - - /** - * Gets the value of the pageSetup property. - * - * @return - * possible object is - * {@link CTPageSetup } - * - */ - public CTPageSetup getPageSetup() { - return pageSetup; - } - - /** - * Sets the value of the pageSetup property. - * - * @param value - * allowed object is - * {@link CTPageSetup } - * - */ - public void setPageSetup(CTPageSetup value) { - this.pageSetup = value; - } - - /** - * Gets the value of the headerFooter property. - * - * @return - * possible object is - * {@link CTHeaderFooter } - * - */ - public CTHeaderFooter getHeaderFooter() { - return headerFooter; - } - - /** - * Sets the value of the headerFooter property. - * - * @param value - * allowed object is - * {@link CTHeaderFooter } - * - */ - public void setHeaderFooter(CTHeaderFooter value) { - this.headerFooter = value; - } - - /** - * Gets the value of the autoFilter property. - * - * @return - * possible object is - * {@link CTAutoFilter } - * - */ - public CTAutoFilter getAutoFilter() { - return autoFilter; - } - - /** - * Sets the value of the autoFilter property. - * - * @param value - * allowed object is - * {@link CTAutoFilter } - * - */ - public void setAutoFilter(CTAutoFilter value) { - this.autoFilter = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the scale property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getScale() { - if (scale == null) { - return 100L; - } else { - return scale; - } - } - - /** - * Sets the value of the scale property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setScale(Long value) { - this.scale = value; - } - - /** - * Gets the value of the colorId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getColorId() { - if (colorId == null) { - return 64L; - } else { - return colorId; - } - } - - /** - * Sets the value of the colorId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setColorId(Long value) { - this.colorId = value; - } - - /** - * Gets the value of the showPageBreaks property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowPageBreaks() { - if (showPageBreaks == null) { - return false; - } else { - return showPageBreaks; - } - } - - /** - * Sets the value of the showPageBreaks property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowPageBreaks(Boolean value) { - this.showPageBreaks = value; - } - - /** - * Gets the value of the showFormulas property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowFormulas() { - if (showFormulas == null) { - return false; - } else { - return showFormulas; - } - } - - /** - * Sets the value of the showFormulas property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowFormulas(Boolean value) { - this.showFormulas = value; - } - - /** - * Gets the value of the showGridLines property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowGridLines() { - if (showGridLines == null) { - return true; - } else { - return showGridLines; - } - } - - /** - * Sets the value of the showGridLines property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowGridLines(Boolean value) { - this.showGridLines = value; - } - - /** - * Gets the value of the showRowCol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowRowCol() { - if (showRowCol == null) { - return true; - } else { - return showRowCol; - } - } - - /** - * Sets the value of the showRowCol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowRowCol(Boolean value) { - this.showRowCol = value; - } - - /** - * Gets the value of the outlineSymbols property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOutlineSymbols() { - if (outlineSymbols == null) { - return true; - } else { - return outlineSymbols; - } - } - - /** - * Sets the value of the outlineSymbols property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOutlineSymbols(Boolean value) { - this.outlineSymbols = value; - } - - /** - * Gets the value of the zeroValues property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isZeroValues() { - if (zeroValues == null) { - return true; - } else { - return zeroValues; - } - } - - /** - * Sets the value of the zeroValues property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setZeroValues(Boolean value) { - this.zeroValues = value; - } - - /** - * Gets the value of the fitToPage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFitToPage() { - if (fitToPage == null) { - return false; - } else { - return fitToPage; - } - } - - /** - * Sets the value of the fitToPage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFitToPage(Boolean value) { - this.fitToPage = value; - } - - /** - * Gets the value of the printArea property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPrintArea() { - if (printArea == null) { - return false; - } else { - return printArea; - } - } - - /** - * Sets the value of the printArea property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPrintArea(Boolean value) { - this.printArea = value; - } - - /** - * Gets the value of the filter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFilter() { - if (filter == null) { - return false; - } else { - return filter; - } - } - - /** - * Sets the value of the filter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFilter(Boolean value) { - this.filter = value; - } - - /** - * Gets the value of the showAutoFilter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowAutoFilter() { - if (showAutoFilter == null) { - return false; - } else { - return showAutoFilter; - } - } - - /** - * Sets the value of the showAutoFilter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowAutoFilter(Boolean value) { - this.showAutoFilter = value; - } - - /** - * Gets the value of the hiddenRows property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHiddenRows() { - if (hiddenRows == null) { - return false; - } else { - return hiddenRows; - } - } - - /** - * Sets the value of the hiddenRows property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHiddenRows(Boolean value) { - this.hiddenRows = value; - } - - /** - * Gets the value of the hiddenColumns property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHiddenColumns() { - if (hiddenColumns == null) { - return false; - } else { - return hiddenColumns; - } - } - - /** - * Sets the value of the hiddenColumns property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHiddenColumns(Boolean value) { - this.hiddenColumns = value; - } - - /** - * Gets the value of the state property. - * - * @return - * possible object is - * {@link STSheetState } - * - */ - public STSheetState getState() { - if (state == null) { - return STSheetState.VISIBLE; - } else { - return state; - } - } - - /** - * Sets the value of the state property. - * - * @param value - * allowed object is - * {@link STSheetState } - * - */ - public void setState(STSheetState value) { - this.state = value; - } - - /** - * Gets the value of the filterUnique property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFilterUnique() { - if (filterUnique == null) { - return false; - } else { - return filterUnique; - } - } - - /** - * Sets the value of the filterUnique property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFilterUnique(Boolean value) { - this.filterUnique = value; - } - - /** - * Gets the value of the view property. - * - * @return - * possible object is - * {@link STSheetViewType } - * - */ - public STSheetViewType getView() { - if (view == null) { - return STSheetViewType.NORMAL; - } else { - return view; - } - } - - /** - * Sets the value of the view property. - * - * @param value - * allowed object is - * {@link STSheetViewType } - * - */ - public void setView(STSheetViewType value) { - this.view = value; - } - - /** - * Gets the value of the showRuler property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowRuler() { - if (showRuler == null) { - return true; - } else { - return showRuler; - } - } - - /** - * Sets the value of the showRuler property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowRuler(Boolean value) { - this.showRuler = value; - } - - /** - * Gets the value of the topLeftCell property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTopLeftCell() { - return topLeftCell; - } - - /** - * Sets the value of the topLeftCell property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTopLeftCell(String value) { - this.topLeftCell = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomSheetView complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomSheetView">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Pane" minOccurs="0"/>
+ *         <element name="selection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Selection" minOccurs="0"/>
+ *         <element name="rowBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
+ *         <element name="colBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
+ *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
+ *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
+ *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
+ *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
+ *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
+ *       <attribute name="colorId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="64" />
+ *       <attribute name="showPageBreaks" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showGridLines" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showRowCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="outlineSymbols" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="zeroValues" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="fitToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="printArea" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="filter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showAutoFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="hiddenRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="hiddenColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetState" default="visible" />
+ *       <attribute name="filterUnique" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="view" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetViewType" default="normal" />
+ *       <attribute name="showRuler" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="topLeftCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomSheetView", propOrder = { + "pane", + "selection", + "rowBreaks", + "colBreaks", + "pageMargins", + "printOptions", + "pageSetup", + "headerFooter", + "autoFilter", + "extLst" +}) +public class CTCustomSheetView implements Child +{ + + protected CTPane pane; + protected CTSelection selection; + protected CTPageBreak rowBreaks; + protected CTPageBreak colBreaks; + protected CTPageMargins pageMargins; + protected CTPrintOptions printOptions; + protected CTPageSetup pageSetup; + protected CTHeaderFooter headerFooter; + protected CTAutoFilter autoFilter; + protected CTExtensionList extLst; + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "scale") + @XmlSchemaType(name = "unsignedInt") + protected Long scale; + @XmlAttribute(name = "colorId") + @XmlSchemaType(name = "unsignedInt") + protected Long colorId; + @XmlAttribute(name = "showPageBreaks") + protected Boolean showPageBreaks; + @XmlAttribute(name = "showFormulas") + protected Boolean showFormulas; + @XmlAttribute(name = "showGridLines") + protected Boolean showGridLines; + @XmlAttribute(name = "showRowCol") + protected Boolean showRowCol; + @XmlAttribute(name = "outlineSymbols") + protected Boolean outlineSymbols; + @XmlAttribute(name = "zeroValues") + protected Boolean zeroValues; + @XmlAttribute(name = "fitToPage") + protected Boolean fitToPage; + @XmlAttribute(name = "printArea") + protected Boolean printArea; + @XmlAttribute(name = "filter") + protected Boolean filter; + @XmlAttribute(name = "showAutoFilter") + protected Boolean showAutoFilter; + @XmlAttribute(name = "hiddenRows") + protected Boolean hiddenRows; + @XmlAttribute(name = "hiddenColumns") + protected Boolean hiddenColumns; + @XmlAttribute(name = "state") + protected STSheetState state; + @XmlAttribute(name = "filterUnique") + protected Boolean filterUnique; + @XmlAttribute(name = "view") + protected STSheetViewType view; + @XmlAttribute(name = "showRuler") + protected Boolean showRuler; + @XmlAttribute(name = "topLeftCell") + protected String topLeftCell; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pane property. + * + * @return + * possible object is + * {@link CTPane } + * + */ + public CTPane getPane() { + return pane; + } + + /** + * Sets the value of the pane property. + * + * @param value + * allowed object is + * {@link CTPane } + * + */ + public void setPane(CTPane value) { + this.pane = value; + } + + /** + * Gets the value of the selection property. + * + * @return + * possible object is + * {@link CTSelection } + * + */ + public CTSelection getSelection() { + return selection; + } + + /** + * Sets the value of the selection property. + * + * @param value + * allowed object is + * {@link CTSelection } + * + */ + public void setSelection(CTSelection value) { + this.selection = value; + } + + /** + * Gets the value of the rowBreaks property. + * + * @return + * possible object is + * {@link CTPageBreak } + * + */ + public CTPageBreak getRowBreaks() { + return rowBreaks; + } + + /** + * Sets the value of the rowBreaks property. + * + * @param value + * allowed object is + * {@link CTPageBreak } + * + */ + public void setRowBreaks(CTPageBreak value) { + this.rowBreaks = value; + } + + /** + * Gets the value of the colBreaks property. + * + * @return + * possible object is + * {@link CTPageBreak } + * + */ + public CTPageBreak getColBreaks() { + return colBreaks; + } + + /** + * Sets the value of the colBreaks property. + * + * @param value + * allowed object is + * {@link CTPageBreak } + * + */ + public void setColBreaks(CTPageBreak value) { + this.colBreaks = value; + } + + /** + * Gets the value of the pageMargins property. + * + * @return + * possible object is + * {@link CTPageMargins } + * + */ + public CTPageMargins getPageMargins() { + return pageMargins; + } + + /** + * Sets the value of the pageMargins property. + * + * @param value + * allowed object is + * {@link CTPageMargins } + * + */ + public void setPageMargins(CTPageMargins value) { + this.pageMargins = value; + } + + /** + * Gets the value of the printOptions property. + * + * @return + * possible object is + * {@link CTPrintOptions } + * + */ + public CTPrintOptions getPrintOptions() { + return printOptions; + } + + /** + * Sets the value of the printOptions property. + * + * @param value + * allowed object is + * {@link CTPrintOptions } + * + */ + public void setPrintOptions(CTPrintOptions value) { + this.printOptions = value; + } + + /** + * Gets the value of the pageSetup property. + * + * @return + * possible object is + * {@link CTPageSetup } + * + */ + public CTPageSetup getPageSetup() { + return pageSetup; + } + + /** + * Sets the value of the pageSetup property. + * + * @param value + * allowed object is + * {@link CTPageSetup } + * + */ + public void setPageSetup(CTPageSetup value) { + this.pageSetup = value; + } + + /** + * Gets the value of the headerFooter property. + * + * @return + * possible object is + * {@link CTHeaderFooter } + * + */ + public CTHeaderFooter getHeaderFooter() { + return headerFooter; + } + + /** + * Sets the value of the headerFooter property. + * + * @param value + * allowed object is + * {@link CTHeaderFooter } + * + */ + public void setHeaderFooter(CTHeaderFooter value) { + this.headerFooter = value; + } + + /** + * Gets the value of the autoFilter property. + * + * @return + * possible object is + * {@link CTAutoFilter } + * + */ + public CTAutoFilter getAutoFilter() { + return autoFilter; + } + + /** + * Sets the value of the autoFilter property. + * + * @param value + * allowed object is + * {@link CTAutoFilter } + * + */ + public void setAutoFilter(CTAutoFilter value) { + this.autoFilter = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the scale property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getScale() { + if (scale == null) { + return 100L; + } else { + return scale; + } + } + + /** + * Sets the value of the scale property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setScale(Long value) { + this.scale = value; + } + + /** + * Gets the value of the colorId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getColorId() { + if (colorId == null) { + return 64L; + } else { + return colorId; + } + } + + /** + * Sets the value of the colorId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setColorId(Long value) { + this.colorId = value; + } + + /** + * Gets the value of the showPageBreaks property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowPageBreaks() { + if (showPageBreaks == null) { + return false; + } else { + return showPageBreaks; + } + } + + /** + * Sets the value of the showPageBreaks property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowPageBreaks(Boolean value) { + this.showPageBreaks = value; + } + + /** + * Gets the value of the showFormulas property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowFormulas() { + if (showFormulas == null) { + return false; + } else { + return showFormulas; + } + } + + /** + * Sets the value of the showFormulas property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowFormulas(Boolean value) { + this.showFormulas = value; + } + + /** + * Gets the value of the showGridLines property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowGridLines() { + if (showGridLines == null) { + return true; + } else { + return showGridLines; + } + } + + /** + * Sets the value of the showGridLines property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowGridLines(Boolean value) { + this.showGridLines = value; + } + + /** + * Gets the value of the showRowCol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowRowCol() { + if (showRowCol == null) { + return true; + } else { + return showRowCol; + } + } + + /** + * Sets the value of the showRowCol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowRowCol(Boolean value) { + this.showRowCol = value; + } + + /** + * Gets the value of the outlineSymbols property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOutlineSymbols() { + if (outlineSymbols == null) { + return true; + } else { + return outlineSymbols; + } + } + + /** + * Sets the value of the outlineSymbols property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOutlineSymbols(Boolean value) { + this.outlineSymbols = value; + } + + /** + * Gets the value of the zeroValues property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isZeroValues() { + if (zeroValues == null) { + return true; + } else { + return zeroValues; + } + } + + /** + * Sets the value of the zeroValues property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setZeroValues(Boolean value) { + this.zeroValues = value; + } + + /** + * Gets the value of the fitToPage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFitToPage() { + if (fitToPage == null) { + return false; + } else { + return fitToPage; + } + } + + /** + * Sets the value of the fitToPage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFitToPage(Boolean value) { + this.fitToPage = value; + } + + /** + * Gets the value of the printArea property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPrintArea() { + if (printArea == null) { + return false; + } else { + return printArea; + } + } + + /** + * Sets the value of the printArea property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPrintArea(Boolean value) { + this.printArea = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFilter() { + if (filter == null) { + return false; + } else { + return filter; + } + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFilter(Boolean value) { + this.filter = value; + } + + /** + * Gets the value of the showAutoFilter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowAutoFilter() { + if (showAutoFilter == null) { + return false; + } else { + return showAutoFilter; + } + } + + /** + * Sets the value of the showAutoFilter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowAutoFilter(Boolean value) { + this.showAutoFilter = value; + } + + /** + * Gets the value of the hiddenRows property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHiddenRows() { + if (hiddenRows == null) { + return false; + } else { + return hiddenRows; + } + } + + /** + * Sets the value of the hiddenRows property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenRows(Boolean value) { + this.hiddenRows = value; + } + + /** + * Gets the value of the hiddenColumns property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHiddenColumns() { + if (hiddenColumns == null) { + return false; + } else { + return hiddenColumns; + } + } + + /** + * Sets the value of the hiddenColumns property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenColumns(Boolean value) { + this.hiddenColumns = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link STSheetState } + * + */ + public STSheetState getState() { + if (state == null) { + return STSheetState.VISIBLE; + } else { + return state; + } + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link STSheetState } + * + */ + public void setState(STSheetState value) { + this.state = value; + } + + /** + * Gets the value of the filterUnique property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFilterUnique() { + if (filterUnique == null) { + return false; + } else { + return filterUnique; + } + } + + /** + * Sets the value of the filterUnique property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFilterUnique(Boolean value) { + this.filterUnique = value; + } + + /** + * Gets the value of the view property. + * + * @return + * possible object is + * {@link STSheetViewType } + * + */ + public STSheetViewType getView() { + if (view == null) { + return STSheetViewType.NORMAL; + } else { + return view; + } + } + + /** + * Sets the value of the view property. + * + * @param value + * allowed object is + * {@link STSheetViewType } + * + */ + public void setView(STSheetViewType value) { + this.view = value; + } + + /** + * Gets the value of the showRuler property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowRuler() { + if (showRuler == null) { + return true; + } else { + return showRuler; + } + } + + /** + * Sets the value of the showRuler property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowRuler(Boolean value) { + this.showRuler = value; + } + + /** + * Gets the value of the topLeftCell property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTopLeftCell() { + return topLeftCell; + } + + /** + * Sets the value of the topLeftCell property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTopLeftCell(String value) { + this.topLeftCell = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetViews.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetViews.java index eccefab178..150360c61a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetViews.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomSheetViews.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CustomSheetViews complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomSheetViews">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="customSheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetView" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomSheetViews", propOrder = { - "customSheetView" -}) -public class CTCustomSheetViews { - - @XmlElement(required = true) - protected List customSheetView; - - /** - * Gets the value of the customSheetView property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the customSheetView property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCustomSheetView().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCustomSheetView } - * - * - */ - public List getCustomSheetView() { - if (customSheetView == null) { - customSheetView = new ArrayList(); - } - return this.customSheetView; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomSheetViews complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomSheetViews">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="customSheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetView" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomSheetViews", propOrder = { + "customSheetView" +}) +public class CTCustomSheetViews implements Child +{ + + @XmlElement(required = true) + protected List customSheetView; + @XmlTransient + private Object parent; + + /** + * Gets the value of the customSheetView property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the customSheetView property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCustomSheetView().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCustomSheetView } + * + * + */ + public List getCustomSheetView() { + if (customSheetView == null) { + customSheetView = new ArrayList(); + } + return this.customSheetView; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookView.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookView.java index b86578a57c..8676583d05 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookView.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookView.java @@ -1,786 +1,798 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_CustomWorkbookView complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomWorkbookView">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="autoUpdate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="mergeInterval" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="changesSavedWin" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="onlySync" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="personalView" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="includePrintSettings" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="includeHiddenRowCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="maximized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="minimized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showHorizontalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showVerticalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showSheetTabs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="xWindow" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="yWindow" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="windowWidth" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="windowHeight" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="tabRatio" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
- *       <attribute name="activeSheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="showFormulaBar" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showStatusbar" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showComments" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Comments" default="commIndicator" />
- *       <attribute name="showObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Objects" default="all" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomWorkbookView", propOrder = { - "extLst" -}) -public class CTCustomWorkbookView { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute - protected Boolean autoUpdate; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long mergeInterval; - @XmlAttribute - protected Boolean changesSavedWin; - @XmlAttribute - protected Boolean onlySync; - @XmlAttribute - protected Boolean personalView; - @XmlAttribute - protected Boolean includePrintSettings; - @XmlAttribute - protected Boolean includeHiddenRowCol; - @XmlAttribute - protected Boolean maximized; - @XmlAttribute - protected Boolean minimized; - @XmlAttribute - protected Boolean showHorizontalScroll; - @XmlAttribute - protected Boolean showVerticalScroll; - @XmlAttribute - protected Boolean showSheetTabs; - @XmlAttribute - protected Integer xWindow; - @XmlAttribute - protected Integer yWindow; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long windowWidth; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long windowHeight; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long tabRatio; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long activeSheetId; - @XmlAttribute - protected Boolean showFormulaBar; - @XmlAttribute - protected Boolean showStatusbar; - @XmlAttribute - protected STComments showComments; - @XmlAttribute - protected STObjects showObjects; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the autoUpdate property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoUpdate() { - if (autoUpdate == null) { - return false; - } else { - return autoUpdate; - } - } - - /** - * Sets the value of the autoUpdate property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoUpdate(Boolean value) { - this.autoUpdate = value; - } - - /** - * Gets the value of the mergeInterval property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getMergeInterval() { - return mergeInterval; - } - - /** - * Sets the value of the mergeInterval property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMergeInterval(Long value) { - this.mergeInterval = value; - } - - /** - * Gets the value of the changesSavedWin property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isChangesSavedWin() { - if (changesSavedWin == null) { - return false; - } else { - return changesSavedWin; - } - } - - /** - * Sets the value of the changesSavedWin property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setChangesSavedWin(Boolean value) { - this.changesSavedWin = value; - } - - /** - * Gets the value of the onlySync property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOnlySync() { - if (onlySync == null) { - return false; - } else { - return onlySync; - } - } - - /** - * Sets the value of the onlySync property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOnlySync(Boolean value) { - this.onlySync = value; - } - - /** - * Gets the value of the personalView property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPersonalView() { - if (personalView == null) { - return false; - } else { - return personalView; - } - } - - /** - * Sets the value of the personalView property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPersonalView(Boolean value) { - this.personalView = value; - } - - /** - * Gets the value of the includePrintSettings property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isIncludePrintSettings() { - if (includePrintSettings == null) { - return true; - } else { - return includePrintSettings; - } - } - - /** - * Sets the value of the includePrintSettings property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIncludePrintSettings(Boolean value) { - this.includePrintSettings = value; - } - - /** - * Gets the value of the includeHiddenRowCol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isIncludeHiddenRowCol() { - if (includeHiddenRowCol == null) { - return true; - } else { - return includeHiddenRowCol; - } - } - - /** - * Sets the value of the includeHiddenRowCol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIncludeHiddenRowCol(Boolean value) { - this.includeHiddenRowCol = value; - } - - /** - * Gets the value of the maximized property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMaximized() { - if (maximized == null) { - return false; - } else { - return maximized; - } - } - - /** - * Sets the value of the maximized property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMaximized(Boolean value) { - this.maximized = value; - } - - /** - * Gets the value of the minimized property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMinimized() { - if (minimized == null) { - return false; - } else { - return minimized; - } - } - - /** - * Sets the value of the minimized property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMinimized(Boolean value) { - this.minimized = value; - } - - /** - * Gets the value of the showHorizontalScroll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowHorizontalScroll() { - if (showHorizontalScroll == null) { - return true; - } else { - return showHorizontalScroll; - } - } - - /** - * Sets the value of the showHorizontalScroll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowHorizontalScroll(Boolean value) { - this.showHorizontalScroll = value; - } - - /** - * Gets the value of the showVerticalScroll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowVerticalScroll() { - if (showVerticalScroll == null) { - return true; - } else { - return showVerticalScroll; - } - } - - /** - * Sets the value of the showVerticalScroll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowVerticalScroll(Boolean value) { - this.showVerticalScroll = value; - } - - /** - * Gets the value of the showSheetTabs property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowSheetTabs() { - if (showSheetTabs == null) { - return true; - } else { - return showSheetTabs; - } - } - - /** - * Sets the value of the showSheetTabs property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowSheetTabs(Boolean value) { - this.showSheetTabs = value; - } - - /** - * Gets the value of the xWindow property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getXWindow() { - if (xWindow == null) { - return 0; - } else { - return xWindow; - } - } - - /** - * Sets the value of the xWindow property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setXWindow(Integer value) { - this.xWindow = value; - } - - /** - * Gets the value of the yWindow property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getYWindow() { - if (yWindow == null) { - return 0; - } else { - return yWindow; - } - } - - /** - * Sets the value of the yWindow property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setYWindow(Integer value) { - this.yWindow = value; - } - - /** - * Gets the value of the windowWidth property. - * - */ - public long getWindowWidth() { - return windowWidth; - } - - /** - * Sets the value of the windowWidth property. - * - */ - public void setWindowWidth(long value) { - this.windowWidth = value; - } - - /** - * Gets the value of the windowHeight property. - * - */ - public long getWindowHeight() { - return windowHeight; - } - - /** - * Sets the value of the windowHeight property. - * - */ - public void setWindowHeight(long value) { - this.windowHeight = value; - } - - /** - * Gets the value of the tabRatio property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getTabRatio() { - if (tabRatio == null) { - return 600L; - } else { - return tabRatio; - } - } - - /** - * Sets the value of the tabRatio property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTabRatio(Long value) { - this.tabRatio = value; - } - - /** - * Gets the value of the activeSheetId property. - * - */ - public long getActiveSheetId() { - return activeSheetId; - } - - /** - * Sets the value of the activeSheetId property. - * - */ - public void setActiveSheetId(long value) { - this.activeSheetId = value; - } - - /** - * Gets the value of the showFormulaBar property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowFormulaBar() { - if (showFormulaBar == null) { - return true; - } else { - return showFormulaBar; - } - } - - /** - * Sets the value of the showFormulaBar property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowFormulaBar(Boolean value) { - this.showFormulaBar = value; - } - - /** - * Gets the value of the showStatusbar property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowStatusbar() { - if (showStatusbar == null) { - return true; - } else { - return showStatusbar; - } - } - - /** - * Sets the value of the showStatusbar property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowStatusbar(Boolean value) { - this.showStatusbar = value; - } - - /** - * Gets the value of the showComments property. - * - * @return - * possible object is - * {@link STComments } - * - */ - public STComments getShowComments() { - if (showComments == null) { - return STComments.COMM_INDICATOR; - } else { - return showComments; - } - } - - /** - * Sets the value of the showComments property. - * - * @param value - * allowed object is - * {@link STComments } - * - */ - public void setShowComments(STComments value) { - this.showComments = value; - } - - /** - * Gets the value of the showObjects property. - * - * @return - * possible object is - * {@link STObjects } - * - */ - public STObjects getShowObjects() { - if (showObjects == null) { - return STObjects.ALL; - } else { - return showObjects; - } - } - - /** - * Sets the value of the showObjects property. - * - * @param value - * allowed object is - * {@link STObjects } - * - */ - public void setShowObjects(STObjects value) { - this.showObjects = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomWorkbookView complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomWorkbookView">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="autoUpdate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="mergeInterval" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="changesSavedWin" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="onlySync" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="personalView" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="includePrintSettings" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="includeHiddenRowCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="maximized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="minimized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showHorizontalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showVerticalScroll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showSheetTabs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="xWindow" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="yWindow" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="windowWidth" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="windowHeight" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="tabRatio" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
+ *       <attribute name="activeSheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="showFormulaBar" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showStatusbar" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showComments" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Comments" default="commIndicator" />
+ *       <attribute name="showObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Objects" default="all" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomWorkbookView", propOrder = { + "extLst" +}) +public class CTCustomWorkbookView implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "autoUpdate") + protected Boolean autoUpdate; + @XmlAttribute(name = "mergeInterval") + @XmlSchemaType(name = "unsignedInt") + protected Long mergeInterval; + @XmlAttribute(name = "changesSavedWin") + protected Boolean changesSavedWin; + @XmlAttribute(name = "onlySync") + protected Boolean onlySync; + @XmlAttribute(name = "personalView") + protected Boolean personalView; + @XmlAttribute(name = "includePrintSettings") + protected Boolean includePrintSettings; + @XmlAttribute(name = "includeHiddenRowCol") + protected Boolean includeHiddenRowCol; + @XmlAttribute(name = "maximized") + protected Boolean maximized; + @XmlAttribute(name = "minimized") + protected Boolean minimized; + @XmlAttribute(name = "showHorizontalScroll") + protected Boolean showHorizontalScroll; + @XmlAttribute(name = "showVerticalScroll") + protected Boolean showVerticalScroll; + @XmlAttribute(name = "showSheetTabs") + protected Boolean showSheetTabs; + @XmlAttribute(name = "xWindow") + protected Integer xWindow; + @XmlAttribute(name = "yWindow") + protected Integer yWindow; + @XmlAttribute(name = "windowWidth", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long windowWidth; + @XmlAttribute(name = "windowHeight", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long windowHeight; + @XmlAttribute(name = "tabRatio") + @XmlSchemaType(name = "unsignedInt") + protected Long tabRatio; + @XmlAttribute(name = "activeSheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long activeSheetId; + @XmlAttribute(name = "showFormulaBar") + protected Boolean showFormulaBar; + @XmlAttribute(name = "showStatusbar") + protected Boolean showStatusbar; + @XmlAttribute(name = "showComments") + protected STComments showComments; + @XmlAttribute(name = "showObjects") + protected STObjects showObjects; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the autoUpdate property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoUpdate() { + if (autoUpdate == null) { + return false; + } else { + return autoUpdate; + } + } + + /** + * Sets the value of the autoUpdate property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoUpdate(Boolean value) { + this.autoUpdate = value; + } + + /** + * Gets the value of the mergeInterval property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMergeInterval() { + return mergeInterval; + } + + /** + * Sets the value of the mergeInterval property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMergeInterval(Long value) { + this.mergeInterval = value; + } + + /** + * Gets the value of the changesSavedWin property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isChangesSavedWin() { + if (changesSavedWin == null) { + return false; + } else { + return changesSavedWin; + } + } + + /** + * Sets the value of the changesSavedWin property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setChangesSavedWin(Boolean value) { + this.changesSavedWin = value; + } + + /** + * Gets the value of the onlySync property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOnlySync() { + if (onlySync == null) { + return false; + } else { + return onlySync; + } + } + + /** + * Sets the value of the onlySync property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOnlySync(Boolean value) { + this.onlySync = value; + } + + /** + * Gets the value of the personalView property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPersonalView() { + if (personalView == null) { + return false; + } else { + return personalView; + } + } + + /** + * Sets the value of the personalView property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPersonalView(Boolean value) { + this.personalView = value; + } + + /** + * Gets the value of the includePrintSettings property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIncludePrintSettings() { + if (includePrintSettings == null) { + return true; + } else { + return includePrintSettings; + } + } + + /** + * Sets the value of the includePrintSettings property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludePrintSettings(Boolean value) { + this.includePrintSettings = value; + } + + /** + * Gets the value of the includeHiddenRowCol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIncludeHiddenRowCol() { + if (includeHiddenRowCol == null) { + return true; + } else { + return includeHiddenRowCol; + } + } + + /** + * Sets the value of the includeHiddenRowCol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeHiddenRowCol(Boolean value) { + this.includeHiddenRowCol = value; + } + + /** + * Gets the value of the maximized property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMaximized() { + if (maximized == null) { + return false; + } else { + return maximized; + } + } + + /** + * Sets the value of the maximized property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMaximized(Boolean value) { + this.maximized = value; + } + + /** + * Gets the value of the minimized property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMinimized() { + if (minimized == null) { + return false; + } else { + return minimized; + } + } + + /** + * Sets the value of the minimized property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMinimized(Boolean value) { + this.minimized = value; + } + + /** + * Gets the value of the showHorizontalScroll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowHorizontalScroll() { + if (showHorizontalScroll == null) { + return true; + } else { + return showHorizontalScroll; + } + } + + /** + * Sets the value of the showHorizontalScroll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowHorizontalScroll(Boolean value) { + this.showHorizontalScroll = value; + } + + /** + * Gets the value of the showVerticalScroll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowVerticalScroll() { + if (showVerticalScroll == null) { + return true; + } else { + return showVerticalScroll; + } + } + + /** + * Sets the value of the showVerticalScroll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowVerticalScroll(Boolean value) { + this.showVerticalScroll = value; + } + + /** + * Gets the value of the showSheetTabs property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowSheetTabs() { + if (showSheetTabs == null) { + return true; + } else { + return showSheetTabs; + } + } + + /** + * Sets the value of the showSheetTabs property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowSheetTabs(Boolean value) { + this.showSheetTabs = value; + } + + /** + * Gets the value of the xWindow property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getXWindow() { + if (xWindow == null) { + return 0; + } else { + return xWindow; + } + } + + /** + * Sets the value of the xWindow property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setXWindow(Integer value) { + this.xWindow = value; + } + + /** + * Gets the value of the yWindow property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getYWindow() { + if (yWindow == null) { + return 0; + } else { + return yWindow; + } + } + + /** + * Sets the value of the yWindow property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setYWindow(Integer value) { + this.yWindow = value; + } + + /** + * Gets the value of the windowWidth property. + * + */ + public long getWindowWidth() { + return windowWidth; + } + + /** + * Sets the value of the windowWidth property. + * + */ + public void setWindowWidth(long value) { + this.windowWidth = value; + } + + /** + * Gets the value of the windowHeight property. + * + */ + public long getWindowHeight() { + return windowHeight; + } + + /** + * Sets the value of the windowHeight property. + * + */ + public void setWindowHeight(long value) { + this.windowHeight = value; + } + + /** + * Gets the value of the tabRatio property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getTabRatio() { + if (tabRatio == null) { + return 600L; + } else { + return tabRatio; + } + } + + /** + * Sets the value of the tabRatio property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTabRatio(Long value) { + this.tabRatio = value; + } + + /** + * Gets the value of the activeSheetId property. + * + */ + public long getActiveSheetId() { + return activeSheetId; + } + + /** + * Sets the value of the activeSheetId property. + * + */ + public void setActiveSheetId(long value) { + this.activeSheetId = value; + } + + /** + * Gets the value of the showFormulaBar property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowFormulaBar() { + if (showFormulaBar == null) { + return true; + } else { + return showFormulaBar; + } + } + + /** + * Sets the value of the showFormulaBar property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowFormulaBar(Boolean value) { + this.showFormulaBar = value; + } + + /** + * Gets the value of the showStatusbar property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowStatusbar() { + if (showStatusbar == null) { + return true; + } else { + return showStatusbar; + } + } + + /** + * Sets the value of the showStatusbar property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowStatusbar(Boolean value) { + this.showStatusbar = value; + } + + /** + * Gets the value of the showComments property. + * + * @return + * possible object is + * {@link STComments } + * + */ + public STComments getShowComments() { + if (showComments == null) { + return STComments.COMM_INDICATOR; + } else { + return showComments; + } + } + + /** + * Sets the value of the showComments property. + * + * @param value + * allowed object is + * {@link STComments } + * + */ + public void setShowComments(STComments value) { + this.showComments = value; + } + + /** + * Gets the value of the showObjects property. + * + * @return + * possible object is + * {@link STObjects } + * + */ + public STObjects getShowObjects() { + if (showObjects == null) { + return STObjects.ALL; + } else { + return showObjects; + } + } + + /** + * Sets the value of the showObjects property. + * + * @param value + * allowed object is + * {@link STObjects } + * + */ + public void setShowObjects(STObjects value) { + this.showObjects = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookViews.java b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookViews.java index 0ed26e8ac4..fd5720489b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookViews.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTCustomWorkbookViews.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_CustomWorkbookViews complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_CustomWorkbookViews">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="customWorkbookView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomWorkbookView" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_CustomWorkbookViews", propOrder = { - "customWorkbookView" -}) -public class CTCustomWorkbookViews { - - @XmlElement(required = true) - protected List customWorkbookView; - - /** - * Gets the value of the customWorkbookView property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the customWorkbookView property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCustomWorkbookView().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCustomWorkbookView } - * - * - */ - public List getCustomWorkbookView() { - if (customWorkbookView == null) { - customWorkbookView = new ArrayList(); - } - return this.customWorkbookView; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_CustomWorkbookViews complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_CustomWorkbookViews">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="customWorkbookView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomWorkbookView" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_CustomWorkbookViews", propOrder = { + "customWorkbookView" +}) +public class CTCustomWorkbookViews implements Child +{ + + @XmlElement(required = true) + protected List customWorkbookView; + @XmlTransient + private Object parent; + + /** + * Gets the value of the customWorkbookView property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the customWorkbookView property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCustomWorkbookView().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCustomWorkbookView } + * + * + */ + public List getCustomWorkbookView() { + if (customWorkbookView == null) { + customWorkbookView = new ArrayList(); + } + return this.customWorkbookView; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataBar.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataBar.java index f44b5b3d64..5ab06329e8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataBar.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataBar.java @@ -1,214 +1,226 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataBar complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataBar">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cfvo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cfvo" maxOccurs="2" minOccurs="2"/>
- *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color"/>
- *       </sequence>
- *       <attribute name="minLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="10" />
- *       <attribute name="maxLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="90" />
- *       <attribute name="showValue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataBar", propOrder = { - "cfvo", - "color" -}) -public class CTDataBar { - - @XmlElement(required = true) - protected List cfvo; - @XmlElement(required = true) - protected CTColor color; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long minLength; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long maxLength; - @XmlAttribute - protected Boolean showValue; - - /** - * Gets the value of the cfvo property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cfvo property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCfvo().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCfvo } - * - * - */ - public List getCfvo() { - if (cfvo == null) { - cfvo = new ArrayList(); - } - return this.cfvo; - } - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link CTColor } - * - */ - public CTColor getColor() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link CTColor } - * - */ - public void setColor(CTColor value) { - this.color = value; - } - - /** - * Gets the value of the minLength property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getMinLength() { - if (minLength == null) { - return 10L; - } else { - return minLength; - } - } - - /** - * Sets the value of the minLength property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMinLength(Long value) { - this.minLength = value; - } - - /** - * Gets the value of the maxLength property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getMaxLength() { - if (maxLength == null) { - return 90L; - } else { - return maxLength; - } - } - - /** - * Sets the value of the maxLength property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMaxLength(Long value) { - this.maxLength = value; - } - - /** - * Gets the value of the showValue property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowValue() { - if (showValue == null) { - return true; - } else { - return showValue; - } - } - - /** - * Sets the value of the showValue property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowValue(Boolean value) { - this.showValue = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataBar complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataBar">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cfvo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cfvo" maxOccurs="2" minOccurs="2"/>
+ *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color"/>
+ *       </sequence>
+ *       <attribute name="minLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="10" />
+ *       <attribute name="maxLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="90" />
+ *       <attribute name="showValue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataBar", propOrder = { + "cfvo", + "color" +}) +public class CTDataBar implements Child +{ + + @XmlElement(required = true) + protected List cfvo; + @XmlElement(required = true) + protected CTColor color; + @XmlAttribute(name = "minLength") + @XmlSchemaType(name = "unsignedInt") + protected Long minLength; + @XmlAttribute(name = "maxLength") + @XmlSchemaType(name = "unsignedInt") + protected Long maxLength; + @XmlAttribute(name = "showValue") + protected Boolean showValue; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cfvo property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cfvo property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCfvo().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCfvo } + * + * + */ + public List getCfvo() { + if (cfvo == null) { + cfvo = new ArrayList(); + } + return this.cfvo; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link CTColor } + * + */ + public CTColor getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link CTColor } + * + */ + public void setColor(CTColor value) { + this.color = value; + } + + /** + * Gets the value of the minLength property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getMinLength() { + if (minLength == null) { + return 10L; + } else { + return minLength; + } + } + + /** + * Sets the value of the minLength property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMinLength(Long value) { + this.minLength = value; + } + + /** + * Gets the value of the maxLength property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getMaxLength() { + if (maxLength == null) { + return 90L; + } else { + return maxLength; + } + } + + /** + * Sets the value of the maxLength property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMaxLength(Long value) { + this.maxLength = value; + } + + /** + * Gets the value of the showValue property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowValue() { + if (showValue == null) { + return true; + } else { + return showValue; + } + } + + /** + * Sets the value of the showValue property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowValue(Boolean value) { + this.showValue = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataBinding.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataBinding.java index 749466b680..867a8f8ff6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataBinding.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataBinding.java @@ -1,213 +1,225 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataBinding complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataBinding">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <any/>
- *       </sequence>
- *       <attribute name="DataBindingName" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="FileBinding" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="ConnectionID" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="FileBindingName" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="DataBindingLoadMode" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataBinding", propOrder = { - "any" -}) -public class CTDataBinding { - - @XmlAnyElement(lax = true) - protected Object any; - @XmlAttribute(name = "DataBindingName") - protected String dataBindingName; - @XmlAttribute(name = "FileBinding") - protected Boolean fileBinding; - @XmlAttribute(name = "ConnectionID") - @XmlSchemaType(name = "unsignedInt") - protected Long connectionID; - @XmlAttribute(name = "FileBindingName") - protected String fileBindingName; - @XmlAttribute(name = "DataBindingLoadMode", required = true) - @XmlSchemaType(name = "unsignedInt") - protected long dataBindingLoadMode; - - /** - * Gets the value of the any property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getAny() { - return any; - } - - /** - * Sets the value of the any property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setAny(Object value) { - this.any = value; - } - - /** - * Gets the value of the dataBindingName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataBindingName() { - return dataBindingName; - } - - /** - * Sets the value of the dataBindingName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataBindingName(String value) { - this.dataBindingName = value; - } - - /** - * Gets the value of the fileBinding property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isFileBinding() { - return fileBinding; - } - - /** - * Sets the value of the fileBinding property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFileBinding(Boolean value) { - this.fileBinding = value; - } - - /** - * Gets the value of the connectionID property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getConnectionID() { - return connectionID; - } - - /** - * Sets the value of the connectionID property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setConnectionID(Long value) { - this.connectionID = value; - } - - /** - * Gets the value of the fileBindingName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFileBindingName() { - return fileBindingName; - } - - /** - * Sets the value of the fileBindingName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFileBindingName(String value) { - this.fileBindingName = value; - } - - /** - * Gets the value of the dataBindingLoadMode property. - * - */ - public long getDataBindingLoadMode() { - return dataBindingLoadMode; - } - - /** - * Sets the value of the dataBindingLoadMode property. - * - */ - public void setDataBindingLoadMode(long value) { - this.dataBindingLoadMode = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataBinding complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataBinding">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *       <attribute name="DataBindingName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="FileBinding" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="ConnectionID" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="FileBindingName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="DataBindingLoadMode" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataBinding", propOrder = { + "any" +}) +public class CTDataBinding implements Child +{ + + @XmlAnyElement(lax = true) + protected Object any; + @XmlAttribute(name = "DataBindingName") + protected String dataBindingName; + @XmlAttribute(name = "FileBinding") + protected Boolean fileBinding; + @XmlAttribute(name = "ConnectionID") + @XmlSchemaType(name = "unsignedInt") + protected Long connectionID; + @XmlAttribute(name = "FileBindingName") + protected String fileBindingName; + @XmlAttribute(name = "DataBindingLoadMode", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long dataBindingLoadMode; + @XmlTransient + private Object parent; + + /** + * Gets the value of the any property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + + /** + * Gets the value of the dataBindingName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDataBindingName() { + return dataBindingName; + } + + /** + * Sets the value of the dataBindingName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDataBindingName(String value) { + this.dataBindingName = value; + } + + /** + * Gets the value of the fileBinding property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isFileBinding() { + return fileBinding; + } + + /** + * Sets the value of the fileBinding property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFileBinding(Boolean value) { + this.fileBinding = value; + } + + /** + * Gets the value of the connectionID property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getConnectionID() { + return connectionID; + } + + /** + * Sets the value of the connectionID property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setConnectionID(Long value) { + this.connectionID = value; + } + + /** + * Gets the value of the fileBindingName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFileBindingName() { + return fileBindingName; + } + + /** + * Sets the value of the fileBindingName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFileBindingName(String value) { + this.fileBindingName = value; + } + + /** + * Gets the value of the dataBindingLoadMode property. + * + */ + public long getDataBindingLoadMode() { + return dataBindingLoadMode; + } + + /** + * Sets the value of the dataBindingLoadMode property. + * + */ + public void setDataBindingLoadMode(long value) { + this.dataBindingLoadMode = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataConsolidate.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataConsolidate.java index 1cc0698d83..39bb2c3b64 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataConsolidate.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataConsolidate.java @@ -1,205 +1,248 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataConsolidate complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataConsolidate">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dataRefs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataRefs" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="function" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataConsolidateFunction" default="sum" />
- *       <attribute name="leftLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="topLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="link" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataConsolidate", propOrder = { - "dataRefs" -}) -public class CTDataConsolidate { - - protected CTDataRefs dataRefs; - @XmlAttribute - protected STDataConsolidateFunction function; - @XmlAttribute - protected Boolean leftLabels; - @XmlAttribute - protected Boolean topLabels; - @XmlAttribute - protected Boolean link; - - /** - * Gets the value of the dataRefs property. - * - * @return - * possible object is - * {@link CTDataRefs } - * - */ - public CTDataRefs getDataRefs() { - return dataRefs; - } - - /** - * Sets the value of the dataRefs property. - * - * @param value - * allowed object is - * {@link CTDataRefs } - * - */ - public void setDataRefs(CTDataRefs value) { - this.dataRefs = value; - } - - /** - * Gets the value of the function property. - * - * @return - * possible object is - * {@link STDataConsolidateFunction } - * - */ - public STDataConsolidateFunction getFunction() { - if (function == null) { - return STDataConsolidateFunction.SUM; - } else { - return function; - } - } - - /** - * Sets the value of the function property. - * - * @param value - * allowed object is - * {@link STDataConsolidateFunction } - * - */ - public void setFunction(STDataConsolidateFunction value) { - this.function = value; - } - - /** - * Gets the value of the leftLabels property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLeftLabels() { - if (leftLabels == null) { - return false; - } else { - return leftLabels; - } - } - - /** - * Sets the value of the leftLabels property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLeftLabels(Boolean value) { - this.leftLabels = value; - } - - /** - * Gets the value of the topLabels property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTopLabels() { - if (topLabels == null) { - return false; - } else { - return topLabels; - } - } - - /** - * Sets the value of the topLabels property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTopLabels(Boolean value) { - this.topLabels = value; - } - - /** - * Gets the value of the link property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLink() { - if (link == null) { - return false; - } else { - return link; - } - } - - /** - * Sets the value of the link property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLink(Boolean value) { - this.link = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataConsolidate complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataConsolidate">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dataRefs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataRefs" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="function" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataConsolidateFunction" default="sum" />
+ *       <attribute name="startLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="leftLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="topLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="link" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataConsolidate", propOrder = { + "dataRefs" +}) +public class CTDataConsolidate implements Child +{ + + protected CTDataRefs dataRefs; + @XmlAttribute(name = "function") + protected STDataConsolidateFunction function; + @XmlAttribute(name = "startLabels") + protected Boolean startLabels; + @XmlAttribute(name = "leftLabels") + protected Boolean leftLabels; + @XmlAttribute(name = "topLabels") + protected Boolean topLabels; + @XmlAttribute(name = "link") + protected Boolean link; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dataRefs property. + * + * @return + * possible object is + * {@link CTDataRefs } + * + */ + public CTDataRefs getDataRefs() { + return dataRefs; + } + + /** + * Sets the value of the dataRefs property. + * + * @param value + * allowed object is + * {@link CTDataRefs } + * + */ + public void setDataRefs(CTDataRefs value) { + this.dataRefs = value; + } + + /** + * Gets the value of the function property. + * + * @return + * possible object is + * {@link STDataConsolidateFunction } + * + */ + public STDataConsolidateFunction getFunction() { + if (function == null) { + return STDataConsolidateFunction.SUM; + } else { + return function; + } + } + + /** + * Sets the value of the function property. + * + * @param value + * allowed object is + * {@link STDataConsolidateFunction } + * + */ + public void setFunction(STDataConsolidateFunction value) { + this.function = value; + } + + /** + * Gets the value of the startLabels property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStartLabels() { + if (startLabels == null) { + return false; + } else { + return startLabels; + } + } + + /** + * Sets the value of the startLabels property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStartLabels(Boolean value) { + this.startLabels = value; + } + + /** + * Gets the value of the leftLabels property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLeftLabels() { + if (leftLabels == null) { + return false; + } else { + return leftLabels; + } + } + + /** + * Sets the value of the leftLabels property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLeftLabels(Boolean value) { + this.leftLabels = value; + } + + /** + * Gets the value of the topLabels property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTopLabels() { + if (topLabels == null) { + return false; + } else { + return topLabels; + } + } + + /** + * Sets the value of the topLabels property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTopLabels(Boolean value) { + this.topLabels = value; + } + + /** + * Gets the value of the link property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLink() { + if (link == null) { + return false; + } else { + return link; + } + } + + /** + * Sets the value of the link property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLink(Boolean value) { + this.link = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataField.java index ca2ca47a96..260b7b0dc2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataField.java @@ -1,281 +1,293 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="fld" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="subtotal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataConsolidateFunction" default="sum" />
- *       <attribute name="showDataAs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ShowDataAs" default="normal" />
- *       <attribute name="baseField" type="{http://www.w3.org/2001/XMLSchema}int" default="-1" />
- *       <attribute name="baseItem" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1048832" />
- *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataField", propOrder = { - "extLst" -}) -public class CTDataField { - - protected CTExtensionList extLst; - @XmlAttribute - protected String name; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long fld; - @XmlAttribute - protected STDataConsolidateFunction subtotal; - @XmlAttribute - protected STShowDataAs showDataAs; - @XmlAttribute - protected Integer baseField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long baseItem; - @XmlAttribute - protected Long numFmtId; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the fld property. - * - */ - public long getFld() { - return fld; - } - - /** - * Sets the value of the fld property. - * - */ - public void setFld(long value) { - this.fld = value; - } - - /** - * Gets the value of the subtotal property. - * - * @return - * possible object is - * {@link STDataConsolidateFunction } - * - */ - public STDataConsolidateFunction getSubtotal() { - if (subtotal == null) { - return STDataConsolidateFunction.SUM; - } else { - return subtotal; - } - } - - /** - * Sets the value of the subtotal property. - * - * @param value - * allowed object is - * {@link STDataConsolidateFunction } - * - */ - public void setSubtotal(STDataConsolidateFunction value) { - this.subtotal = value; - } - - /** - * Gets the value of the showDataAs property. - * - * @return - * possible object is - * {@link STShowDataAs } - * - */ - public STShowDataAs getShowDataAs() { - if (showDataAs == null) { - return STShowDataAs.NORMAL; - } else { - return showDataAs; - } - } - - /** - * Sets the value of the showDataAs property. - * - * @param value - * allowed object is - * {@link STShowDataAs } - * - */ - public void setShowDataAs(STShowDataAs value) { - this.showDataAs = value; - } - - /** - * Gets the value of the baseField property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getBaseField() { - if (baseField == null) { - return -1; - } else { - return baseField; - } - } - - /** - * Sets the value of the baseField property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setBaseField(Integer value) { - this.baseField = value; - } - - /** - * Gets the value of the baseItem property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getBaseItem() { - if (baseItem == null) { - return 1048832L; - } else { - return baseItem; - } - } - - /** - * Sets the value of the baseItem property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setBaseItem(Long value) { - this.baseItem = value; - } - - /** - * Gets the value of the numFmtId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getNumFmtId() { - return numFmtId; - } - - /** - * Sets the value of the numFmtId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNumFmtId(Long value) { - this.numFmtId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="fld" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="subtotal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataConsolidateFunction" default="sum" />
+ *       <attribute name="showDataAs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ShowDataAs" default="normal" />
+ *       <attribute name="baseField" type="{http://www.w3.org/2001/XMLSchema}int" default="-1" />
+ *       <attribute name="baseItem" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1048832" />
+ *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataField", propOrder = { + "extLst" +}) +public class CTDataField implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "fld", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long fld; + @XmlAttribute(name = "subtotal") + protected STDataConsolidateFunction subtotal; + @XmlAttribute(name = "showDataAs") + protected STShowDataAs showDataAs; + @XmlAttribute(name = "baseField") + protected Integer baseField; + @XmlAttribute(name = "baseItem") + @XmlSchemaType(name = "unsignedInt") + protected Long baseItem; + @XmlAttribute(name = "numFmtId") + protected Long numFmtId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the fld property. + * + */ + public long getFld() { + return fld; + } + + /** + * Sets the value of the fld property. + * + */ + public void setFld(long value) { + this.fld = value; + } + + /** + * Gets the value of the subtotal property. + * + * @return + * possible object is + * {@link STDataConsolidateFunction } + * + */ + public STDataConsolidateFunction getSubtotal() { + if (subtotal == null) { + return STDataConsolidateFunction.SUM; + } else { + return subtotal; + } + } + + /** + * Sets the value of the subtotal property. + * + * @param value + * allowed object is + * {@link STDataConsolidateFunction } + * + */ + public void setSubtotal(STDataConsolidateFunction value) { + this.subtotal = value; + } + + /** + * Gets the value of the showDataAs property. + * + * @return + * possible object is + * {@link STShowDataAs } + * + */ + public STShowDataAs getShowDataAs() { + if (showDataAs == null) { + return STShowDataAs.NORMAL; + } else { + return showDataAs; + } + } + + /** + * Sets the value of the showDataAs property. + * + * @param value + * allowed object is + * {@link STShowDataAs } + * + */ + public void setShowDataAs(STShowDataAs value) { + this.showDataAs = value; + } + + /** + * Gets the value of the baseField property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getBaseField() { + if (baseField == null) { + return -1; + } else { + return baseField; + } + } + + /** + * Sets the value of the baseField property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setBaseField(Integer value) { + this.baseField = value; + } + + /** + * Gets the value of the baseItem property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getBaseItem() { + if (baseItem == null) { + return 1048832L; + } else { + return baseItem; + } + } + + /** + * Sets the value of the baseItem property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setBaseItem(Long value) { + this.baseItem = value; + } + + /** + * Gets the value of the numFmtId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getNumFmtId() { + return numFmtId; + } + + /** + * Sets the value of the numFmtId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNumFmtId(Long value) { + this.numFmtId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataFields.java index d1b42f21b3..409f7a4d93 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataFields.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dataField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataField" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataFields", propOrder = { - "dataField" -}) -public class CTDataFields { - - @XmlElement(required = true) - protected List dataField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the dataField property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the dataField property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDataField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDataField } - * - * - */ - public List getDataField() { - if (dataField == null) { - dataField = new ArrayList(); - } - return this.dataField; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dataField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataField" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataFields", propOrder = { + "dataField" +}) +public class CTDataFields implements Child +{ + + @XmlElement(required = true) + protected List dataField; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dataField property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dataField property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDataField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDataField } + * + * + */ + public List getDataField() { + if (dataField == null) { + dataField = new ArrayList(); + } + return this.dataField; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataRef.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataRef.java index c6b111000a..3539313987 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataRef.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataRef.java @@ -1,159 +1,171 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataRef complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataRef">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sheet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataRef") -public class CTDataRef { - - @XmlAttribute - protected String ref; - @XmlAttribute - protected String name; - @XmlAttribute - protected String sheet; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the sheet property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSheet() { - return sheet; - } - - /** - * Sets the value of the sheet property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSheet(String value) { - this.sheet = value; - } - - /** - * relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataRef complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataRef">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sheet" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataRef") +public class CTDataRef implements Child +{ + + @XmlAttribute(name = "ref") + protected String ref; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "sheet") + protected String sheet; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the sheet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSheet() { + return sheet; + } + + /** + * Sets the value of the sheet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSheet(String value) { + this.sheet = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataRefs.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataRefs.java index c2f9fe4c3d..6dc8001d88 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataRefs.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataRefs.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataRefs complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataRefs">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dataRef" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataRef" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataRefs", propOrder = { - "dataRef" -}) -public class CTDataRefs { - - protected List dataRef; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the dataRef property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the dataRef property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDataRef().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDataRef } - * - * - */ - public List getDataRef() { - if (dataRef == null) { - dataRef = new ArrayList(); - } - return this.dataRef; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataRefs complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataRefs">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dataRef" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataRef" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataRefs", propOrder = { + "dataRef" +}) +public class CTDataRefs implements Child +{ + + protected List dataRef; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dataRef property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dataRef property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDataRef().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDataRef } + * + * + */ + public List getDataRef() { + if (dataRef == null) { + dataRef = new ArrayList(); + } + return this.dataRef; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidation.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidation.java index 8d4ef1de95..407c6672f5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidation.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidation.java @@ -1,498 +1,510 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataValidation complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataValidation">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="formula1" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
- *         <element name="formula2" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationType" default="none" />
- *       <attribute name="errorStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationErrorStyle" default="stop" />
- *       <attribute name="imeMode" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationImeMode" default="noControl" />
- *       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationOperator" default="between" />
- *       <attribute name="allowBlank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showDropDown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showInputMessage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showErrorMessage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="errorTitle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="error" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="promptTitle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="prompt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataValidation", propOrder = { - "formula1", - "formula2" -}) -public class CTDataValidation { - - protected String formula1; - protected String formula2; - @XmlAttribute - protected STDataValidationType type; - @XmlAttribute - protected STDataValidationErrorStyle errorStyle; - @XmlAttribute - protected STDataValidationImeMode imeMode; - @XmlAttribute - protected STDataValidationOperator operator; - @XmlAttribute - protected Boolean allowBlank; - @XmlAttribute - protected Boolean showDropDown; - @XmlAttribute - protected Boolean showInputMessage; - @XmlAttribute - protected Boolean showErrorMessage; - @XmlAttribute - protected String errorTitle; - @XmlAttribute - protected String error; - @XmlAttribute - protected String promptTitle; - @XmlAttribute - protected String prompt; - @XmlAttribute(required = true) - protected List sqref; - - /** - * Gets the value of the formula1 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormula1() { - return formula1; - } - - /** - * Sets the value of the formula1 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormula1(String value) { - this.formula1 = value; - } - - /** - * Gets the value of the formula2 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormula2() { - return formula2; - } - - /** - * Sets the value of the formula2 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormula2(String value) { - this.formula2 = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STDataValidationType } - * - */ - public STDataValidationType getType() { - if (type == null) { - return STDataValidationType.NONE; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STDataValidationType } - * - */ - public void setType(STDataValidationType value) { - this.type = value; - } - - /** - * Gets the value of the errorStyle property. - * - * @return - * possible object is - * {@link STDataValidationErrorStyle } - * - */ - public STDataValidationErrorStyle getErrorStyle() { - if (errorStyle == null) { - return STDataValidationErrorStyle.STOP; - } else { - return errorStyle; - } - } - - /** - * Sets the value of the errorStyle property. - * - * @param value - * allowed object is - * {@link STDataValidationErrorStyle } - * - */ - public void setErrorStyle(STDataValidationErrorStyle value) { - this.errorStyle = value; - } - - /** - * Gets the value of the imeMode property. - * - * @return - * possible object is - * {@link STDataValidationImeMode } - * - */ - public STDataValidationImeMode getImeMode() { - if (imeMode == null) { - return STDataValidationImeMode.NO_CONTROL; - } else { - return imeMode; - } - } - - /** - * Sets the value of the imeMode property. - * - * @param value - * allowed object is - * {@link STDataValidationImeMode } - * - */ - public void setImeMode(STDataValidationImeMode value) { - this.imeMode = value; - } - - /** - * Gets the value of the operator property. - * - * @return - * possible object is - * {@link STDataValidationOperator } - * - */ - public STDataValidationOperator getOperator() { - if (operator == null) { - return STDataValidationOperator.BETWEEN; - } else { - return operator; - } - } - - /** - * Sets the value of the operator property. - * - * @param value - * allowed object is - * {@link STDataValidationOperator } - * - */ - public void setOperator(STDataValidationOperator value) { - this.operator = value; - } - - /** - * Gets the value of the allowBlank property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAllowBlank() { - if (allowBlank == null) { - return false; - } else { - return allowBlank; - } - } - - /** - * Sets the value of the allowBlank property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAllowBlank(Boolean value) { - this.allowBlank = value; - } - - /** - * Gets the value of the showDropDown property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowDropDown() { - if (showDropDown == null) { - return false; - } else { - return showDropDown; - } - } - - /** - * Sets the value of the showDropDown property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowDropDown(Boolean value) { - this.showDropDown = value; - } - - /** - * Gets the value of the showInputMessage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowInputMessage() { - if (showInputMessage == null) { - return false; - } else { - return showInputMessage; - } - } - - /** - * Sets the value of the showInputMessage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowInputMessage(Boolean value) { - this.showInputMessage = value; - } - - /** - * Gets the value of the showErrorMessage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowErrorMessage() { - if (showErrorMessage == null) { - return false; - } else { - return showErrorMessage; - } - } - - /** - * Sets the value of the showErrorMessage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowErrorMessage(Boolean value) { - this.showErrorMessage = value; - } - - /** - * Gets the value of the errorTitle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getErrorTitle() { - return errorTitle; - } - - /** - * Sets the value of the errorTitle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setErrorTitle(String value) { - this.errorTitle = value; - } - - /** - * Gets the value of the error property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getError() { - return error; - } - - /** - * Sets the value of the error property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setError(String value) { - this.error = value; - } - - /** - * Gets the value of the promptTitle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPromptTitle() { - return promptTitle; - } - - /** - * Sets the value of the promptTitle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPromptTitle(String value) { - this.promptTitle = value; - } - - /** - * Gets the value of the prompt property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPrompt() { - return prompt; - } - - /** - * Sets the value of the prompt property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPrompt(String value) { - this.prompt = value; - } - - /** - * Gets the value of the sqref property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sqref property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSqref().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSqref() { - if (sqref == null) { - sqref = new ArrayList(); - } - return this.sqref; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataValidation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataValidation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="formula1" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
+ *         <element name="formula2" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationType" default="none" />
+ *       <attribute name="errorStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationErrorStyle" default="stop" />
+ *       <attribute name="imeMode" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationImeMode" default="noControl" />
+ *       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationOperator" default="between" />
+ *       <attribute name="allowBlank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showDropDown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showInputMessage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showErrorMessage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="errorTitle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="error" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="promptTitle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="prompt" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataValidation", propOrder = { + "formula1", + "formula2" +}) +public class CTDataValidation implements Child +{ + + protected String formula1; + protected String formula2; + @XmlAttribute(name = "type") + protected STDataValidationType type; + @XmlAttribute(name = "errorStyle") + protected STDataValidationErrorStyle errorStyle; + @XmlAttribute(name = "imeMode") + protected STDataValidationImeMode imeMode; + @XmlAttribute(name = "operator") + protected STDataValidationOperator operator; + @XmlAttribute(name = "allowBlank") + protected Boolean allowBlank; + @XmlAttribute(name = "showDropDown") + protected Boolean showDropDown; + @XmlAttribute(name = "showInputMessage") + protected Boolean showInputMessage; + @XmlAttribute(name = "showErrorMessage") + protected Boolean showErrorMessage; + @XmlAttribute(name = "errorTitle") + protected String errorTitle; + @XmlAttribute(name = "error") + protected String error; + @XmlAttribute(name = "promptTitle") + protected String promptTitle; + @XmlAttribute(name = "prompt") + protected String prompt; + @XmlAttribute(name = "sqref", required = true) + protected List sqref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the formula1 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormula1() { + return formula1; + } + + /** + * Sets the value of the formula1 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormula1(String value) { + this.formula1 = value; + } + + /** + * Gets the value of the formula2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormula2() { + return formula2; + } + + /** + * Sets the value of the formula2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormula2(String value) { + this.formula2 = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STDataValidationType } + * + */ + public STDataValidationType getType() { + if (type == null) { + return STDataValidationType.NONE; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STDataValidationType } + * + */ + public void setType(STDataValidationType value) { + this.type = value; + } + + /** + * Gets the value of the errorStyle property. + * + * @return + * possible object is + * {@link STDataValidationErrorStyle } + * + */ + public STDataValidationErrorStyle getErrorStyle() { + if (errorStyle == null) { + return STDataValidationErrorStyle.STOP; + } else { + return errorStyle; + } + } + + /** + * Sets the value of the errorStyle property. + * + * @param value + * allowed object is + * {@link STDataValidationErrorStyle } + * + */ + public void setErrorStyle(STDataValidationErrorStyle value) { + this.errorStyle = value; + } + + /** + * Gets the value of the imeMode property. + * + * @return + * possible object is + * {@link STDataValidationImeMode } + * + */ + public STDataValidationImeMode getImeMode() { + if (imeMode == null) { + return STDataValidationImeMode.NO_CONTROL; + } else { + return imeMode; + } + } + + /** + * Sets the value of the imeMode property. + * + * @param value + * allowed object is + * {@link STDataValidationImeMode } + * + */ + public void setImeMode(STDataValidationImeMode value) { + this.imeMode = value; + } + + /** + * Gets the value of the operator property. + * + * @return + * possible object is + * {@link STDataValidationOperator } + * + */ + public STDataValidationOperator getOperator() { + if (operator == null) { + return STDataValidationOperator.BETWEEN; + } else { + return operator; + } + } + + /** + * Sets the value of the operator property. + * + * @param value + * allowed object is + * {@link STDataValidationOperator } + * + */ + public void setOperator(STDataValidationOperator value) { + this.operator = value; + } + + /** + * Gets the value of the allowBlank property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAllowBlank() { + if (allowBlank == null) { + return false; + } else { + return allowBlank; + } + } + + /** + * Sets the value of the allowBlank property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAllowBlank(Boolean value) { + this.allowBlank = value; + } + + /** + * Gets the value of the showDropDown property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowDropDown() { + if (showDropDown == null) { + return false; + } else { + return showDropDown; + } + } + + /** + * Sets the value of the showDropDown property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowDropDown(Boolean value) { + this.showDropDown = value; + } + + /** + * Gets the value of the showInputMessage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowInputMessage() { + if (showInputMessage == null) { + return false; + } else { + return showInputMessage; + } + } + + /** + * Sets the value of the showInputMessage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowInputMessage(Boolean value) { + this.showInputMessage = value; + } + + /** + * Gets the value of the showErrorMessage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowErrorMessage() { + if (showErrorMessage == null) { + return false; + } else { + return showErrorMessage; + } + } + + /** + * Sets the value of the showErrorMessage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowErrorMessage(Boolean value) { + this.showErrorMessage = value; + } + + /** + * Gets the value of the errorTitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorTitle() { + return errorTitle; + } + + /** + * Sets the value of the errorTitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorTitle(String value) { + this.errorTitle = value; + } + + /** + * Gets the value of the error property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getError() { + return error; + } + + /** + * Sets the value of the error property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setError(String value) { + this.error = value; + } + + /** + * Gets the value of the promptTitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPromptTitle() { + return promptTitle; + } + + /** + * Sets the value of the promptTitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPromptTitle(String value) { + this.promptTitle = value; + } + + /** + * Gets the value of the prompt property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrompt() { + return prompt; + } + + /** + * Sets the value of the prompt property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrompt(String value) { + this.prompt = value; + } + + /** + * Gets the value of the sqref property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sqref property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSqref().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSqref() { + if (sqref == null) { + sqref = new ArrayList(); + } + return this.sqref; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidations.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidations.java index 567f225ac5..b213c42256 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidations.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDataValidations.java @@ -1,206 +1,218 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DataValidations complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DataValidations">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dataValidation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataValidation" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="disablePrompts" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="xWindow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="yWindow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DataValidations", propOrder = { - "dataValidation" -}) -public class CTDataValidations { - - @XmlElement(required = true) - protected List dataValidation; - @XmlAttribute - protected Boolean disablePrompts; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long xWindow; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long yWindow; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the dataValidation property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the dataValidation property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDataValidation().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDataValidation } - * - * - */ - public List getDataValidation() { - if (dataValidation == null) { - dataValidation = new ArrayList(); - } - return this.dataValidation; - } - - /** - * Gets the value of the disablePrompts property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDisablePrompts() { - if (disablePrompts == null) { - return false; - } else { - return disablePrompts; - } - } - - /** - * Sets the value of the disablePrompts property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDisablePrompts(Boolean value) { - this.disablePrompts = value; - } - - /** - * Gets the value of the xWindow property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getXWindow() { - return xWindow; - } - - /** - * Sets the value of the xWindow property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setXWindow(Long value) { - this.xWindow = value; - } - - /** - * Gets the value of the yWindow property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getYWindow() { - return yWindow; - } - - /** - * Sets the value of the yWindow property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setYWindow(Long value) { - this.yWindow = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DataValidations complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DataValidations">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dataValidation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataValidation" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="disablePrompts" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="xWindow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="yWindow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DataValidations", propOrder = { + "dataValidation" +}) +public class CTDataValidations implements Child +{ + + @XmlElement(required = true) + protected List dataValidation; + @XmlAttribute(name = "disablePrompts") + protected Boolean disablePrompts; + @XmlAttribute(name = "xWindow") + @XmlSchemaType(name = "unsignedInt") + protected Long xWindow; + @XmlAttribute(name = "yWindow") + @XmlSchemaType(name = "unsignedInt") + protected Long yWindow; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dataValidation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dataValidation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDataValidation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDataValidation } + * + * + */ + public List getDataValidation() { + if (dataValidation == null) { + dataValidation = new ArrayList(); + } + return this.dataValidation; + } + + /** + * Gets the value of the disablePrompts property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDisablePrompts() { + if (disablePrompts == null) { + return false; + } else { + return disablePrompts; + } + } + + /** + * Sets the value of the disablePrompts property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisablePrompts(Boolean value) { + this.disablePrompts = value; + } + + /** + * Gets the value of the xWindow property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getXWindow() { + return xWindow; + } + + /** + * Sets the value of the xWindow property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setXWindow(Long value) { + this.xWindow = value; + } + + /** + * Gets the value of the yWindow property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getYWindow() { + return yWindow; + } + + /** + * Sets the value of the yWindow property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setYWindow(Long value) { + this.yWindow = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDateGroupItem.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDateGroupItem.java index d3546633c6..27d2c7afc8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDateGroupItem.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDateGroupItem.java @@ -1,239 +1,251 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DateGroupItem complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DateGroupItem">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="year" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
- *       <attribute name="month" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
- *       <attribute name="day" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
- *       <attribute name="hour" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
- *       <attribute name="minute" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
- *       <attribute name="second" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
- *       <attribute name="dateTimeGrouping" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DateTimeGrouping" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DateGroupItem") -public class CTDateGroupItem { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedShort") - protected int year; - @XmlAttribute - @XmlSchemaType(name = "unsignedShort") - protected Integer month; - @XmlAttribute - @XmlSchemaType(name = "unsignedShort") - protected Integer day; - @XmlAttribute - @XmlSchemaType(name = "unsignedShort") - protected Integer hour; - @XmlAttribute - @XmlSchemaType(name = "unsignedShort") - protected Integer minute; - @XmlAttribute - @XmlSchemaType(name = "unsignedShort") - protected Integer second; - @XmlAttribute(required = true) - protected STDateTimeGrouping dateTimeGrouping; - - /** - * Gets the value of the year property. - * - */ - public int getYear() { - return year; - } - - /** - * Sets the value of the year property. - * - */ - public void setYear(int value) { - this.year = value; - } - - /** - * Gets the value of the month property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getMonth() { - return month; - } - - /** - * Sets the value of the month property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setMonth(Integer value) { - this.month = value; - } - - /** - * Gets the value of the day property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getDay() { - return day; - } - - /** - * Sets the value of the day property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setDay(Integer value) { - this.day = value; - } - - /** - * Gets the value of the hour property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getHour() { - return hour; - } - - /** - * Sets the value of the hour property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setHour(Integer value) { - this.hour = value; - } - - /** - * Gets the value of the minute property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getMinute() { - return minute; - } - - /** - * Sets the value of the minute property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setMinute(Integer value) { - this.minute = value; - } - - /** - * Gets the value of the second property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getSecond() { - return second; - } - - /** - * Sets the value of the second property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setSecond(Integer value) { - this.second = value; - } - - /** - * Gets the value of the dateTimeGrouping property. - * - * @return - * possible object is - * {@link STDateTimeGrouping } - * - */ - public STDateTimeGrouping getDateTimeGrouping() { - return dateTimeGrouping; - } - - /** - * Sets the value of the dateTimeGrouping property. - * - * @param value - * allowed object is - * {@link STDateTimeGrouping } - * - */ - public void setDateTimeGrouping(STDateTimeGrouping value) { - this.dateTimeGrouping = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DateGroupItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DateGroupItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="year" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="month" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="day" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="hour" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="minute" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="second" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="dateTimeGrouping" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DateTimeGrouping" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DateGroupItem") +public class CTDateGroupItem implements Child +{ + + @XmlAttribute(name = "year", required = true) + @XmlSchemaType(name = "unsignedShort") + protected int year; + @XmlAttribute(name = "month") + @XmlSchemaType(name = "unsignedShort") + protected Integer month; + @XmlAttribute(name = "day") + @XmlSchemaType(name = "unsignedShort") + protected Integer day; + @XmlAttribute(name = "hour") + @XmlSchemaType(name = "unsignedShort") + protected Integer hour; + @XmlAttribute(name = "minute") + @XmlSchemaType(name = "unsignedShort") + protected Integer minute; + @XmlAttribute(name = "second") + @XmlSchemaType(name = "unsignedShort") + protected Integer second; + @XmlAttribute(name = "dateTimeGrouping", required = true) + protected STDateTimeGrouping dateTimeGrouping; + @XmlTransient + private Object parent; + + /** + * Gets the value of the year property. + * + */ + public int getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + */ + public void setYear(int value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMonth(Integer value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setDay(Integer value) { + this.day = value; + } + + /** + * Gets the value of the hour property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getHour() { + return hour; + } + + /** + * Sets the value of the hour property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHour(Integer value) { + this.hour = value; + } + + /** + * Gets the value of the minute property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMinute() { + return minute; + } + + /** + * Sets the value of the minute property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMinute(Integer value) { + this.minute = value; + } + + /** + * Gets the value of the second property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getSecond() { + return second; + } + + /** + * Sets the value of the second property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSecond(Integer value) { + this.second = value; + } + + /** + * Gets the value of the dateTimeGrouping property. + * + * @return + * possible object is + * {@link STDateTimeGrouping } + * + */ + public STDateTimeGrouping getDateTimeGrouping() { + return dateTimeGrouping; + } + + /** + * Sets the value of the dateTimeGrouping property. + * + * @param value + * allowed object is + * {@link STDateTimeGrouping } + * + */ + public void setDateTimeGrouping(STDateTimeGrouping value) { + this.dateTimeGrouping = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDateTime.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDateTime.java index ba7d243a30..8f0f1255cb 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDateTime.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDateTime.java @@ -1,227 +1,239 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for CT_DateTime complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DateTime">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
- *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DateTime", propOrder = { - "x" -}) -public class CTDateTime { - - protected List x; - @XmlAttribute(required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar v; - @XmlAttribute - protected Boolean u; - @XmlAttribute - protected Boolean f; - @XmlAttribute - protected String c; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cp; - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getV() { - return v; - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setV(XMLGregorianCalendar value) { - this.v = value; - } - - /** - * Gets the value of the u property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isU() { - return u; - } - - /** - * Sets the value of the u property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setU(Boolean value) { - this.u = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setF(Boolean value) { - this.f = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getC() { - return c; - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setC(String value) { - this.c = value; - } - - /** - * Gets the value of the cp property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCp() { - return cp; - } - - /** - * Sets the value of the cp property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCp(Long value) { - this.cp = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DateTime complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DateTime">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="c" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DateTime", propOrder = { + "x" +}) +public class CTDateTime implements Child +{ + + protected List x; + @XmlAttribute(name = "v", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar v; + @XmlAttribute(name = "u") + protected Boolean u; + @XmlAttribute(name = "f") + protected Boolean f; + @XmlAttribute(name = "c") + protected String c; + @XmlAttribute(name = "cp") + @XmlSchemaType(name = "unsignedInt") + protected Long cp; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getV() { + return v; + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setV(XMLGregorianCalendar value) { + this.v = value; + } + + /** + * Gets the value of the u property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isU() { + return u; + } + + /** + * Sets the value of the u property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setU(Boolean value) { + this.u = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setF(Boolean value) { + this.f = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getC() { + return c; + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setC(String value) { + this.c = value; + } + + /** + * Gets the value of the cp property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCp() { + return cp; + } + + /** + * Sets the value of the cp property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCp(Long value) { + this.cp = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDbPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDbPr.java index 23136f818b..e9e3995d00 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDbPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDbPr.java @@ -1,165 +1,177 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DbPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DbPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="connection" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="command" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="serverCommand" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="commandType" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="2" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DbPr") -public class CTDbPr { - - @XmlAttribute(required = true) - protected String connection; - @XmlAttribute - protected String command; - @XmlAttribute - protected String serverCommand; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long commandType; - - /** - * Gets the value of the connection property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getConnection() { - return connection; - } - - /** - * Sets the value of the connection property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setConnection(String value) { - this.connection = value; - } - - /** - * Gets the value of the command property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCommand() { - return command; - } - - /** - * Sets the value of the command property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCommand(String value) { - this.command = value; - } - - /** - * Gets the value of the serverCommand property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getServerCommand() { - return serverCommand; - } - - /** - * Sets the value of the serverCommand property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setServerCommand(String value) { - this.serverCommand = value; - } - - /** - * Gets the value of the commandType property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCommandType() { - if (commandType == null) { - return 2L; - } else { - return commandType; - } - } - - /** - * Sets the value of the commandType property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCommandType(Long value) { - this.commandType = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DbPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DbPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="connection" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="command" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="serverCommand" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="commandType" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="2" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DbPr") +public class CTDbPr implements Child +{ + + @XmlAttribute(name = "connection", required = true) + protected String connection; + @XmlAttribute(name = "command") + protected String command; + @XmlAttribute(name = "serverCommand") + protected String serverCommand; + @XmlAttribute(name = "commandType") + @XmlSchemaType(name = "unsignedInt") + protected Long commandType; + @XmlTransient + private Object parent; + + /** + * Gets the value of the connection property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getConnection() { + return connection; + } + + /** + * Sets the value of the connection property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setConnection(String value) { + this.connection = value; + } + + /** + * Gets the value of the command property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCommand() { + return command; + } + + /** + * Sets the value of the command property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCommand(String value) { + this.command = value; + } + + /** + * Gets the value of the serverCommand property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getServerCommand() { + return serverCommand; + } + + /** + * Sets the value of the serverCommand property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setServerCommand(String value) { + this.serverCommand = value; + } + + /** + * Gets the value of the commandType property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCommandType() { + if (commandType == null) { + return 2L; + } else { + return commandType; + } + } + + /** + * Sets the value of the commandType property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCommandType(Long value) { + this.commandType = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItem.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItem.java index ead072d3a9..beae1ff038 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItem.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItem.java @@ -1,205 +1,217 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DdeItem complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DdeItem">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="values" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeValues" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" default="0" />
- *       <attribute name="ole" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="advise" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="preferPic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DdeItem", propOrder = { - "values" -}) -public class CTDdeItem { - - protected CTDdeValues values; - @XmlAttribute - protected String name; - @XmlAttribute - protected Boolean ole; - @XmlAttribute - protected Boolean advise; - @XmlAttribute - protected Boolean preferPic; - - /** - * Gets the value of the values property. - * - * @return - * possible object is - * {@link CTDdeValues } - * - */ - public CTDdeValues getValues() { - return values; - } - - /** - * Sets the value of the values property. - * - * @param value - * allowed object is - * {@link CTDdeValues } - * - */ - public void setValues(CTDdeValues value) { - this.values = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - if (name == null) { - return "0"; - } else { - return name; - } - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the ole property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOle() { - if (ole == null) { - return false; - } else { - return ole; - } - } - - /** - * Sets the value of the ole property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOle(Boolean value) { - this.ole = value; - } - - /** - * Gets the value of the advise property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAdvise() { - if (advise == null) { - return false; - } else { - return advise; - } - } - - /** - * Sets the value of the advise property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAdvise(Boolean value) { - this.advise = value; - } - - /** - * Gets the value of the preferPic property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPreferPic() { - if (preferPic == null) { - return false; - } else { - return preferPic; - } - } - - /** - * Sets the value of the preferPic property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreferPic(Boolean value) { - this.preferPic = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DdeItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DdeItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="values" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeValues" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="0" />
+ *       <attribute name="ole" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="advise" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="preferPic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DdeItem", propOrder = { + "values" +}) +public class CTDdeItem implements Child +{ + + protected CTDdeValues values; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "ole") + protected Boolean ole; + @XmlAttribute(name = "advise") + protected Boolean advise; + @XmlAttribute(name = "preferPic") + protected Boolean preferPic; + @XmlTransient + private Object parent; + + /** + * Gets the value of the values property. + * + * @return + * possible object is + * {@link CTDdeValues } + * + */ + public CTDdeValues getValues() { + return values; + } + + /** + * Sets the value of the values property. + * + * @param value + * allowed object is + * {@link CTDdeValues } + * + */ + public void setValues(CTDdeValues value) { + this.values = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + if (name == null) { + return "0"; + } else { + return name; + } + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the ole property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOle() { + if (ole == null) { + return false; + } else { + return ole; + } + } + + /** + * Sets the value of the ole property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOle(Boolean value) { + this.ole = value; + } + + /** + * Gets the value of the advise property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAdvise() { + if (advise == null) { + return false; + } else { + return advise; + } + } + + /** + * Sets the value of the advise property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAdvise(Boolean value) { + this.advise = value; + } + + /** + * Gets the value of the preferPic property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPreferPic() { + if (preferPic == null) { + return false; + } else { + return preferPic; + } + } + + /** + * Sets the value of the preferPic property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPreferPic(Boolean value) { + this.preferPic = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItems.java index 8144d8287d..57ae81c5c5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeItems.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DdeItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DdeItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="ddeItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeItem" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DdeItems", propOrder = { - "ddeItem" -}) -public class CTDdeItems { - - protected List ddeItem; - - /** - * Gets the value of the ddeItem property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the ddeItem property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDdeItem().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDdeItem } - * - * - */ - public List getDdeItem() { - if (ddeItem == null) { - ddeItem = new ArrayList(); - } - return this.ddeItem; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DdeItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DdeItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ddeItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeItem" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DdeItems", propOrder = { + "ddeItem" +}) +public class CTDdeItems implements Child +{ + + protected List ddeItem; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ddeItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the ddeItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDdeItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDdeItem } + * + * + */ + public List getDdeItem() { + if (ddeItem == null) { + ddeItem = new ArrayList(); + } + return this.ddeItem; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeLink.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeLink.java index 8c770a5c7d..80d02d9ca0 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeLink.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeLink.java @@ -1,135 +1,147 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DdeLink complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DdeLink">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="ddeItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeItems" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="ddeService" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="ddeTopic" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DdeLink", propOrder = { - "ddeItems" -}) -public class CTDdeLink { - - protected CTDdeItems ddeItems; - @XmlAttribute(required = true) - protected String ddeService; - @XmlAttribute(required = true) - protected String ddeTopic; - - /** - * Gets the value of the ddeItems property. - * - * @return - * possible object is - * {@link CTDdeItems } - * - */ - public CTDdeItems getDdeItems() { - return ddeItems; - } - - /** - * Sets the value of the ddeItems property. - * - * @param value - * allowed object is - * {@link CTDdeItems } - * - */ - public void setDdeItems(CTDdeItems value) { - this.ddeItems = value; - } - - /** - * Gets the value of the ddeService property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDdeService() { - return ddeService; - } - - /** - * Sets the value of the ddeService property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDdeService(String value) { - this.ddeService = value; - } - - /** - * Gets the value of the ddeTopic property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDdeTopic() { - return ddeTopic; - } - - /** - * Sets the value of the ddeTopic property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDdeTopic(String value) { - this.ddeTopic = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DdeLink complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DdeLink">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ddeItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeItems" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="ddeService" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="ddeTopic" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DdeLink", propOrder = { + "ddeItems" +}) +public class CTDdeLink implements Child +{ + + protected CTDdeItems ddeItems; + @XmlAttribute(name = "ddeService", required = true) + protected String ddeService; + @XmlAttribute(name = "ddeTopic", required = true) + protected String ddeTopic; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ddeItems property. + * + * @return + * possible object is + * {@link CTDdeItems } + * + */ + public CTDdeItems getDdeItems() { + return ddeItems; + } + + /** + * Sets the value of the ddeItems property. + * + * @param value + * allowed object is + * {@link CTDdeItems } + * + */ + public void setDdeItems(CTDdeItems value) { + this.ddeItems = value; + } + + /** + * Gets the value of the ddeService property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDdeService() { + return ddeService; + } + + /** + * Sets the value of the ddeService property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDdeService(String value) { + this.ddeService = value; + } + + /** + * Gets the value of the ddeTopic property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDdeTopic() { + return ddeTopic; + } + + /** + * Sets the value of the ddeTopic property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDdeTopic(String value) { + this.ddeTopic = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValue.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValue.java index 377ff230a1..bc53898e81 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValue.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValue.java @@ -1,114 +1,126 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DdeValue complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DdeValue">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="val" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring"/>
- *       </sequence>
- *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DdeValueType" default="n" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DdeValue", propOrder = { - "val" -}) -public class CTDdeValue { - - @XmlElement(required = true) - protected String val; - @XmlAttribute - protected STDdeValueType t; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link STDdeValueType } - * - */ - public STDdeValueType getT() { - if (t == null) { - return STDdeValueType.N; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link STDdeValueType } - * - */ - public void setT(STDdeValueType value) { - this.t = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DdeValue complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DdeValue">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="val" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring"/>
+ *       </sequence>
+ *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DdeValueType" default="n" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DdeValue", propOrder = { + "val" +}) +public class CTDdeValue implements Child +{ + + @XmlElement(required = true) + protected String val; + @XmlAttribute(name = "t") + protected STDdeValueType t; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link STDdeValueType } + * + */ + public STDdeValueType getT() { + if (t == null) { + return STDdeValueType.N; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link STDdeValueType } + * + */ + public void setT(STDdeValueType value) { + this.t = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValues.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValues.java index 8885ba4dcf..7a5edb660d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValues.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDdeValues.java @@ -1,155 +1,167 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DdeValues complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DdeValues">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="value" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeValue" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="rows" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="cols" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DdeValues", propOrder = { - "value" -}) -public class CTDdeValues { - - @XmlElement(required = true) - protected List value; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long rows; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cols; - - /** - * Gets the value of the value property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the value property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getValue().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDdeValue } - * - * - */ - public List getValue() { - if (value == null) { - value = new ArrayList(); - } - return this.value; - } - - /** - * Gets the value of the rows property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getRows() { - if (rows == null) { - return 1L; - } else { - return rows; - } - } - - /** - * Sets the value of the rows property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setRows(Long value) { - this.rows = value; - } - - /** - * Gets the value of the cols property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCols() { - if (cols == null) { - return 1L; - } else { - return cols; - } - } - - /** - * Sets the value of the cols property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCols(Long value) { - this.cols = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DdeValues complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DdeValues">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="value" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeValue" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="rows" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="cols" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DdeValues", propOrder = { + "value" +}) +public class CTDdeValues implements Child +{ + + @XmlElement(required = true) + protected List value; + @XmlAttribute(name = "rows") + @XmlSchemaType(name = "unsignedInt") + protected Long rows; + @XmlAttribute(name = "cols") + @XmlSchemaType(name = "unsignedInt") + protected Long cols; + @XmlTransient + private Object parent; + + /** + * Gets the value of the value property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the value property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getValue().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDdeValue } + * + * + */ + public List getValue() { + if (value == null) { + value = new ArrayList(); + } + return this.value; + } + + /** + * Gets the value of the rows property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getRows() { + if (rows == null) { + return 1L; + } else { + return rows; + } + } + + /** + * Sets the value of the rows property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRows(Long value) { + this.rows = value; + } + + /** + * Gets the value of the cols property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCols() { + if (cols == null) { + return 1L; + } else { + return cols; + } + } + + /** + * Sets the value of the cols property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCols(Long value) { + this.cols = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDefinedName.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDefinedName.java index 5541e182c0..4b7ee196a6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDefinedName.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDefinedName.java @@ -1,512 +1,524 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for CT_DefinedName complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DefinedName">
- *   <simpleContent>
- *     <extension base="<http://schemas.openxmlformats.org/spreadsheetml/2006/main>ST_Formula">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="comment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="customMenu" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="description" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="help" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="statusBar" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="localSheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="function" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="vbProcedure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="xlm" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="functionGroupId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="shortcutKey" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="publishToServer" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="workbookParameter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DefinedName", propOrder = { - "value" -}) -public class CTDefinedName { - - @XmlValue - protected String value; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected String comment; - @XmlAttribute - protected String customMenu; - @XmlAttribute - protected String description; - @XmlAttribute - protected String help; - @XmlAttribute - protected String statusBar; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long localSheetId; - @XmlAttribute - protected Boolean hidden; - @XmlAttribute - protected Boolean function; - @XmlAttribute - protected Boolean vbProcedure; - @XmlAttribute - protected Boolean xlm; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long functionGroupId; - @XmlAttribute - protected String shortcutKey; - @XmlAttribute - protected Boolean publishToServer; - @XmlAttribute - protected Boolean workbookParameter; - - /** - * Formula - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the comment property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getComment() { - return comment; - } - - /** - * Sets the value of the comment property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setComment(String value) { - this.comment = value; - } - - /** - * Gets the value of the customMenu property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCustomMenu() { - return customMenu; - } - - /** - * Sets the value of the customMenu property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCustomMenu(String value) { - this.customMenu = value; - } - - /** - * Gets the value of the description property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescription(String value) { - this.description = value; - } - - /** - * Gets the value of the help property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHelp() { - return help; - } - - /** - * Sets the value of the help property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHelp(String value) { - this.help = value; - } - - /** - * Gets the value of the statusBar property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStatusBar() { - return statusBar; - } - - /** - * Sets the value of the statusBar property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStatusBar(String value) { - this.statusBar = value; - } - - /** - * Gets the value of the localSheetId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getLocalSheetId() { - return localSheetId; - } - - /** - * Sets the value of the localSheetId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setLocalSheetId(Long value) { - this.localSheetId = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHidden() { - if (hidden == null) { - return false; - } else { - return hidden; - } - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - - /** - * Gets the value of the function property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFunction() { - if (function == null) { - return false; - } else { - return function; - } - } - - /** - * Sets the value of the function property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFunction(Boolean value) { - this.function = value; - } - - /** - * Gets the value of the vbProcedure property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVbProcedure() { - if (vbProcedure == null) { - return false; - } else { - return vbProcedure; - } - } - - /** - * Sets the value of the vbProcedure property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVbProcedure(Boolean value) { - this.vbProcedure = value; - } - - /** - * Gets the value of the xlm property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isXlm() { - if (xlm == null) { - return false; - } else { - return xlm; - } - } - - /** - * Sets the value of the xlm property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setXlm(Boolean value) { - this.xlm = value; - } - - /** - * Gets the value of the functionGroupId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getFunctionGroupId() { - return functionGroupId; - } - - /** - * Sets the value of the functionGroupId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFunctionGroupId(Long value) { - this.functionGroupId = value; - } - - /** - * Gets the value of the shortcutKey property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getShortcutKey() { - return shortcutKey; - } - - /** - * Sets the value of the shortcutKey property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setShortcutKey(String value) { - this.shortcutKey = value; - } - - /** - * Gets the value of the publishToServer property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPublishToServer() { - if (publishToServer == null) { - return false; - } else { - return publishToServer; - } - } - - /** - * Sets the value of the publishToServer property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPublishToServer(Boolean value) { - this.publishToServer = value; - } - - /** - * Gets the value of the workbookParameter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isWorkbookParameter() { - if (workbookParameter == null) { - return false; - } else { - return workbookParameter; - } - } - - /** - * Sets the value of the workbookParameter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setWorkbookParameter(Boolean value) { - this.workbookParameter = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DefinedName complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DefinedName">
+ *   <simpleContent>
+ *     <extension base="<http://schemas.openxmlformats.org/spreadsheetml/2006/main>ST_Formula">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="comment" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="customMenu" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="description" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="help" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="statusBar" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="localSheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="function" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="vbProcedure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="xlm" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="functionGroupId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="shortcutKey" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="publishToServer" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="workbookParameter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DefinedName", propOrder = { + "value" +}) +public class CTDefinedName implements Child +{ + + @XmlValue + protected String value; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "comment") + protected String comment; + @XmlAttribute(name = "customMenu") + protected String customMenu; + @XmlAttribute(name = "description") + protected String description; + @XmlAttribute(name = "help") + protected String help; + @XmlAttribute(name = "statusBar") + protected String statusBar; + @XmlAttribute(name = "localSheetId") + @XmlSchemaType(name = "unsignedInt") + protected Long localSheetId; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlAttribute(name = "function") + protected Boolean function; + @XmlAttribute(name = "vbProcedure") + protected Boolean vbProcedure; + @XmlAttribute(name = "xlm") + protected Boolean xlm; + @XmlAttribute(name = "functionGroupId") + @XmlSchemaType(name = "unsignedInt") + protected Long functionGroupId; + @XmlAttribute(name = "shortcutKey") + protected String shortcutKey; + @XmlAttribute(name = "publishToServer") + protected Boolean publishToServer; + @XmlAttribute(name = "workbookParameter") + protected Boolean workbookParameter; + @XmlTransient + private Object parent; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the customMenu property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCustomMenu() { + return customMenu; + } + + /** + * Sets the value of the customMenu property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCustomMenu(String value) { + this.customMenu = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the help property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHelp() { + return help; + } + + /** + * Sets the value of the help property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHelp(String value) { + this.help = value; + } + + /** + * Gets the value of the statusBar property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStatusBar() { + return statusBar; + } + + /** + * Sets the value of the statusBar property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStatusBar(String value) { + this.statusBar = value; + } + + /** + * Gets the value of the localSheetId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLocalSheetId() { + return localSheetId; + } + + /** + * Sets the value of the localSheetId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLocalSheetId(Long value) { + this.localSheetId = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHidden() { + if (hidden == null) { + return false; + } else { + return hidden; + } + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the value of the function property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFunction() { + if (function == null) { + return false; + } else { + return function; + } + } + + /** + * Sets the value of the function property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFunction(Boolean value) { + this.function = value; + } + + /** + * Gets the value of the vbProcedure property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVbProcedure() { + if (vbProcedure == null) { + return false; + } else { + return vbProcedure; + } + } + + /** + * Sets the value of the vbProcedure property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVbProcedure(Boolean value) { + this.vbProcedure = value; + } + + /** + * Gets the value of the xlm property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isXlm() { + if (xlm == null) { + return false; + } else { + return xlm; + } + } + + /** + * Sets the value of the xlm property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setXlm(Boolean value) { + this.xlm = value; + } + + /** + * Gets the value of the functionGroupId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFunctionGroupId() { + return functionGroupId; + } + + /** + * Sets the value of the functionGroupId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFunctionGroupId(Long value) { + this.functionGroupId = value; + } + + /** + * Gets the value of the shortcutKey property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShortcutKey() { + return shortcutKey; + } + + /** + * Sets the value of the shortcutKey property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShortcutKey(String value) { + this.shortcutKey = value; + } + + /** + * Gets the value of the publishToServer property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPublishToServer() { + if (publishToServer == null) { + return false; + } else { + return publishToServer; + } + } + + /** + * Sets the value of the publishToServer property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPublishToServer(Boolean value) { + this.publishToServer = value; + } + + /** + * Gets the value of the workbookParameter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isWorkbookParameter() { + if (workbookParameter == null) { + return false; + } else { + return workbookParameter; + } + } + + /** + * Sets the value of the workbookParameter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWorkbookParameter(Boolean value) { + this.workbookParameter = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDeletedField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDeletedField.java index 58bed0e6a7..3bd23f5ba9 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDeletedField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDeletedField.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DeletedField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DeletedField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DeletedField") -public class CTDeletedField { - - @XmlAttribute(required = true) - protected String name; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DeletedField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DeletedField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DeletedField") +public class CTDeletedField implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDimensions.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDimensions.java index 69debf1a38..7879b62e7c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDimensions.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDimensions.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Dimensions complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Dimensions">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dimension" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotDimension" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Dimensions", propOrder = { - "dimension" -}) -public class CTDimensions { - - protected List dimension; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the dimension property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the dimension property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDimension().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotDimension } - * - * - */ - public List getDimension() { - if (dimension == null) { - dimension = new ArrayList(); - } - return this.dimension; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Dimensions complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Dimensions">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dimension" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotDimension" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Dimensions", propOrder = { + "dimension" +}) +public class CTDimensions implements Child +{ + + protected List dimension; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dimension property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dimension property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDimension().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotDimension } + * + * + */ + public List getDimension() { + if (dimension == null) { + dimension = new ArrayList(); + } + return this.dimension; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDiscretePr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDiscretePr.java index 0656b1e56e..ae5f1f383e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDiscretePr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDiscretePr.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DiscretePr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DiscretePr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DiscretePr", propOrder = { - "x" -}) -public class CTDiscretePr { - - @XmlElement(required = true) - protected List x; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTIndex } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DiscretePr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DiscretePr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DiscretePr", propOrder = { + "x" +}) +public class CTDiscretePr implements Child +{ + + @XmlElement(required = true) + protected List x; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTIndex } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDrawing.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDrawing.java index de27fb8b70..ef23607e18 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDrawing.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDrawing.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Drawing complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Drawing">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Drawing") -public class CTDrawing { - - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Relationship id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Drawing complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Drawing">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Drawing") +public class CTDrawing implements Child +{ + + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDrawingHF.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDrawingHF.java new file mode 100644 index 0000000000..407b5f2977 --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDrawingHF.java @@ -0,0 +1,595 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DrawingHF complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DrawingHF">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *       <attribute name="lho" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="lhe" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="lhf" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="cho" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="che" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="chf" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rho" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rhe" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rhf" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="lfo" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="lfe" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="lff" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="cfo" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="cfe" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="cff" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rfo" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rfe" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rff" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DrawingHF") +public class CTDrawingHF implements Child +{ + + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlAttribute(name = "lho") + @XmlSchemaType(name = "unsignedInt") + protected Long lho; + @XmlAttribute(name = "lhe") + @XmlSchemaType(name = "unsignedInt") + protected Long lhe; + @XmlAttribute(name = "lhf") + @XmlSchemaType(name = "unsignedInt") + protected Long lhf; + @XmlAttribute(name = "cho") + @XmlSchemaType(name = "unsignedInt") + protected Long cho; + @XmlAttribute(name = "che") + @XmlSchemaType(name = "unsignedInt") + protected Long che; + @XmlAttribute(name = "chf") + @XmlSchemaType(name = "unsignedInt") + protected Long chf; + @XmlAttribute(name = "rho") + @XmlSchemaType(name = "unsignedInt") + protected Long rho; + @XmlAttribute(name = "rhe") + @XmlSchemaType(name = "unsignedInt") + protected Long rhe; + @XmlAttribute(name = "rhf") + @XmlSchemaType(name = "unsignedInt") + protected Long rhf; + @XmlAttribute(name = "lfo") + @XmlSchemaType(name = "unsignedInt") + protected Long lfo; + @XmlAttribute(name = "lfe") + @XmlSchemaType(name = "unsignedInt") + protected Long lfe; + @XmlAttribute(name = "lff") + @XmlSchemaType(name = "unsignedInt") + protected Long lff; + @XmlAttribute(name = "cfo") + @XmlSchemaType(name = "unsignedInt") + protected Long cfo; + @XmlAttribute(name = "cfe") + @XmlSchemaType(name = "unsignedInt") + protected Long cfe; + @XmlAttribute(name = "cff") + @XmlSchemaType(name = "unsignedInt") + protected Long cff; + @XmlAttribute(name = "rfo") + @XmlSchemaType(name = "unsignedInt") + protected Long rfo; + @XmlAttribute(name = "rfe") + @XmlSchemaType(name = "unsignedInt") + protected Long rfe; + @XmlAttribute(name = "rff") + @XmlSchemaType(name = "unsignedInt") + protected Long rff; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the lho property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLho() { + return lho; + } + + /** + * Sets the value of the lho property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLho(Long value) { + this.lho = value; + } + + /** + * Gets the value of the lhe property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLhe() { + return lhe; + } + + /** + * Sets the value of the lhe property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLhe(Long value) { + this.lhe = value; + } + + /** + * Gets the value of the lhf property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLhf() { + return lhf; + } + + /** + * Sets the value of the lhf property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLhf(Long value) { + this.lhf = value; + } + + /** + * Gets the value of the cho property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCho() { + return cho; + } + + /** + * Sets the value of the cho property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCho(Long value) { + this.cho = value; + } + + /** + * Gets the value of the che property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getChe() { + return che; + } + + /** + * Sets the value of the che property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setChe(Long value) { + this.che = value; + } + + /** + * Gets the value of the chf property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getChf() { + return chf; + } + + /** + * Sets the value of the chf property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setChf(Long value) { + this.chf = value; + } + + /** + * Gets the value of the rho property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRho() { + return rho; + } + + /** + * Sets the value of the rho property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRho(Long value) { + this.rho = value; + } + + /** + * Gets the value of the rhe property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRhe() { + return rhe; + } + + /** + * Sets the value of the rhe property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRhe(Long value) { + this.rhe = value; + } + + /** + * Gets the value of the rhf property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRhf() { + return rhf; + } + + /** + * Sets the value of the rhf property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRhf(Long value) { + this.rhf = value; + } + + /** + * Gets the value of the lfo property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLfo() { + return lfo; + } + + /** + * Sets the value of the lfo property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLfo(Long value) { + this.lfo = value; + } + + /** + * Gets the value of the lfe property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLfe() { + return lfe; + } + + /** + * Sets the value of the lfe property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLfe(Long value) { + this.lfe = value; + } + + /** + * Gets the value of the lff property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLff() { + return lff; + } + + /** + * Sets the value of the lff property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLff(Long value) { + this.lff = value; + } + + /** + * Gets the value of the cfo property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCfo() { + return cfo; + } + + /** + * Sets the value of the cfo property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCfo(Long value) { + this.cfo = value; + } + + /** + * Gets the value of the cfe property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCfe() { + return cfe; + } + + /** + * Sets the value of the cfe property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCfe(Long value) { + this.cfe = value; + } + + /** + * Gets the value of the cff property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCff() { + return cff; + } + + /** + * Sets the value of the cff property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCff(Long value) { + this.cff = value; + } + + /** + * Gets the value of the rfo property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRfo() { + return rfo; + } + + /** + * Sets the value of the rfo property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRfo(Long value) { + this.rfo = value; + } + + /** + * Gets the value of the rfe property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRfe() { + return rfe; + } + + /** + * Sets the value of the rfe property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRfe(Long value) { + this.rfe = value; + } + + /** + * Gets the value of the rff property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRff() { + return rff; + } + + /** + * Sets the value of the rff property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRff(Long value) { + this.rff = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDxf.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDxf.java index d5cca239b6..4f3abbae27 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDxf.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDxf.java @@ -1,242 +1,254 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Dxf complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Dxf">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="font" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Font" minOccurs="0"/>
- *         <element name="numFmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_NumFmt" minOccurs="0"/>
- *         <element name="fill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fill" minOccurs="0"/>
- *         <element name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellAlignment" minOccurs="0"/>
- *         <element name="border" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Border" minOccurs="0"/>
- *         <element name="protection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellProtection" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Dxf", propOrder = { - "font", - "numFmt", - "fill", - "alignment", - "border", - "protection", - "extLst" -}) -public class CTDxf { - - protected CTFont font; - protected CTNumFmt numFmt; - protected CTFill fill; - protected CTCellAlignment alignment; - protected CTBorder border; - protected CTCellProtection protection; - protected CTExtensionList extLst; - - /** - * Gets the value of the font property. - * - * @return - * possible object is - * {@link CTFont } - * - */ - public CTFont getFont() { - return font; - } - - /** - * Sets the value of the font property. - * - * @param value - * allowed object is - * {@link CTFont } - * - */ - public void setFont(CTFont value) { - this.font = value; - } - - /** - * Gets the value of the numFmt property. - * - * @return - * possible object is - * {@link CTNumFmt } - * - */ - public CTNumFmt getNumFmt() { - return numFmt; - } - - /** - * Sets the value of the numFmt property. - * - * @param value - * allowed object is - * {@link CTNumFmt } - * - */ - public void setNumFmt(CTNumFmt value) { - this.numFmt = value; - } - - /** - * Gets the value of the fill property. - * - * @return - * possible object is - * {@link CTFill } - * - */ - public CTFill getFill() { - return fill; - } - - /** - * Sets the value of the fill property. - * - * @param value - * allowed object is - * {@link CTFill } - * - */ - public void setFill(CTFill value) { - this.fill = value; - } - - /** - * Gets the value of the alignment property. - * - * @return - * possible object is - * {@link CTCellAlignment } - * - */ - public CTCellAlignment getAlignment() { - return alignment; - } - - /** - * Sets the value of the alignment property. - * - * @param value - * allowed object is - * {@link CTCellAlignment } - * - */ - public void setAlignment(CTCellAlignment value) { - this.alignment = value; - } - - /** - * Gets the value of the border property. - * - * @return - * possible object is - * {@link CTBorder } - * - */ - public CTBorder getBorder() { - return border; - } - - /** - * Sets the value of the border property. - * - * @param value - * allowed object is - * {@link CTBorder } - * - */ - public void setBorder(CTBorder value) { - this.border = value; - } - - /** - * Gets the value of the protection property. - * - * @return - * possible object is - * {@link CTCellProtection } - * - */ - public CTCellProtection getProtection() { - return protection; - } - - /** - * Sets the value of the protection property. - * - * @param value - * allowed object is - * {@link CTCellProtection } - * - */ - public void setProtection(CTCellProtection value) { - this.protection = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Dxf complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Dxf">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="font" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Font" minOccurs="0"/>
+ *         <element name="numFmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_NumFmt" minOccurs="0"/>
+ *         <element name="fill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fill" minOccurs="0"/>
+ *         <element name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellAlignment" minOccurs="0"/>
+ *         <element name="border" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Border" minOccurs="0"/>
+ *         <element name="protection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellProtection" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Dxf", propOrder = { + "font", + "numFmt", + "fill", + "alignment", + "border", + "protection", + "extLst" +}) +public class CTDxf implements Child +{ + + protected CTFont font; + protected CTNumFmt numFmt; + protected CTFill fill; + protected CTCellAlignment alignment; + protected CTBorder border; + protected CTCellProtection protection; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the font property. + * + * @return + * possible object is + * {@link CTFont } + * + */ + public CTFont getFont() { + return font; + } + + /** + * Sets the value of the font property. + * + * @param value + * allowed object is + * {@link CTFont } + * + */ + public void setFont(CTFont value) { + this.font = value; + } + + /** + * Gets the value of the numFmt property. + * + * @return + * possible object is + * {@link CTNumFmt } + * + */ + public CTNumFmt getNumFmt() { + return numFmt; + } + + /** + * Sets the value of the numFmt property. + * + * @param value + * allowed object is + * {@link CTNumFmt } + * + */ + public void setNumFmt(CTNumFmt value) { + this.numFmt = value; + } + + /** + * Gets the value of the fill property. + * + * @return + * possible object is + * {@link CTFill } + * + */ + public CTFill getFill() { + return fill; + } + + /** + * Sets the value of the fill property. + * + * @param value + * allowed object is + * {@link CTFill } + * + */ + public void setFill(CTFill value) { + this.fill = value; + } + + /** + * Gets the value of the alignment property. + * + * @return + * possible object is + * {@link CTCellAlignment } + * + */ + public CTCellAlignment getAlignment() { + return alignment; + } + + /** + * Sets the value of the alignment property. + * + * @param value + * allowed object is + * {@link CTCellAlignment } + * + */ + public void setAlignment(CTCellAlignment value) { + this.alignment = value; + } + + /** + * Gets the value of the border property. + * + * @return + * possible object is + * {@link CTBorder } + * + */ + public CTBorder getBorder() { + return border; + } + + /** + * Sets the value of the border property. + * + * @param value + * allowed object is + * {@link CTBorder } + * + */ + public void setBorder(CTBorder value) { + this.border = value; + } + + /** + * Gets the value of the protection property. + * + * @return + * possible object is + * {@link CTCellProtection } + * + */ + public CTCellProtection getProtection() { + return protection; + } + + /** + * Sets the value of the protection property. + * + * @param value + * allowed object is + * {@link CTCellProtection } + * + */ + public void setProtection(CTCellProtection value) { + this.protection = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDxfs.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDxfs.java index c3d422af9d..1782be3c42 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDxfs.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDxfs.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Dxfs complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Dxfs">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Dxfs", propOrder = { - "dxf" -}) -public class CTDxfs { - - protected List dxf; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the dxf property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the dxf property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDxf().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDxf } - * - * - */ - public List getDxf() { - if (dxf == null) { - dxf = new ArrayList(); - } - return this.dxf; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Dxfs complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Dxfs">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Dxfs", propOrder = { + "dxf" +}) +public class CTDxfs implements Child +{ + + protected List dxf; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dxf property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dxf property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDxf().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDxf } + * + * + */ + public List getDxf() { + if (dxf == null) { + dxf = new ArrayList(); + } + return this.dxf; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTDynamicFilter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTDynamicFilter.java index 5dbea26d55..3c17bc4a13 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTDynamicFilter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTDynamicFilter.java @@ -1,132 +1,202 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DynamicFilter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DynamicFilter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DynamicFilterType" />
- *       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="maxVal" type="{http://www.w3.org/2001/XMLSchema}double" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DynamicFilter") -public class CTDynamicFilter { - - @XmlAttribute(required = true) - protected STDynamicFilterType type; - @XmlAttribute - protected Double val; - @XmlAttribute - protected Double maxVal; - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STDynamicFilterType } - * - */ - public STDynamicFilterType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STDynamicFilterType } - * - */ - public void setType(STDynamicFilterType value) { - this.type = value; - } - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setVal(Double value) { - this.val = value; - } - - /** - * Gets the value of the maxVal property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getMaxVal() { - return maxVal; - } - - /** - * Sets the value of the maxVal property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setMaxVal(Double value) { - this.maxVal = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DynamicFilter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DynamicFilter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DynamicFilterType" />
+ *       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="valIso" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="maxVal" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="maxValIso" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DynamicFilter") +public class CTDynamicFilter implements Child +{ + + @XmlAttribute(name = "type", required = true) + protected STDynamicFilterType type; + @XmlAttribute(name = "val") + protected Double val; + @XmlAttribute(name = "valIso") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar valIso; + @XmlAttribute(name = "maxVal") + protected Double maxVal; + @XmlAttribute(name = "maxValIso") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar maxValIso; + @XmlTransient + private Object parent; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STDynamicFilterType } + * + */ + public STDynamicFilterType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STDynamicFilterType } + * + */ + public void setType(STDynamicFilterType value) { + this.type = value; + } + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setVal(Double value) { + this.val = value; + } + + /** + * Gets the value of the valIso property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getValIso() { + return valIso; + } + + /** + * Sets the value of the valIso property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setValIso(XMLGregorianCalendar value) { + this.valIso = value; + } + + /** + * Gets the value of the maxVal property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxVal() { + return maxVal; + } + + /** + * Sets the value of the maxVal property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxVal(Double value) { + this.maxVal = value; + } + + /** + * Gets the value of the maxValIso property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getMaxValIso() { + return maxValIso; + } + + /** + * Sets the value of the maxValIso property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setMaxValIso(XMLGregorianCalendar value) { + this.maxValIso = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTError.java b/src/xlsx4j/java/org/xlsx4j/sml/CTError.java index f9a6a9fb22..f8a4fa5ccf 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTError.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTError.java @@ -1,462 +1,474 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_Error complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Error">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" minOccurs="0"/>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="v" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Error", propOrder = { - "tpls", - "x" -}) -public class CTError { - - protected CTTuples tpls; - protected List x; - @XmlAttribute(required = true) - protected String v; - @XmlAttribute - protected Boolean u; - @XmlAttribute - protected Boolean f; - @XmlAttribute - protected String c; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cp; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long in; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] bc; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] fc; - @XmlAttribute - protected Boolean i; - @XmlAttribute - protected Boolean un; - @XmlAttribute - protected Boolean st; - @XmlAttribute - protected Boolean b; - - /** - * Gets the value of the tpls property. - * - * @return - * possible object is - * {@link CTTuples } - * - */ - public CTTuples getTpls() { - return tpls; - } - - /** - * Sets the value of the tpls property. - * - * @param value - * allowed object is - * {@link CTTuples } - * - */ - public void setTpls(CTTuples value) { - this.tpls = value; - } - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getV() { - return v; - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setV(String value) { - this.v = value; - } - - /** - * Gets the value of the u property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isU() { - return u; - } - - /** - * Sets the value of the u property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setU(Boolean value) { - this.u = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setF(Boolean value) { - this.f = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getC() { - return c; - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setC(String value) { - this.c = value; - } - - /** - * Gets the value of the cp property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCp() { - return cp; - } - - /** - * Sets the value of the cp property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCp(Long value) { - this.cp = value; - } - - /** - * Gets the value of the in property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIn() { - return in; - } - - /** - * Sets the value of the in property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIn(Long value) { - this.in = value; - } - - /** - * Gets the value of the bc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getBc() { - return bc; - } - - /** - * Sets the value of the bc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBc(byte[] value) { - this.bc = ((byte[]) value); - } - - /** - * Gets the value of the fc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getFc() { - return fc; - } - - /** - * Sets the value of the fc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFc(byte[] value) { - this.fc = ((byte[]) value); - } - - /** - * Gets the value of the i property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isI() { - if (i == null) { - return false; - } else { - return i; - } - } - - /** - * Sets the value of the i property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setI(Boolean value) { - this.i = value; - } - - /** - * Gets the value of the un property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUn() { - if (un == null) { - return false; - } else { - return un; - } - } - - /** - * Sets the value of the un property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUn(Boolean value) { - this.un = value; - } - - /** - * Gets the value of the st property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSt() { - if (st == null) { - return false; - } else { - return st; - } - } - - /** - * Sets the value of the st property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSt(Boolean value) { - this.st = value; - } - - /** - * Gets the value of the b property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isB() { - if (b == null) { - return false; - } else { - return b; - } - } - - /** - * Sets the value of the b property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setB(Boolean value) { - this.b = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Error complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Error">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" minOccurs="0"/>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="v" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="c" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Error", propOrder = { + "tpls", + "x" +}) +public class CTError implements Child +{ + + protected CTTuples tpls; + protected List x; + @XmlAttribute(name = "v", required = true) + protected String v; + @XmlAttribute(name = "u") + protected Boolean u; + @XmlAttribute(name = "f") + protected Boolean f; + @XmlAttribute(name = "c") + protected String c; + @XmlAttribute(name = "cp") + @XmlSchemaType(name = "unsignedInt") + protected Long cp; + @XmlAttribute(name = "in") + @XmlSchemaType(name = "unsignedInt") + protected Long in; + @XmlAttribute(name = "bc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] bc; + @XmlAttribute(name = "fc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] fc; + @XmlAttribute(name = "i") + protected Boolean i; + @XmlAttribute(name = "un") + protected Boolean un; + @XmlAttribute(name = "st") + protected Boolean st; + @XmlAttribute(name = "b") + protected Boolean b; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tpls property. + * + * @return + * possible object is + * {@link CTTuples } + * + */ + public CTTuples getTpls() { + return tpls; + } + + /** + * Sets the value of the tpls property. + * + * @param value + * allowed object is + * {@link CTTuples } + * + */ + public void setTpls(CTTuples value) { + this.tpls = value; + } + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getV() { + return v; + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setV(String value) { + this.v = value; + } + + /** + * Gets the value of the u property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isU() { + return u; + } + + /** + * Sets the value of the u property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setU(Boolean value) { + this.u = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setF(Boolean value) { + this.f = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getC() { + return c; + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setC(String value) { + this.c = value; + } + + /** + * Gets the value of the cp property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCp() { + return cp; + } + + /** + * Sets the value of the cp property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCp(Long value) { + this.cp = value; + } + + /** + * Gets the value of the in property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIn() { + return in; + } + + /** + * Sets the value of the in property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIn(Long value) { + this.in = value; + } + + /** + * Gets the value of the bc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getBc() { + return bc; + } + + /** + * Sets the value of the bc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBc(byte[] value) { + this.bc = value; + } + + /** + * Gets the value of the fc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getFc() { + return fc; + } + + /** + * Sets the value of the fc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFc(byte[] value) { + this.fc = value; + } + + /** + * Gets the value of the i property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isI() { + if (i == null) { + return false; + } else { + return i; + } + } + + /** + * Sets the value of the i property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setI(Boolean value) { + this.i = value; + } + + /** + * Gets the value of the un property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUn() { + if (un == null) { + return false; + } else { + return un; + } + } + + /** + * Sets the value of the un property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUn(Boolean value) { + this.un = value; + } + + /** + * Gets the value of the st property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSt() { + if (st == null) { + return false; + } else { + return st; + } + } + + /** + * Sets the value of the st property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSt(Boolean value) { + this.st = value; + } + + /** + * Gets the value of the b property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isB() { + if (b == null) { + return false; + } else { + return b; + } + } + + /** + * Sets the value of the b property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setB(Boolean value) { + this.b = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExtension.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExtension.java index 44d0a13f5a..2ef5ee9873 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExtension.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExtension.java @@ -1,118 +1,130 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import org.w3c.dom.Element; - - -/** - *

Java class for CT_Extension complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Extension">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <any processContents='lax'/>
- *       </sequence>
- *       <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}token" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Extension", propOrder = { - "any" -}) -public class CTExtension { - - @XmlAnyElement(lax = true) - protected Object any; - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String uri; - - /** - * Gets the value of the any property. - * - * @return - * possible object is - * {@link Element } - * {@link Object } - * - */ - public Object getAny() { - return any; - } - - /** - * Sets the value of the any property. - * - * @param value - * allowed object is - * {@link Element } - * {@link Object } - * - */ - public void setAny(Object value) { - this.any = value; - } - - /** - * Gets the value of the uri property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUri() { - return uri; - } - - /** - * Sets the value of the uri property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUri(String value) { - this.uri = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; +import org.w3c.dom.Element; + + +/** + *

Java class for CT_Extension complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Extension">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <any processContents='lax'/>
+ *       </sequence>
+ *       <attribute name="uri" type="{http://www.w3.org/2001/XMLSchema}token" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Extension", propOrder = { + "any" +}) +public class CTExtension implements Child +{ + + @XmlAnyElement(lax = true) + protected Object any; + @XmlAttribute(name = "uri") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String uri; + @XmlTransient + private Object parent; + + /** + * Gets the value of the any property. + * + * @return + * possible object is + * {@link Element } + * {@link Object } + * + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value + * allowed object is + * {@link Element } + * {@link Object } + * + */ + public void setAny(Object value) { + this.any = value; + } + + /** + * Gets the value of the uri property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUri(String value) { + this.uri = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExtensionList.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExtensionList.java index 548baf0b6e..99f7661bf8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExtensionList.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExtensionList.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExtensionList complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExtensionList">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <group ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}EG_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExtensionList", propOrder = { - "ext" -}) -public class CTExtensionList { - - protected List ext; - - /** - * Gets the value of the ext property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the ext property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getExt().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTExtension } - * - * - */ - public List getExt() { - if (ext == null) { - ext = new ArrayList(); - } - return this.ext; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExtensionList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExtensionList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <group ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}EG_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExtensionList", propOrder = { + "ext" +}) +public class CTExtensionList implements Child +{ + + protected List ext; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ext property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the ext property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getExt().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTExtension } + * + * + */ + public List getExt() { + if (ext == null) { + ext = new ArrayList(); + } + return this.ext; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalBook.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalBook.java index f15fac0332..b1b0ae645c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalBook.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalBook.java @@ -1,162 +1,174 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalBook complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalBook">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetNames" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetNames" minOccurs="0"/>
- *         <element name="definedNames" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalDefinedNames" minOccurs="0"/>
- *         <element name="sheetDataSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetDataSet" minOccurs="0"/>
- *       </sequence>
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalBook", propOrder = { - "sheetNames", - "definedNames", - "sheetDataSet" -}) -public class CTExternalBook { - - protected CTExternalSheetNames sheetNames; - protected CTExternalDefinedNames definedNames; - protected CTExternalSheetDataSet sheetDataSet; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Gets the value of the sheetNames property. - * - * @return - * possible object is - * {@link CTExternalSheetNames } - * - */ - public CTExternalSheetNames getSheetNames() { - return sheetNames; - } - - /** - * Sets the value of the sheetNames property. - * - * @param value - * allowed object is - * {@link CTExternalSheetNames } - * - */ - public void setSheetNames(CTExternalSheetNames value) { - this.sheetNames = value; - } - - /** - * Gets the value of the definedNames property. - * - * @return - * possible object is - * {@link CTExternalDefinedNames } - * - */ - public CTExternalDefinedNames getDefinedNames() { - return definedNames; - } - - /** - * Sets the value of the definedNames property. - * - * @param value - * allowed object is - * {@link CTExternalDefinedNames } - * - */ - public void setDefinedNames(CTExternalDefinedNames value) { - this.definedNames = value; - } - - /** - * Gets the value of the sheetDataSet property. - * - * @return - * possible object is - * {@link CTExternalSheetDataSet } - * - */ - public CTExternalSheetDataSet getSheetDataSet() { - return sheetDataSet; - } - - /** - * Sets the value of the sheetDataSet property. - * - * @param value - * allowed object is - * {@link CTExternalSheetDataSet } - * - */ - public void setSheetDataSet(CTExternalSheetDataSet value) { - this.sheetDataSet = value; - } - - /** - * Relationship to supporting book file path - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalBook complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalBook">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetNames" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetNames" minOccurs="0"/>
+ *         <element name="definedNames" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalDefinedNames" minOccurs="0"/>
+ *         <element name="sheetDataSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetDataSet" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalBook", propOrder = { + "sheetNames", + "definedNames", + "sheetDataSet" +}) +public class CTExternalBook implements Child +{ + + protected CTExternalSheetNames sheetNames; + protected CTExternalDefinedNames definedNames; + protected CTExternalSheetDataSet sheetDataSet; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetNames property. + * + * @return + * possible object is + * {@link CTExternalSheetNames } + * + */ + public CTExternalSheetNames getSheetNames() { + return sheetNames; + } + + /** + * Sets the value of the sheetNames property. + * + * @param value + * allowed object is + * {@link CTExternalSheetNames } + * + */ + public void setSheetNames(CTExternalSheetNames value) { + this.sheetNames = value; + } + + /** + * Gets the value of the definedNames property. + * + * @return + * possible object is + * {@link CTExternalDefinedNames } + * + */ + public CTExternalDefinedNames getDefinedNames() { + return definedNames; + } + + /** + * Sets the value of the definedNames property. + * + * @param value + * allowed object is + * {@link CTExternalDefinedNames } + * + */ + public void setDefinedNames(CTExternalDefinedNames value) { + this.definedNames = value; + } + + /** + * Gets the value of the sheetDataSet property. + * + * @return + * possible object is + * {@link CTExternalSheetDataSet } + * + */ + public CTExternalSheetDataSet getSheetDataSet() { + return sheetDataSet; + } + + /** + * Sets the value of the sheetDataSet property. + * + * @param value + * allowed object is + * {@link CTExternalSheetDataSet } + * + */ + public void setSheetDataSet(CTExternalSheetDataSet value) { + this.sheetDataSet = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalCell.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalCell.java index 7aa79f76c0..86b9358cb5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalCell.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalCell.java @@ -1,172 +1,184 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalCell complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalCell">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="v" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellType" default="n" />
- *       <attribute name="vm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalCell", propOrder = { - "v" -}) -public class CTExternalCell { - - protected String v; - @XmlAttribute - protected String r; - @XmlAttribute - protected STCellType t; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long vm; - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getV() { - return v; - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setV(String value) { - this.v = value; - } - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link STCellType } - * - */ - public STCellType getT() { - if (t == null) { - return STCellType.N; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link STCellType } - * - */ - public void setT(STCellType value) { - this.t = value; - } - - /** - * Gets the value of the vm property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getVm() { - if (vm == null) { - return 0L; - } else { - return vm; - } - } - - /** - * Sets the value of the vm property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setVm(Long value) { - this.vm = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalCell complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalCell">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="v" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellType" default="n" />
+ *       <attribute name="vm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalCell", propOrder = { + "v" +}) +public class CTExternalCell implements Child +{ + + protected String v; + @XmlAttribute(name = "r") + protected String r; + @XmlAttribute(name = "t") + protected STCellType t; + @XmlAttribute(name = "vm") + @XmlSchemaType(name = "unsignedInt") + protected Long vm; + @XmlTransient + private Object parent; + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getV() { + return v; + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setV(String value) { + this.v = value; + } + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link STCellType } + * + */ + public STCellType getT() { + if (t == null) { + return STCellType.N; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link STCellType } + * + */ + public void setT(STCellType value) { + this.t = value; + } + + /** + * Gets the value of the vm property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getVm() { + if (vm == null) { + return 0L; + } else { + return vm; + } + } + + /** + * Sets the value of the vm property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setVm(Long value) { + this.vm = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedName.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedName.java index 17a3c418db..b8bd106f24 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedName.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedName.java @@ -1,134 +1,146 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalDefinedName complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalDefinedName">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="refersTo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalDefinedName") -public class CTExternalDefinedName { - - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected String refersTo; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long sheetId; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the refersTo property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRefersTo() { - return refersTo; - } - - /** - * Sets the value of the refersTo property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRefersTo(String value) { - this.refersTo = value; - } - - /** - * Gets the value of the sheetId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setSheetId(Long value) { - this.sheetId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalDefinedName complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalDefinedName">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="refersTo" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalDefinedName") +public class CTExternalDefinedName implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "refersTo") + protected String refersTo; + @XmlAttribute(name = "sheetId") + @XmlSchemaType(name = "unsignedInt") + protected Long sheetId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the refersTo property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRefersTo() { + return refersTo; + } + + /** + * Sets the value of the refersTo property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRefersTo(String value) { + this.refersTo = value; + } + + /** + * Gets the value of the sheetId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSheetId(Long value) { + this.sheetId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedNames.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedNames.java index f2bf66a690..551761350f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedNames.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalDefinedNames.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalDefinedNames complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalDefinedNames">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="definedName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalDefinedName" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalDefinedNames", propOrder = { - "definedName" -}) -public class CTExternalDefinedNames { - - protected List definedName; - - /** - * Gets the value of the definedName property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the definedName property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDefinedName().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTExternalDefinedName } - * - * - */ - public List getDefinedName() { - if (definedName == null) { - definedName = new ArrayList(); - } - return this.definedName; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalDefinedNames complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalDefinedNames">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="definedName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalDefinedName" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalDefinedNames", propOrder = { + "definedName" +}) +public class CTExternalDefinedNames implements Child +{ + + protected List definedName; + @XmlTransient + private Object parent; + + /** + * Gets the value of the definedName property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the definedName property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDefinedName().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTExternalDefinedName } + * + * + */ + public List getDefinedName() { + if (definedName == null) { + definedName = new ArrayList(); + } + return this.definedName; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalLink.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalLink.java index 6240c24b61..a44d53a4a1 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalLink.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalLink.java @@ -1,161 +1,175 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalLink complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalLink">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice>
- *         <element name="externalBook" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalBook" minOccurs="0"/>
- *         <element name="ddeLink" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeLink" minOccurs="0"/>
- *         <element name="oleLink" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleLink" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalLink", propOrder = { - "externalBook", - "ddeLink", - "oleLink", - "extLst" -}) -public class CTExternalLink { - - protected CTExternalBook externalBook; - protected CTDdeLink ddeLink; - protected CTOleLink oleLink; - protected CTExtensionList extLst; - - /** - * Gets the value of the externalBook property. - * - * @return - * possible object is - * {@link CTExternalBook } - * - */ - public CTExternalBook getExternalBook() { - return externalBook; - } - - /** - * Sets the value of the externalBook property. - * - * @param value - * allowed object is - * {@link CTExternalBook } - * - */ - public void setExternalBook(CTExternalBook value) { - this.externalBook = value; - } - - /** - * Gets the value of the ddeLink property. - * - * @return - * possible object is - * {@link CTDdeLink } - * - */ - public CTDdeLink getDdeLink() { - return ddeLink; - } - - /** - * Sets the value of the ddeLink property. - * - * @param value - * allowed object is - * {@link CTDdeLink } - * - */ - public void setDdeLink(CTDdeLink value) { - this.ddeLink = value; - } - - /** - * Gets the value of the oleLink property. - * - * @return - * possible object is - * {@link CTOleLink } - * - */ - public CTOleLink getOleLink() { - return oleLink; - } - - /** - * Sets the value of the oleLink property. - * - * @param value - * allowed object is - * {@link CTOleLink } - * - */ - public void setOleLink(CTOleLink value) { - this.oleLink = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalLink complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalLink">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice>
+ *           <element name="externalBook" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalBook" minOccurs="0"/>
+ *           <element name="ddeLink" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DdeLink" minOccurs="0"/>
+ *           <element name="oleLink" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleLink" minOccurs="0"/>
+ *         </choice>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalLink", propOrder = { + "externalBook", + "ddeLink", + "oleLink", + "extLst" +}) +public class CTExternalLink implements Child +{ + + protected CTExternalBook externalBook; + protected CTDdeLink ddeLink; + protected CTOleLink oleLink; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the externalBook property. + * + * @return + * possible object is + * {@link CTExternalBook } + * + */ + public CTExternalBook getExternalBook() { + return externalBook; + } + + /** + * Sets the value of the externalBook property. + * + * @param value + * allowed object is + * {@link CTExternalBook } + * + */ + public void setExternalBook(CTExternalBook value) { + this.externalBook = value; + } + + /** + * Gets the value of the ddeLink property. + * + * @return + * possible object is + * {@link CTDdeLink } + * + */ + public CTDdeLink getDdeLink() { + return ddeLink; + } + + /** + * Sets the value of the ddeLink property. + * + * @param value + * allowed object is + * {@link CTDdeLink } + * + */ + public void setDdeLink(CTDdeLink value) { + this.ddeLink = value; + } + + /** + * Gets the value of the oleLink property. + * + * @return + * possible object is + * {@link CTOleLink } + * + */ + public CTOleLink getOleLink() { + return oleLink; + } + + /** + * Sets the value of the oleLink property. + * + * @param value + * allowed object is + * {@link CTOleLink } + * + */ + public void setOleLink(CTOleLink value) { + this.oleLink = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReference.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReference.java index 75f615bad7..a14fc8244c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReference.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReference.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalReference complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalReference">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalReference") -public class CTExternalReference { - - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalReference complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalReference">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalReference") +public class CTExternalReference implements Child +{ + + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReferences.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReferences.java index 4b37cbc9f3..0f17fbe486 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReferences.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalReferences.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalReferences complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalReferences">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="externalReference" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalReference" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalReferences", propOrder = { - "externalReference" -}) -public class CTExternalReferences { - - @XmlElement(required = true) - protected List externalReference; - - /** - * Gets the value of the externalReference property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the externalReference property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getExternalReference().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTExternalReference } - * - * - */ - public List getExternalReference() { - if (externalReference == null) { - externalReference = new ArrayList(); - } - return this.externalReference; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalReferences complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalReferences">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="externalReference" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalReference" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalReferences", propOrder = { + "externalReference" +}) +public class CTExternalReferences implements Child +{ + + @XmlElement(required = true) + protected List externalReference; + @XmlTransient + private Object parent; + + /** + * Gets the value of the externalReference property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the externalReference property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getExternalReference().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTExternalReference } + * + * + */ + public List getExternalReference() { + if (externalReference == null) { + externalReference = new ArrayList(); + } + return this.externalReference; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalRow.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalRow.java index aed6784ee0..afe9ed3ee4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalRow.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalRow.java @@ -1,109 +1,121 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalRow complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalRow">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalCell" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="r" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalRow", propOrder = { - "cell" -}) -public class CTExternalRow { - - protected List cell; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long r; - - /** - * Gets the value of the cell property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cell property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCell().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTExternalCell } - * - * - */ - public List getCell() { - if (cell == null) { - cell = new ArrayList(); - } - return this.cell; - } - - /** - * Gets the value of the r property. - * - */ - public long getR() { - return r; - } - - /** - * Sets the value of the r property. - * - */ - public void setR(long value) { - this.r = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalRow complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalRow">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalCell" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="r" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalRow", propOrder = { + "cell" +}) +public class CTExternalRow implements Child +{ + + protected List cell; + @XmlAttribute(name = "r", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long r; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cell property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cell property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCell().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTExternalCell } + * + * + */ + public List getCell() { + if (cell == null) { + cell = new ArrayList(); + } + return this.cell; + } + + /** + * Gets the value of the r property. + * + */ + public long getR() { + return r; + } + + /** + * Sets the value of the r property. + * + */ + public void setR(long value) { + this.r = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetData.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetData.java index ad7383c049..550acd39cd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetData.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetData.java @@ -1,140 +1,152 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalSheetData complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalSheetData">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="row" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalRow" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="refreshError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalSheetData", propOrder = { - "row" -}) -public class CTExternalSheetData { - - protected List row; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute - protected Boolean refreshError; - - /** - * Gets the value of the row property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the row property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRow().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTExternalRow } - * - * - */ - public List getRow() { - if (row == null) { - row = new ArrayList(); - } - return this.row; - } - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the refreshError property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRefreshError() { - if (refreshError == null) { - return false; - } else { - return refreshError; - } - } - - /** - * Sets the value of the refreshError property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRefreshError(Boolean value) { - this.refreshError = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalSheetData complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalSheetData">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="row" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalRow" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="refreshError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalSheetData", propOrder = { + "row" +}) +public class CTExternalSheetData implements Child +{ + + protected List row; + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "refreshError") + protected Boolean refreshError; + @XmlTransient + private Object parent; + + /** + * Gets the value of the row property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the row property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRow().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTExternalRow } + * + * + */ + public List getRow() { + if (row == null) { + row = new ArrayList(); + } + return this.row; + } + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the refreshError property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRefreshError() { + if (refreshError == null) { + return false; + } else { + return refreshError; + } + } + + /** + * Sets the value of the refreshError property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRefreshError(Boolean value) { + this.refreshError = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetDataSet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetDataSet.java index e8b73752f1..b5805fb07a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetDataSet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetDataSet.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalSheetDataSet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalSheetDataSet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetData" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetData" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalSheetDataSet", propOrder = { - "sheetData" -}) -public class CTExternalSheetDataSet { - - @XmlElement(required = true) - protected List sheetData; - - /** - * Gets the value of the sheetData property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sheetData property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSheetData().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTExternalSheetData } - * - * - */ - public List getSheetData() { - if (sheetData == null) { - sheetData = new ArrayList(); - } - return this.sheetData; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalSheetDataSet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalSheetDataSet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetData" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetData" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalSheetDataSet", propOrder = { + "sheetData" +}) +public class CTExternalSheetDataSet implements Child +{ + + @XmlElement(required = true) + protected List sheetData; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetData property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sheetData property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSheetData().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTExternalSheetData } + * + * + */ + public List getSheetData() { + if (sheetData == null) { + sheetData = new ArrayList(); + } + return this.sheetData; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetName.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetName.java index b0d87575f8..a4638f3c87 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetName.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetName.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalSheetName complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalSheetName">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalSheetName") -public class CTExternalSheetName { - - @XmlAttribute - protected String val; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalSheetName complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalSheetName">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalSheetName") +public class CTExternalSheetName implements Child +{ + + @XmlAttribute(name = "val") + protected String val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetNames.java b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetNames.java index a9340d41c4..47c1a4eaa2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetNames.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTExternalSheetNames.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ExternalSheetNames complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ExternalSheetNames">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetName" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ExternalSheetNames", propOrder = { - "sheetName" -}) -public class CTExternalSheetNames { - - @XmlElement(required = true) - protected List sheetName; - - /** - * Gets the value of the sheetName property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sheetName property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSheetName().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTExternalSheetName } - * - * - */ - public List getSheetName() { - if (sheetName == null) { - sheetName = new ArrayList(); - } - return this.sheetName; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ExternalSheetNames complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ExternalSheetNames">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalSheetName" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ExternalSheetNames", propOrder = { + "sheetName" +}) +public class CTExternalSheetNames implements Child +{ + + @XmlElement(required = true) + protected List sheetName; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetName property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sheetName property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSheetName().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTExternalSheetName } + * + * + */ + public List getSheetName() { + if (sheetName == null) { + sheetName = new ArrayList(); + } + return this.sheetName; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTField.java index 7698ff6e9b..901b20284f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTField.java @@ -1,70 +1,82 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Field complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Field">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Field") -public class CTField { - - @XmlAttribute(required = true) - protected int x; - - /** - * Gets the value of the x property. - * - */ - public int getX() { - return x; - } - - /** - * Sets the value of the x property. - * - */ - public void setX(int value) { - this.x = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Field complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Field">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Field") +public class CTField implements Child +{ + + @XmlAttribute(name = "x", required = true) + protected int x; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + */ + public int getX() { + return x; + } + + /** + * Sets the value of the x property. + * + */ + public void setX(int value) { + this.x = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFieldGroup.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFieldGroup.java index e30c81bb00..5c57284bcd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFieldGroup.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFieldGroup.java @@ -1,192 +1,204 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FieldGroup complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FieldGroup">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="rangePr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RangePr" minOccurs="0"/>
- *         <element name="discretePr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DiscretePr" minOccurs="0"/>
- *         <element name="groupItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupItems" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="par" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="base" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FieldGroup", propOrder = { - "rangePr", - "discretePr", - "groupItems" -}) -public class CTFieldGroup { - - protected CTRangePr rangePr; - protected CTDiscretePr discretePr; - protected CTGroupItems groupItems; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long par; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long base; - - /** - * Gets the value of the rangePr property. - * - * @return - * possible object is - * {@link CTRangePr } - * - */ - public CTRangePr getRangePr() { - return rangePr; - } - - /** - * Sets the value of the rangePr property. - * - * @param value - * allowed object is - * {@link CTRangePr } - * - */ - public void setRangePr(CTRangePr value) { - this.rangePr = value; - } - - /** - * Gets the value of the discretePr property. - * - * @return - * possible object is - * {@link CTDiscretePr } - * - */ - public CTDiscretePr getDiscretePr() { - return discretePr; - } - - /** - * Sets the value of the discretePr property. - * - * @param value - * allowed object is - * {@link CTDiscretePr } - * - */ - public void setDiscretePr(CTDiscretePr value) { - this.discretePr = value; - } - - /** - * Gets the value of the groupItems property. - * - * @return - * possible object is - * {@link CTGroupItems } - * - */ - public CTGroupItems getGroupItems() { - return groupItems; - } - - /** - * Sets the value of the groupItems property. - * - * @param value - * allowed object is - * {@link CTGroupItems } - * - */ - public void setGroupItems(CTGroupItems value) { - this.groupItems = value; - } - - /** - * Gets the value of the par property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getPar() { - return par; - } - - /** - * Sets the value of the par property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPar(Long value) { - this.par = value; - } - - /** - * Gets the value of the base property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getBase() { - return base; - } - - /** - * Sets the value of the base property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setBase(Long value) { - this.base = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FieldGroup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FieldGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="rangePr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RangePr" minOccurs="0"/>
+ *         <element name="discretePr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DiscretePr" minOccurs="0"/>
+ *         <element name="groupItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupItems" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="par" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="base" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FieldGroup", propOrder = { + "rangePr", + "discretePr", + "groupItems" +}) +public class CTFieldGroup implements Child +{ + + protected CTRangePr rangePr; + protected CTDiscretePr discretePr; + protected CTGroupItems groupItems; + @XmlAttribute(name = "par") + @XmlSchemaType(name = "unsignedInt") + protected Long par; + @XmlAttribute(name = "base") + @XmlSchemaType(name = "unsignedInt") + protected Long base; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rangePr property. + * + * @return + * possible object is + * {@link CTRangePr } + * + */ + public CTRangePr getRangePr() { + return rangePr; + } + + /** + * Sets the value of the rangePr property. + * + * @param value + * allowed object is + * {@link CTRangePr } + * + */ + public void setRangePr(CTRangePr value) { + this.rangePr = value; + } + + /** + * Gets the value of the discretePr property. + * + * @return + * possible object is + * {@link CTDiscretePr } + * + */ + public CTDiscretePr getDiscretePr() { + return discretePr; + } + + /** + * Sets the value of the discretePr property. + * + * @param value + * allowed object is + * {@link CTDiscretePr } + * + */ + public void setDiscretePr(CTDiscretePr value) { + this.discretePr = value; + } + + /** + * Gets the value of the groupItems property. + * + * @return + * possible object is + * {@link CTGroupItems } + * + */ + public CTGroupItems getGroupItems() { + return groupItems; + } + + /** + * Sets the value of the groupItems property. + * + * @param value + * allowed object is + * {@link CTGroupItems } + * + */ + public void setGroupItems(CTGroupItems value) { + this.groupItems = value; + } + + /** + * Gets the value of the par property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getPar() { + return par; + } + + /** + * Sets the value of the par property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPar(Long value) { + this.par = value; + } + + /** + * Gets the value of the base property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getBase() { + return base; + } + + /** + * Sets the value of the base property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setBase(Long value) { + this.base = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFieldUsage.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFieldUsage.java index cc8ac2a8b4..b6cbcefd80 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFieldUsage.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFieldUsage.java @@ -1,70 +1,82 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FieldUsage complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FieldUsage">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FieldUsage") -public class CTFieldUsage { - - @XmlAttribute(required = true) - protected int x; - - /** - * Gets the value of the x property. - * - */ - public int getX() { - return x; - } - - /** - * Sets the value of the x property. - * - */ - public void setX(int value) { - this.x = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FieldUsage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FieldUsage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FieldUsage") +public class CTFieldUsage implements Child +{ + + @XmlAttribute(name = "x", required = true) + protected int x; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + */ + public int getX() { + return x; + } + + /** + * Sets the value of the x property. + * + */ + public void setX(int value) { + this.x = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFieldsUsage.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFieldsUsage.java index 405ff4a643..654e8a4e8b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFieldsUsage.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFieldsUsage.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FieldsUsage complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FieldsUsage">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="fieldUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FieldUsage" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FieldsUsage", propOrder = { - "fieldUsage" -}) -public class CTFieldsUsage { - - protected List fieldUsage; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the fieldUsage property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the fieldUsage property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFieldUsage().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFieldUsage } - * - * - */ - public List getFieldUsage() { - if (fieldUsage == null) { - fieldUsage = new ArrayList(); - } - return this.fieldUsage; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FieldsUsage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FieldsUsage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="fieldUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FieldUsage" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FieldsUsage", propOrder = { + "fieldUsage" +}) +public class CTFieldsUsage implements Child +{ + + protected List fieldUsage; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fieldUsage property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the fieldUsage property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFieldUsage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFieldUsage } + * + * + */ + public List getFieldUsage() { + if (fieldUsage == null) { + fieldUsage = new ArrayList(); + } + return this.fieldUsage; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFileRecoveryPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFileRecoveryPr.java index 4a5e735b76..ca30fa118e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFileRecoveryPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFileRecoveryPr.java @@ -1,175 +1,187 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FileRecoveryPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FileRecoveryPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="autoRecover" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="crashSave" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="dataExtractLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="repairLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FileRecoveryPr") -public class CTFileRecoveryPr { - - @XmlAttribute - protected Boolean autoRecover; - @XmlAttribute - protected Boolean crashSave; - @XmlAttribute - protected Boolean dataExtractLoad; - @XmlAttribute - protected Boolean repairLoad; - - /** - * Gets the value of the autoRecover property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoRecover() { - if (autoRecover == null) { - return true; - } else { - return autoRecover; - } - } - - /** - * Sets the value of the autoRecover property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoRecover(Boolean value) { - this.autoRecover = value; - } - - /** - * Gets the value of the crashSave property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCrashSave() { - if (crashSave == null) { - return false; - } else { - return crashSave; - } - } - - /** - * Sets the value of the crashSave property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCrashSave(Boolean value) { - this.crashSave = value; - } - - /** - * Gets the value of the dataExtractLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDataExtractLoad() { - if (dataExtractLoad == null) { - return false; - } else { - return dataExtractLoad; - } - } - - /** - * Sets the value of the dataExtractLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDataExtractLoad(Boolean value) { - this.dataExtractLoad = value; - } - - /** - * Gets the value of the repairLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRepairLoad() { - if (repairLoad == null) { - return false; - } else { - return repairLoad; - } - } - - /** - * Sets the value of the repairLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRepairLoad(Boolean value) { - this.repairLoad = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FileRecoveryPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FileRecoveryPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="autoRecover" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="crashSave" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="dataExtractLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="repairLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FileRecoveryPr") +public class CTFileRecoveryPr implements Child +{ + + @XmlAttribute(name = "autoRecover") + protected Boolean autoRecover; + @XmlAttribute(name = "crashSave") + protected Boolean crashSave; + @XmlAttribute(name = "dataExtractLoad") + protected Boolean dataExtractLoad; + @XmlAttribute(name = "repairLoad") + protected Boolean repairLoad; + @XmlTransient + private Object parent; + + /** + * Gets the value of the autoRecover property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoRecover() { + if (autoRecover == null) { + return true; + } else { + return autoRecover; + } + } + + /** + * Sets the value of the autoRecover property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoRecover(Boolean value) { + this.autoRecover = value; + } + + /** + * Gets the value of the crashSave property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCrashSave() { + if (crashSave == null) { + return false; + } else { + return crashSave; + } + } + + /** + * Sets the value of the crashSave property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCrashSave(Boolean value) { + this.crashSave = value; + } + + /** + * Gets the value of the dataExtractLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDataExtractLoad() { + if (dataExtractLoad == null) { + return false; + } else { + return dataExtractLoad; + } + } + + /** + * Sets the value of the dataExtractLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDataExtractLoad(Boolean value) { + this.dataExtractLoad = value; + } + + /** + * Gets the value of the repairLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRepairLoad() { + if (repairLoad == null) { + return false; + } else { + return repairLoad; + } + } + + /** + * Sets the value of the repairLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRepairLoad(Boolean value) { + this.repairLoad = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFileSharing.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFileSharing.java index 4bb46856bc..8ba15cb347 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFileSharing.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFileSharing.java @@ -1,139 +1,257 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_FileSharing complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FileSharing">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="readOnlyRecommended" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="userName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="reservationPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FileSharing") -public class CTFileSharing { - - @XmlAttribute - protected Boolean readOnlyRecommended; - @XmlAttribute - protected String userName; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] reservationPassword; - - /** - * Gets the value of the readOnlyRecommended property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isReadOnlyRecommended() { - if (readOnlyRecommended == null) { - return false; - } else { - return readOnlyRecommended; - } - } - - /** - * Sets the value of the readOnlyRecommended property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setReadOnlyRecommended(Boolean value) { - this.readOnlyRecommended = value; - } - - /** - * Gets the value of the userName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUserName() { - return userName; - } - - /** - * Sets the value of the userName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUserName(String value) { - this.userName = value; - } - - /** - * Gets the value of the reservationPassword property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getReservationPassword() { - return reservationPassword; - } - - /** - * Sets the value of the reservationPassword property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setReservationPassword(byte[] value) { - this.reservationPassword = ((byte[]) value); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FileSharing complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FileSharing">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="readOnlyRecommended" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="userName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="reservationPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
+ *       <attribute name="algorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="hashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="saltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="spinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FileSharing") +public class CTFileSharing implements Child +{ + + @XmlAttribute(name = "readOnlyRecommended") + protected Boolean readOnlyRecommended; + @XmlAttribute(name = "userName") + protected String userName; + @XmlAttribute(name = "reservationPassword") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] reservationPassword; + @XmlAttribute(name = "algorithmName") + protected String algorithmName; + @XmlAttribute(name = "hashValue") + protected byte[] hashValue; + @XmlAttribute(name = "saltValue") + protected byte[] saltValue; + @XmlAttribute(name = "spinCount") + @XmlSchemaType(name = "unsignedInt") + protected Long spinCount; + @XmlTransient + private Object parent; + + /** + * Gets the value of the readOnlyRecommended property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isReadOnlyRecommended() { + if (readOnlyRecommended == null) { + return false; + } else { + return readOnlyRecommended; + } + } + + /** + * Sets the value of the readOnlyRecommended property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReadOnlyRecommended(Boolean value) { + this.readOnlyRecommended = value; + } + + /** + * Gets the value of the userName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUserName() { + return userName; + } + + /** + * Sets the value of the userName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUserName(String value) { + this.userName = value; + } + + /** + * Gets the value of the reservationPassword property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getReservationPassword() { + return reservationPassword; + } + + /** + * Sets the value of the reservationPassword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReservationPassword(byte[] value) { + this.reservationPassword = value; + } + + /** + * Gets the value of the algorithmName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithmName() { + return algorithmName; + } + + /** + * Sets the value of the algorithmName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithmName(String value) { + this.algorithmName = value; + } + + /** + * Gets the value of the hashValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashValue() { + return hashValue; + } + + /** + * Sets the value of the hashValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashValue(byte[] value) { + this.hashValue = value; + } + + /** + * Gets the value of the saltValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getSaltValue() { + return saltValue; + } + + /** + * Sets the value of the saltValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setSaltValue(byte[] value) { + this.saltValue = value; + } + + /** + * Gets the value of the spinCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSpinCount() { + return spinCount; + } + + /** + * Sets the value of the spinCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSpinCount(Long value) { + this.spinCount = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFill.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFill.java index 356702fcb6..06b7cd8dea 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFill.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFill.java @@ -1,107 +1,119 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Fill complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Fill">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice>
- *         <element name="patternFill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PatternFill" minOccurs="0"/>
- *         <element name="gradientFill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GradientFill" minOccurs="0"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Fill", propOrder = { - "patternFill", - "gradientFill" -}) -public class CTFill { - - protected CTPatternFill patternFill; - protected CTGradientFill gradientFill; - - /** - * Gets the value of the patternFill property. - * - * @return - * possible object is - * {@link CTPatternFill } - * - */ - public CTPatternFill getPatternFill() { - return patternFill; - } - - /** - * Sets the value of the patternFill property. - * - * @param value - * allowed object is - * {@link CTPatternFill } - * - */ - public void setPatternFill(CTPatternFill value) { - this.patternFill = value; - } - - /** - * Gets the value of the gradientFill property. - * - * @return - * possible object is - * {@link CTGradientFill } - * - */ - public CTGradientFill getGradientFill() { - return gradientFill; - } - - /** - * Sets the value of the gradientFill property. - * - * @param value - * allowed object is - * {@link CTGradientFill } - * - */ - public void setGradientFill(CTGradientFill value) { - this.gradientFill = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Fill complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Fill">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="patternFill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PatternFill" minOccurs="0"/>
+ *         <element name="gradientFill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GradientFill" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Fill", propOrder = { + "patternFill", + "gradientFill" +}) +public class CTFill implements Child +{ + + protected CTPatternFill patternFill; + protected CTGradientFill gradientFill; + @XmlTransient + private Object parent; + + /** + * Gets the value of the patternFill property. + * + * @return + * possible object is + * {@link CTPatternFill } + * + */ + public CTPatternFill getPatternFill() { + return patternFill; + } + + /** + * Sets the value of the patternFill property. + * + * @param value + * allowed object is + * {@link CTPatternFill } + * + */ + public void setPatternFill(CTPatternFill value) { + this.patternFill = value; + } + + /** + * Gets the value of the gradientFill property. + * + * @return + * possible object is + * {@link CTGradientFill } + * + */ + public CTGradientFill getGradientFill() { + return gradientFill; + } + + /** + * Sets the value of the gradientFill property. + * + * @param value + * allowed object is + * {@link CTGradientFill } + * + */ + public void setGradientFill(CTGradientFill value) { + this.gradientFill = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFills.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFills.java index f76cee4b8b..87af3961fc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFills.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFills.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Fills complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Fills">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="fill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fill" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Fills", propOrder = { - "fill" -}) -public class CTFills { - - protected List fill; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the fill property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the fill property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFill().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFill } - * - * - */ - public List getFill() { - if (fill == null) { - fill = new ArrayList(); - } - return this.fill; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Fills complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Fills">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="fill" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fill" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Fills", propOrder = { + "fill" +}) +public class CTFills implements Child +{ + + protected List fill; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fill property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the fill property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFill().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFill } + * + * + */ + public List getFill() { + if (fill == null) { + fill = new ArrayList(); + } + return this.fill; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFilter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFilter.java index 3cc00dda3c..72d16bb022 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFilter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFilter.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Filter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Filter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Filter") -public class CTFilter { - - @XmlAttribute - protected String val; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Filter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Filter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Filter") +public class CTFilter implements Child +{ + + @XmlAttribute(name = "val") + protected String val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFilterColumn.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFilterColumn.java index 7f4dec87a0..a096522f83 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFilterColumn.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFilterColumn.java @@ -1,326 +1,338 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FilterColumn complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FilterColumn">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice minOccurs="0">
- *         <element name="filters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Filters" minOccurs="0"/>
- *         <element name="top10" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Top10" minOccurs="0"/>
- *         <element name="customFilters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomFilters" minOccurs="0"/>
- *         <element name="dynamicFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DynamicFilter" minOccurs="0"/>
- *         <element name="colorFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColorFilter" minOccurs="0"/>
- *         <element name="iconFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IconFilter" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </choice>
- *       <attribute name="colId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="hiddenButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FilterColumn", propOrder = { - "filters", - "top10", - "customFilters", - "dynamicFilter", - "colorFilter", - "iconFilter", - "extLst" -}) -public class CTFilterColumn { - - protected CTFilters filters; - protected CTTop10 top10; - protected CTCustomFilters customFilters; - protected CTDynamicFilter dynamicFilter; - protected CTColorFilter colorFilter; - protected CTIconFilter iconFilter; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long colId; - @XmlAttribute - protected Boolean hiddenButton; - @XmlAttribute - protected Boolean showButton; - - /** - * Gets the value of the filters property. - * - * @return - * possible object is - * {@link CTFilters } - * - */ - public CTFilters getFilters() { - return filters; - } - - /** - * Sets the value of the filters property. - * - * @param value - * allowed object is - * {@link CTFilters } - * - */ - public void setFilters(CTFilters value) { - this.filters = value; - } - - /** - * Gets the value of the top10 property. - * - * @return - * possible object is - * {@link CTTop10 } - * - */ - public CTTop10 getTop10() { - return top10; - } - - /** - * Sets the value of the top10 property. - * - * @param value - * allowed object is - * {@link CTTop10 } - * - */ - public void setTop10(CTTop10 value) { - this.top10 = value; - } - - /** - * Gets the value of the customFilters property. - * - * @return - * possible object is - * {@link CTCustomFilters } - * - */ - public CTCustomFilters getCustomFilters() { - return customFilters; - } - - /** - * Sets the value of the customFilters property. - * - * @param value - * allowed object is - * {@link CTCustomFilters } - * - */ - public void setCustomFilters(CTCustomFilters value) { - this.customFilters = value; - } - - /** - * Gets the value of the dynamicFilter property. - * - * @return - * possible object is - * {@link CTDynamicFilter } - * - */ - public CTDynamicFilter getDynamicFilter() { - return dynamicFilter; - } - - /** - * Sets the value of the dynamicFilter property. - * - * @param value - * allowed object is - * {@link CTDynamicFilter } - * - */ - public void setDynamicFilter(CTDynamicFilter value) { - this.dynamicFilter = value; - } - - /** - * Gets the value of the colorFilter property. - * - * @return - * possible object is - * {@link CTColorFilter } - * - */ - public CTColorFilter getColorFilter() { - return colorFilter; - } - - /** - * Sets the value of the colorFilter property. - * - * @param value - * allowed object is - * {@link CTColorFilter } - * - */ - public void setColorFilter(CTColorFilter value) { - this.colorFilter = value; - } - - /** - * Gets the value of the iconFilter property. - * - * @return - * possible object is - * {@link CTIconFilter } - * - */ - public CTIconFilter getIconFilter() { - return iconFilter; - } - - /** - * Sets the value of the iconFilter property. - * - * @param value - * allowed object is - * {@link CTIconFilter } - * - */ - public void setIconFilter(CTIconFilter value) { - this.iconFilter = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the colId property. - * - */ - public long getColId() { - return colId; - } - - /** - * Sets the value of the colId property. - * - */ - public void setColId(long value) { - this.colId = value; - } - - /** - * Gets the value of the hiddenButton property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHiddenButton() { - if (hiddenButton == null) { - return false; - } else { - return hiddenButton; - } - } - - /** - * Sets the value of the hiddenButton property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHiddenButton(Boolean value) { - this.hiddenButton = value; - } - - /** - * Gets the value of the showButton property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowButton() { - if (showButton == null) { - return true; - } else { - return showButton; - } - } - - /** - * Sets the value of the showButton property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowButton(Boolean value) { - this.showButton = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FilterColumn complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FilterColumn">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice minOccurs="0">
+ *         <element name="filters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Filters" minOccurs="0"/>
+ *         <element name="top10" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Top10" minOccurs="0"/>
+ *         <element name="customFilters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomFilters" minOccurs="0"/>
+ *         <element name="dynamicFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DynamicFilter" minOccurs="0"/>
+ *         <element name="colorFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColorFilter" minOccurs="0"/>
+ *         <element name="iconFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IconFilter" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </choice>
+ *       <attribute name="colId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="hiddenButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FilterColumn", propOrder = { + "filters", + "top10", + "customFilters", + "dynamicFilter", + "colorFilter", + "iconFilter", + "extLst" +}) +public class CTFilterColumn implements Child +{ + + protected CTFilters filters; + protected CTTop10 top10; + protected CTCustomFilters customFilters; + protected CTDynamicFilter dynamicFilter; + protected CTColorFilter colorFilter; + protected CTIconFilter iconFilter; + protected CTExtensionList extLst; + @XmlAttribute(name = "colId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long colId; + @XmlAttribute(name = "hiddenButton") + protected Boolean hiddenButton; + @XmlAttribute(name = "showButton") + protected Boolean showButton; + @XmlTransient + private Object parent; + + /** + * Gets the value of the filters property. + * + * @return + * possible object is + * {@link CTFilters } + * + */ + public CTFilters getFilters() { + return filters; + } + + /** + * Sets the value of the filters property. + * + * @param value + * allowed object is + * {@link CTFilters } + * + */ + public void setFilters(CTFilters value) { + this.filters = value; + } + + /** + * Gets the value of the top10 property. + * + * @return + * possible object is + * {@link CTTop10 } + * + */ + public CTTop10 getTop10() { + return top10; + } + + /** + * Sets the value of the top10 property. + * + * @param value + * allowed object is + * {@link CTTop10 } + * + */ + public void setTop10(CTTop10 value) { + this.top10 = value; + } + + /** + * Gets the value of the customFilters property. + * + * @return + * possible object is + * {@link CTCustomFilters } + * + */ + public CTCustomFilters getCustomFilters() { + return customFilters; + } + + /** + * Sets the value of the customFilters property. + * + * @param value + * allowed object is + * {@link CTCustomFilters } + * + */ + public void setCustomFilters(CTCustomFilters value) { + this.customFilters = value; + } + + /** + * Gets the value of the dynamicFilter property. + * + * @return + * possible object is + * {@link CTDynamicFilter } + * + */ + public CTDynamicFilter getDynamicFilter() { + return dynamicFilter; + } + + /** + * Sets the value of the dynamicFilter property. + * + * @param value + * allowed object is + * {@link CTDynamicFilter } + * + */ + public void setDynamicFilter(CTDynamicFilter value) { + this.dynamicFilter = value; + } + + /** + * Gets the value of the colorFilter property. + * + * @return + * possible object is + * {@link CTColorFilter } + * + */ + public CTColorFilter getColorFilter() { + return colorFilter; + } + + /** + * Sets the value of the colorFilter property. + * + * @param value + * allowed object is + * {@link CTColorFilter } + * + */ + public void setColorFilter(CTColorFilter value) { + this.colorFilter = value; + } + + /** + * Gets the value of the iconFilter property. + * + * @return + * possible object is + * {@link CTIconFilter } + * + */ + public CTIconFilter getIconFilter() { + return iconFilter; + } + + /** + * Sets the value of the iconFilter property. + * + * @param value + * allowed object is + * {@link CTIconFilter } + * + */ + public void setIconFilter(CTIconFilter value) { + this.iconFilter = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the colId property. + * + */ + public long getColId() { + return colId; + } + + /** + * Sets the value of the colId property. + * + */ + public void setColId(long value) { + this.colId = value; + } + + /** + * Gets the value of the hiddenButton property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHiddenButton() { + if (hiddenButton == null) { + return false; + } else { + return hiddenButton; + } + } + + /** + * Sets the value of the hiddenButton property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenButton(Boolean value) { + this.hiddenButton = value; + } + + /** + * Gets the value of the showButton property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowButton() { + if (showButton == null) { + return true; + } else { + return showButton; + } + } + + /** + * Sets the value of the showButton property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowButton(Boolean value) { + this.showButton = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFilters.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFilters.java index 9aaba2350d..674c4f3626 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFilters.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFilters.java @@ -1,182 +1,195 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Filters complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Filters">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="filter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Filter" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="dateGroupItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateGroupItem" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="blank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="calendarType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CalendarType" default="none" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Filters", propOrder = { - "filter", - "dateGroupItem" -}) -public class CTFilters { - - protected List filter; - protected List dateGroupItem; - @XmlAttribute - protected Boolean blank; - @XmlAttribute - protected STCalendarType calendarType; - - /** - * Gets the value of the filter property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the filter property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFilter().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFilter } - * - * - */ - public List getFilter() { - if (filter == null) { - filter = new ArrayList(); - } - return this.filter; - } - - /** - * Gets the value of the dateGroupItem property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the dateGroupItem property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDateGroupItem().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDateGroupItem } - * - * - */ - public List getDateGroupItem() { - if (dateGroupItem == null) { - dateGroupItem = new ArrayList(); - } - return this.dateGroupItem; - } - - /** - * Gets the value of the blank property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBlank() { - if (blank == null) { - return false; - } else { - return blank; - } - } - - /** - * Sets the value of the blank property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBlank(Boolean value) { - this.blank = value; - } - - /** - * Gets the value of the calendarType property. - * - * @return - * possible object is - * {@link STCalendarType } - * - */ - public STCalendarType getCalendarType() { - if (calendarType == null) { - return STCalendarType.NONE; - } else { - return calendarType; - } - } - - /** - * Sets the value of the calendarType property. - * - * @param value - * allowed object is - * {@link STCalendarType } - * - */ - public void setCalendarType(STCalendarType value) { - this.calendarType = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.docx4j.sharedtypes.STCalendarType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Filters complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Filters">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="filter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Filter" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="dateGroupItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateGroupItem" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="blank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="calendarType" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_CalendarType" default="none" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Filters", propOrder = { + "filter", + "dateGroupItem" +}) +public class CTFilters implements Child +{ + + protected List filter; + protected List dateGroupItem; + @XmlAttribute(name = "blank") + protected Boolean blank; + @XmlAttribute(name = "calendarType") + protected STCalendarType calendarType; + @XmlTransient + private Object parent; + + /** + * Gets the value of the filter property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the filter property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFilter().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFilter } + * + * + */ + public List getFilter() { + if (filter == null) { + filter = new ArrayList(); + } + return this.filter; + } + + /** + * Gets the value of the dateGroupItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dateGroupItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDateGroupItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDateGroupItem } + * + * + */ + public List getDateGroupItem() { + if (dateGroupItem == null) { + dateGroupItem = new ArrayList(); + } + return this.dateGroupItem; + } + + /** + * Gets the value of the blank property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBlank() { + if (blank == null) { + return false; + } else { + return blank; + } + } + + /** + * Sets the value of the blank property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBlank(Boolean value) { + this.blank = value; + } + + /** + * Gets the value of the calendarType property. + * + * @return + * possible object is + * {@link STCalendarType } + * + */ + public STCalendarType getCalendarType() { + if (calendarType == null) { + return STCalendarType.NONE; + } else { + return calendarType; + } + } + + /** + * Sets the value of the calendarType property. + * + * @param value + * allowed object is + * {@link STCalendarType } + * + */ + public void setCalendarType(STCalendarType value) { + this.calendarType = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFont.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFont.java index f8666b0963..8bd80f586d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFont.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFont.java @@ -1,135 +1,147 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Font complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Font">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontName" minOccurs="0"/>
- *         <element name="charset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
- *         <element name="family" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
- *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="strike" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="outline" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="shadow" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="condense" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="extend" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
- *         <element name="sz" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontSize" minOccurs="0"/>
- *         <element name="u" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UnderlineProperty" minOccurs="0"/>
- *         <element name="vertAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VerticalAlignFontProperty" minOccurs="0"/>
- *         <element name="scheme" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontScheme" minOccurs="0"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Font", propOrder = { - "nameOrCharsetOrFamily" -}) -public class CTFont { - - @XmlElementRefs({ - @XmlElementRef(name = "i", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "u", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "sz", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "shadow", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "color", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "b", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "scheme", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "family", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "strike", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "charset", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "condense", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "vertAlign", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "name", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "outline", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "extend", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class) - }) - protected List> nameOrCharsetOrFamily; - - /** - * Gets the value of the nameOrCharsetOrFamily property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the nameOrCharsetOrFamily property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getNameOrCharsetOrFamily().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTFontSize }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTColor }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >} - * {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTFontName }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * - * - */ - public List> getNameOrCharsetOrFamily() { - if (nameOrCharsetOrFamily == null) { - nameOrCharsetOrFamily = new ArrayList>(); - } - return this.nameOrCharsetOrFamily; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Font complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Font">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontName" minOccurs="0"/>
+ *         <element name="charset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
+ *         <element name="family" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontFamily" minOccurs="0"/>
+ *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="strike" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="outline" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="shadow" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="condense" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="extend" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
+ *         <element name="sz" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontSize" minOccurs="0"/>
+ *         <element name="u" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UnderlineProperty" minOccurs="0"/>
+ *         <element name="vertAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VerticalAlignFontProperty" minOccurs="0"/>
+ *         <element name="scheme" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontScheme" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Font", propOrder = { + "nameOrCharsetOrFamily" +}) +public class CTFont implements Child +{ + + @XmlElementRefs({ + @XmlElementRef(name = "strike", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "shadow", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "b", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "outline", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "sz", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "scheme", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "extend", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "family", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "name", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "color", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "u", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "i", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "charset", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "vertAlign", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "condense", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class) + }) + protected List> nameOrCharsetOrFamily; + @XmlTransient + private Object parent; + + /** + * Gets the value of the nameOrCharsetOrFamily property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the nameOrCharsetOrFamily property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getNameOrCharsetOrFamily().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTFontSize }{@code >} + * {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTFontFamily }{@code >} + * {@link JAXBElement }{@code <}{@link CTFontName }{@code >} + * {@link JAXBElement }{@code <}{@link CTColor }{@code >} + * {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * + * + */ + public List> getNameOrCharsetOrFamily() { + if (nameOrCharsetOrFamily == null) { + nameOrCharsetOrFamily = new ArrayList>(); + } + return this.nameOrCharsetOrFamily; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFontFamily.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFontFamily.java new file mode 100644 index 0000000000..6ab91d2bc8 --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFontFamily.java @@ -0,0 +1,82 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FontFamily complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FontFamily">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontFamily" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FontFamily") +public class CTFontFamily implements Child +{ + + @XmlAttribute(name = "val", required = true) + protected int val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + */ + public int getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + */ + public void setVal(int value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFontName.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFontName.java index 4d3ce5e25b..f5f4d6410b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFontName.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFontName.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FontName complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FontName">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FontName") -public class CTFontName { - - @XmlAttribute(required = true) - protected String val; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FontName complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FontName">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FontName") +public class CTFontName implements Child +{ + + @XmlAttribute(name = "val", required = true) + protected String val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFontScheme.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFontScheme.java index 48b58d90c1..0a47efd5f3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFontScheme.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFontScheme.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FontScheme complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FontScheme">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontScheme" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FontScheme") -public class CTFontScheme { - - @XmlAttribute(required = true) - protected STFontScheme val; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link STFontScheme } - * - */ - public STFontScheme getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link STFontScheme } - * - */ - public void setVal(STFontScheme value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FontScheme complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FontScheme">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontScheme" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FontScheme") +public class CTFontScheme implements Child +{ + + @XmlAttribute(name = "val", required = true) + protected STFontScheme val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link STFontScheme } + * + */ + public STFontScheme getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link STFontScheme } + * + */ + public void setVal(STFontScheme value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFontSize.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFontSize.java index 36c1f99f6c..6760c5c41a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFontSize.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFontSize.java @@ -1,70 +1,82 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FontSize complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FontSize">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FontSize") -public class CTFontSize { - - @XmlAttribute(required = true) - protected double val; - - /** - * Gets the value of the val property. - * - */ - public double getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - */ - public void setVal(double value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FontSize complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FontSize">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FontSize") +public class CTFontSize implements Child +{ + + @XmlAttribute(name = "val", required = true) + protected double val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + */ + public double getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + */ + public void setVal(double value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFonts.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFonts.java index bd15e0f891..1de6576b4b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFonts.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFonts.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Fonts complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Fonts">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="font" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Font" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Fonts", propOrder = { - "font" -}) -public class CTFonts { - - protected List font; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the font property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the font property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFont().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFont } - * - * - */ - public List getFont() { - if (font == null) { - font = new ArrayList(); - } - return this.font; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Fonts complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Fonts">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="font" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Font" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Fonts", propOrder = { + "font" +}) +public class CTFonts implements Child +{ + + protected List font; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the font property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the font property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFont().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFont } + * + * + */ + public List getFont() { + if (font == null) { + font = new ArrayList(); + } + return this.font; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFormat.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFormat.java index 0ce1582e5e..31930e1fe8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFormat.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFormat.java @@ -1,168 +1,180 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Format complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Format">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="action" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FormatAction" default="formatting" />
- *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Format", propOrder = { - "pivotArea", - "extLst" -}) -public class CTFormat { - - @XmlElement(required = true) - protected CTPivotArea pivotArea; - protected CTExtensionList extLst; - @XmlAttribute - protected STFormatAction action; - @XmlAttribute - protected Long dxfId; - - /** - * Gets the value of the pivotArea property. - * - * @return - * possible object is - * {@link CTPivotArea } - * - */ - public CTPivotArea getPivotArea() { - return pivotArea; - } - - /** - * Sets the value of the pivotArea property. - * - * @param value - * allowed object is - * {@link CTPivotArea } - * - */ - public void setPivotArea(CTPivotArea value) { - this.pivotArea = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the action property. - * - * @return - * possible object is - * {@link STFormatAction } - * - */ - public STFormatAction getAction() { - if (action == null) { - return STFormatAction.FORMATTING; - } else { - return action; - } - } - - /** - * Sets the value of the action property. - * - * @param value - * allowed object is - * {@link STFormatAction } - * - */ - public void setAction(STFormatAction value) { - this.action = value; - } - - /** - * Gets the value of the dxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDxfId() { - return dxfId; - } - - /** - * Sets the value of the dxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDxfId(Long value) { - this.dxfId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Format complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Format">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="action" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FormatAction" default="formatting" />
+ *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Format", propOrder = { + "pivotArea", + "extLst" +}) +public class CTFormat implements Child +{ + + @XmlElement(required = true) + protected CTPivotArea pivotArea; + protected CTExtensionList extLst; + @XmlAttribute(name = "action") + protected STFormatAction action; + @XmlAttribute(name = "dxfId") + protected Long dxfId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotArea property. + * + * @return + * possible object is + * {@link CTPivotArea } + * + */ + public CTPivotArea getPivotArea() { + return pivotArea; + } + + /** + * Sets the value of the pivotArea property. + * + * @param value + * allowed object is + * {@link CTPivotArea } + * + */ + public void setPivotArea(CTPivotArea value) { + this.pivotArea = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the action property. + * + * @return + * possible object is + * {@link STFormatAction } + * + */ + public STFormatAction getAction() { + if (action == null) { + return STFormatAction.FORMATTING; + } else { + return action; + } + } + + /** + * Sets the value of the action property. + * + * @param value + * allowed object is + * {@link STFormatAction } + * + */ + public void setAction(STFormatAction value) { + this.action = value; + } + + /** + * Gets the value of the dxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDxfId() { + return dxfId; + } + + /** + * Sets the value of the dxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDxfId(Long value) { + this.dxfId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFormats.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFormats.java index 7d35768168..220e2fbf3a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFormats.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFormats.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Formats complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Formats">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="format" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Format" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Formats", propOrder = { - "format" -}) -public class CTFormats { - - @XmlElement(required = true) - protected List format; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the format property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the format property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFormat().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFormat } - * - * - */ - public List getFormat() { - if (format == null) { - format = new ArrayList(); - } - return this.format; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Formats complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Formats">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="format" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Format" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Formats", propOrder = { + "format" +}) +public class CTFormats implements Child +{ + + @XmlElement(required = true) + protected List format; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the format property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the format property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFormat().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFormat } + * + * + */ + public List getFormat() { + if (format == null) { + format = new ArrayList(); + } + return this.format; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroup.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroup.java index c2ce3234a2..746b557db3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroup.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroup.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FunctionGroup complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FunctionGroup">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FunctionGroup") -public class CTFunctionGroup { - - @XmlAttribute - protected String name; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FunctionGroup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FunctionGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FunctionGroup") +public class CTFunctionGroup implements Child +{ + + @XmlAttribute(name = "name") + protected String name; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroups.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroups.java index a007675a34..62a9e24938 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroups.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFunctionGroups.java @@ -1,121 +1,133 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FunctionGroups complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FunctionGroups">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence maxOccurs="unbounded">
- *         <element name="functionGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FunctionGroup" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="builtInGroupCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="16" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FunctionGroups", propOrder = { - "functionGroup" -}) -public class CTFunctionGroups { - - protected List functionGroup; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long builtInGroupCount; - - /** - * Gets the value of the functionGroup property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the functionGroup property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFunctionGroup().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFunctionGroup } - * - * - */ - public List getFunctionGroup() { - if (functionGroup == null) { - functionGroup = new ArrayList(); - } - return this.functionGroup; - } - - /** - * Gets the value of the builtInGroupCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getBuiltInGroupCount() { - if (builtInGroupCount == null) { - return 16L; - } else { - return builtInGroupCount; - } - } - - /** - * Sets the value of the builtInGroupCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setBuiltInGroupCount(Long value) { - this.builtInGroupCount = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FunctionGroups complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FunctionGroups">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded">
+ *         <element name="functionGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FunctionGroup" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="builtInGroupCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="16" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FunctionGroups", propOrder = { + "functionGroup" +}) +public class CTFunctionGroups implements Child +{ + + protected List functionGroup; + @XmlAttribute(name = "builtInGroupCount") + @XmlSchemaType(name = "unsignedInt") + protected Long builtInGroupCount; + @XmlTransient + private Object parent; + + /** + * Gets the value of the functionGroup property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the functionGroup property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFunctionGroup().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFunctionGroup } + * + * + */ + public List getFunctionGroup() { + if (functionGroup == null) { + functionGroup = new ArrayList(); + } + return this.functionGroup; + } + + /** + * Gets the value of the builtInGroupCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getBuiltInGroupCount() { + if (builtInGroupCount == null) { + return 16L; + } else { + return builtInGroupCount; + } + } + + /** + * Sets the value of the builtInGroupCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setBuiltInGroupCount(Long value) { + this.builtInGroupCount = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadata.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadata.java index e014c4ee6c..99ad27cca7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadata.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadata.java @@ -1,175 +1,187 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FutureMetadata complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FutureMetadata">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="bk" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FutureMetadataBlock" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FutureMetadata", propOrder = { - "bk", - "extLst" -}) -public class CTFutureMetadata { - - protected List bk; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the bk property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the bk property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getBk().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFutureMetadataBlock } - * - * - */ - public List getBk() { - if (bk == null) { - bk = new ArrayList(); - } - return this.bk; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FutureMetadata complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FutureMetadata">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="bk" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FutureMetadataBlock" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FutureMetadata", propOrder = { + "bk", + "extLst" +}) +public class CTFutureMetadata implements Child +{ + + protected List bk; + protected CTExtensionList extLst; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the bk property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the bk property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getBk().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFutureMetadataBlock } + * + * + */ + public List getBk() { + if (bk == null) { + bk = new ArrayList(); + } + return this.bk; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadataBlock.java b/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadataBlock.java index 72c36e98cf..05c700b742 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadataBlock.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTFutureMetadataBlock.java @@ -1,80 +1,92 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_FutureMetadataBlock complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FutureMetadataBlock">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FutureMetadataBlock", propOrder = { - "extLst" -}) -public class CTFutureMetadataBlock { - - protected CTExtensionList extLst; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FutureMetadataBlock complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FutureMetadataBlock">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FutureMetadataBlock", propOrder = { + "extLst" +}) +public class CTFutureMetadataBlock implements Child +{ + + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGradientFill.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGradientFill.java index 43f3f2ac5a..1ef90155a8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGradientFill.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGradientFill.java @@ -1,274 +1,286 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_GradientFill complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_GradientFill">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="stop" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GradientStop" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_GradientType" default="linear" />
- *       <attribute name="degree" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
- *       <attribute name="left" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
- *       <attribute name="right" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
- *       <attribute name="top" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
- *       <attribute name="bottom" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_GradientFill", propOrder = { - "stop" -}) -public class CTGradientFill { - - protected List stop; - @XmlAttribute - protected STGradientType type; - @XmlAttribute - protected Double degree; - @XmlAttribute - protected Double left; - @XmlAttribute - protected Double right; - @XmlAttribute - protected Double top; - @XmlAttribute - protected Double bottom; - - /** - * Gets the value of the stop property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the stop property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getStop().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTGradientStop } - * - * - */ - public List getStop() { - if (stop == null) { - stop = new ArrayList(); - } - return this.stop; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STGradientType } - * - */ - public STGradientType getType() { - if (type == null) { - return STGradientType.LINEAR; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STGradientType } - * - */ - public void setType(STGradientType value) { - this.type = value; - } - - /** - * Gets the value of the degree property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getDegree() { - if (degree == null) { - return 0.0D; - } else { - return degree; - } - } - - /** - * Sets the value of the degree property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setDegree(Double value) { - this.degree = value; - } - - /** - * Gets the value of the left property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getLeft() { - if (left == null) { - return 0.0D; - } else { - return left; - } - } - - /** - * Sets the value of the left property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setLeft(Double value) { - this.left = value; - } - - /** - * Gets the value of the right property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getRight() { - if (right == null) { - return 0.0D; - } else { - return right; - } - } - - /** - * Sets the value of the right property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setRight(Double value) { - this.right = value; - } - - /** - * Gets the value of the top property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getTop() { - if (top == null) { - return 0.0D; - } else { - return top; - } - } - - /** - * Sets the value of the top property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setTop(Double value) { - this.top = value; - } - - /** - * Gets the value of the bottom property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getBottom() { - if (bottom == null) { - return 0.0D; - } else { - return bottom; - } - } - - /** - * Sets the value of the bottom property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setBottom(Double value) { - this.bottom = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_GradientFill complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_GradientFill">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="stop" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GradientStop" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_GradientType" default="linear" />
+ *       <attribute name="degree" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="left" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="right" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="top" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="bottom" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_GradientFill", propOrder = { + "stop" +}) +public class CTGradientFill implements Child +{ + + protected List stop; + @XmlAttribute(name = "type") + protected STGradientType type; + @XmlAttribute(name = "degree") + protected Double degree; + @XmlAttribute(name = "left") + protected Double left; + @XmlAttribute(name = "right") + protected Double right; + @XmlAttribute(name = "top") + protected Double top; + @XmlAttribute(name = "bottom") + protected Double bottom; + @XmlTransient + private Object parent; + + /** + * Gets the value of the stop property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the stop property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getStop().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTGradientStop } + * + * + */ + public List getStop() { + if (stop == null) { + stop = new ArrayList(); + } + return this.stop; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STGradientType } + * + */ + public STGradientType getType() { + if (type == null) { + return STGradientType.LINEAR; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STGradientType } + * + */ + public void setType(STGradientType value) { + this.type = value; + } + + /** + * Gets the value of the degree property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getDegree() { + if (degree == null) { + return 0.0D; + } else { + return degree; + } + } + + /** + * Sets the value of the degree property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setDegree(Double value) { + this.degree = value; + } + + /** + * Gets the value of the left property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getLeft() { + if (left == null) { + return 0.0D; + } else { + return left; + } + } + + /** + * Sets the value of the left property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLeft(Double value) { + this.left = value; + } + + /** + * Gets the value of the right property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getRight() { + if (right == null) { + return 0.0D; + } else { + return right; + } + } + + /** + * Sets the value of the right property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setRight(Double value) { + this.right = value; + } + + /** + * Gets the value of the top property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getTop() { + if (top == null) { + return 0.0D; + } else { + return top; + } + } + + /** + * Sets the value of the top property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setTop(Double value) { + this.top = value; + } + + /** + * Gets the value of the bottom property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getBottom() { + if (bottom == null) { + return 0.0D; + } else { + return bottom; + } + } + + /** + * Sets the value of the bottom property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setBottom(Double value) { + this.bottom = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGradientStop.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGradientStop.java index 110aaf19c7..8d318bef63 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGradientStop.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGradientStop.java @@ -1,102 +1,114 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_GradientStop complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_GradientStop">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color"/>
- *       </sequence>
- *       <attribute name="position" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_GradientStop", propOrder = { - "color" -}) -public class CTGradientStop { - - @XmlElement(required = true) - protected CTColor color; - @XmlAttribute(required = true) - protected double position; - - /** - * Gets the value of the color property. - * - * @return - * possible object is - * {@link CTColor } - * - */ - public CTColor getColor() { - return color; - } - - /** - * Sets the value of the color property. - * - * @param value - * allowed object is - * {@link CTColor } - * - */ - public void setColor(CTColor value) { - this.color = value; - } - - /** - * Gets the value of the position property. - * - */ - public double getPosition() { - return position; - } - - /** - * Sets the value of the position property. - * - */ - public void setPosition(double value) { - this.position = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_GradientStop complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_GradientStop">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color"/>
+ *       </sequence>
+ *       <attribute name="position" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_GradientStop", propOrder = { + "color" +}) +public class CTGradientStop implements Child +{ + + @XmlElement(required = true) + protected CTColor color; + @XmlAttribute(name = "position", required = true) + protected double position; + @XmlTransient + private Object parent; + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link CTColor } + * + */ + public CTColor getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link CTColor } + * + */ + public void setColor(CTColor value) { + this.color = value; + } + + /** + * Gets the value of the position property. + * + */ + public double getPosition() { + return position; + } + + /** + * Sets the value of the position property. + * + */ + public void setPosition(double value) { + this.position = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupItems.java index b1b67b6616..20cfce1e37 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupItems.java @@ -1,137 +1,149 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_GroupItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_GroupItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
- *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
- *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Boolean"/>
- *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
- *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
- *         <element name="d" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateTime"/>
- *       </choice>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_GroupItems", propOrder = { - "mOrNOrB" -}) -public class CTGroupItems { - - @XmlElements({ - @XmlElement(name = "b", type = CTBoolean.class), - @XmlElement(name = "m", type = CTMissing.class), - @XmlElement(name = "d", type = CTDateTime.class), - @XmlElement(name = "e", type = CTError.class), - @XmlElement(name = "s", type = CTString.class), - @XmlElement(name = "n", type = CTNumber.class) - }) - protected List mOrNOrB; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the mOrNOrB property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mOrNOrB property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMOrNOrB().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTBoolean } - * {@link CTMissing } - * {@link CTDateTime } - * {@link CTError } - * {@link CTString } - * {@link CTNumber } - * - * - */ - public List getMOrNOrB() { - if (mOrNOrB == null) { - mOrNOrB = new ArrayList(); - } - return this.mOrNOrB; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_GroupItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_GroupItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
+ *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
+ *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Boolean"/>
+ *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
+ *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
+ *         <element name="d" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateTime"/>
+ *       </choice>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_GroupItems", propOrder = { + "mOrNOrB" +}) +public class CTGroupItems implements Child +{ + + @XmlElements({ + @XmlElement(name = "m", type = CTMissing.class), + @XmlElement(name = "n", type = CTNumber.class), + @XmlElement(name = "b", type = CTBoolean.class), + @XmlElement(name = "e", type = CTError.class), + @XmlElement(name = "s", type = CTString.class), + @XmlElement(name = "d", type = CTDateTime.class) + }) + protected List mOrNOrB; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mOrNOrB property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mOrNOrB property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMOrNOrB().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMissing } + * {@link CTNumber } + * {@link CTBoolean } + * {@link CTError } + * {@link CTString } + * {@link CTDateTime } + * + * + */ + public List getMOrNOrB() { + if (mOrNOrB == null) { + mOrNOrB = new ArrayList(); + } + return this.mOrNOrB; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevel.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevel.java index 9b9f7a6ba6..f4e31ee925 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevel.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevel.java @@ -1,224 +1,236 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_GroupLevel complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_GroupLevel">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="groups" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Groups" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="user" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="customRollUp" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_GroupLevel", propOrder = { - "groups", - "extLst" -}) -public class CTGroupLevel { - - protected CTGroups groups; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String uniqueName; - @XmlAttribute(required = true) - protected String caption; - @XmlAttribute - protected Boolean user; - @XmlAttribute - protected Boolean customRollUp; - - /** - * Gets the value of the groups property. - * - * @return - * possible object is - * {@link CTGroups } - * - */ - public CTGroups getGroups() { - return groups; - } - - /** - * Sets the value of the groups property. - * - * @param value - * allowed object is - * {@link CTGroups } - * - */ - public void setGroups(CTGroups value) { - this.groups = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - - /** - * Gets the value of the user property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUser() { - if (user == null) { - return false; - } else { - return user; - } - } - - /** - * Sets the value of the user property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUser(Boolean value) { - this.user = value; - } - - /** - * Gets the value of the customRollUp property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCustomRollUp() { - if (customRollUp == null) { - return false; - } else { - return customRollUp; - } - } - - /** - * Sets the value of the customRollUp property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomRollUp(Boolean value) { - this.customRollUp = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_GroupLevel complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_GroupLevel">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="groups" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Groups" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="user" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="customRollUp" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_GroupLevel", propOrder = { + "groups", + "extLst" +}) +public class CTGroupLevel implements Child +{ + + protected CTGroups groups; + protected CTExtensionList extLst; + @XmlAttribute(name = "uniqueName", required = true) + protected String uniqueName; + @XmlAttribute(name = "caption", required = true) + protected String caption; + @XmlAttribute(name = "user") + protected Boolean user; + @XmlAttribute(name = "customRollUp") + protected Boolean customRollUp; + @XmlTransient + private Object parent; + + /** + * Gets the value of the groups property. + * + * @return + * possible object is + * {@link CTGroups } + * + */ + public CTGroups getGroups() { + return groups; + } + + /** + * Sets the value of the groups property. + * + * @param value + * allowed object is + * {@link CTGroups } + * + */ + public void setGroups(CTGroups value) { + this.groups = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the value of the user property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUser() { + if (user == null) { + return false; + } else { + return user; + } + } + + /** + * Sets the value of the user property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUser(Boolean value) { + this.user = value; + } + + /** + * Gets the value of the customRollUp property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCustomRollUp() { + if (customRollUp == null) { + return false; + } else { + return customRollUp; + } + } + + /** + * Sets the value of the customRollUp property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomRollUp(Boolean value) { + this.customRollUp = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevels.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevels.java index dd6ecae102..852626e2b3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevels.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupLevels.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_GroupLevels complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_GroupLevels">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="groupLevel" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupLevel" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_GroupLevels", propOrder = { - "groupLevel" -}) -public class CTGroupLevels { - - @XmlElement(required = true) - protected List groupLevel; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the groupLevel property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the groupLevel property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getGroupLevel().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTGroupLevel } - * - * - */ - public List getGroupLevel() { - if (groupLevel == null) { - groupLevel = new ArrayList(); - } - return this.groupLevel; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_GroupLevels complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_GroupLevels">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="groupLevel" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupLevel" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_GroupLevels", propOrder = { + "groupLevel" +}) +public class CTGroupLevels implements Child +{ + + @XmlElement(required = true) + protected List groupLevel; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the groupLevel property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the groupLevel property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getGroupLevel().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTGroupLevel } + * + * + */ + public List getGroupLevel() { + if (groupLevel == null) { + groupLevel = new ArrayList(); + } + return this.groupLevel; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMember.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMember.java index 0db740eff3..b819a3a17e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMember.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMember.java @@ -1,109 +1,121 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_GroupMember complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_GroupMember">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="group" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_GroupMember") -public class CTGroupMember { - - @XmlAttribute(required = true) - protected String uniqueName; - @XmlAttribute - protected Boolean group; - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - - /** - * Gets the value of the group property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGroup() { - if (group == null) { - return false; - } else { - return group; - } - } - - /** - * Sets the value of the group property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGroup(Boolean value) { - this.group = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_GroupMember complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_GroupMember">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="group" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_GroupMember") +public class CTGroupMember implements Child +{ + + @XmlAttribute(name = "uniqueName", required = true) + protected String uniqueName; + @XmlAttribute(name = "group") + protected Boolean group; + @XmlTransient + private Object parent; + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the value of the group property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGroup() { + if (group == null) { + return false; + } else { + return group; + } + } + + /** + * Sets the value of the group property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGroup(Boolean value) { + this.group = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMembers.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMembers.java index b34aa09126..01e1d4a174 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMembers.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGroupMembers.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_GroupMembers complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_GroupMembers">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="groupMember" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupMember" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_GroupMembers", propOrder = { - "groupMember" -}) -public class CTGroupMembers { - - @XmlElement(required = true) - protected List groupMember; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the groupMember property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the groupMember property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getGroupMember().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTGroupMember } - * - * - */ - public List getGroupMember() { - if (groupMember == null) { - groupMember = new ArrayList(); - } - return this.groupMember; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_GroupMembers complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_GroupMembers">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="groupMember" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupMember" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_GroupMembers", propOrder = { + "groupMember" +}) +public class CTGroupMembers implements Child +{ + + @XmlElement(required = true) + protected List groupMember; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the groupMember property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the groupMember property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getGroupMember().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTGroupMember } + * + * + */ + public List getGroupMember() { + if (groupMember == null) { + groupMember = new ArrayList(); + } + return this.groupMember; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTGroups.java b/src/xlsx4j/java/org/xlsx4j/sml/CTGroups.java index 78ec6d50fd..a43478e658 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTGroups.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTGroups.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Groups complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Groups">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="group" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LevelGroup" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Groups", propOrder = { - "group" -}) -public class CTGroups { - - @XmlElement(required = true) - protected List group; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the group property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the group property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getGroup().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTLevelGroup } - * - * - */ - public List getGroup() { - if (group == null) { - group = new ArrayList(); - } - return this.group; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Groups complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Groups">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="group" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LevelGroup" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Groups", propOrder = { + "group" +}) +public class CTGroups implements Child +{ + + @XmlElement(required = true) + protected List group; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the group property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the group property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getGroup().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTLevelGroup } + * + * + */ + public List getGroup() { + if (group == null) { + group = new ArrayList(); + } + return this.group; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTHeaderFooter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTHeaderFooter.java index 382a6578e7..56112c1429 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTHeaderFooter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTHeaderFooter.java @@ -1,340 +1,352 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_HeaderFooter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_HeaderFooter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="oddHeader" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *         <element name="oddFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *         <element name="evenHeader" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *         <element name="evenFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *         <element name="firstHeader" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *         <element name="firstFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="differentOddEven" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="differentFirst" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="scaleWithDoc" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="alignWithMargins" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_HeaderFooter", propOrder = { - "oddHeader", - "oddFooter", - "evenHeader", - "evenFooter", - "firstHeader", - "firstFooter" -}) -public class CTHeaderFooter { - - protected String oddHeader; - protected String oddFooter; - protected String evenHeader; - protected String evenFooter; - protected String firstHeader; - protected String firstFooter; - @XmlAttribute - protected Boolean differentOddEven; - @XmlAttribute - protected Boolean differentFirst; - @XmlAttribute - protected Boolean scaleWithDoc; - @XmlAttribute - protected Boolean alignWithMargins; - - /** - * Gets the value of the oddHeader property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOddHeader() { - return oddHeader; - } - - /** - * Sets the value of the oddHeader property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOddHeader(String value) { - this.oddHeader = value; - } - - /** - * Gets the value of the oddFooter property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOddFooter() { - return oddFooter; - } - - /** - * Sets the value of the oddFooter property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOddFooter(String value) { - this.oddFooter = value; - } - - /** - * Gets the value of the evenHeader property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEvenHeader() { - return evenHeader; - } - - /** - * Sets the value of the evenHeader property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEvenHeader(String value) { - this.evenHeader = value; - } - - /** - * Gets the value of the evenFooter property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEvenFooter() { - return evenFooter; - } - - /** - * Sets the value of the evenFooter property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEvenFooter(String value) { - this.evenFooter = value; - } - - /** - * Gets the value of the firstHeader property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFirstHeader() { - return firstHeader; - } - - /** - * Sets the value of the firstHeader property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFirstHeader(String value) { - this.firstHeader = value; - } - - /** - * Gets the value of the firstFooter property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFirstFooter() { - return firstFooter; - } - - /** - * Sets the value of the firstFooter property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFirstFooter(String value) { - this.firstFooter = value; - } - - /** - * Gets the value of the differentOddEven property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDifferentOddEven() { - if (differentOddEven == null) { - return false; - } else { - return differentOddEven; - } - } - - /** - * Sets the value of the differentOddEven property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDifferentOddEven(Boolean value) { - this.differentOddEven = value; - } - - /** - * Gets the value of the differentFirst property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDifferentFirst() { - if (differentFirst == null) { - return false; - } else { - return differentFirst; - } - } - - /** - * Sets the value of the differentFirst property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDifferentFirst(Boolean value) { - this.differentFirst = value; - } - - /** - * Gets the value of the scaleWithDoc property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isScaleWithDoc() { - if (scaleWithDoc == null) { - return true; - } else { - return scaleWithDoc; - } - } - - /** - * Sets the value of the scaleWithDoc property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setScaleWithDoc(Boolean value) { - this.scaleWithDoc = value; - } - - /** - * Gets the value of the alignWithMargins property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAlignWithMargins() { - if (alignWithMargins == null) { - return true; - } else { - return alignWithMargins; - } - } - - /** - * Sets the value of the alignWithMargins property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAlignWithMargins(Boolean value) { - this.alignWithMargins = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_HeaderFooter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_HeaderFooter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="oddHeader" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *         <element name="oddFooter" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *         <element name="evenHeader" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *         <element name="evenFooter" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *         <element name="firstHeader" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *         <element name="firstFooter" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="differentOddEven" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="differentFirst" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="scaleWithDoc" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="alignWithMargins" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_HeaderFooter", propOrder = { + "oddHeader", + "oddFooter", + "evenHeader", + "evenFooter", + "firstHeader", + "firstFooter" +}) +public class CTHeaderFooter implements Child +{ + + protected String oddHeader; + protected String oddFooter; + protected String evenHeader; + protected String evenFooter; + protected String firstHeader; + protected String firstFooter; + @XmlAttribute(name = "differentOddEven") + protected Boolean differentOddEven; + @XmlAttribute(name = "differentFirst") + protected Boolean differentFirst; + @XmlAttribute(name = "scaleWithDoc") + protected Boolean scaleWithDoc; + @XmlAttribute(name = "alignWithMargins") + protected Boolean alignWithMargins; + @XmlTransient + private Object parent; + + /** + * Gets the value of the oddHeader property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOddHeader() { + return oddHeader; + } + + /** + * Sets the value of the oddHeader property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOddHeader(String value) { + this.oddHeader = value; + } + + /** + * Gets the value of the oddFooter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOddFooter() { + return oddFooter; + } + + /** + * Sets the value of the oddFooter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOddFooter(String value) { + this.oddFooter = value; + } + + /** + * Gets the value of the evenHeader property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEvenHeader() { + return evenHeader; + } + + /** + * Sets the value of the evenHeader property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEvenHeader(String value) { + this.evenHeader = value; + } + + /** + * Gets the value of the evenFooter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEvenFooter() { + return evenFooter; + } + + /** + * Sets the value of the evenFooter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEvenFooter(String value) { + this.evenFooter = value; + } + + /** + * Gets the value of the firstHeader property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirstHeader() { + return firstHeader; + } + + /** + * Sets the value of the firstHeader property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirstHeader(String value) { + this.firstHeader = value; + } + + /** + * Gets the value of the firstFooter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirstFooter() { + return firstFooter; + } + + /** + * Sets the value of the firstFooter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirstFooter(String value) { + this.firstFooter = value; + } + + /** + * Gets the value of the differentOddEven property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDifferentOddEven() { + if (differentOddEven == null) { + return false; + } else { + return differentOddEven; + } + } + + /** + * Sets the value of the differentOddEven property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDifferentOddEven(Boolean value) { + this.differentOddEven = value; + } + + /** + * Gets the value of the differentFirst property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDifferentFirst() { + if (differentFirst == null) { + return false; + } else { + return differentFirst; + } + } + + /** + * Sets the value of the differentFirst property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDifferentFirst(Boolean value) { + this.differentFirst = value; + } + + /** + * Gets the value of the scaleWithDoc property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isScaleWithDoc() { + if (scaleWithDoc == null) { + return true; + } else { + return scaleWithDoc; + } + } + + /** + * Sets the value of the scaleWithDoc property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setScaleWithDoc(Boolean value) { + this.scaleWithDoc = value; + } + + /** + * Gets the value of the alignWithMargins property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAlignWithMargins() { + if (alignWithMargins == null) { + return true; + } else { + return alignWithMargins; + } + } + + /** + * Sets the value of the alignWithMargins property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAlignWithMargins(Boolean value) { + this.alignWithMargins = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTHierarchyUsage.java b/src/xlsx4j/java/org/xlsx4j/sml/CTHierarchyUsage.java index d71fb14a78..c69bd59bd5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTHierarchyUsage.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTHierarchyUsage.java @@ -1,70 +1,82 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_HierarchyUsage complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_HierarchyUsage">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="hierarchyUsage" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_HierarchyUsage") -public class CTHierarchyUsage { - - @XmlAttribute(required = true) - protected int hierarchyUsage; - - /** - * Gets the value of the hierarchyUsage property. - * - */ - public int getHierarchyUsage() { - return hierarchyUsage; - } - - /** - * Sets the value of the hierarchyUsage property. - * - */ - public void setHierarchyUsage(int value) { - this.hierarchyUsage = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_HierarchyUsage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_HierarchyUsage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="hierarchyUsage" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_HierarchyUsage") +public class CTHierarchyUsage implements Child +{ + + @XmlAttribute(name = "hierarchyUsage", required = true) + protected int hierarchyUsage; + @XmlTransient + private Object parent; + + /** + * Gets the value of the hierarchyUsage property. + * + */ + public int getHierarchyUsage() { + return hierarchyUsage; + } + + /** + * Sets the value of the hierarchyUsage property. + * + */ + public void setHierarchyUsage(int value) { + this.hierarchyUsage = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlink.java b/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlink.java index e9c2a18bde..0a46fd05a7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlink.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlink.java @@ -1,186 +1,198 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Hyperlink complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Hyperlink">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *       <attribute name="location" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="tooltip" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="display" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Hyperlink") -public class CTHyperlink { - - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - @XmlAttribute - protected String location; - @XmlAttribute - protected String tooltip; - @XmlAttribute - protected String display; - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the location property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLocation() { - return location; - } - - /** - * Sets the value of the location property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLocation(String value) { - this.location = value; - } - - /** - * Gets the value of the tooltip property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTooltip() { - return tooltip; - } - - /** - * Sets the value of the tooltip property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTooltip(String value) { - this.tooltip = value; - } - - /** - * Gets the value of the display property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDisplay() { - return display; - } - - /** - * Sets the value of the display property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDisplay(String value) { - this.display = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Hyperlink complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Hyperlink">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *       <attribute name="location" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="tooltip" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="display" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Hyperlink") +public class CTHyperlink implements Child +{ + + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlAttribute(name = "location") + protected String location; + @XmlAttribute(name = "tooltip") + protected String tooltip; + @XmlAttribute(name = "display") + protected String display; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the tooltip property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTooltip() { + return tooltip; + } + + /** + * Sets the value of the tooltip property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTooltip(String value) { + this.tooltip = value; + } + + /** + * Gets the value of the display property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplay() { + return display; + } + + /** + * Sets the value of the display property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplay(String value) { + this.display = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlinks.java b/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlinks.java index 5b338eea39..54b42a1479 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlinks.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTHyperlinks.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Hyperlinks complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Hyperlinks">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="hyperlink" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Hyperlink" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Hyperlinks", propOrder = { - "hyperlink" -}) -public class CTHyperlinks { - - @XmlElement(required = true) - protected List hyperlink; - - /** - * Gets the value of the hyperlink property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the hyperlink property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getHyperlink().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTHyperlink } - * - * - */ - public List getHyperlink() { - if (hyperlink == null) { - hyperlink = new ArrayList(); - } - return this.hyperlink; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Hyperlinks complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Hyperlinks">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="hyperlink" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Hyperlink" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Hyperlinks", propOrder = { + "hyperlink" +}) +public class CTHyperlinks implements Child +{ + + @XmlElement(required = true) + protected List hyperlink; + @XmlTransient + private Object parent; + + /** + * Gets the value of the hyperlink property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the hyperlink property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getHyperlink().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTHyperlink } + * + * + */ + public List getHyperlink() { + if (hyperlink == null) { + hyperlink = new ArrayList(); + } + return this.hyperlink; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTI.java b/src/xlsx4j/java/org/xlsx4j/sml/CTI.java index 48e699f810..a5b3a84fc8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTI.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTI.java @@ -1,184 +1,196 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_I complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_I">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ItemType" default="data" />
- *       <attribute name="r" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_I", propOrder = { - "x" -}) -public class CTI { - - protected List x; - @XmlAttribute - protected STItemType t; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long r; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long i; - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link STItemType } - * - */ - public STItemType getT() { - if (t == null) { - return STItemType.DATA; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link STItemType } - * - */ - public void setT(STItemType value) { - this.t = value; - } - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getR() { - if (r == null) { - return 0L; - } else { - return r; - } - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setR(Long value) { - this.r = value; - } - - /** - * Gets the value of the i property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getI() { - if (i == null) { - return 0L; - } else { - return i; - } - } - - /** - * Sets the value of the i property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setI(Long value) { - this.i = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_I complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_I">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ItemType" default="data" />
+ *       <attribute name="r" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_I", propOrder = { + "x" +}) +public class CTI implements Child +{ + + protected List x; + @XmlAttribute(name = "t") + protected STItemType t; + @XmlAttribute(name = "r") + @XmlSchemaType(name = "unsignedInt") + protected Long r; + @XmlAttribute(name = "i") + @XmlSchemaType(name = "unsignedInt") + protected Long i; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link STItemType } + * + */ + public STItemType getT() { + if (t == null) { + return STItemType.DATA; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link STItemType } + * + */ + public void setT(STItemType value) { + this.t = value; + } + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getR() { + if (r == null) { + return 0L; + } else { + return r; + } + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setR(Long value) { + this.r = value; + } + + /** + * Gets the value of the i property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getI() { + if (i == null) { + return 0L; + } else { + return i; + } + } + + /** + * Sets the value of the i property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setI(Long value) { + this.i = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTIconFilter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTIconFilter.java index 771c30c271..4948b58eac 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTIconFilter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTIconFilter.java @@ -1,107 +1,119 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_IconFilter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_IconFilter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="iconSet" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_IconSetType" />
- *       <attribute name="iconId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_IconFilter") -public class CTIconFilter { - - @XmlAttribute(required = true) - protected String iconSet; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long iconId; - - /** - * Gets the value of the iconSet property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getIconSet() { - return iconSet; - } - - /** - * Sets the value of the iconSet property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setIconSet(String value) { - this.iconSet = value; - } - - /** - * Gets the value of the iconId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIconId() { - return iconId; - } - - /** - * Sets the value of the iconId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIconId(Long value) { - this.iconId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_IconFilter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_IconFilter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="iconSet" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_IconSetType" />
+ *       <attribute name="iconId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_IconFilter") +public class CTIconFilter implements Child +{ + + @XmlAttribute(name = "iconSet", required = true) + protected String iconSet; + @XmlAttribute(name = "iconId") + @XmlSchemaType(name = "unsignedInt") + protected Long iconId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the iconSet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIconSet() { + return iconSet; + } + + /** + * Sets the value of the iconSet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIconSet(String value) { + this.iconSet = value; + } + + /** + * Gets the value of the iconId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIconId() { + return iconId; + } + + /** + * Sets the value of the iconId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIconId(Long value) { + this.iconId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTIconSet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTIconSet.java index 5e1473c894..ff178509e7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTIconSet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTIconSet.java @@ -1,214 +1,226 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_IconSet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_IconSet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cfvo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cfvo" maxOccurs="unbounded" minOccurs="2"/>
- *       </sequence>
- *       <attribute name="iconSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_IconSetType" default="3TrafficLights1" />
- *       <attribute name="showValue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="percent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="reverse" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_IconSet", propOrder = { - "cfvo" -}) -public class CTIconSet { - - @XmlElement(required = true) - protected List cfvo; - @XmlAttribute - protected String iconSet; - @XmlAttribute - protected Boolean showValue; - @XmlAttribute - protected Boolean percent; - @XmlAttribute - protected Boolean reverse; - - /** - * Gets the value of the cfvo property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cfvo property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCfvo().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCfvo } - * - * - */ - public List getCfvo() { - if (cfvo == null) { - cfvo = new ArrayList(); - } - return this.cfvo; - } - - /** - * Gets the value of the iconSet property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getIconSet() { - if (iconSet == null) { - return "3TrafficLights1"; - } else { - return iconSet; - } - } - - /** - * Sets the value of the iconSet property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setIconSet(String value) { - this.iconSet = value; - } - - /** - * Gets the value of the showValue property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowValue() { - if (showValue == null) { - return true; - } else { - return showValue; - } - } - - /** - * Sets the value of the showValue property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowValue(Boolean value) { - this.showValue = value; - } - - /** - * Gets the value of the percent property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPercent() { - if (percent == null) { - return true; - } else { - return percent; - } - } - - /** - * Sets the value of the percent property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPercent(Boolean value) { - this.percent = value; - } - - /** - * Gets the value of the reverse property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isReverse() { - if (reverse == null) { - return false; - } else { - return reverse; - } - } - - /** - * Sets the value of the reverse property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setReverse(Boolean value) { - this.reverse = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_IconSet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_IconSet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cfvo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cfvo" maxOccurs="unbounded" minOccurs="2"/>
+ *       </sequence>
+ *       <attribute name="iconSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_IconSetType" default="3TrafficLights1" />
+ *       <attribute name="showValue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="percent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="reverse" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_IconSet", propOrder = { + "cfvo" +}) +public class CTIconSet implements Child +{ + + @XmlElement(required = true) + protected List cfvo; + @XmlAttribute(name = "iconSet") + protected String iconSet; + @XmlAttribute(name = "showValue") + protected Boolean showValue; + @XmlAttribute(name = "percent") + protected Boolean percent; + @XmlAttribute(name = "reverse") + protected Boolean reverse; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cfvo property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cfvo property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCfvo().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCfvo } + * + * + */ + public List getCfvo() { + if (cfvo == null) { + cfvo = new ArrayList(); + } + return this.cfvo; + } + + /** + * Gets the value of the iconSet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIconSet() { + if (iconSet == null) { + return "3TrafficLights1"; + } else { + return iconSet; + } + } + + /** + * Sets the value of the iconSet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIconSet(String value) { + this.iconSet = value; + } + + /** + * Gets the value of the showValue property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowValue() { + if (showValue == null) { + return true; + } else { + return showValue; + } + } + + /** + * Sets the value of the showValue property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowValue(Boolean value) { + this.showValue = value; + } + + /** + * Gets the value of the percent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPercent() { + if (percent == null) { + return true; + } else { + return percent; + } + } + + /** + * Sets the value of the percent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPercent(Boolean value) { + this.percent = value; + } + + /** + * Gets the value of the reverse property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isReverse() { + if (reverse == null) { + return false; + } else { + return reverse; + } + } + + /** + * Sets the value of the reverse property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReverse(Boolean value) { + this.reverse = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredError.java b/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredError.java index f560490574..84258887f8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredError.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredError.java @@ -1,364 +1,376 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_IgnoredError complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_IgnoredError">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
- *       <attribute name="evalError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="twoDigitTextYear" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="numberStoredAsText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="formula" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="formulaRange" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="unlockedFormula" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="emptyCellReference" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="listDataValidation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="calculatedColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_IgnoredError") -public class CTIgnoredError { - - @XmlAttribute(required = true) - protected List sqref; - @XmlAttribute - protected Boolean evalError; - @XmlAttribute - protected Boolean twoDigitTextYear; - @XmlAttribute - protected Boolean numberStoredAsText; - @XmlAttribute - protected Boolean formula; - @XmlAttribute - protected Boolean formulaRange; - @XmlAttribute - protected Boolean unlockedFormula; - @XmlAttribute - protected Boolean emptyCellReference; - @XmlAttribute - protected Boolean listDataValidation; - @XmlAttribute - protected Boolean calculatedColumn; - - /** - * Gets the value of the sqref property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sqref property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSqref().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSqref() { - if (sqref == null) { - sqref = new ArrayList(); - } - return this.sqref; - } - - /** - * Gets the value of the evalError property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEvalError() { - if (evalError == null) { - return false; - } else { - return evalError; - } - } - - /** - * Sets the value of the evalError property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEvalError(Boolean value) { - this.evalError = value; - } - - /** - * Gets the value of the twoDigitTextYear property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTwoDigitTextYear() { - if (twoDigitTextYear == null) { - return false; - } else { - return twoDigitTextYear; - } - } - - /** - * Sets the value of the twoDigitTextYear property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTwoDigitTextYear(Boolean value) { - this.twoDigitTextYear = value; - } - - /** - * Gets the value of the numberStoredAsText property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isNumberStoredAsText() { - if (numberStoredAsText == null) { - return false; - } else { - return numberStoredAsText; - } - } - - /** - * Sets the value of the numberStoredAsText property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setNumberStoredAsText(Boolean value) { - this.numberStoredAsText = value; - } - - /** - * Gets the value of the formula property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFormula() { - if (formula == null) { - return false; - } else { - return formula; - } - } - - /** - * Sets the value of the formula property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFormula(Boolean value) { - this.formula = value; - } - - /** - * Gets the value of the formulaRange property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFormulaRange() { - if (formulaRange == null) { - return false; - } else { - return formulaRange; - } - } - - /** - * Sets the value of the formulaRange property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFormulaRange(Boolean value) { - this.formulaRange = value; - } - - /** - * Gets the value of the unlockedFormula property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUnlockedFormula() { - if (unlockedFormula == null) { - return false; - } else { - return unlockedFormula; - } - } - - /** - * Sets the value of the unlockedFormula property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUnlockedFormula(Boolean value) { - this.unlockedFormula = value; - } - - /** - * Gets the value of the emptyCellReference property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEmptyCellReference() { - if (emptyCellReference == null) { - return false; - } else { - return emptyCellReference; - } - } - - /** - * Sets the value of the emptyCellReference property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEmptyCellReference(Boolean value) { - this.emptyCellReference = value; - } - - /** - * Gets the value of the listDataValidation property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isListDataValidation() { - if (listDataValidation == null) { - return false; - } else { - return listDataValidation; - } - } - - /** - * Sets the value of the listDataValidation property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setListDataValidation(Boolean value) { - this.listDataValidation = value; - } - - /** - * Gets the value of the calculatedColumn property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCalculatedColumn() { - if (calculatedColumn == null) { - return false; - } else { - return calculatedColumn; - } - } - - /** - * Sets the value of the calculatedColumn property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCalculatedColumn(Boolean value) { - this.calculatedColumn = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_IgnoredError complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_IgnoredError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
+ *       <attribute name="evalError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="twoDigitTextYear" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="numberStoredAsText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="formula" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="formulaRange" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="unlockedFormula" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="emptyCellReference" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="listDataValidation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="calculatedColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_IgnoredError") +public class CTIgnoredError implements Child +{ + + @XmlAttribute(name = "sqref", required = true) + protected List sqref; + @XmlAttribute(name = "evalError") + protected Boolean evalError; + @XmlAttribute(name = "twoDigitTextYear") + protected Boolean twoDigitTextYear; + @XmlAttribute(name = "numberStoredAsText") + protected Boolean numberStoredAsText; + @XmlAttribute(name = "formula") + protected Boolean formula; + @XmlAttribute(name = "formulaRange") + protected Boolean formulaRange; + @XmlAttribute(name = "unlockedFormula") + protected Boolean unlockedFormula; + @XmlAttribute(name = "emptyCellReference") + protected Boolean emptyCellReference; + @XmlAttribute(name = "listDataValidation") + protected Boolean listDataValidation; + @XmlAttribute(name = "calculatedColumn") + protected Boolean calculatedColumn; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sqref property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sqref property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSqref().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSqref() { + if (sqref == null) { + sqref = new ArrayList(); + } + return this.sqref; + } + + /** + * Gets the value of the evalError property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEvalError() { + if (evalError == null) { + return false; + } else { + return evalError; + } + } + + /** + * Sets the value of the evalError property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEvalError(Boolean value) { + this.evalError = value; + } + + /** + * Gets the value of the twoDigitTextYear property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTwoDigitTextYear() { + if (twoDigitTextYear == null) { + return false; + } else { + return twoDigitTextYear; + } + } + + /** + * Sets the value of the twoDigitTextYear property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTwoDigitTextYear(Boolean value) { + this.twoDigitTextYear = value; + } + + /** + * Gets the value of the numberStoredAsText property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isNumberStoredAsText() { + if (numberStoredAsText == null) { + return false; + } else { + return numberStoredAsText; + } + } + + /** + * Sets the value of the numberStoredAsText property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNumberStoredAsText(Boolean value) { + this.numberStoredAsText = value; + } + + /** + * Gets the value of the formula property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFormula() { + if (formula == null) { + return false; + } else { + return formula; + } + } + + /** + * Sets the value of the formula property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFormula(Boolean value) { + this.formula = value; + } + + /** + * Gets the value of the formulaRange property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFormulaRange() { + if (formulaRange == null) { + return false; + } else { + return formulaRange; + } + } + + /** + * Sets the value of the formulaRange property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFormulaRange(Boolean value) { + this.formulaRange = value; + } + + /** + * Gets the value of the unlockedFormula property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUnlockedFormula() { + if (unlockedFormula == null) { + return false; + } else { + return unlockedFormula; + } + } + + /** + * Sets the value of the unlockedFormula property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUnlockedFormula(Boolean value) { + this.unlockedFormula = value; + } + + /** + * Gets the value of the emptyCellReference property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEmptyCellReference() { + if (emptyCellReference == null) { + return false; + } else { + return emptyCellReference; + } + } + + /** + * Sets the value of the emptyCellReference property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEmptyCellReference(Boolean value) { + this.emptyCellReference = value; + } + + /** + * Gets the value of the listDataValidation property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isListDataValidation() { + if (listDataValidation == null) { + return false; + } else { + return listDataValidation; + } + } + + /** + * Sets the value of the listDataValidation property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setListDataValidation(Boolean value) { + this.listDataValidation = value; + } + + /** + * Gets the value of the calculatedColumn property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCalculatedColumn() { + if (calculatedColumn == null) { + return false; + } else { + return calculatedColumn; + } + } + + /** + * Sets the value of the calculatedColumn property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCalculatedColumn(Boolean value) { + this.calculatedColumn = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredErrors.java b/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredErrors.java index 4abd05fbd2..7a030eca23 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredErrors.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTIgnoredErrors.java @@ -1,116 +1,128 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_IgnoredErrors complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_IgnoredErrors">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="ignoredError" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IgnoredError" maxOccurs="unbounded"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_IgnoredErrors", propOrder = { - "ignoredError", - "extLst" -}) -public class CTIgnoredErrors { - - @XmlElement(required = true) - protected List ignoredError; - protected CTExtensionList extLst; - - /** - * Gets the value of the ignoredError property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the ignoredError property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getIgnoredError().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTIgnoredError } - * - * - */ - public List getIgnoredError() { - if (ignoredError == null) { - ignoredError = new ArrayList(); - } - return this.ignoredError; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_IgnoredErrors complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_IgnoredErrors">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ignoredError" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IgnoredError" maxOccurs="unbounded"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_IgnoredErrors", propOrder = { + "ignoredError", + "extLst" +}) +public class CTIgnoredErrors implements Child +{ + + @XmlElement(required = true) + protected List ignoredError; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ignoredError property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the ignoredError property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getIgnoredError().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTIgnoredError } + * + * + */ + public List getIgnoredError() { + if (ignoredError == null) { + ignoredError = new ArrayList(); + } + return this.ignoredError; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTIndex.java b/src/xlsx4j/java/org/xlsx4j/sml/CTIndex.java index a08688429d..1e56e99e94 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTIndex.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTIndex.java @@ -1,72 +1,84 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Index complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Index">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Index") -public class CTIndex { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long v; - - /** - * Gets the value of the v property. - * - */ - public long getV() { - return v; - } - - /** - * Sets the value of the v property. - * - */ - public void setV(long value) { - this.v = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Index complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Index">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Index") +public class CTIndex implements Child +{ + + @XmlAttribute(name = "v", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long v; + @XmlTransient + private Object parent; + + /** + * Gets the value of the v property. + * + */ + public long getV() { + return v; + } + + /** + * Sets the value of the v property. + * + */ + public void setV(long value) { + this.v = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTIndexedColors.java b/src/xlsx4j/java/org/xlsx4j/sml/CTIndexedColors.java index bb98fb068c..2ba28ee441 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTIndexedColors.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTIndexedColors.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_IndexedColors complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_IndexedColors">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="rgbColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RgbColor" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_IndexedColors", propOrder = { - "rgbColor" -}) -public class CTIndexedColors { - - @XmlElement(required = true) - protected List rgbColor; - - /** - * Gets the value of the rgbColor property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the rgbColor property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRgbColor().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRgbColor } - * - * - */ - public List getRgbColor() { - if (rgbColor == null) { - rgbColor = new ArrayList(); - } - return this.rgbColor; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_IndexedColors complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_IndexedColors">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="rgbColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RgbColor" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_IndexedColors", propOrder = { + "rgbColor" +}) +public class CTIndexedColors implements Child +{ + + @XmlElement(required = true) + protected List rgbColor; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rgbColor property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rgbColor property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRgbColor().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTRgbColor } + * + * + */ + public List getRgbColor() { + if (rgbColor == null) { + rgbColor = new ArrayList(); + } + return this.rgbColor; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTInputCells.java b/src/xlsx4j/java/org/xlsx4j/sml/CTInputCells.java index 2de7ce4517..cbb4c62cd7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTInputCells.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTInputCells.java @@ -1,194 +1,206 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_InputCells complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_InputCells">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="undone" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_InputCells") -public class CTInputCells { - - @XmlAttribute(required = true) - protected String r; - @XmlAttribute - protected Boolean deleted; - @XmlAttribute - protected Boolean undone; - @XmlAttribute(required = true) - protected String val; - @XmlAttribute - protected Long numFmtId; - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - - /** - * Gets the value of the deleted property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDeleted() { - if (deleted == null) { - return false; - } else { - return deleted; - } - } - - /** - * Sets the value of the deleted property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDeleted(Boolean value) { - this.deleted = value; - } - - /** - * Gets the value of the undone property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUndone() { - if (undone == null) { - return false; - } else { - return undone; - } - } - - /** - * Sets the value of the undone property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUndone(Boolean value) { - this.undone = value; - } - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVal(String value) { - this.val = value; - } - - /** - * Gets the value of the numFmtId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getNumFmtId() { - return numFmtId; - } - - /** - * Sets the value of the numFmtId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNumFmtId(Long value) { - this.numFmtId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_InputCells complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_InputCells">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="undone" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_InputCells") +public class CTInputCells implements Child +{ + + @XmlAttribute(name = "r", required = true) + protected String r; + @XmlAttribute(name = "deleted") + protected Boolean deleted; + @XmlAttribute(name = "undone") + protected Boolean undone; + @XmlAttribute(name = "val", required = true) + protected String val; + @XmlAttribute(name = "numFmtId") + protected Long numFmtId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the value of the deleted property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDeleted() { + if (deleted == null) { + return false; + } else { + return deleted; + } + } + + /** + * Sets the value of the deleted property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDeleted(Boolean value) { + this.deleted = value; + } + + /** + * Gets the value of the undone property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUndone() { + if (undone == null) { + return false; + } else { + return undone; + } + } + + /** + * Sets the value of the undone property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUndone(Boolean value) { + this.undone = value; + } + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVal(String value) { + this.val = value; + } + + /** + * Gets the value of the numFmtId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getNumFmtId() { + return numFmtId; + } + + /** + * Sets the value of the numFmtId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNumFmtId(Long value) { + this.numFmtId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTIntProperty.java b/src/xlsx4j/java/org/xlsx4j/sml/CTIntProperty.java index f854a0ef3c..97d5114d55 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTIntProperty.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTIntProperty.java @@ -1,70 +1,82 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_IntProperty complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_IntProperty">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_IntProperty") -public class CTIntProperty { - - @XmlAttribute(required = true) - protected int val; - - /** - * Gets the value of the val property. - * - */ - public int getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - */ - public void setVal(int value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_IntProperty complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_IntProperty">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_IntProperty") +public class CTIntProperty implements Child +{ + + @XmlAttribute(name = "val", required = true) + protected int val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + */ + public int getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + */ + public void setVal(int value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTItem.java b/src/xlsx4j/java/org/xlsx4j/sml/CTItem.java index 0393da9302..35370ee32c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTItem.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTItem.java @@ -1,386 +1,398 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Item complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Item">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ItemType" default="data" />
- *       <attribute name="h" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sd" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="m" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="d" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="e" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Item") -public class CTItem { - - @XmlAttribute - protected String n; - @XmlAttribute - protected STItemType t; - @XmlAttribute - protected Boolean h; - @XmlAttribute - protected Boolean s; - @XmlAttribute - protected Boolean sd; - @XmlAttribute - protected Boolean f; - @XmlAttribute - protected Boolean m; - @XmlAttribute - protected Boolean c; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long x; - @XmlAttribute - protected Boolean d; - @XmlAttribute - protected Boolean e; - - /** - * Gets the value of the n property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getN() { - return n; - } - - /** - * Sets the value of the n property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setN(String value) { - this.n = value; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link STItemType } - * - */ - public STItemType getT() { - if (t == null) { - return STItemType.DATA; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link STItemType } - * - */ - public void setT(STItemType value) { - this.t = value; - } - - /** - * Gets the value of the h property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isH() { - if (h == null) { - return false; - } else { - return h; - } - } - - /** - * Sets the value of the h property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setH(Boolean value) { - this.h = value; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isS() { - if (s == null) { - return false; - } else { - return s; - } - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setS(Boolean value) { - this.s = value; - } - - /** - * Gets the value of the sd property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSd() { - if (sd == null) { - return true; - } else { - return sd; - } - } - - /** - * Sets the value of the sd property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSd(Boolean value) { - this.sd = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isF() { - if (f == null) { - return false; - } else { - return f; - } - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setF(Boolean value) { - this.f = value; - } - - /** - * Gets the value of the m property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isM() { - if (m == null) { - return false; - } else { - return m; - } - } - - /** - * Sets the value of the m property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setM(Boolean value) { - this.m = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isC() { - if (c == null) { - return false; - } else { - return c; - } - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setC(Boolean value) { - this.c = value; - } - - /** - * Gets the value of the x property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getX() { - return x; - } - - /** - * Sets the value of the x property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setX(Long value) { - this.x = value; - } - - /** - * Gets the value of the d property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isD() { - if (d == null) { - return false; - } else { - return d; - } - } - - /** - * Sets the value of the d property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setD(Boolean value) { - this.d = value; - } - - /** - * Gets the value of the e property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isE() { - if (e == null) { - return true; - } else { - return e; - } - } - - /** - * Sets the value of the e property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setE(Boolean value) { - this.e = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Item complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Item">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="n" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ItemType" default="data" />
+ *       <attribute name="h" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sd" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="m" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="d" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="e" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Item") +public class CTItem implements Child +{ + + @XmlAttribute(name = "n") + protected String n; + @XmlAttribute(name = "t") + protected STItemType t; + @XmlAttribute(name = "h") + protected Boolean h; + @XmlAttribute(name = "s") + protected Boolean s; + @XmlAttribute(name = "sd") + protected Boolean sd; + @XmlAttribute(name = "f") + protected Boolean f; + @XmlAttribute(name = "m") + protected Boolean m; + @XmlAttribute(name = "c") + protected Boolean c; + @XmlAttribute(name = "x") + @XmlSchemaType(name = "unsignedInt") + protected Long x; + @XmlAttribute(name = "d") + protected Boolean d; + @XmlAttribute(name = "e") + protected Boolean e; + @XmlTransient + private Object parent; + + /** + * Gets the value of the n property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getN() { + return n; + } + + /** + * Sets the value of the n property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setN(String value) { + this.n = value; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link STItemType } + * + */ + public STItemType getT() { + if (t == null) { + return STItemType.DATA; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link STItemType } + * + */ + public void setT(STItemType value) { + this.t = value; + } + + /** + * Gets the value of the h property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isH() { + if (h == null) { + return false; + } else { + return h; + } + } + + /** + * Sets the value of the h property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setH(Boolean value) { + this.h = value; + } + + /** + * Gets the value of the s property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isS() { + if (s == null) { + return false; + } else { + return s; + } + } + + /** + * Sets the value of the s property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setS(Boolean value) { + this.s = value; + } + + /** + * Gets the value of the sd property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSd() { + if (sd == null) { + return true; + } else { + return sd; + } + } + + /** + * Sets the value of the sd property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSd(Boolean value) { + this.sd = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isF() { + if (f == null) { + return false; + } else { + return f; + } + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setF(Boolean value) { + this.f = value; + } + + /** + * Gets the value of the m property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isM() { + if (m == null) { + return false; + } else { + return m; + } + } + + /** + * Sets the value of the m property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setM(Boolean value) { + this.m = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isC() { + if (c == null) { + return false; + } else { + return c; + } + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setC(Boolean value) { + this.c = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setX(Long value) { + this.x = value; + } + + /** + * Gets the value of the d property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isD() { + if (d == null) { + return false; + } else { + return d; + } + } + + /** + * Sets the value of the d property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setD(Boolean value) { + this.d = value; + } + + /** + * Gets the value of the e property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isE() { + if (e == null) { + return true; + } else { + return e; + } + } + + /** + * Sets the value of the e property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setE(Boolean value) { + this.e = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTItems.java index 5de75a9ab8..8324de55e8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTItems.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Items complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Items">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="item" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Item" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Items", propOrder = { - "item" -}) -public class CTItems { - - @XmlElement(required = true) - protected List item; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the item property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the item property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getItem().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTItem } - * - * - */ - public List getItem() { - if (item == null) { - item = new ArrayList(); - } - return this.item; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Items complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Items">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Item" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Items", propOrder = { + "item" +}) +public class CTItems implements Child +{ + + @XmlElement(required = true) + protected List item; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the item property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the item property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTItem } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTLegacyDrawing.java b/src/xlsx4j/java/org/xlsx4j/sml/CTLegacyDrawing.java index ab9138ddfe..cb662bbfb6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTLegacyDrawing.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTLegacyDrawing.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_LegacyDrawing complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_LegacyDrawing">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_LegacyDrawing") -public class CTLegacyDrawing { - - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_LegacyDrawing complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_LegacyDrawing">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_LegacyDrawing") +public class CTLegacyDrawing implements Child +{ + + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTLevelGroup.java b/src/xlsx4j/java/org/xlsx4j/sml/CTLevelGroup.java index b06cb77711..0eb09b5081 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTLevelGroup.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTLevelGroup.java @@ -1,218 +1,230 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_LevelGroup complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_LevelGroup">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="groupMembers" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupMembers"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="uniqueParent" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}int" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_LevelGroup", propOrder = { - "groupMembers" -}) -public class CTLevelGroup { - - @XmlElement(required = true) - protected CTGroupMembers groupMembers; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - protected String uniqueName; - @XmlAttribute(required = true) - protected String caption; - @XmlAttribute - protected String uniqueParent; - @XmlAttribute - protected Integer id; - - /** - * Gets the value of the groupMembers property. - * - * @return - * possible object is - * {@link CTGroupMembers } - * - */ - public CTGroupMembers getGroupMembers() { - return groupMembers; - } - - /** - * Sets the value of the groupMembers property. - * - * @param value - * allowed object is - * {@link CTGroupMembers } - * - */ - public void setGroupMembers(CTGroupMembers value) { - this.groupMembers = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - - /** - * Gets the value of the uniqueParent property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueParent() { - return uniqueParent; - } - - /** - * Sets the value of the uniqueParent property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueParent(String value) { - this.uniqueParent = value; - } - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setId(Integer value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_LevelGroup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_LevelGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="groupMembers" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GroupMembers"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="uniqueParent" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_LevelGroup", propOrder = { + "groupMembers" +}) +public class CTLevelGroup implements Child +{ + + @XmlElement(required = true) + protected CTGroupMembers groupMembers; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "uniqueName", required = true) + protected String uniqueName; + @XmlAttribute(name = "caption", required = true) + protected String caption; + @XmlAttribute(name = "uniqueParent") + protected String uniqueParent; + @XmlAttribute(name = "id") + protected Integer id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the groupMembers property. + * + * @return + * possible object is + * {@link CTGroupMembers } + * + */ + public CTGroupMembers getGroupMembers() { + return groupMembers; + } + + /** + * Sets the value of the groupMembers property. + * + * @param value + * allowed object is + * {@link CTGroupMembers } + * + */ + public void setGroupMembers(CTGroupMembers value) { + this.groupMembers = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the value of the uniqueParent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueParent() { + return uniqueParent; + } + + /** + * Sets the value of the uniqueParent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueParent(String value) { + this.uniqueParent = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setId(Integer value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTLocation.java b/src/xlsx4j/java/org/xlsx4j/sml/CTLocation.java index 69b6fca406..5969d76484 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTLocation.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTLocation.java @@ -1,203 +1,215 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Location complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Location">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="firstHeaderRow" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="firstDataRow" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="firstDataCol" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="rowPageCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="colPageCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Location") -public class CTLocation { - - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long firstHeaderRow; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long firstDataRow; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long firstDataCol; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long rowPageCount; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long colPageCount; - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the firstHeaderRow property. - * - */ - public long getFirstHeaderRow() { - return firstHeaderRow; - } - - /** - * Sets the value of the firstHeaderRow property. - * - */ - public void setFirstHeaderRow(long value) { - this.firstHeaderRow = value; - } - - /** - * Gets the value of the firstDataRow property. - * - */ - public long getFirstDataRow() { - return firstDataRow; - } - - /** - * Sets the value of the firstDataRow property. - * - */ - public void setFirstDataRow(long value) { - this.firstDataRow = value; - } - - /** - * Gets the value of the firstDataCol property. - * - */ - public long getFirstDataCol() { - return firstDataCol; - } - - /** - * Sets the value of the firstDataCol property. - * - */ - public void setFirstDataCol(long value) { - this.firstDataCol = value; - } - - /** - * Gets the value of the rowPageCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getRowPageCount() { - if (rowPageCount == null) { - return 0L; - } else { - return rowPageCount; - } - } - - /** - * Sets the value of the rowPageCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setRowPageCount(Long value) { - this.rowPageCount = value; - } - - /** - * Gets the value of the colPageCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getColPageCount() { - if (colPageCount == null) { - return 0L; - } else { - return colPageCount; - } - } - - /** - * Sets the value of the colPageCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setColPageCount(Long value) { - this.colPageCount = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Location complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Location">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="firstHeaderRow" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="firstDataRow" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="firstDataCol" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="rowPageCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="colPageCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Location") +public class CTLocation implements Child +{ + + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "firstHeaderRow", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long firstHeaderRow; + @XmlAttribute(name = "firstDataRow", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long firstDataRow; + @XmlAttribute(name = "firstDataCol", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long firstDataCol; + @XmlAttribute(name = "rowPageCount") + @XmlSchemaType(name = "unsignedInt") + protected Long rowPageCount; + @XmlAttribute(name = "colPageCount") + @XmlSchemaType(name = "unsignedInt") + protected Long colPageCount; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the firstHeaderRow property. + * + */ + public long getFirstHeaderRow() { + return firstHeaderRow; + } + + /** + * Sets the value of the firstHeaderRow property. + * + */ + public void setFirstHeaderRow(long value) { + this.firstHeaderRow = value; + } + + /** + * Gets the value of the firstDataRow property. + * + */ + public long getFirstDataRow() { + return firstDataRow; + } + + /** + * Sets the value of the firstDataRow property. + * + */ + public void setFirstDataRow(long value) { + this.firstDataRow = value; + } + + /** + * Gets the value of the firstDataCol property. + * + */ + public long getFirstDataCol() { + return firstDataCol; + } + + /** + * Sets the value of the firstDataCol property. + * + */ + public void setFirstDataCol(long value) { + this.firstDataCol = value; + } + + /** + * Gets the value of the rowPageCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getRowPageCount() { + if (rowPageCount == null) { + return 0L; + } else { + return rowPageCount; + } + } + + /** + * Sets the value of the rowPageCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRowPageCount(Long value) { + this.rowPageCount = value; + } + + /** + * Gets the value of the colPageCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getColPageCount() { + if (colPageCount == null) { + return 0L; + } else { + return colPageCount; + } + } + + /** + * Sets the value of the colPageCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setColPageCount(Long value) { + this.colPageCount = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMRUColors.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMRUColors.java index 9cc78ba94d..7f85113fa5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMRUColors.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMRUColors.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MRUColors complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MRUColors">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MRUColors", propOrder = { - "color" -}) -public class CTMRUColors { - - @XmlElement(required = true) - protected List color; - - /** - * Gets the value of the color property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the color property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getColor().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTColor } - * - * - */ - public List getColor() { - if (color == null) { - color = new ArrayList(); - } - return this.color; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MRUColors complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MRUColors">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MRUColors", propOrder = { + "color" +}) +public class CTMRUColors implements Child +{ + + @XmlElement(required = true) + protected List color; + @XmlTransient + private Object parent; + + /** + * Gets the value of the color property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the color property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getColor().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTColor } + * + * + */ + public List getColor() { + if (color == null) { + color = new ArrayList(); + } + return this.color; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMap.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMap.java index cd32a02c0c..e7e8e74701 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMap.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMap.java @@ -1,280 +1,292 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Map complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Map">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="DataBinding" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataBinding" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="ID" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="RootElement" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="SchemaID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="ShowImportExportValidationErrors" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="AutoFit" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="Append" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="PreserveSortAFLayout" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="PreserveFormat" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Map", propOrder = { - "dataBinding" -}) -public class CTMap { - - @XmlElement(name = "DataBinding") - protected CTDataBinding dataBinding; - @XmlAttribute(name = "ID", required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute(name = "Name", required = true) - protected String name; - @XmlAttribute(name = "RootElement", required = true) - protected String rootElement; - @XmlAttribute(name = "SchemaID", required = true) - protected String schemaID; - @XmlAttribute(name = "ShowImportExportValidationErrors", required = true) - protected boolean showImportExportValidationErrors; - @XmlAttribute(name = "AutoFit", required = true) - protected boolean autoFit; - @XmlAttribute(name = "Append", required = true) - protected boolean append; - @XmlAttribute(name = "PreserveSortAFLayout", required = true) - protected boolean preserveSortAFLayout; - @XmlAttribute(name = "PreserveFormat", required = true) - protected boolean preserveFormat; - - /** - * Gets the value of the dataBinding property. - * - * @return - * possible object is - * {@link CTDataBinding } - * - */ - public CTDataBinding getDataBinding() { - return dataBinding; - } - - /** - * Sets the value of the dataBinding property. - * - * @param value - * allowed object is - * {@link CTDataBinding } - * - */ - public void setDataBinding(CTDataBinding value) { - this.dataBinding = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getID() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setID(long value) { - this.id = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the rootElement property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRootElement() { - return rootElement; - } - - /** - * Sets the value of the rootElement property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRootElement(String value) { - this.rootElement = value; - } - - /** - * Gets the value of the schemaID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemaID() { - return schemaID; - } - - /** - * Sets the value of the schemaID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemaID(String value) { - this.schemaID = value; - } - - /** - * Gets the value of the showImportExportValidationErrors property. - * - */ - public boolean isShowImportExportValidationErrors() { - return showImportExportValidationErrors; - } - - /** - * Sets the value of the showImportExportValidationErrors property. - * - */ - public void setShowImportExportValidationErrors(boolean value) { - this.showImportExportValidationErrors = value; - } - - /** - * Gets the value of the autoFit property. - * - */ - public boolean isAutoFit() { - return autoFit; - } - - /** - * Sets the value of the autoFit property. - * - */ - public void setAutoFit(boolean value) { - this.autoFit = value; - } - - /** - * Gets the value of the append property. - * - */ - public boolean isAppend() { - return append; - } - - /** - * Sets the value of the append property. - * - */ - public void setAppend(boolean value) { - this.append = value; - } - - /** - * Gets the value of the preserveSortAFLayout property. - * - */ - public boolean isPreserveSortAFLayout() { - return preserveSortAFLayout; - } - - /** - * Sets the value of the preserveSortAFLayout property. - * - */ - public void setPreserveSortAFLayout(boolean value) { - this.preserveSortAFLayout = value; - } - - /** - * Gets the value of the preserveFormat property. - * - */ - public boolean isPreserveFormat() { - return preserveFormat; - } - - /** - * Sets the value of the preserveFormat property. - * - */ - public void setPreserveFormat(boolean value) { - this.preserveFormat = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Map complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Map">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DataBinding" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataBinding" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="ID" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="Name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="RootElement" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="SchemaID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ShowImportExportValidationErrors" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="AutoFit" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="Append" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="PreserveSortAFLayout" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="PreserveFormat" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Map", propOrder = { + "dataBinding" +}) +public class CTMap implements Child +{ + + @XmlElement(name = "DataBinding") + protected CTDataBinding dataBinding; + @XmlAttribute(name = "ID", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "Name", required = true) + protected String name; + @XmlAttribute(name = "RootElement", required = true) + protected String rootElement; + @XmlAttribute(name = "SchemaID", required = true) + protected String schemaID; + @XmlAttribute(name = "ShowImportExportValidationErrors", required = true) + protected boolean showImportExportValidationErrors; + @XmlAttribute(name = "AutoFit", required = true) + protected boolean autoFit; + @XmlAttribute(name = "Append", required = true) + protected boolean append; + @XmlAttribute(name = "PreserveSortAFLayout", required = true) + protected boolean preserveSortAFLayout; + @XmlAttribute(name = "PreserveFormat", required = true) + protected boolean preserveFormat; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dataBinding property. + * + * @return + * possible object is + * {@link CTDataBinding } + * + */ + public CTDataBinding getDataBinding() { + return dataBinding; + } + + /** + * Sets the value of the dataBinding property. + * + * @param value + * allowed object is + * {@link CTDataBinding } + * + */ + public void setDataBinding(CTDataBinding value) { + this.dataBinding = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getID() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setID(long value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the rootElement property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRootElement() { + return rootElement; + } + + /** + * Sets the value of the rootElement property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRootElement(String value) { + this.rootElement = value; + } + + /** + * Gets the value of the schemaID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemaID() { + return schemaID; + } + + /** + * Sets the value of the schemaID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemaID(String value) { + this.schemaID = value; + } + + /** + * Gets the value of the showImportExportValidationErrors property. + * + */ + public boolean isShowImportExportValidationErrors() { + return showImportExportValidationErrors; + } + + /** + * Sets the value of the showImportExportValidationErrors property. + * + */ + public void setShowImportExportValidationErrors(boolean value) { + this.showImportExportValidationErrors = value; + } + + /** + * Gets the value of the autoFit property. + * + */ + public boolean isAutoFit() { + return autoFit; + } + + /** + * Sets the value of the autoFit property. + * + */ + public void setAutoFit(boolean value) { + this.autoFit = value; + } + + /** + * Gets the value of the append property. + * + */ + public boolean isAppend() { + return append; + } + + /** + * Sets the value of the append property. + * + */ + public void setAppend(boolean value) { + this.append = value; + } + + /** + * Gets the value of the preserveSortAFLayout property. + * + */ + public boolean isPreserveSortAFLayout() { + return preserveSortAFLayout; + } + + /** + * Sets the value of the preserveSortAFLayout property. + * + */ + public void setPreserveSortAFLayout(boolean value) { + this.preserveSortAFLayout = value; + } + + /** + * Gets the value of the preserveFormat property. + * + */ + public boolean isPreserveFormat() { + return preserveFormat; + } + + /** + * Sets the value of the preserveFormat property. + * + */ + public void setPreserveFormat(boolean value) { + this.preserveFormat = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMapInfo.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMapInfo.java index 526f433243..c4c7a42b1e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMapInfo.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMapInfo.java @@ -1,150 +1,162 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MapInfo complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MapInfo">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="Schema" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Schema" maxOccurs="unbounded"/>
- *         <element name="Map" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Map" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="SelectionNamespaces" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MapInfo", propOrder = { - "schema", - "map" -}) -public class CTMapInfo { - - @XmlElement(name = "Schema", required = true) - protected List schema; - @XmlElement(name = "Map", required = true) - protected List map; - @XmlAttribute(name = "SelectionNamespaces", required = true) - protected String selectionNamespaces; - - /** - * Gets the value of the schema property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the schema property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSchema().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSchema } - * - * - */ - public List getSchema() { - if (schema == null) { - schema = new ArrayList(); - } - return this.schema; - } - - /** - * Gets the value of the map property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the map property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMap().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMap } - * - * - */ - public List getMap() { - if (map == null) { - map = new ArrayList(); - } - return this.map; - } - - /** - * Gets the value of the selectionNamespaces property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSelectionNamespaces() { - return selectionNamespaces; - } - - /** - * Sets the value of the selectionNamespaces property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSelectionNamespaces(String value) { - this.selectionNamespaces = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MapInfo complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MapInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Schema" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Schema" maxOccurs="unbounded"/>
+ *         <element name="Map" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Map" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="SelectionNamespaces" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MapInfo", propOrder = { + "schema", + "map" +}) +public class CTMapInfo implements Child +{ + + @XmlElement(name = "Schema", required = true) + protected List schema; + @XmlElement(name = "Map", required = true) + protected List map; + @XmlAttribute(name = "SelectionNamespaces", required = true) + protected String selectionNamespaces; + @XmlTransient + private Object parent; + + /** + * Gets the value of the schema property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the schema property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSchema().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSchema } + * + * + */ + public List getSchema() { + if (schema == null) { + schema = new ArrayList(); + } + return this.schema; + } + + /** + * Gets the value of the map property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the map property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMap().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMap } + * + * + */ + public List getMap() { + if (map == null) { + map = new ArrayList(); + } + return this.map; + } + + /** + * Gets the value of the selectionNamespaces property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSelectionNamespaces() { + return selectionNamespaces; + } + + /** + * Sets the value of the selectionNamespaces property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSelectionNamespaces(String value) { + this.selectionNamespaces = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMdx.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMdx.java index 39552c10c3..c5c0489576 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMdx.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMdx.java @@ -1,210 +1,222 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Mdx complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Mdx">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice>
- *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxTuple"/>
- *         <element name="ms" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxSet"/>
- *         <element name="p" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxMemeberProp"/>
- *         <element name="k" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxKPI"/>
- *       </choice>
- *       <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="f" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_MdxFunctionType" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Mdx", propOrder = { - "t", - "ms", - "p", - "k" -}) -public class CTMdx { - - protected CTMdxTuple t; - protected CTMdxSet ms; - protected CTMdxMemeberProp p; - protected CTMdxKPI k; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long n; - @XmlAttribute(required = true) - protected STMdxFunctionType f; - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link CTMdxTuple } - * - */ - public CTMdxTuple getT() { - return t; - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link CTMdxTuple } - * - */ - public void setT(CTMdxTuple value) { - this.t = value; - } - - /** - * Gets the value of the ms property. - * - * @return - * possible object is - * {@link CTMdxSet } - * - */ - public CTMdxSet getMs() { - return ms; - } - - /** - * Sets the value of the ms property. - * - * @param value - * allowed object is - * {@link CTMdxSet } - * - */ - public void setMs(CTMdxSet value) { - this.ms = value; - } - - /** - * Gets the value of the p property. - * - * @return - * possible object is - * {@link CTMdxMemeberProp } - * - */ - public CTMdxMemeberProp getP() { - return p; - } - - /** - * Sets the value of the p property. - * - * @param value - * allowed object is - * {@link CTMdxMemeberProp } - * - */ - public void setP(CTMdxMemeberProp value) { - this.p = value; - } - - /** - * Gets the value of the k property. - * - * @return - * possible object is - * {@link CTMdxKPI } - * - */ - public CTMdxKPI getK() { - return k; - } - - /** - * Sets the value of the k property. - * - * @param value - * allowed object is - * {@link CTMdxKPI } - * - */ - public void setK(CTMdxKPI value) { - this.k = value; - } - - /** - * Gets the value of the n property. - * - */ - public long getN() { - return n; - } - - /** - * Sets the value of the n property. - * - */ - public void setN(long value) { - this.n = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link STMdxFunctionType } - * - */ - public STMdxFunctionType getF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link STMdxFunctionType } - * - */ - public void setF(STMdxFunctionType value) { - this.f = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Mdx complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Mdx">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxTuple"/>
+ *         <element name="ms" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxSet"/>
+ *         <element name="p" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxMemeberProp"/>
+ *         <element name="k" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxKPI"/>
+ *       </choice>
+ *       <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="f" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_MdxFunctionType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Mdx", propOrder = { + "t", + "ms", + "p", + "k" +}) +public class CTMdx implements Child +{ + + protected CTMdxTuple t; + protected CTMdxSet ms; + protected CTMdxMemeberProp p; + protected CTMdxKPI k; + @XmlAttribute(name = "n", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long n; + @XmlAttribute(name = "f", required = true) + protected STMdxFunctionType f; + @XmlTransient + private Object parent; + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link CTMdxTuple } + * + */ + public CTMdxTuple getT() { + return t; + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link CTMdxTuple } + * + */ + public void setT(CTMdxTuple value) { + this.t = value; + } + + /** + * Gets the value of the ms property. + * + * @return + * possible object is + * {@link CTMdxSet } + * + */ + public CTMdxSet getMs() { + return ms; + } + + /** + * Sets the value of the ms property. + * + * @param value + * allowed object is + * {@link CTMdxSet } + * + */ + public void setMs(CTMdxSet value) { + this.ms = value; + } + + /** + * Gets the value of the p property. + * + * @return + * possible object is + * {@link CTMdxMemeberProp } + * + */ + public CTMdxMemeberProp getP() { + return p; + } + + /** + * Sets the value of the p property. + * + * @param value + * allowed object is + * {@link CTMdxMemeberProp } + * + */ + public void setP(CTMdxMemeberProp value) { + this.p = value; + } + + /** + * Gets the value of the k property. + * + * @return + * possible object is + * {@link CTMdxKPI } + * + */ + public CTMdxKPI getK() { + return k; + } + + /** + * Sets the value of the k property. + * + * @param value + * allowed object is + * {@link CTMdxKPI } + * + */ + public void setK(CTMdxKPI value) { + this.k = value; + } + + /** + * Gets the value of the n property. + * + */ + public long getN() { + return n; + } + + /** + * Sets the value of the n property. + * + */ + public void setN(long value) { + this.n = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link STMdxFunctionType } + * + */ + public STMdxFunctionType getF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link STMdxFunctionType } + * + */ + public void setF(STMdxFunctionType value) { + this.f = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxKPI.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxKPI.java index 225e16f98d..250b70c3bd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxKPI.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxKPI.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MdxKPI complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MdxKPI">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="np" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="p" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_MdxKPIProperty" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MdxKPI") -public class CTMdxKPI { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long n; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long np; - @XmlAttribute(required = true) - protected STMdxKPIProperty p; - - /** - * Gets the value of the n property. - * - */ - public long getN() { - return n; - } - - /** - * Sets the value of the n property. - * - */ - public void setN(long value) { - this.n = value; - } - - /** - * Gets the value of the np property. - * - */ - public long getNp() { - return np; - } - - /** - * Sets the value of the np property. - * - */ - public void setNp(long value) { - this.np = value; - } - - /** - * Gets the value of the p property. - * - * @return - * possible object is - * {@link STMdxKPIProperty } - * - */ - public STMdxKPIProperty getP() { - return p; - } - - /** - * Sets the value of the p property. - * - * @param value - * allowed object is - * {@link STMdxKPIProperty } - * - */ - public void setP(STMdxKPIProperty value) { - this.p = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MdxKPI complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MdxKPI">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="np" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="p" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_MdxKPIProperty" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MdxKPI") +public class CTMdxKPI implements Child +{ + + @XmlAttribute(name = "n", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long n; + @XmlAttribute(name = "np", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long np; + @XmlAttribute(name = "p", required = true) + protected STMdxKPIProperty p; + @XmlTransient + private Object parent; + + /** + * Gets the value of the n property. + * + */ + public long getN() { + return n; + } + + /** + * Sets the value of the n property. + * + */ + public void setN(long value) { + this.n = value; + } + + /** + * Gets the value of the np property. + * + */ + public long getNp() { + return np; + } + + /** + * Sets the value of the np property. + * + */ + public void setNp(long value) { + this.np = value; + } + + /** + * Gets the value of the p property. + * + * @return + * possible object is + * {@link STMdxKPIProperty } + * + */ + public STMdxKPIProperty getP() { + return p; + } + + /** + * Sets the value of the p property. + * + * @param value + * allowed object is + * {@link STMdxKPIProperty } + * + */ + public void setP(STMdxKPIProperty value) { + this.p = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMemeberProp.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMemeberProp.java index ed525c81a7..4cc75c64b7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMemeberProp.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMemeberProp.java @@ -1,92 +1,104 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MdxMemeberProp complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MdxMemeberProp">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="np" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MdxMemeberProp") -public class CTMdxMemeberProp { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long n; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long np; - - /** - * Gets the value of the n property. - * - */ - public long getN() { - return n; - } - - /** - * Sets the value of the n property. - * - */ - public void setN(long value) { - this.n = value; - } - - /** - * Gets the value of the np property. - * - */ - public long getNp() { - return np; - } - - /** - * Sets the value of the np property. - * - */ - public void setNp(long value) { - this.np = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MdxMemeberProp complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MdxMemeberProp">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="n" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="np" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MdxMemeberProp") +public class CTMdxMemeberProp implements Child +{ + + @XmlAttribute(name = "n", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long n; + @XmlAttribute(name = "np", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long np; + @XmlTransient + private Object parent; + + /** + * Gets the value of the n property. + * + */ + public long getN() { + return n; + } + + /** + * Sets the value of the n property. + * + */ + public void setN(long value) { + this.n = value; + } + + /** + * Gets the value of the np property. + * + */ + public long getNp() { + return np; + } + + /** + * Sets the value of the np property. + * + */ + public void setNp(long value) { + this.np = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMetadata.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMetadata.java index dbb7673548..e5ac1cf087 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMetadata.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxMetadata.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MdxMetadata complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MdxMetadata">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="mdx" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Mdx" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MdxMetadata", propOrder = { - "mdx" -}) -public class CTMdxMetadata { - - @XmlElement(required = true) - protected List mdx; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the mdx property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mdx property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMdx().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMdx } - * - * - */ - public List getMdx() { - if (mdx == null) { - mdx = new ArrayList(); - } - return this.mdx; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MdxMetadata complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MdxMetadata">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mdx" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Mdx" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MdxMetadata", propOrder = { + "mdx" +}) +public class CTMdxMetadata implements Child +{ + + @XmlElement(required = true) + protected List mdx; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mdx property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mdx property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMdx().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMdx } + * + * + */ + public List getMdx() { + if (mdx == null) { + mdx = new ArrayList(); + } + return this.mdx; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxSet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxSet.java index e24a787556..02f5f3b933 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxSet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxSet.java @@ -1,172 +1,184 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MdxSet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MdxSet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataStringIndex" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="ns" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="o" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_MdxSetOrder" default="u" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MdxSet", propOrder = { - "n" -}) -public class CTMdxSet { - - protected List n; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long ns; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long c; - @XmlAttribute - protected STMdxSetOrder o; - - /** - * Gets the value of the n property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the n property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getN().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMetadataStringIndex } - * - * - */ - public List getN() { - if (n == null) { - n = new ArrayList(); - } - return this.n; - } - - /** - * Gets the value of the ns property. - * - */ - public long getNs() { - return ns; - } - - /** - * Sets the value of the ns property. - * - */ - public void setNs(long value) { - this.ns = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getC() { - if (c == null) { - return 0L; - } else { - return c; - } - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setC(Long value) { - this.c = value; - } - - /** - * Gets the value of the o property. - * - * @return - * possible object is - * {@link STMdxSetOrder } - * - */ - public STMdxSetOrder getO() { - if (o == null) { - return STMdxSetOrder.U; - } else { - return o; - } - } - - /** - * Sets the value of the o property. - * - * @param value - * allowed object is - * {@link STMdxSetOrder } - * - */ - public void setO(STMdxSetOrder value) { - this.o = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MdxSet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MdxSet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataStringIndex" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="ns" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="o" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_MdxSetOrder" default="u" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MdxSet", propOrder = { + "n" +}) +public class CTMdxSet implements Child +{ + + protected List n; + @XmlAttribute(name = "ns", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long ns; + @XmlAttribute(name = "c") + @XmlSchemaType(name = "unsignedInt") + protected Long c; + @XmlAttribute(name = "o") + protected STMdxSetOrder o; + @XmlTransient + private Object parent; + + /** + * Gets the value of the n property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the n property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getN().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMetadataStringIndex } + * + * + */ + public List getN() { + if (n == null) { + n = new ArrayList(); + } + return this.n; + } + + /** + * Gets the value of the ns property. + * + */ + public long getNs() { + return ns; + } + + /** + * Sets the value of the ns property. + * + */ + public void setNs(long value) { + this.ns = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getC() { + if (c == null) { + return 0L; + } else { + return c; + } + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setC(Long value) { + this.c = value; + } + + /** + * Gets the value of the o property. + * + * @return + * possible object is + * {@link STMdxSetOrder } + * + */ + public STMdxSetOrder getO() { + if (o == null) { + return STMdxSetOrder.U; + } else { + return o; + } + } + + /** + * Sets the value of the o property. + * + * @param value + * allowed object is + * {@link STMdxSetOrder } + * + */ + public void setO(STMdxSetOrder value) { + this.o = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxTuple.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxTuple.java index 1064613edb..21f5876932 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMdxTuple.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMdxTuple.java @@ -1,386 +1,398 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_MdxTuple complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MdxTuple">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataStringIndex" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="ct" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="si" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="fi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MdxTuple", propOrder = { - "n" -}) -public class CTMdxTuple { - - protected List n; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long c; - @XmlAttribute - protected String ct; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long si; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long fi; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] bc; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] fc; - @XmlAttribute - protected Boolean i; - @XmlAttribute - protected Boolean u; - @XmlAttribute - protected Boolean st; - @XmlAttribute - protected Boolean b; - - /** - * Gets the value of the n property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the n property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getN().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMetadataStringIndex } - * - * - */ - public List getN() { - if (n == null) { - n = new ArrayList(); - } - return this.n; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getC() { - if (c == null) { - return 0L; - } else { - return c; - } - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setC(Long value) { - this.c = value; - } - - /** - * Gets the value of the ct property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCt() { - return ct; - } - - /** - * Sets the value of the ct property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCt(String value) { - this.ct = value; - } - - /** - * Gets the value of the si property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getSi() { - return si; - } - - /** - * Sets the value of the si property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setSi(Long value) { - this.si = value; - } - - /** - * Gets the value of the fi property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getFi() { - return fi; - } - - /** - * Sets the value of the fi property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFi(Long value) { - this.fi = value; - } - - /** - * Gets the value of the bc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getBc() { - return bc; - } - - /** - * Sets the value of the bc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBc(byte[] value) { - this.bc = ((byte[]) value); - } - - /** - * Gets the value of the fc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getFc() { - return fc; - } - - /** - * Sets the value of the fc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFc(byte[] value) { - this.fc = ((byte[]) value); - } - - /** - * Gets the value of the i property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isI() { - if (i == null) { - return false; - } else { - return i; - } - } - - /** - * Sets the value of the i property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setI(Boolean value) { - this.i = value; - } - - /** - * Gets the value of the u property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isU() { - if (u == null) { - return false; - } else { - return u; - } - } - - /** - * Sets the value of the u property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setU(Boolean value) { - this.u = value; - } - - /** - * Gets the value of the st property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSt() { - if (st == null) { - return false; - } else { - return st; - } - } - - /** - * Sets the value of the st property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSt(Boolean value) { - this.st = value; - } - - /** - * Gets the value of the b property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isB() { - if (b == null) { - return false; - } else { - return b; - } - } - - /** - * Sets the value of the b property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setB(Boolean value) { - this.b = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MdxTuple complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MdxTuple">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataStringIndex" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="ct" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="si" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="fi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MdxTuple", propOrder = { + "n" +}) +public class CTMdxTuple implements Child +{ + + protected List n; + @XmlAttribute(name = "c") + @XmlSchemaType(name = "unsignedInt") + protected Long c; + @XmlAttribute(name = "ct") + protected String ct; + @XmlAttribute(name = "si") + @XmlSchemaType(name = "unsignedInt") + protected Long si; + @XmlAttribute(name = "fi") + @XmlSchemaType(name = "unsignedInt") + protected Long fi; + @XmlAttribute(name = "bc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] bc; + @XmlAttribute(name = "fc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] fc; + @XmlAttribute(name = "i") + protected Boolean i; + @XmlAttribute(name = "u") + protected Boolean u; + @XmlAttribute(name = "st") + protected Boolean st; + @XmlAttribute(name = "b") + protected Boolean b; + @XmlTransient + private Object parent; + + /** + * Gets the value of the n property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the n property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getN().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMetadataStringIndex } + * + * + */ + public List getN() { + if (n == null) { + n = new ArrayList(); + } + return this.n; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getC() { + if (c == null) { + return 0L; + } else { + return c; + } + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setC(Long value) { + this.c = value; + } + + /** + * Gets the value of the ct property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCt() { + return ct; + } + + /** + * Sets the value of the ct property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCt(String value) { + this.ct = value; + } + + /** + * Gets the value of the si property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSi() { + return si; + } + + /** + * Sets the value of the si property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSi(Long value) { + this.si = value; + } + + /** + * Gets the value of the fi property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFi() { + return fi; + } + + /** + * Sets the value of the fi property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFi(Long value) { + this.fi = value; + } + + /** + * Gets the value of the bc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getBc() { + return bc; + } + + /** + * Sets the value of the bc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBc(byte[] value) { + this.bc = value; + } + + /** + * Gets the value of the fc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getFc() { + return fc; + } + + /** + * Sets the value of the fc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFc(byte[] value) { + this.fc = value; + } + + /** + * Gets the value of the i property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isI() { + if (i == null) { + return false; + } else { + return i; + } + } + + /** + * Sets the value of the i property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setI(Boolean value) { + this.i = value; + } + + /** + * Gets the value of the u property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isU() { + if (u == null) { + return false; + } else { + return u; + } + } + + /** + * Sets the value of the u property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setU(Boolean value) { + this.u = value; + } + + /** + * Gets the value of the st property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSt() { + if (st == null) { + return false; + } else { + return st; + } + } + + /** + * Sets the value of the st property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSt(Boolean value) { + this.st = value; + } + + /** + * Gets the value of the b property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isB() { + if (b == null) { + return false; + } else { + return b; + } + } + + /** + * Sets the value of the b property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setB(Boolean value) { + this.b = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMap.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMap.java index 5585750f98..a07cc93f21 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMap.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMap.java @@ -1,108 +1,120 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MeasureDimensionMap complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MeasureDimensionMap">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="measureGroup" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="dimension" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MeasureDimensionMap") -public class CTMeasureDimensionMap { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long measureGroup; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long dimension; - - /** - * Gets the value of the measureGroup property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getMeasureGroup() { - return measureGroup; - } - - /** - * Sets the value of the measureGroup property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMeasureGroup(Long value) { - this.measureGroup = value; - } - - /** - * Gets the value of the dimension property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDimension() { - return dimension; - } - - /** - * Sets the value of the dimension property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDimension(Long value) { - this.dimension = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MeasureDimensionMap complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MeasureDimensionMap">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="measureGroup" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="dimension" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MeasureDimensionMap") +public class CTMeasureDimensionMap implements Child +{ + + @XmlAttribute(name = "measureGroup") + @XmlSchemaType(name = "unsignedInt") + protected Long measureGroup; + @XmlAttribute(name = "dimension") + @XmlSchemaType(name = "unsignedInt") + protected Long dimension; + @XmlTransient + private Object parent; + + /** + * Gets the value of the measureGroup property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMeasureGroup() { + return measureGroup; + } + + /** + * Sets the value of the measureGroup property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMeasureGroup(Long value) { + this.measureGroup = value; + } + + /** + * Gets the value of the dimension property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDimension() { + return dimension; + } + + /** + * Sets the value of the dimension property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDimension(Long value) { + this.dimension = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMaps.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMaps.java index 368518a0b4..8293a20b77 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMaps.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureDimensionMaps.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MeasureDimensionMaps complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MeasureDimensionMaps">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="map" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureDimensionMap" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MeasureDimensionMaps", propOrder = { - "map" -}) -public class CTMeasureDimensionMaps { - - protected List map; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the map property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the map property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMap().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMeasureDimensionMap } - * - * - */ - public List getMap() { - if (map == null) { - map = new ArrayList(); - } - return this.map; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MeasureDimensionMaps complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MeasureDimensionMaps">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="map" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureDimensionMap" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MeasureDimensionMaps", propOrder = { + "map" +}) +public class CTMeasureDimensionMaps implements Child +{ + + protected List map; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the map property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the map property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMap().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMeasureDimensionMap } + * + * + */ + public List getMap() { + if (map == null) { + map = new ArrayList(); + } + return this.map; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroup.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroup.java index 6e3ac64781..5345cecb3c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroup.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroup.java @@ -1,105 +1,117 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MeasureGroup complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MeasureGroup">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MeasureGroup") -public class CTMeasureGroup { - - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - protected String caption; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MeasureGroup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MeasureGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MeasureGroup") +public class CTMeasureGroup implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "caption", required = true) + protected String caption; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroups.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroups.java index c83e87f4d6..e5abbe9b9c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroups.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMeasureGroups.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MeasureGroups complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MeasureGroups">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="measureGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureGroup" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MeasureGroups", propOrder = { - "measureGroup" -}) -public class CTMeasureGroups { - - protected List measureGroup; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the measureGroup property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the measureGroup property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMeasureGroup().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMeasureGroup } - * - * - */ - public List getMeasureGroup() { - if (measureGroup == null) { - measureGroup = new ArrayList(); - } - return this.measureGroup; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MeasureGroups complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MeasureGroups">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="measureGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureGroup" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MeasureGroups", propOrder = { + "measureGroup" +}) +public class CTMeasureGroups implements Child +{ + + protected List measureGroup; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the measureGroup property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the measureGroup property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMeasureGroup().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMeasureGroup } + * + * + */ + public List getMeasureGroup() { + if (measureGroup == null) { + measureGroup = new ArrayList(); + } + return this.measureGroup; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMember.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMember.java index 1d8a86d5a2..0883fca597 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMember.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMember.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Member complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Member">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Member") -public class CTMember { - - @XmlAttribute(required = true) - protected String name; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Member complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Member">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Member") +public class CTMember implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperties.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperties.java index a28df8833d..bb9b2a8a1c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperties.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperties.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MemberProperties complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MemberProperties">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="mp" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MemberProperty" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MemberProperties", propOrder = { - "mp" -}) -public class CTMemberProperties { - - @XmlElement(required = true) - protected List mp; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the mp property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mp property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMp().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMemberProperty } - * - * - */ - public List getMp() { - if (mp == null) { - mp = new ArrayList(); - } - return this.mp; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MemberProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MemberProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mp" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MemberProperty" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MemberProperties", propOrder = { + "mp" +}) +public class CTMemberProperties implements Child +{ + + @XmlElement(required = true) + protected List mp; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mp property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mp property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMp().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMemberProperty } + * + * + */ + public List getMp() { + if (mp == null) { + mp = new ArrayList(); + } + return this.mp; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperty.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperty.java index e918d8aa41..4597e4f347 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperty.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMemberProperty.java @@ -1,304 +1,316 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MemberProperty complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MemberProperty">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="showCell" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showTip" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showAsCaption" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="nameLen" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="pPos" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="pLen" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="field" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MemberProperty") -public class CTMemberProperty { - - @XmlAttribute - protected String name; - @XmlAttribute - protected Boolean showCell; - @XmlAttribute - protected Boolean showTip; - @XmlAttribute - protected Boolean showAsCaption; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long nameLen; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long pPos; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long pLen; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long level; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long field; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the showCell property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowCell() { - if (showCell == null) { - return false; - } else { - return showCell; - } - } - - /** - * Sets the value of the showCell property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowCell(Boolean value) { - this.showCell = value; - } - - /** - * Gets the value of the showTip property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowTip() { - if (showTip == null) { - return false; - } else { - return showTip; - } - } - - /** - * Sets the value of the showTip property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowTip(Boolean value) { - this.showTip = value; - } - - /** - * Gets the value of the showAsCaption property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowAsCaption() { - if (showAsCaption == null) { - return false; - } else { - return showAsCaption; - } - } - - /** - * Sets the value of the showAsCaption property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowAsCaption(Boolean value) { - this.showAsCaption = value; - } - - /** - * Gets the value of the nameLen property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getNameLen() { - return nameLen; - } - - /** - * Sets the value of the nameLen property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNameLen(Long value) { - this.nameLen = value; - } - - /** - * Gets the value of the pPos property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getPPos() { - return pPos; - } - - /** - * Sets the value of the pPos property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPPos(Long value) { - this.pPos = value; - } - - /** - * Gets the value of the pLen property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getPLen() { - return pLen; - } - - /** - * Sets the value of the pLen property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPLen(Long value) { - this.pLen = value; - } - - /** - * Gets the value of the level property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getLevel() { - return level; - } - - /** - * Sets the value of the level property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setLevel(Long value) { - this.level = value; - } - - /** - * Gets the value of the field property. - * - */ - public long getField() { - return field; - } - - /** - * Sets the value of the field property. - * - */ - public void setField(long value) { - this.field = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MemberProperty complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MemberProperty">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="showCell" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showTip" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showAsCaption" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="nameLen" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="pPos" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="pLen" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="field" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MemberProperty") +public class CTMemberProperty implements Child +{ + + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "showCell") + protected Boolean showCell; + @XmlAttribute(name = "showTip") + protected Boolean showTip; + @XmlAttribute(name = "showAsCaption") + protected Boolean showAsCaption; + @XmlAttribute(name = "nameLen") + @XmlSchemaType(name = "unsignedInt") + protected Long nameLen; + @XmlAttribute(name = "pPos") + @XmlSchemaType(name = "unsignedInt") + protected Long pPos; + @XmlAttribute(name = "pLen") + @XmlSchemaType(name = "unsignedInt") + protected Long pLen; + @XmlAttribute(name = "level") + @XmlSchemaType(name = "unsignedInt") + protected Long level; + @XmlAttribute(name = "field", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long field; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the showCell property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowCell() { + if (showCell == null) { + return false; + } else { + return showCell; + } + } + + /** + * Sets the value of the showCell property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowCell(Boolean value) { + this.showCell = value; + } + + /** + * Gets the value of the showTip property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowTip() { + if (showTip == null) { + return false; + } else { + return showTip; + } + } + + /** + * Sets the value of the showTip property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowTip(Boolean value) { + this.showTip = value; + } + + /** + * Gets the value of the showAsCaption property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowAsCaption() { + if (showAsCaption == null) { + return false; + } else { + return showAsCaption; + } + } + + /** + * Sets the value of the showAsCaption property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowAsCaption(Boolean value) { + this.showAsCaption = value; + } + + /** + * Gets the value of the nameLen property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getNameLen() { + return nameLen; + } + + /** + * Sets the value of the nameLen property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNameLen(Long value) { + this.nameLen = value; + } + + /** + * Gets the value of the pPos property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getPPos() { + return pPos; + } + + /** + * Sets the value of the pPos property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPPos(Long value) { + this.pPos = value; + } + + /** + * Gets the value of the pLen property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getPLen() { + return pLen; + } + + /** + * Sets the value of the pLen property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPLen(Long value) { + this.pLen = value; + } + + /** + * Gets the value of the level property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLevel() { + return level; + } + + /** + * Sets the value of the level property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLevel(Long value) { + this.level = value; + } + + /** + * Gets the value of the field property. + * + */ + public long getField() { + return field; + } + + /** + * Sets the value of the field property. + * + */ + public void setField(long value) { + this.field = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMembers.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMembers.java index afbc5371b7..87e92c7e5a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMembers.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMembers.java @@ -1,147 +1,159 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Members complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Members">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="member" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Member" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Members", propOrder = { - "member" -}) -public class CTMembers { - - @XmlElement(required = true) - protected List member; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long level; - - /** - * Gets the value of the member property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the member property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMember().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMember } - * - * - */ - public List getMember() { - if (member == null) { - member = new ArrayList(); - } - return this.member; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the level property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getLevel() { - return level; - } - - /** - * Sets the value of the level property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setLevel(Long value) { - this.level = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Members complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Members">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="member" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Member" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Members", propOrder = { + "member" +}) +public class CTMembers implements Child +{ + + @XmlElement(required = true) + protected List member; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "level") + @XmlSchemaType(name = "unsignedInt") + protected Long level; + @XmlTransient + private Object parent; + + /** + * Gets the value of the member property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the member property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMember().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMember } + * + * + */ + public List getMember() { + if (member == null) { + member = new ArrayList(); + } + return this.member; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the level property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLevel() { + return level; + } + + /** + * Sets the value of the level property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLevel(Long value) { + this.level = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCell.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCell.java index ec2fb5789b..0025c96255 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCell.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCell.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MergeCell complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MergeCell">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MergeCell") -public class CTMergeCell { - - @XmlAttribute(required = true) - protected String ref; - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MergeCell complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MergeCell">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MergeCell") +public class CTMergeCell implements Child +{ + + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCells.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCells.java index c59bb00b30..59d56b31ad 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCells.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMergeCells.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MergeCells complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MergeCells">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="mergeCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MergeCell" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MergeCells", propOrder = { - "mergeCell" -}) -public class CTMergeCells { - - @XmlElement(required = true) - protected List mergeCell; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the mergeCell property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mergeCell property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMergeCell().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMergeCell } - * - * - */ - public List getMergeCell() { - if (mergeCell == null) { - mergeCell = new ArrayList(); - } - return this.mergeCell; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MergeCells complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MergeCells">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mergeCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MergeCell" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MergeCells", propOrder = { + "mergeCell" +}) +public class CTMergeCells implements Child +{ + + @XmlElement(required = true) + protected List mergeCell; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mergeCell property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mergeCell property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMergeCell().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMergeCell } + * + * + */ + public List getMergeCell() { + if (mergeCell == null) { + mergeCell = new ArrayList(); + } + return this.mergeCell; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadata.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadata.java index 8cd5ee5bbf..2789fb06df 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadata.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadata.java @@ -1,249 +1,261 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Metadata complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Metadata">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="metadataTypes" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataTypes" minOccurs="0"/>
- *         <element name="metadataStrings" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataStrings" minOccurs="0"/>
- *         <element name="mdxMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxMetadata" minOccurs="0"/>
- *         <element name="futureMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FutureMetadata" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="cellMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataBlocks" minOccurs="0"/>
- *         <element name="valueMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataBlocks" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Metadata", propOrder = { - "metadataTypes", - "metadataStrings", - "mdxMetadata", - "futureMetadata", - "cellMetadata", - "valueMetadata", - "extLst" -}) -public class CTMetadata { - - protected CTMetadataTypes metadataTypes; - protected CTMetadataStrings metadataStrings; - protected CTMdxMetadata mdxMetadata; - protected List futureMetadata; - protected CTMetadataBlocks cellMetadata; - protected CTMetadataBlocks valueMetadata; - protected CTExtensionList extLst; - - /** - * Gets the value of the metadataTypes property. - * - * @return - * possible object is - * {@link CTMetadataTypes } - * - */ - public CTMetadataTypes getMetadataTypes() { - return metadataTypes; - } - - /** - * Sets the value of the metadataTypes property. - * - * @param value - * allowed object is - * {@link CTMetadataTypes } - * - */ - public void setMetadataTypes(CTMetadataTypes value) { - this.metadataTypes = value; - } - - /** - * Gets the value of the metadataStrings property. - * - * @return - * possible object is - * {@link CTMetadataStrings } - * - */ - public CTMetadataStrings getMetadataStrings() { - return metadataStrings; - } - - /** - * Sets the value of the metadataStrings property. - * - * @param value - * allowed object is - * {@link CTMetadataStrings } - * - */ - public void setMetadataStrings(CTMetadataStrings value) { - this.metadataStrings = value; - } - - /** - * Gets the value of the mdxMetadata property. - * - * @return - * possible object is - * {@link CTMdxMetadata } - * - */ - public CTMdxMetadata getMdxMetadata() { - return mdxMetadata; - } - - /** - * Sets the value of the mdxMetadata property. - * - * @param value - * allowed object is - * {@link CTMdxMetadata } - * - */ - public void setMdxMetadata(CTMdxMetadata value) { - this.mdxMetadata = value; - } - - /** - * Gets the value of the futureMetadata property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the futureMetadata property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFutureMetadata().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFutureMetadata } - * - * - */ - public List getFutureMetadata() { - if (futureMetadata == null) { - futureMetadata = new ArrayList(); - } - return this.futureMetadata; - } - - /** - * Gets the value of the cellMetadata property. - * - * @return - * possible object is - * {@link CTMetadataBlocks } - * - */ - public CTMetadataBlocks getCellMetadata() { - return cellMetadata; - } - - /** - * Sets the value of the cellMetadata property. - * - * @param value - * allowed object is - * {@link CTMetadataBlocks } - * - */ - public void setCellMetadata(CTMetadataBlocks value) { - this.cellMetadata = value; - } - - /** - * Gets the value of the valueMetadata property. - * - * @return - * possible object is - * {@link CTMetadataBlocks } - * - */ - public CTMetadataBlocks getValueMetadata() { - return valueMetadata; - } - - /** - * Sets the value of the valueMetadata property. - * - * @param value - * allowed object is - * {@link CTMetadataBlocks } - * - */ - public void setValueMetadata(CTMetadataBlocks value) { - this.valueMetadata = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Metadata complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Metadata">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="metadataTypes" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataTypes" minOccurs="0"/>
+ *         <element name="metadataStrings" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataStrings" minOccurs="0"/>
+ *         <element name="mdxMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MdxMetadata" minOccurs="0"/>
+ *         <element name="futureMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FutureMetadata" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="cellMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataBlocks" minOccurs="0"/>
+ *         <element name="valueMetadata" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataBlocks" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Metadata", propOrder = { + "metadataTypes", + "metadataStrings", + "mdxMetadata", + "futureMetadata", + "cellMetadata", + "valueMetadata", + "extLst" +}) +public class CTMetadata implements Child +{ + + protected CTMetadataTypes metadataTypes; + protected CTMetadataStrings metadataStrings; + protected CTMdxMetadata mdxMetadata; + protected List futureMetadata; + protected CTMetadataBlocks cellMetadata; + protected CTMetadataBlocks valueMetadata; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the metadataTypes property. + * + * @return + * possible object is + * {@link CTMetadataTypes } + * + */ + public CTMetadataTypes getMetadataTypes() { + return metadataTypes; + } + + /** + * Sets the value of the metadataTypes property. + * + * @param value + * allowed object is + * {@link CTMetadataTypes } + * + */ + public void setMetadataTypes(CTMetadataTypes value) { + this.metadataTypes = value; + } + + /** + * Gets the value of the metadataStrings property. + * + * @return + * possible object is + * {@link CTMetadataStrings } + * + */ + public CTMetadataStrings getMetadataStrings() { + return metadataStrings; + } + + /** + * Sets the value of the metadataStrings property. + * + * @param value + * allowed object is + * {@link CTMetadataStrings } + * + */ + public void setMetadataStrings(CTMetadataStrings value) { + this.metadataStrings = value; + } + + /** + * Gets the value of the mdxMetadata property. + * + * @return + * possible object is + * {@link CTMdxMetadata } + * + */ + public CTMdxMetadata getMdxMetadata() { + return mdxMetadata; + } + + /** + * Sets the value of the mdxMetadata property. + * + * @param value + * allowed object is + * {@link CTMdxMetadata } + * + */ + public void setMdxMetadata(CTMdxMetadata value) { + this.mdxMetadata = value; + } + + /** + * Gets the value of the futureMetadata property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the futureMetadata property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFutureMetadata().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFutureMetadata } + * + * + */ + public List getFutureMetadata() { + if (futureMetadata == null) { + futureMetadata = new ArrayList(); + } + return this.futureMetadata; + } + + /** + * Gets the value of the cellMetadata property. + * + * @return + * possible object is + * {@link CTMetadataBlocks } + * + */ + public CTMetadataBlocks getCellMetadata() { + return cellMetadata; + } + + /** + * Sets the value of the cellMetadata property. + * + * @param value + * allowed object is + * {@link CTMetadataBlocks } + * + */ + public void setCellMetadata(CTMetadataBlocks value) { + this.cellMetadata = value; + } + + /** + * Gets the value of the valueMetadata property. + * + * @return + * possible object is + * {@link CTMetadataBlocks } + * + */ + public CTMetadataBlocks getValueMetadata() { + return valueMetadata; + } + + /** + * Sets the value of the valueMetadata property. + * + * @param value + * allowed object is + * {@link CTMetadataBlocks } + * + */ + public void setValueMetadata(CTMetadataBlocks value) { + this.valueMetadata = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlock.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlock.java index e88cc48802..9f653aafe6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlock.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlock.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MetadataBlock complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MetadataBlock">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="rc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataRecord" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MetadataBlock", propOrder = { - "rc" -}) -public class CTMetadataBlock { - - @XmlElement(required = true) - protected List rc; - - /** - * Gets the value of the rc property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the rc property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRc().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMetadataRecord } - * - * - */ - public List getRc() { - if (rc == null) { - rc = new ArrayList(); - } - return this.rc; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MetadataBlock complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MetadataBlock">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="rc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataRecord" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MetadataBlock", propOrder = { + "rc" +}) +public class CTMetadataBlock implements Child +{ + + @XmlElement(required = true) + protected List rc; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rc property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rc property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRc().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMetadataRecord } + * + * + */ + public List getRc() { + if (rc == null) { + rc = new ArrayList(); + } + return this.rc; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlocks.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlocks.java index 33b5745924..3f097fb4d5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlocks.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataBlocks.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MetadataBlocks complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MetadataBlocks">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="bk" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataBlock" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MetadataBlocks", propOrder = { - "bk" -}) -public class CTMetadataBlocks { - - @XmlElement(required = true) - protected List bk; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the bk property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the bk property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getBk().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMetadataBlock } - * - * - */ - public List getBk() { - if (bk == null) { - bk = new ArrayList(); - } - return this.bk; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MetadataBlocks complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MetadataBlocks">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="bk" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataBlock" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MetadataBlocks", propOrder = { + "bk" +}) +public class CTMetadataBlocks implements Child +{ + + @XmlElement(required = true) + protected List bk; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the bk property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the bk property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getBk().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMetadataBlock } + * + * + */ + public List getBk() { + if (bk == null) { + bk = new ArrayList(); + } + return this.bk; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataRecord.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataRecord.java index f22c490b35..dde9adf8be 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataRecord.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataRecord.java @@ -1,92 +1,104 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MetadataRecord complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MetadataRecord">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="t" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MetadataRecord") -public class CTMetadataRecord { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long t; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long v; - - /** - * Gets the value of the t property. - * - */ - public long getT() { - return t; - } - - /** - * Sets the value of the t property. - * - */ - public void setT(long value) { - this.t = value; - } - - /** - * Gets the value of the v property. - * - */ - public long getV() { - return v; - } - - /** - * Sets the value of the v property. - * - */ - public void setV(long value) { - this.v = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MetadataRecord complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MetadataRecord">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="t" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MetadataRecord") +public class CTMetadataRecord implements Child +{ + + @XmlAttribute(name = "t", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long t; + @XmlAttribute(name = "v", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long v; + @XmlTransient + private Object parent; + + /** + * Gets the value of the t property. + * + */ + public long getT() { + return t; + } + + /** + * Sets the value of the t property. + * + */ + public void setT(long value) { + this.t = value; + } + + /** + * Gets the value of the v property. + * + */ + public long getV() { + return v; + } + + /** + * Sets the value of the v property. + * + */ + public void setV(long value) { + this.v = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStringIndex.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStringIndex.java index 9c17e95b6b..97b410df3d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStringIndex.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStringIndex.java @@ -1,103 +1,115 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MetadataStringIndex complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MetadataStringIndex">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MetadataStringIndex") -public class CTMetadataStringIndex { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long x; - @XmlAttribute - protected Boolean s; - - /** - * Gets the value of the x property. - * - */ - public long getX() { - return x; - } - - /** - * Sets the value of the x property. - * - */ - public void setX(long value) { - this.x = value; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isS() { - if (s == null) { - return false; - } else { - return s; - } - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setS(Boolean value) { - this.s = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MetadataStringIndex complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MetadataStringIndex">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="x" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MetadataStringIndex") +public class CTMetadataStringIndex implements Child +{ + + @XmlAttribute(name = "x", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long x; + @XmlAttribute(name = "s") + protected Boolean s; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + */ + public long getX() { + return x; + } + + /** + * Sets the value of the x property. + * + */ + public void setX(long value) { + this.x = value; + } + + /** + * Gets the value of the s property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isS() { + if (s == null) { + return false; + } else { + return s; + } + } + + /** + * Sets the value of the s property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setS(Boolean value) { + this.s = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStrings.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStrings.java index 859005c9aa..9ef10a4eb6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStrings.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataStrings.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MetadataStrings complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MetadataStrings">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XStringElement" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MetadataStrings", propOrder = { - "s" -}) -public class CTMetadataStrings { - - @XmlElement(required = true) - protected List s; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the s property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the s property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getS().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTXStringElement } - * - * - */ - public List getS() { - if (s == null) { - s = new ArrayList(); - } - return this.s; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MetadataStrings complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MetadataStrings">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XStringElement" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MetadataStrings", propOrder = { + "s" +}) +public class CTMetadataStrings implements Child +{ + + @XmlElement(required = true) + protected List s; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the s property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the s property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getS().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTXStringElement } + * + * + */ + public List getS() { + if (s == null) { + s = new ArrayList(); + } + return this.s; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataType.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataType.java index 176440ca58..355cfb6134 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataType.java @@ -1,905 +1,917 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MetadataType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MetadataType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="minSupportedVersion" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="ghostRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="ghostCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="edit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="delete" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="copy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteValues" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteFormats" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteComments" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteDataValidation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteBorders" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteColWidths" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pasteNumberFormats" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="merge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="splitFirst" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="splitAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="rowColShift" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="clearAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="clearFormats" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="clearContents" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="clearComments" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="assign" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="coerce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="adjust" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="cellMeta" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MetadataType") -public class CTMetadataType { - - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long minSupportedVersion; - @XmlAttribute - protected Boolean ghostRow; - @XmlAttribute - protected Boolean ghostCol; - @XmlAttribute - protected Boolean edit; - @XmlAttribute - protected Boolean delete; - @XmlAttribute - protected Boolean copy; - @XmlAttribute - protected Boolean pasteAll; - @XmlAttribute - protected Boolean pasteFormulas; - @XmlAttribute - protected Boolean pasteValues; - @XmlAttribute - protected Boolean pasteFormats; - @XmlAttribute - protected Boolean pasteComments; - @XmlAttribute - protected Boolean pasteDataValidation; - @XmlAttribute - protected Boolean pasteBorders; - @XmlAttribute - protected Boolean pasteColWidths; - @XmlAttribute - protected Boolean pasteNumberFormats; - @XmlAttribute - protected Boolean merge; - @XmlAttribute - protected Boolean splitFirst; - @XmlAttribute - protected Boolean splitAll; - @XmlAttribute - protected Boolean rowColShift; - @XmlAttribute - protected Boolean clearAll; - @XmlAttribute - protected Boolean clearFormats; - @XmlAttribute - protected Boolean clearContents; - @XmlAttribute - protected Boolean clearComments; - @XmlAttribute - protected Boolean assign; - @XmlAttribute - protected Boolean coerce; - @XmlAttribute - protected Boolean adjust; - @XmlAttribute - protected Boolean cellMeta; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the minSupportedVersion property. - * - */ - public long getMinSupportedVersion() { - return minSupportedVersion; - } - - /** - * Sets the value of the minSupportedVersion property. - * - */ - public void setMinSupportedVersion(long value) { - this.minSupportedVersion = value; - } - - /** - * Gets the value of the ghostRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGhostRow() { - if (ghostRow == null) { - return false; - } else { - return ghostRow; - } - } - - /** - * Sets the value of the ghostRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGhostRow(Boolean value) { - this.ghostRow = value; - } - - /** - * Gets the value of the ghostCol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGhostCol() { - if (ghostCol == null) { - return false; - } else { - return ghostCol; - } - } - - /** - * Sets the value of the ghostCol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGhostCol(Boolean value) { - this.ghostCol = value; - } - - /** - * Gets the value of the edit property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEdit() { - if (edit == null) { - return false; - } else { - return edit; - } - } - - /** - * Sets the value of the edit property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEdit(Boolean value) { - this.edit = value; - } - - /** - * Gets the value of the delete property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDelete() { - if (delete == null) { - return false; - } else { - return delete; - } - } - - /** - * Sets the value of the delete property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDelete(Boolean value) { - this.delete = value; - } - - /** - * Gets the value of the copy property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCopy() { - if (copy == null) { - return false; - } else { - return copy; - } - } - - /** - * Sets the value of the copy property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCopy(Boolean value) { - this.copy = value; - } - - /** - * Gets the value of the pasteAll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteAll() { - if (pasteAll == null) { - return false; - } else { - return pasteAll; - } - } - - /** - * Sets the value of the pasteAll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteAll(Boolean value) { - this.pasteAll = value; - } - - /** - * Gets the value of the pasteFormulas property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteFormulas() { - if (pasteFormulas == null) { - return false; - } else { - return pasteFormulas; - } - } - - /** - * Sets the value of the pasteFormulas property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteFormulas(Boolean value) { - this.pasteFormulas = value; - } - - /** - * Gets the value of the pasteValues property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteValues() { - if (pasteValues == null) { - return false; - } else { - return pasteValues; - } - } - - /** - * Sets the value of the pasteValues property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteValues(Boolean value) { - this.pasteValues = value; - } - - /** - * Gets the value of the pasteFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteFormats() { - if (pasteFormats == null) { - return false; - } else { - return pasteFormats; - } - } - - /** - * Sets the value of the pasteFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteFormats(Boolean value) { - this.pasteFormats = value; - } - - /** - * Gets the value of the pasteComments property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteComments() { - if (pasteComments == null) { - return false; - } else { - return pasteComments; - } - } - - /** - * Sets the value of the pasteComments property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteComments(Boolean value) { - this.pasteComments = value; - } - - /** - * Gets the value of the pasteDataValidation property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteDataValidation() { - if (pasteDataValidation == null) { - return false; - } else { - return pasteDataValidation; - } - } - - /** - * Sets the value of the pasteDataValidation property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteDataValidation(Boolean value) { - this.pasteDataValidation = value; - } - - /** - * Gets the value of the pasteBorders property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteBorders() { - if (pasteBorders == null) { - return false; - } else { - return pasteBorders; - } - } - - /** - * Sets the value of the pasteBorders property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteBorders(Boolean value) { - this.pasteBorders = value; - } - - /** - * Gets the value of the pasteColWidths property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteColWidths() { - if (pasteColWidths == null) { - return false; - } else { - return pasteColWidths; - } - } - - /** - * Sets the value of the pasteColWidths property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteColWidths(Boolean value) { - this.pasteColWidths = value; - } - - /** - * Gets the value of the pasteNumberFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPasteNumberFormats() { - if (pasteNumberFormats == null) { - return false; - } else { - return pasteNumberFormats; - } - } - - /** - * Sets the value of the pasteNumberFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPasteNumberFormats(Boolean value) { - this.pasteNumberFormats = value; - } - - /** - * Gets the value of the merge property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMerge() { - if (merge == null) { - return false; - } else { - return merge; - } - } - - /** - * Sets the value of the merge property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMerge(Boolean value) { - this.merge = value; - } - - /** - * Gets the value of the splitFirst property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSplitFirst() { - if (splitFirst == null) { - return false; - } else { - return splitFirst; - } - } - - /** - * Sets the value of the splitFirst property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSplitFirst(Boolean value) { - this.splitFirst = value; - } - - /** - * Gets the value of the splitAll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSplitAll() { - if (splitAll == null) { - return false; - } else { - return splitAll; - } - } - - /** - * Sets the value of the splitAll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSplitAll(Boolean value) { - this.splitAll = value; - } - - /** - * Gets the value of the rowColShift property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRowColShift() { - if (rowColShift == null) { - return false; - } else { - return rowColShift; - } - } - - /** - * Sets the value of the rowColShift property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRowColShift(Boolean value) { - this.rowColShift = value; - } - - /** - * Gets the value of the clearAll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isClearAll() { - if (clearAll == null) { - return false; - } else { - return clearAll; - } - } - - /** - * Sets the value of the clearAll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setClearAll(Boolean value) { - this.clearAll = value; - } - - /** - * Gets the value of the clearFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isClearFormats() { - if (clearFormats == null) { - return false; - } else { - return clearFormats; - } - } - - /** - * Sets the value of the clearFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setClearFormats(Boolean value) { - this.clearFormats = value; - } - - /** - * Gets the value of the clearContents property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isClearContents() { - if (clearContents == null) { - return false; - } else { - return clearContents; - } - } - - /** - * Sets the value of the clearContents property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setClearContents(Boolean value) { - this.clearContents = value; - } - - /** - * Gets the value of the clearComments property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isClearComments() { - if (clearComments == null) { - return false; - } else { - return clearComments; - } - } - - /** - * Sets the value of the clearComments property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setClearComments(Boolean value) { - this.clearComments = value; - } - - /** - * Gets the value of the assign property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAssign() { - if (assign == null) { - return false; - } else { - return assign; - } - } - - /** - * Sets the value of the assign property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAssign(Boolean value) { - this.assign = value; - } - - /** - * Gets the value of the coerce property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCoerce() { - if (coerce == null) { - return false; - } else { - return coerce; - } - } - - /** - * Sets the value of the coerce property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCoerce(Boolean value) { - this.coerce = value; - } - - /** - * Gets the value of the adjust property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAdjust() { - if (adjust == null) { - return false; - } else { - return adjust; - } - } - - /** - * Sets the value of the adjust property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAdjust(Boolean value) { - this.adjust = value; - } - - /** - * Gets the value of the cellMeta property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCellMeta() { - if (cellMeta == null) { - return false; - } else { - return cellMeta; - } - } - - /** - * Sets the value of the cellMeta property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCellMeta(Boolean value) { - this.cellMeta = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MetadataType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MetadataType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="minSupportedVersion" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="ghostRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="ghostCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="edit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="delete" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="copy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteValues" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteFormats" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteComments" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteDataValidation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteBorders" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteColWidths" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pasteNumberFormats" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="merge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="splitFirst" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="splitAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="rowColShift" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="clearAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="clearFormats" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="clearContents" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="clearComments" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="assign" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="coerce" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="adjust" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="cellMeta" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MetadataType") +public class CTMetadataType implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "minSupportedVersion", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long minSupportedVersion; + @XmlAttribute(name = "ghostRow") + protected Boolean ghostRow; + @XmlAttribute(name = "ghostCol") + protected Boolean ghostCol; + @XmlAttribute(name = "edit") + protected Boolean edit; + @XmlAttribute(name = "delete") + protected Boolean delete; + @XmlAttribute(name = "copy") + protected Boolean copy; + @XmlAttribute(name = "pasteAll") + protected Boolean pasteAll; + @XmlAttribute(name = "pasteFormulas") + protected Boolean pasteFormulas; + @XmlAttribute(name = "pasteValues") + protected Boolean pasteValues; + @XmlAttribute(name = "pasteFormats") + protected Boolean pasteFormats; + @XmlAttribute(name = "pasteComments") + protected Boolean pasteComments; + @XmlAttribute(name = "pasteDataValidation") + protected Boolean pasteDataValidation; + @XmlAttribute(name = "pasteBorders") + protected Boolean pasteBorders; + @XmlAttribute(name = "pasteColWidths") + protected Boolean pasteColWidths; + @XmlAttribute(name = "pasteNumberFormats") + protected Boolean pasteNumberFormats; + @XmlAttribute(name = "merge") + protected Boolean merge; + @XmlAttribute(name = "splitFirst") + protected Boolean splitFirst; + @XmlAttribute(name = "splitAll") + protected Boolean splitAll; + @XmlAttribute(name = "rowColShift") + protected Boolean rowColShift; + @XmlAttribute(name = "clearAll") + protected Boolean clearAll; + @XmlAttribute(name = "clearFormats") + protected Boolean clearFormats; + @XmlAttribute(name = "clearContents") + protected Boolean clearContents; + @XmlAttribute(name = "clearComments") + protected Boolean clearComments; + @XmlAttribute(name = "assign") + protected Boolean assign; + @XmlAttribute(name = "coerce") + protected Boolean coerce; + @XmlAttribute(name = "adjust") + protected Boolean adjust; + @XmlAttribute(name = "cellMeta") + protected Boolean cellMeta; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the minSupportedVersion property. + * + */ + public long getMinSupportedVersion() { + return minSupportedVersion; + } + + /** + * Sets the value of the minSupportedVersion property. + * + */ + public void setMinSupportedVersion(long value) { + this.minSupportedVersion = value; + } + + /** + * Gets the value of the ghostRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGhostRow() { + if (ghostRow == null) { + return false; + } else { + return ghostRow; + } + } + + /** + * Sets the value of the ghostRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGhostRow(Boolean value) { + this.ghostRow = value; + } + + /** + * Gets the value of the ghostCol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGhostCol() { + if (ghostCol == null) { + return false; + } else { + return ghostCol; + } + } + + /** + * Sets the value of the ghostCol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGhostCol(Boolean value) { + this.ghostCol = value; + } + + /** + * Gets the value of the edit property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEdit() { + if (edit == null) { + return false; + } else { + return edit; + } + } + + /** + * Sets the value of the edit property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEdit(Boolean value) { + this.edit = value; + } + + /** + * Gets the value of the delete property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDelete() { + if (delete == null) { + return false; + } else { + return delete; + } + } + + /** + * Sets the value of the delete property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDelete(Boolean value) { + this.delete = value; + } + + /** + * Gets the value of the copy property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCopy() { + if (copy == null) { + return false; + } else { + return copy; + } + } + + /** + * Sets the value of the copy property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCopy(Boolean value) { + this.copy = value; + } + + /** + * Gets the value of the pasteAll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteAll() { + if (pasteAll == null) { + return false; + } else { + return pasteAll; + } + } + + /** + * Sets the value of the pasteAll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteAll(Boolean value) { + this.pasteAll = value; + } + + /** + * Gets the value of the pasteFormulas property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteFormulas() { + if (pasteFormulas == null) { + return false; + } else { + return pasteFormulas; + } + } + + /** + * Sets the value of the pasteFormulas property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteFormulas(Boolean value) { + this.pasteFormulas = value; + } + + /** + * Gets the value of the pasteValues property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteValues() { + if (pasteValues == null) { + return false; + } else { + return pasteValues; + } + } + + /** + * Sets the value of the pasteValues property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteValues(Boolean value) { + this.pasteValues = value; + } + + /** + * Gets the value of the pasteFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteFormats() { + if (pasteFormats == null) { + return false; + } else { + return pasteFormats; + } + } + + /** + * Sets the value of the pasteFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteFormats(Boolean value) { + this.pasteFormats = value; + } + + /** + * Gets the value of the pasteComments property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteComments() { + if (pasteComments == null) { + return false; + } else { + return pasteComments; + } + } + + /** + * Sets the value of the pasteComments property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteComments(Boolean value) { + this.pasteComments = value; + } + + /** + * Gets the value of the pasteDataValidation property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteDataValidation() { + if (pasteDataValidation == null) { + return false; + } else { + return pasteDataValidation; + } + } + + /** + * Sets the value of the pasteDataValidation property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteDataValidation(Boolean value) { + this.pasteDataValidation = value; + } + + /** + * Gets the value of the pasteBorders property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteBorders() { + if (pasteBorders == null) { + return false; + } else { + return pasteBorders; + } + } + + /** + * Sets the value of the pasteBorders property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteBorders(Boolean value) { + this.pasteBorders = value; + } + + /** + * Gets the value of the pasteColWidths property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteColWidths() { + if (pasteColWidths == null) { + return false; + } else { + return pasteColWidths; + } + } + + /** + * Sets the value of the pasteColWidths property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteColWidths(Boolean value) { + this.pasteColWidths = value; + } + + /** + * Gets the value of the pasteNumberFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPasteNumberFormats() { + if (pasteNumberFormats == null) { + return false; + } else { + return pasteNumberFormats; + } + } + + /** + * Sets the value of the pasteNumberFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPasteNumberFormats(Boolean value) { + this.pasteNumberFormats = value; + } + + /** + * Gets the value of the merge property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMerge() { + if (merge == null) { + return false; + } else { + return merge; + } + } + + /** + * Sets the value of the merge property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMerge(Boolean value) { + this.merge = value; + } + + /** + * Gets the value of the splitFirst property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSplitFirst() { + if (splitFirst == null) { + return false; + } else { + return splitFirst; + } + } + + /** + * Sets the value of the splitFirst property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSplitFirst(Boolean value) { + this.splitFirst = value; + } + + /** + * Gets the value of the splitAll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSplitAll() { + if (splitAll == null) { + return false; + } else { + return splitAll; + } + } + + /** + * Sets the value of the splitAll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSplitAll(Boolean value) { + this.splitAll = value; + } + + /** + * Gets the value of the rowColShift property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRowColShift() { + if (rowColShift == null) { + return false; + } else { + return rowColShift; + } + } + + /** + * Sets the value of the rowColShift property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRowColShift(Boolean value) { + this.rowColShift = value; + } + + /** + * Gets the value of the clearAll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClearAll() { + if (clearAll == null) { + return false; + } else { + return clearAll; + } + } + + /** + * Sets the value of the clearAll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClearAll(Boolean value) { + this.clearAll = value; + } + + /** + * Gets the value of the clearFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClearFormats() { + if (clearFormats == null) { + return false; + } else { + return clearFormats; + } + } + + /** + * Sets the value of the clearFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClearFormats(Boolean value) { + this.clearFormats = value; + } + + /** + * Gets the value of the clearContents property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClearContents() { + if (clearContents == null) { + return false; + } else { + return clearContents; + } + } + + /** + * Sets the value of the clearContents property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClearContents(Boolean value) { + this.clearContents = value; + } + + /** + * Gets the value of the clearComments property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClearComments() { + if (clearComments == null) { + return false; + } else { + return clearComments; + } + } + + /** + * Sets the value of the clearComments property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClearComments(Boolean value) { + this.clearComments = value; + } + + /** + * Gets the value of the assign property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAssign() { + if (assign == null) { + return false; + } else { + return assign; + } + } + + /** + * Sets the value of the assign property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAssign(Boolean value) { + this.assign = value; + } + + /** + * Gets the value of the coerce property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCoerce() { + if (coerce == null) { + return false; + } else { + return coerce; + } + } + + /** + * Sets the value of the coerce property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCoerce(Boolean value) { + this.coerce = value; + } + + /** + * Gets the value of the adjust property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAdjust() { + if (adjust == null) { + return false; + } else { + return adjust; + } + } + + /** + * Sets the value of the adjust property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAdjust(Boolean value) { + this.adjust = value; + } + + /** + * Gets the value of the cellMeta property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCellMeta() { + if (cellMeta == null) { + return false; + } else { + return cellMeta; + } + } + + /** + * Sets the value of the cellMeta property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCellMeta(Boolean value) { + this.cellMeta = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataTypes.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataTypes.java index 86ab7529aa..e66c685041 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataTypes.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMetadataTypes.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_MetadataTypes complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_MetadataTypes">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="metadataType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataType" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_MetadataTypes", propOrder = { - "metadataType" -}) -public class CTMetadataTypes { - - @XmlElement(required = true) - protected List metadataType; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the metadataType property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the metadataType property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMetadataType().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMetadataType } - * - * - */ - public List getMetadataType() { - if (metadataType == null) { - metadataType = new ArrayList(); - } - return this.metadataType; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_MetadataTypes complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_MetadataTypes">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="metadataType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MetadataType" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_MetadataTypes", propOrder = { + "metadataType" +}) +public class CTMetadataTypes implements Child +{ + + @XmlElement(required = true) + protected List metadataType; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the metadataType property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the metadataType property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMetadataType().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMetadataType } + * + * + */ + public List getMetadataType() { + if (metadataType == null) { + metadataType = new ArrayList(); + } + return this.metadataType; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTMissing.java b/src/xlsx4j/java/org/xlsx4j/sml/CTMissing.java index f58b622e11..61387d2216 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTMissing.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTMissing.java @@ -1,440 +1,452 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_Missing complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Missing">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Missing", propOrder = { - "tpls", - "x" -}) -public class CTMissing { - - protected List tpls; - protected List x; - @XmlAttribute - protected Boolean u; - @XmlAttribute - protected Boolean f; - @XmlAttribute - protected String c; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cp; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long in; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] bc; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] fc; - @XmlAttribute - protected Boolean i; - @XmlAttribute - protected Boolean un; - @XmlAttribute - protected Boolean st; - @XmlAttribute - protected Boolean b; - - /** - * Gets the value of the tpls property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tpls property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTpls().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTuples } - * - * - */ - public List getTpls() { - if (tpls == null) { - tpls = new ArrayList(); - } - return this.tpls; - } - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the u property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isU() { - return u; - } - - /** - * Sets the value of the u property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setU(Boolean value) { - this.u = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setF(Boolean value) { - this.f = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getC() { - return c; - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setC(String value) { - this.c = value; - } - - /** - * Gets the value of the cp property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCp() { - return cp; - } - - /** - * Sets the value of the cp property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCp(Long value) { - this.cp = value; - } - - /** - * Gets the value of the in property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIn() { - return in; - } - - /** - * Sets the value of the in property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIn(Long value) { - this.in = value; - } - - /** - * Gets the value of the bc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getBc() { - return bc; - } - - /** - * Sets the value of the bc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBc(byte[] value) { - this.bc = ((byte[]) value); - } - - /** - * Gets the value of the fc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getFc() { - return fc; - } - - /** - * Sets the value of the fc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFc(byte[] value) { - this.fc = ((byte[]) value); - } - - /** - * Gets the value of the i property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isI() { - if (i == null) { - return false; - } else { - return i; - } - } - - /** - * Sets the value of the i property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setI(Boolean value) { - this.i = value; - } - - /** - * Gets the value of the un property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUn() { - if (un == null) { - return false; - } else { - return un; - } - } - - /** - * Sets the value of the un property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUn(Boolean value) { - this.un = value; - } - - /** - * Gets the value of the st property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSt() { - if (st == null) { - return false; - } else { - return st; - } - } - - /** - * Sets the value of the st property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSt(Boolean value) { - this.st = value; - } - - /** - * Gets the value of the b property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isB() { - if (b == null) { - return false; - } else { - return b; - } - } - - /** - * Sets the value of the b property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setB(Boolean value) { - this.b = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Missing complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Missing">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="c" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Missing", propOrder = { + "tpls", + "x" +}) +public class CTMissing implements Child +{ + + protected List tpls; + protected List x; + @XmlAttribute(name = "u") + protected Boolean u; + @XmlAttribute(name = "f") + protected Boolean f; + @XmlAttribute(name = "c") + protected String c; + @XmlAttribute(name = "cp") + @XmlSchemaType(name = "unsignedInt") + protected Long cp; + @XmlAttribute(name = "in") + @XmlSchemaType(name = "unsignedInt") + protected Long in; + @XmlAttribute(name = "bc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] bc; + @XmlAttribute(name = "fc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] fc; + @XmlAttribute(name = "i") + protected Boolean i; + @XmlAttribute(name = "un") + protected Boolean un; + @XmlAttribute(name = "st") + protected Boolean st; + @XmlAttribute(name = "b") + protected Boolean b; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tpls property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tpls property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTpls().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTuples } + * + * + */ + public List getTpls() { + if (tpls == null) { + tpls = new ArrayList(); + } + return this.tpls; + } + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the u property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isU() { + return u; + } + + /** + * Sets the value of the u property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setU(Boolean value) { + this.u = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setF(Boolean value) { + this.f = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getC() { + return c; + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setC(String value) { + this.c = value; + } + + /** + * Gets the value of the cp property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCp() { + return cp; + } + + /** + * Sets the value of the cp property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCp(Long value) { + this.cp = value; + } + + /** + * Gets the value of the in property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIn() { + return in; + } + + /** + * Sets the value of the in property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIn(Long value) { + this.in = value; + } + + /** + * Gets the value of the bc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getBc() { + return bc; + } + + /** + * Sets the value of the bc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBc(byte[] value) { + this.bc = value; + } + + /** + * Gets the value of the fc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getFc() { + return fc; + } + + /** + * Sets the value of the fc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFc(byte[] value) { + this.fc = value; + } + + /** + * Gets the value of the i property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isI() { + if (i == null) { + return false; + } else { + return i; + } + } + + /** + * Sets the value of the i property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setI(Boolean value) { + this.i = value; + } + + /** + * Gets the value of the un property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUn() { + if (un == null) { + return false; + } else { + return un; + } + } + + /** + * Sets the value of the un property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUn(Boolean value) { + this.un = value; + } + + /** + * Gets the value of the st property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSt() { + if (st == null) { + return false; + } else { + return st; + } + } + + /** + * Sets the value of the st property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSt(Boolean value) { + this.st = value; + } + + /** + * Gets the value of the b property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isB() { + if (b == null) { + return false; + } else { + return b; + } + } + + /** + * Sets the value of the b property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setB(Boolean value) { + this.b = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmt.java b/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmt.java index 43ce49afe6..8699b8331a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmt.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmt.java @@ -1,97 +1,109 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_NumFmt complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_NumFmt">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="numFmtId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
- *       <attribute name="formatCode" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_NumFmt") -public class CTNumFmt { - - @XmlAttribute(required = true) - protected long numFmtId; - @XmlAttribute(required = true) - protected String formatCode; - - /** - * Gets the value of the numFmtId property. - * - */ - public long getNumFmtId() { - return numFmtId; - } - - /** - * Sets the value of the numFmtId property. - * - */ - public void setNumFmtId(long value) { - this.numFmtId = value; - } - - /** - * Gets the value of the formatCode property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormatCode() { - return formatCode; - } - - /** - * Sets the value of the formatCode property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormatCode(String value) { - this.formatCode = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_NumFmt complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_NumFmt">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="numFmtId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
+ *       <attribute name="formatCode" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_NumFmt") +public class CTNumFmt implements Child +{ + + @XmlAttribute(name = "numFmtId", required = true) + protected long numFmtId; + @XmlAttribute(name = "formatCode", required = true) + protected String formatCode; + @XmlTransient + private Object parent; + + /** + * Gets the value of the numFmtId property. + * + */ + public long getNumFmtId() { + return numFmtId; + } + + /** + * Sets the value of the numFmtId property. + * + */ + public void setNumFmtId(long value) { + this.numFmtId = value; + } + + /** + * Gets the value of the formatCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormatCode() { + return formatCode; + } + + /** + * Sets the value of the formatCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormatCode(String value) { + this.formatCode = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmts.java b/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmts.java index 20c6e73329..e217af494f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmts.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTNumFmts.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_NumFmts complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_NumFmts">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="numFmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_NumFmt" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_NumFmts", propOrder = { - "numFmt" -}) -public class CTNumFmts { - - protected List numFmt; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the numFmt property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the numFmt property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getNumFmt().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTNumFmt } - * - * - */ - public List getNumFmt() { - if (numFmt == null) { - numFmt = new ArrayList(); - } - return this.numFmt; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_NumFmts complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_NumFmts">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="numFmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_NumFmt" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_NumFmts", propOrder = { + "numFmt" +}) +public class CTNumFmts implements Child +{ + + protected List numFmt; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the numFmt property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the numFmt property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getNumFmt().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTNumFmt } + * + * + */ + public List getNumFmt() { + if (numFmt == null) { + numFmt = new ArrayList(); + } + return this.numFmt; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTNumber.java b/src/xlsx4j/java/org/xlsx4j/sml/CTNumber.java index ef54821edc..9c39626513 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTNumber.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTNumber.java @@ -1,459 +1,471 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_Number complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Number">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Number", propOrder = { - "tpls", - "x" -}) -public class CTNumber { - - protected List tpls; - protected List x; - @XmlAttribute(required = true) - protected double v; - @XmlAttribute - protected Boolean u; - @XmlAttribute - protected Boolean f; - @XmlAttribute - protected String c; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cp; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long in; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] bc; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] fc; - @XmlAttribute - protected Boolean i; - @XmlAttribute - protected Boolean un; - @XmlAttribute - protected Boolean st; - @XmlAttribute - protected Boolean b; - - /** - * Gets the value of the tpls property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tpls property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTpls().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTuples } - * - * - */ - public List getTpls() { - if (tpls == null) { - tpls = new ArrayList(); - } - return this.tpls; - } - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the v property. - * - */ - public double getV() { - return v; - } - - /** - * Sets the value of the v property. - * - */ - public void setV(double value) { - this.v = value; - } - - /** - * Gets the value of the u property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isU() { - return u; - } - - /** - * Sets the value of the u property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setU(Boolean value) { - this.u = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setF(Boolean value) { - this.f = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getC() { - return c; - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setC(String value) { - this.c = value; - } - - /** - * Gets the value of the cp property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCp() { - return cp; - } - - /** - * Sets the value of the cp property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCp(Long value) { - this.cp = value; - } - - /** - * Gets the value of the in property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIn() { - return in; - } - - /** - * Sets the value of the in property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIn(Long value) { - this.in = value; - } - - /** - * Gets the value of the bc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getBc() { - return bc; - } - - /** - * Sets the value of the bc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBc(byte[] value) { - this.bc = ((byte[]) value); - } - - /** - * Gets the value of the fc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getFc() { - return fc; - } - - /** - * Sets the value of the fc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFc(byte[] value) { - this.fc = ((byte[]) value); - } - - /** - * Gets the value of the i property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isI() { - if (i == null) { - return false; - } else { - return i; - } - } - - /** - * Sets the value of the i property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setI(Boolean value) { - this.i = value; - } - - /** - * Gets the value of the un property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUn() { - if (un == null) { - return false; - } else { - return un; - } - } - - /** - * Sets the value of the un property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUn(Boolean value) { - this.un = value; - } - - /** - * Gets the value of the st property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSt() { - if (st == null) { - return false; - } else { - return st; - } - } - - /** - * Sets the value of the st property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSt(Boolean value) { - this.st = value; - } - - /** - * Gets the value of the b property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isB() { - if (b == null) { - return false; - } else { - return b; - } - } - - /** - * Sets the value of the b property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setB(Boolean value) { - this.b = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Number complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Number">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="v" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="c" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Number", propOrder = { + "tpls", + "x" +}) +public class CTNumber implements Child +{ + + protected List tpls; + protected List x; + @XmlAttribute(name = "v", required = true) + protected double v; + @XmlAttribute(name = "u") + protected Boolean u; + @XmlAttribute(name = "f") + protected Boolean f; + @XmlAttribute(name = "c") + protected String c; + @XmlAttribute(name = "cp") + @XmlSchemaType(name = "unsignedInt") + protected Long cp; + @XmlAttribute(name = "in") + @XmlSchemaType(name = "unsignedInt") + protected Long in; + @XmlAttribute(name = "bc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] bc; + @XmlAttribute(name = "fc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] fc; + @XmlAttribute(name = "i") + protected Boolean i; + @XmlAttribute(name = "un") + protected Boolean un; + @XmlAttribute(name = "st") + protected Boolean st; + @XmlAttribute(name = "b") + protected Boolean b; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tpls property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tpls property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTpls().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTuples } + * + * + */ + public List getTpls() { + if (tpls == null) { + tpls = new ArrayList(); + } + return this.tpls; + } + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the v property. + * + */ + public double getV() { + return v; + } + + /** + * Sets the value of the v property. + * + */ + public void setV(double value) { + this.v = value; + } + + /** + * Gets the value of the u property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isU() { + return u; + } + + /** + * Sets the value of the u property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setU(Boolean value) { + this.u = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setF(Boolean value) { + this.f = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getC() { + return c; + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setC(String value) { + this.c = value; + } + + /** + * Gets the value of the cp property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCp() { + return cp; + } + + /** + * Sets the value of the cp property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCp(Long value) { + this.cp = value; + } + + /** + * Gets the value of the in property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIn() { + return in; + } + + /** + * Sets the value of the in property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIn(Long value) { + this.in = value; + } + + /** + * Gets the value of the bc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getBc() { + return bc; + } + + /** + * Sets the value of the bc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBc(byte[] value) { + this.bc = value; + } + + /** + * Gets the value of the fc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getFc() { + return fc; + } + + /** + * Sets the value of the fc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFc(byte[] value) { + this.fc = value; + } + + /** + * Gets the value of the i property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isI() { + if (i == null) { + return false; + } else { + return i; + } + } + + /** + * Sets the value of the i property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setI(Boolean value) { + this.i = value; + } + + /** + * Gets the value of the un property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUn() { + if (un == null) { + return false; + } else { + return un; + } + } + + /** + * Sets the value of the un property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUn(Boolean value) { + this.un = value; + } + + /** + * Gets the value of the st property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSt() { + if (st == null) { + return false; + } else { + return st; + } + } + + /** + * Sets the value of the st property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSt(Boolean value) { + this.st = value; + } + + /** + * Gets the value of the b property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isB() { + if (b == null) { + return false; + } else { + return b; + } + } + + /** + * Sets the value of the b property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setB(Boolean value) { + this.b = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTObjectAnchor.java b/src/xlsx4j/java/org/xlsx4j/sml/CTObjectAnchor.java new file mode 100644 index 0000000000..d46c0f6787 --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTObjectAnchor.java @@ -0,0 +1,186 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.docx4j.dml.spreadsheetdrawing.CTMarker; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ObjectAnchor complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ObjectAnchor">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing}from"/>
+ *         <element ref="{http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing}to"/>
+ *       </sequence>
+ *       <attribute name="moveWithCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sizeWithCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ObjectAnchor", propOrder = { + "from", + "to" +}) +public class CTObjectAnchor implements Child +{ + + @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing", required = true) + protected CTMarker from; + @XmlElement(namespace = "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing", required = true) + protected CTMarker to; + @XmlAttribute(name = "moveWithCells") + protected Boolean moveWithCells; + @XmlAttribute(name = "sizeWithCells") + protected Boolean sizeWithCells; + @XmlTransient + private Object parent; + + /** + * Gets the value of the from property. + * + * @return + * possible object is + * {@link CTMarker } + * + */ + public CTMarker getFrom() { + return from; + } + + /** + * Sets the value of the from property. + * + * @param value + * allowed object is + * {@link CTMarker } + * + */ + public void setFrom(CTMarker value) { + this.from = value; + } + + /** + * Gets the value of the to property. + * + * @return + * possible object is + * {@link CTMarker } + * + */ + public CTMarker getTo() { + return to; + } + + /** + * Sets the value of the to property. + * + * @param value + * allowed object is + * {@link CTMarker } + * + */ + public void setTo(CTMarker value) { + this.to = value; + } + + /** + * Gets the value of the moveWithCells property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMoveWithCells() { + if (moveWithCells == null) { + return false; + } else { + return moveWithCells; + } + } + + /** + * Sets the value of the moveWithCells property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMoveWithCells(Boolean value) { + this.moveWithCells = value; + } + + /** + * Gets the value of the sizeWithCells property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSizeWithCells() { + if (sizeWithCells == null) { + return false; + } else { + return sizeWithCells; + } + } + + /** + * Sets the value of the sizeWithCells property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSizeWithCells(Boolean value) { + this.sizeWithCells = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTObjectPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTObjectPr.java new file mode 100644 index 0000000000..411b152147 --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTObjectPr.java @@ -0,0 +1,455 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ObjectPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ObjectPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="anchor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ObjectAnchor"/>
+ *       </sequence>
+ *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="defaultSize" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="print" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="disabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="uiObject" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="autoFill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="autoLine" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="autoPict" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="macro" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" />
+ *       <attribute name="altText" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="dde" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ObjectPr", propOrder = { + "anchor" +}) +public class CTObjectPr implements Child +{ + + @XmlElement(required = true) + protected CTObjectAnchor anchor; + @XmlAttribute(name = "locked") + protected Boolean locked; + @XmlAttribute(name = "defaultSize") + protected Boolean defaultSize; + @XmlAttribute(name = "print") + protected Boolean print; + @XmlAttribute(name = "disabled") + protected Boolean disabled; + @XmlAttribute(name = "uiObject") + protected Boolean uiObject; + @XmlAttribute(name = "autoFill") + protected Boolean autoFill; + @XmlAttribute(name = "autoLine") + protected Boolean autoLine; + @XmlAttribute(name = "autoPict") + protected Boolean autoPict; + @XmlAttribute(name = "macro") + protected String macro; + @XmlAttribute(name = "altText") + protected String altText; + @XmlAttribute(name = "dde") + protected Boolean dde; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the anchor property. + * + * @return + * possible object is + * {@link CTObjectAnchor } + * + */ + public CTObjectAnchor getAnchor() { + return anchor; + } + + /** + * Sets the value of the anchor property. + * + * @param value + * allowed object is + * {@link CTObjectAnchor } + * + */ + public void setAnchor(CTObjectAnchor value) { + this.anchor = value; + } + + /** + * Gets the value of the locked property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLocked() { + if (locked == null) { + return true; + } else { + return locked; + } + } + + /** + * Sets the value of the locked property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocked(Boolean value) { + this.locked = value; + } + + /** + * Gets the value of the defaultSize property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDefaultSize() { + if (defaultSize == null) { + return true; + } else { + return defaultSize; + } + } + + /** + * Sets the value of the defaultSize property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDefaultSize(Boolean value) { + this.defaultSize = value; + } + + /** + * Gets the value of the print property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPrint() { + if (print == null) { + return true; + } else { + return print; + } + } + + /** + * Sets the value of the print property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPrint(Boolean value) { + this.print = value; + } + + /** + * Gets the value of the disabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDisabled() { + if (disabled == null) { + return false; + } else { + return disabled; + } + } + + /** + * Sets the value of the disabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisabled(Boolean value) { + this.disabled = value; + } + + /** + * Gets the value of the uiObject property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUiObject() { + if (uiObject == null) { + return false; + } else { + return uiObject; + } + } + + /** + * Sets the value of the uiObject property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUiObject(Boolean value) { + this.uiObject = value; + } + + /** + * Gets the value of the autoFill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoFill() { + if (autoFill == null) { + return true; + } else { + return autoFill; + } + } + + /** + * Sets the value of the autoFill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoFill(Boolean value) { + this.autoFill = value; + } + + /** + * Gets the value of the autoLine property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoLine() { + if (autoLine == null) { + return true; + } else { + return autoLine; + } + } + + /** + * Sets the value of the autoLine property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoLine(Boolean value) { + this.autoLine = value; + } + + /** + * Gets the value of the autoPict property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoPict() { + if (autoPict == null) { + return true; + } else { + return autoPict; + } + } + + /** + * Sets the value of the autoPict property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoPict(Boolean value) { + this.autoPict = value; + } + + /** + * Gets the value of the macro property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMacro() { + return macro; + } + + /** + * Sets the value of the macro property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMacro(String value) { + this.macro = value; + } + + /** + * Gets the value of the altText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltText() { + return altText; + } + + /** + * Sets the value of the altText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltText(String value) { + this.altText = value; + } + + /** + * Gets the value of the dde property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDde() { + if (dde == null) { + return false; + } else { + return dde; + } + } + + /** + * Sets the value of the dde property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDde(Boolean value) { + this.dde = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOlapPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOlapPr.java index a5b9ee4608..cf5cd8ac3e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOlapPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOlapPr.java @@ -1,324 +1,336 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OlapPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OlapPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="local" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="localConnection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="localRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="sendLocale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="rowDrillCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="serverFill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="serverNumberFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="serverFont" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="serverFontColor" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OlapPr") -public class CTOlapPr { - - @XmlAttribute - protected Boolean local; - @XmlAttribute - protected String localConnection; - @XmlAttribute - protected Boolean localRefresh; - @XmlAttribute - protected Boolean sendLocale; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long rowDrillCount; - @XmlAttribute - protected Boolean serverFill; - @XmlAttribute - protected Boolean serverNumberFormat; - @XmlAttribute - protected Boolean serverFont; - @XmlAttribute - protected Boolean serverFontColor; - - /** - * Gets the value of the local property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLocal() { - if (local == null) { - return false; - } else { - return local; - } - } - - /** - * Sets the value of the local property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLocal(Boolean value) { - this.local = value; - } - - /** - * Gets the value of the localConnection property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLocalConnection() { - return localConnection; - } - - /** - * Sets the value of the localConnection property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLocalConnection(String value) { - this.localConnection = value; - } - - /** - * Gets the value of the localRefresh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLocalRefresh() { - if (localRefresh == null) { - return true; - } else { - return localRefresh; - } - } - - /** - * Sets the value of the localRefresh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLocalRefresh(Boolean value) { - this.localRefresh = value; - } - - /** - * Gets the value of the sendLocale property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSendLocale() { - if (sendLocale == null) { - return false; - } else { - return sendLocale; - } - } - - /** - * Sets the value of the sendLocale property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSendLocale(Boolean value) { - this.sendLocale = value; - } - - /** - * Gets the value of the rowDrillCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getRowDrillCount() { - return rowDrillCount; - } - - /** - * Sets the value of the rowDrillCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setRowDrillCount(Long value) { - this.rowDrillCount = value; - } - - /** - * Gets the value of the serverFill property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isServerFill() { - if (serverFill == null) { - return true; - } else { - return serverFill; - } - } - - /** - * Sets the value of the serverFill property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setServerFill(Boolean value) { - this.serverFill = value; - } - - /** - * Gets the value of the serverNumberFormat property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isServerNumberFormat() { - if (serverNumberFormat == null) { - return true; - } else { - return serverNumberFormat; - } - } - - /** - * Sets the value of the serverNumberFormat property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setServerNumberFormat(Boolean value) { - this.serverNumberFormat = value; - } - - /** - * Gets the value of the serverFont property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isServerFont() { - if (serverFont == null) { - return true; - } else { - return serverFont; - } - } - - /** - * Sets the value of the serverFont property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setServerFont(Boolean value) { - this.serverFont = value; - } - - /** - * Gets the value of the serverFontColor property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isServerFontColor() { - if (serverFontColor == null) { - return true; - } else { - return serverFontColor; - } - } - - /** - * Sets the value of the serverFontColor property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setServerFontColor(Boolean value) { - this.serverFontColor = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OlapPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OlapPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="local" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="localConnection" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="localRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="sendLocale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="rowDrillCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="serverFill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="serverNumberFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="serverFont" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="serverFontColor" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OlapPr") +public class CTOlapPr implements Child +{ + + @XmlAttribute(name = "local") + protected Boolean local; + @XmlAttribute(name = "localConnection") + protected String localConnection; + @XmlAttribute(name = "localRefresh") + protected Boolean localRefresh; + @XmlAttribute(name = "sendLocale") + protected Boolean sendLocale; + @XmlAttribute(name = "rowDrillCount") + @XmlSchemaType(name = "unsignedInt") + protected Long rowDrillCount; + @XmlAttribute(name = "serverFill") + protected Boolean serverFill; + @XmlAttribute(name = "serverNumberFormat") + protected Boolean serverNumberFormat; + @XmlAttribute(name = "serverFont") + protected Boolean serverFont; + @XmlAttribute(name = "serverFontColor") + protected Boolean serverFontColor; + @XmlTransient + private Object parent; + + /** + * Gets the value of the local property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLocal() { + if (local == null) { + return false; + } else { + return local; + } + } + + /** + * Sets the value of the local property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocal(Boolean value) { + this.local = value; + } + + /** + * Gets the value of the localConnection property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocalConnection() { + return localConnection; + } + + /** + * Sets the value of the localConnection property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocalConnection(String value) { + this.localConnection = value; + } + + /** + * Gets the value of the localRefresh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLocalRefresh() { + if (localRefresh == null) { + return true; + } else { + return localRefresh; + } + } + + /** + * Sets the value of the localRefresh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocalRefresh(Boolean value) { + this.localRefresh = value; + } + + /** + * Gets the value of the sendLocale property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSendLocale() { + if (sendLocale == null) { + return false; + } else { + return sendLocale; + } + } + + /** + * Sets the value of the sendLocale property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSendLocale(Boolean value) { + this.sendLocale = value; + } + + /** + * Gets the value of the rowDrillCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRowDrillCount() { + return rowDrillCount; + } + + /** + * Sets the value of the rowDrillCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRowDrillCount(Long value) { + this.rowDrillCount = value; + } + + /** + * Gets the value of the serverFill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isServerFill() { + if (serverFill == null) { + return true; + } else { + return serverFill; + } + } + + /** + * Sets the value of the serverFill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setServerFill(Boolean value) { + this.serverFill = value; + } + + /** + * Gets the value of the serverNumberFormat property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isServerNumberFormat() { + if (serverNumberFormat == null) { + return true; + } else { + return serverNumberFormat; + } + } + + /** + * Sets the value of the serverNumberFormat property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setServerNumberFormat(Boolean value) { + this.serverNumberFormat = value; + } + + /** + * Gets the value of the serverFont property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isServerFont() { + if (serverFont == null) { + return true; + } else { + return serverFont; + } + } + + /** + * Sets the value of the serverFont property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setServerFont(Boolean value) { + this.serverFont = value; + } + + /** + * Gets the value of the serverFontColor property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isServerFontColor() { + if (serverFontColor == null) { + return true; + } else { + return serverFontColor; + } + } + + /** + * Sets the value of the serverFontColor property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setServerFontColor(Boolean value) { + this.serverFontColor = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOleItem.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOleItem.java index 4a9d3006b5..104a18aa8c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOleItem.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOleItem.java @@ -1,171 +1,183 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OleItem complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OleItem">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="icon" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="advise" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="preferPic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OleItem") -public class CTOleItem { - - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected Boolean icon; - @XmlAttribute - protected Boolean advise; - @XmlAttribute - protected Boolean preferPic; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the icon property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isIcon() { - if (icon == null) { - return false; - } else { - return icon; - } - } - - /** - * Sets the value of the icon property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIcon(Boolean value) { - this.icon = value; - } - - /** - * Gets the value of the advise property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAdvise() { - if (advise == null) { - return false; - } else { - return advise; - } - } - - /** - * Sets the value of the advise property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAdvise(Boolean value) { - this.advise = value; - } - - /** - * Gets the value of the preferPic property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPreferPic() { - if (preferPic == null) { - return false; - } else { - return preferPic; - } - } - - /** - * Sets the value of the preferPic property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreferPic(Boolean value) { - this.preferPic = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OleItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OleItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="icon" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="advise" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="preferPic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OleItem") +public class CTOleItem implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "icon") + protected Boolean icon; + @XmlAttribute(name = "advise") + protected Boolean advise; + @XmlAttribute(name = "preferPic") + protected Boolean preferPic; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the icon property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIcon() { + if (icon == null) { + return false; + } else { + return icon; + } + } + + /** + * Sets the value of the icon property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIcon(Boolean value) { + this.icon = value; + } + + /** + * Gets the value of the advise property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAdvise() { + if (advise == null) { + return false; + } else { + return advise; + } + } + + /** + * Sets the value of the advise property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAdvise(Boolean value) { + this.advise = value; + } + + /** + * Gets the value of the preferPic property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPreferPic() { + if (preferPic == null) { + return false; + } else { + return preferPic; + } + } + + /** + * Sets the value of the preferPic property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPreferPic(Boolean value) { + this.preferPic = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOleItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOleItems.java index bc30f323cc..53b20ed02b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOleItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOleItems.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OleItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OleItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="oleItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleItem" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OleItems", propOrder = { - "oleItem" -}) -public class CTOleItems { - - protected List oleItem; - - /** - * Gets the value of the oleItem property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the oleItem property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getOleItem().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTOleItem } - * - * - */ - public List getOleItem() { - if (oleItem == null) { - oleItem = new ArrayList(); - } - return this.oleItem; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OleItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OleItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="oleItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleItem" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OleItems", propOrder = { + "oleItem" +}) +public class CTOleItems implements Child +{ + + protected List oleItem; + @XmlTransient + private Object parent; + + /** + * Gets the value of the oleItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the oleItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getOleItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTOleItem } + * + * + */ + public List getOleItem() { + if (oleItem == null) { + oleItem = new ArrayList(); + } + return this.oleItem; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOleLink.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOleLink.java index 46bef1a4ee..d2b2e2262b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOleLink.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOleLink.java @@ -1,135 +1,147 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OleLink complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OleLink">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="oleItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleItems" minOccurs="0"/>
- *       </sequence>
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *       <attribute name="progId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OleLink", propOrder = { - "oleItems" -}) -public class CTOleLink { - - protected CTOleItems oleItems; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - @XmlAttribute(required = true) - protected String progId; - - /** - * Gets the value of the oleItems property. - * - * @return - * possible object is - * {@link CTOleItems } - * - */ - public CTOleItems getOleItems() { - return oleItems; - } - - /** - * Sets the value of the oleItems property. - * - * @param value - * allowed object is - * {@link CTOleItems } - * - */ - public void setOleItems(CTOleItems value) { - this.oleItems = value; - } - - /** - * OLE Link Relationship - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the progId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getProgId() { - return progId; - } - - /** - * Sets the value of the progId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setProgId(String value) { - this.progId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OleLink complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OleLink">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="oleItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleItems" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *       <attribute name="progId" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OleLink", propOrder = { + "oleItems" +}) +public class CTOleLink implements Child +{ + + protected CTOleItems oleItems; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlAttribute(name = "progId", required = true) + protected String progId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the oleItems property. + * + * @return + * possible object is + * {@link CTOleItems } + * + */ + public CTOleItems getOleItems() { + return oleItems; + } + + /** + * Sets the value of the oleItems property. + * + * @param value + * allowed object is + * {@link CTOleItems } + * + */ + public void setOleItems(CTOleItems value) { + this.oleItems = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the progId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProgId() { + return progId; + } + + /** + * Sets the value of the progId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProgId(String value) { + this.progId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOleObject.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOleObject.java index d4114410d6..2890b96355 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOleObject.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOleObject.java @@ -1,242 +1,284 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OleObject complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OleObject">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="progId" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="dvAspect" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DvAspect" default="DVASPECT_CONTENT" />
- *       <attribute name="link" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="oleUpdate" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_OleUpdate" />
- *       <attribute name="autoLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="shapeId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OleObject") -public class CTOleObject { - - @XmlAttribute - protected String progId; - @XmlAttribute - protected STDvAspect dvAspect; - @XmlAttribute - protected String link; - @XmlAttribute - protected STOleUpdate oleUpdate; - @XmlAttribute - protected Boolean autoLoad; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long shapeId; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - - /** - * Gets the value of the progId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getProgId() { - return progId; - } - - /** - * Sets the value of the progId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setProgId(String value) { - this.progId = value; - } - - /** - * Gets the value of the dvAspect property. - * - * @return - * possible object is - * {@link STDvAspect } - * - */ - public STDvAspect getDvAspect() { - if (dvAspect == null) { - return STDvAspect.DVASPECT_CONTENT; - } else { - return dvAspect; - } - } - - /** - * Sets the value of the dvAspect property. - * - * @param value - * allowed object is - * {@link STDvAspect } - * - */ - public void setDvAspect(STDvAspect value) { - this.dvAspect = value; - } - - /** - * Gets the value of the link property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLink() { - return link; - } - - /** - * Sets the value of the link property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLink(String value) { - this.link = value; - } - - /** - * Gets the value of the oleUpdate property. - * - * @return - * possible object is - * {@link STOleUpdate } - * - */ - public STOleUpdate getOleUpdate() { - return oleUpdate; - } - - /** - * Sets the value of the oleUpdate property. - * - * @param value - * allowed object is - * {@link STOleUpdate } - * - */ - public void setOleUpdate(STOleUpdate value) { - this.oleUpdate = value; - } - - /** - * Gets the value of the autoLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoLoad() { - if (autoLoad == null) { - return false; - } else { - return autoLoad; - } - } - - /** - * Sets the value of the autoLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoLoad(Boolean value) { - this.autoLoad = value; - } - - /** - * Gets the value of the shapeId property. - * - */ - public long getShapeId() { - return shapeId; - } - - /** - * Sets the value of the shapeId property. - * - */ - public void setShapeId(long value) { - this.shapeId = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OleObject complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OleObject">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="objectPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ObjectPr" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="progId" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="dvAspect" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DvAspect" default="DVASPECT_CONTENT" />
+ *       <attribute name="link" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="oleUpdate" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_OleUpdate" />
+ *       <attribute name="autoLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="shapeId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OleObject", propOrder = { + "objectPr" +}) +public class CTOleObject implements Child +{ + + protected CTObjectPr objectPr; + @XmlAttribute(name = "progId") + protected String progId; + @XmlAttribute(name = "dvAspect") + protected STDvAspect dvAspect; + @XmlAttribute(name = "link") + protected String link; + @XmlAttribute(name = "oleUpdate") + protected STOleUpdate oleUpdate; + @XmlAttribute(name = "autoLoad") + protected Boolean autoLoad; + @XmlAttribute(name = "shapeId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long shapeId; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the objectPr property. + * + * @return + * possible object is + * {@link CTObjectPr } + * + */ + public CTObjectPr getObjectPr() { + return objectPr; + } + + /** + * Sets the value of the objectPr property. + * + * @param value + * allowed object is + * {@link CTObjectPr } + * + */ + public void setObjectPr(CTObjectPr value) { + this.objectPr = value; + } + + /** + * Gets the value of the progId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProgId() { + return progId; + } + + /** + * Sets the value of the progId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProgId(String value) { + this.progId = value; + } + + /** + * Gets the value of the dvAspect property. + * + * @return + * possible object is + * {@link STDvAspect } + * + */ + public STDvAspect getDvAspect() { + if (dvAspect == null) { + return STDvAspect.DVASPECT_CONTENT; + } else { + return dvAspect; + } + } + + /** + * Sets the value of the dvAspect property. + * + * @param value + * allowed object is + * {@link STDvAspect } + * + */ + public void setDvAspect(STDvAspect value) { + this.dvAspect = value; + } + + /** + * Gets the value of the link property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLink() { + return link; + } + + /** + * Sets the value of the link property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLink(String value) { + this.link = value; + } + + /** + * Gets the value of the oleUpdate property. + * + * @return + * possible object is + * {@link STOleUpdate } + * + */ + public STOleUpdate getOleUpdate() { + return oleUpdate; + } + + /** + * Sets the value of the oleUpdate property. + * + * @param value + * allowed object is + * {@link STOleUpdate } + * + */ + public void setOleUpdate(STOleUpdate value) { + this.oleUpdate = value; + } + + /** + * Gets the value of the autoLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoLoad() { + if (autoLoad == null) { + return false; + } else { + return autoLoad; + } + } + + /** + * Sets the value of the autoLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoLoad(Boolean value) { + this.autoLoad = value; + } + + /** + * Gets the value of the shapeId property. + * + */ + public long getShapeId() { + return shapeId; + } + + /** + * Sets the value of the shapeId property. + * + */ + public void setShapeId(long value) { + this.shapeId = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOleObjects.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOleObjects.java index 77ce1aa6e6..3ddf931f38 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOleObjects.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOleObjects.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OleObjects complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OleObjects">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="oleObject" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObject" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OleObjects", propOrder = { - "oleObject" -}) -public class CTOleObjects { - - @XmlElement(required = true) - protected List oleObject; - - /** - * Gets the value of the oleObject property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the oleObject property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getOleObject().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTOleObject } - * - * - */ - public List getOleObject() { - if (oleObject == null) { - oleObject = new ArrayList(); - } - return this.oleObject; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OleObjects complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OleObjects">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="oleObject" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObject" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OleObjects", propOrder = { + "oleObject" +}) +public class CTOleObjects implements Child +{ + + @XmlElement(required = true) + protected List oleObject; + @XmlTransient + private Object parent; + + /** + * Gets the value of the oleObject property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the oleObject property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getOleObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTOleObject } + * + * + */ + public List getOleObject() { + if (oleObject == null) { + oleObject = new ArrayList(); + } + return this.oleObject; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOleSize.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOleSize.java index 8a5e1ac80a..8016af816e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOleSize.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOleSize.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OleSize complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OleSize">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OleSize") -public class CTOleSize { - - @XmlAttribute(required = true) - protected String ref; - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OleSize complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OleSize">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OleSize") +public class CTOleSize implements Child +{ + + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTOutlinePr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTOutlinePr.java index 1815490cdf..dfdb584a6c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTOutlinePr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTOutlinePr.java @@ -1,175 +1,187 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_OutlinePr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_OutlinePr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="applyStyles" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="summaryBelow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="summaryRight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showOutlineSymbols" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_OutlinePr") -public class CTOutlinePr { - - @XmlAttribute - protected Boolean applyStyles; - @XmlAttribute - protected Boolean summaryBelow; - @XmlAttribute - protected Boolean summaryRight; - @XmlAttribute - protected Boolean showOutlineSymbols; - - /** - * Gets the value of the applyStyles property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isApplyStyles() { - if (applyStyles == null) { - return false; - } else { - return applyStyles; - } - } - - /** - * Sets the value of the applyStyles property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyStyles(Boolean value) { - this.applyStyles = value; - } - - /** - * Gets the value of the summaryBelow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSummaryBelow() { - if (summaryBelow == null) { - return true; - } else { - return summaryBelow; - } - } - - /** - * Sets the value of the summaryBelow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSummaryBelow(Boolean value) { - this.summaryBelow = value; - } - - /** - * Gets the value of the summaryRight property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSummaryRight() { - if (summaryRight == null) { - return true; - } else { - return summaryRight; - } - } - - /** - * Sets the value of the summaryRight property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSummaryRight(Boolean value) { - this.summaryRight = value; - } - - /** - * Gets the value of the showOutlineSymbols property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowOutlineSymbols() { - if (showOutlineSymbols == null) { - return true; - } else { - return showOutlineSymbols; - } - } - - /** - * Sets the value of the showOutlineSymbols property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowOutlineSymbols(Boolean value) { - this.showOutlineSymbols = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_OutlinePr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_OutlinePr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="applyStyles" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="summaryBelow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="summaryRight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showOutlineSymbols" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_OutlinePr") +public class CTOutlinePr implements Child +{ + + @XmlAttribute(name = "applyStyles") + protected Boolean applyStyles; + @XmlAttribute(name = "summaryBelow") + protected Boolean summaryBelow; + @XmlAttribute(name = "summaryRight") + protected Boolean summaryRight; + @XmlAttribute(name = "showOutlineSymbols") + protected Boolean showOutlineSymbols; + @XmlTransient + private Object parent; + + /** + * Gets the value of the applyStyles property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isApplyStyles() { + if (applyStyles == null) { + return false; + } else { + return applyStyles; + } + } + + /** + * Sets the value of the applyStyles property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyStyles(Boolean value) { + this.applyStyles = value; + } + + /** + * Gets the value of the summaryBelow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSummaryBelow() { + if (summaryBelow == null) { + return true; + } else { + return summaryBelow; + } + } + + /** + * Sets the value of the summaryBelow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSummaryBelow(Boolean value) { + this.summaryBelow = value; + } + + /** + * Gets the value of the summaryRight property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSummaryRight() { + if (summaryRight == null) { + return true; + } else { + return summaryRight; + } + } + + /** + * Sets the value of the summaryRight property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSummaryRight(Boolean value) { + this.summaryRight = value; + } + + /** + * Gets the value of the showOutlineSymbols property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowOutlineSymbols() { + if (showOutlineSymbols == null) { + return true; + } else { + return showOutlineSymbols; + } + } + + /** + * Sets the value of the showOutlineSymbols property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowOutlineSymbols(Boolean value) { + this.showOutlineSymbols = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPI.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPI.java index b175050fc0..9e27c29897 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPI.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPI.java @@ -1,348 +1,360 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PCDKPI complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PCDKPI">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="caption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="displayFolder" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="measureGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="parent" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="value" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="goal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="status" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="trend" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="weight" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="time" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PCDKPI") -public class CTPCDKPI { - - @XmlAttribute(required = true) - protected String uniqueName; - @XmlAttribute - protected String caption; - @XmlAttribute - protected String displayFolder; - @XmlAttribute - protected String measureGroup; - @XmlAttribute - protected String parent; - @XmlAttribute(required = true) - protected String value; - @XmlAttribute - protected String goal; - @XmlAttribute - protected String status; - @XmlAttribute - protected String trend; - @XmlAttribute - protected String weight; - @XmlAttribute - protected String time; - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - - /** - * Gets the value of the displayFolder property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDisplayFolder() { - return displayFolder; - } - - /** - * Sets the value of the displayFolder property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDisplayFolder(String value) { - this.displayFolder = value; - } - - /** - * Gets the value of the measureGroup property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMeasureGroup() { - return measureGroup; - } - - /** - * Sets the value of the measureGroup property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMeasureGroup(String value) { - this.measureGroup = value; - } - - /** - * Gets the value of the parent property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getParent() { - return parent; - } - - /** - * Sets the value of the parent property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setParent(String value) { - this.parent = value; - } - - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the goal property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGoal() { - return goal; - } - - /** - * Sets the value of the goal property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGoal(String value) { - this.goal = value; - } - - /** - * Gets the value of the status property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStatus() { - return status; - } - - /** - * Sets the value of the status property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStatus(String value) { - this.status = value; - } - - /** - * Gets the value of the trend property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrend() { - return trend; - } - - /** - * Sets the value of the trend property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrend(String value) { - this.trend = value; - } - - /** - * Gets the value of the weight property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getWeight() { - return weight; - } - - /** - * Sets the value of the weight property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setWeight(String value) { - this.weight = value; - } - - /** - * Gets the value of the time property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTime() { - return time; - } - - /** - * Sets the value of the time property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTime(String value) { - this.time = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PCDKPI complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PCDKPI">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="caption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="displayFolder" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="measureGroup" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="parent" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="value" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="goal" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="status" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="trend" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="weight" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="time" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PCDKPI") +public class CTPCDKPI implements Child +{ + + @XmlAttribute(name = "uniqueName", required = true) + protected String uniqueName; + @XmlAttribute(name = "caption") + protected String caption; + @XmlAttribute(name = "displayFolder") + protected String displayFolder; + @XmlAttribute(name = "measureGroup") + protected String measureGroup; + @XmlAttribute(name = "parent") + protected String parent; + @XmlAttribute(name = "value", required = true) + protected String value; + @XmlAttribute(name = "goal") + protected String goal; + @XmlAttribute(name = "status") + protected String status; + @XmlAttribute(name = "trend") + protected String trend; + @XmlAttribute(name = "weight") + protected String weight; + @XmlAttribute(name = "time") + protected String time; + @XmlTransient + private Object parentObj; + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the value of the displayFolder property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayFolder() { + return displayFolder; + } + + /** + * Sets the value of the displayFolder property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayFolder(String value) { + this.displayFolder = value; + } + + /** + * Gets the value of the measureGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMeasureGroup() { + return measureGroup; + } + + /** + * Sets the value of the measureGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMeasureGroup(String value) { + this.measureGroup = value; + } + + /** + * Gets the value of the parent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParentAttr() { + return parent; + } + + /** + * Sets the value of the parent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParent(String value) { + this.parent = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the goal property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGoal() { + return goal; + } + + /** + * Sets the value of the goal property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGoal(String value) { + this.goal = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStatus(String value) { + this.status = value; + } + + /** + * Gets the value of the trend property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrend() { + return trend; + } + + /** + * Sets the value of the trend property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrend(String value) { + this.trend = value; + } + + /** + * Gets the value of the weight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWeight() { + return weight; + } + + /** + * Sets the value of the weight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWeight(String value) { + this.weight = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parentObj; + } + + public void setParent(Object parent) { + this.parentObj = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPIs.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPIs.java index 82e50df14a..1f2821ddc9 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPIs.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDKPIs.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PCDKPIs complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PCDKPIs">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="kpi" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDKPI" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PCDKPIs", propOrder = { - "kpi" -}) -public class CTPCDKPIs { - - protected List kpi; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the kpi property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the kpi property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getKpi().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPCDKPI } - * - * - */ - public List getKpi() { - if (kpi == null) { - kpi = new ArrayList(); - } - return this.kpi; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PCDKPIs complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PCDKPIs">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="kpi" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDKPI" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PCDKPIs", propOrder = { + "kpi" +}) +public class CTPCDKPIs implements Child +{ + + protected List kpi; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the kpi property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the kpi property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getKpi().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPCDKPI } + * + * + */ + public List getKpi() { + if (kpi == null) { + kpi = new ArrayList(); + } + return this.kpi; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSCPage.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSCPage.java index 73e3cb2bff..b80a125bbf 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSCPage.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSCPage.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PCDSCPage complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PCDSCPage">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pageItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageItem" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PCDSCPage", propOrder = { - "pageItem" -}) -public class CTPCDSCPage { - - protected List pageItem; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the pageItem property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the pageItem property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPageItem().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPageItem } - * - * - */ - public List getPageItem() { - if (pageItem == null) { - pageItem = new ArrayList(); - } - return this.pageItem; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PCDSCPage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PCDSCPage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pageItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageItem" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PCDSCPage", propOrder = { + "pageItem" +}) +public class CTPCDSCPage implements Child +{ + + protected List pageItem; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pageItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pageItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPageItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPageItem } + * + * + */ + public List getPageItem() { + if (pageItem == null) { + pageItem = new ArrayList(); + } + return this.pageItem; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSDTCEntries.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSDTCEntries.java index 2fe4bfc2eb..8e88258b7f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSDTCEntries.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPCDSDTCEntries.java @@ -1,131 +1,143 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PCDSDTCEntries complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PCDSDTCEntries">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
- *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
- *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
- *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
- *       </choice>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PCDSDTCEntries", propOrder = { - "mOrNOrE" -}) -public class CTPCDSDTCEntries { - - @XmlElements({ - @XmlElement(name = "m", type = CTMissing.class), - @XmlElement(name = "s", type = CTString.class), - @XmlElement(name = "n", type = CTNumber.class), - @XmlElement(name = "e", type = CTError.class) - }) - protected List mOrNOrE; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the mOrNOrE property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mOrNOrE property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMOrNOrE().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMissing } - * {@link CTString } - * {@link CTNumber } - * {@link CTError } - * - * - */ - public List getMOrNOrE() { - if (mOrNOrE == null) { - mOrNOrE = new ArrayList(); - } - return this.mOrNOrE; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PCDSDTCEntries complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PCDSDTCEntries">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
+ *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
+ *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
+ *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
+ *       </choice>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PCDSDTCEntries", propOrder = { + "mOrNOrE" +}) +public class CTPCDSDTCEntries implements Child +{ + + @XmlElements({ + @XmlElement(name = "m", type = CTMissing.class), + @XmlElement(name = "n", type = CTNumber.class), + @XmlElement(name = "e", type = CTError.class), + @XmlElement(name = "s", type = CTString.class) + }) + protected List mOrNOrE; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mOrNOrE property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mOrNOrE property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMOrNOrE().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMissing } + * {@link CTNumber } + * {@link CTError } + * {@link CTString } + * + * + */ + public List getMOrNOrE() { + if (mOrNOrE == null) { + mOrNOrE = new ArrayList(); + } + return this.mOrNOrE; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPageBreak.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPageBreak.java index aa718063da..85f015194e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPageBreak.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPageBreak.java @@ -1,153 +1,165 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PageBreak complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PageBreak">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="brk" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Break" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="manualBreakCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PageBreak", propOrder = { - "brk" -}) -public class CTPageBreak { - - protected List brk; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long manualBreakCount; - - /** - * Gets the value of the brk property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the brk property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getBrk().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTBreak } - * - * - */ - public List getBrk() { - if (brk == null) { - brk = new ArrayList(); - } - return this.brk; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the manualBreakCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getManualBreakCount() { - if (manualBreakCount == null) { - return 0L; - } else { - return manualBreakCount; - } - } - - /** - * Sets the value of the manualBreakCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setManualBreakCount(Long value) { - this.manualBreakCount = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PageBreak complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PageBreak">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="brk" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Break" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="manualBreakCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PageBreak", propOrder = { + "brk" +}) +public class CTPageBreak implements Child +{ + + protected List brk; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "manualBreakCount") + @XmlSchemaType(name = "unsignedInt") + protected Long manualBreakCount; + @XmlTransient + private Object parent; + + /** + * Gets the value of the brk property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the brk property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getBrk().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTBreak } + * + * + */ + public List getBrk() { + if (brk == null) { + brk = new ArrayList(); + } + return this.brk; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the manualBreakCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getManualBreakCount() { + if (manualBreakCount == null) { + return 0L; + } else { + return manualBreakCount; + } + } + + /** + * Sets the value of the manualBreakCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setManualBreakCount(Long value) { + this.manualBreakCount = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPageField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPageField.java index 267b2cc67c..231d42a6a3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPageField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPageField.java @@ -1,210 +1,222 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PageField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PageField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence minOccurs="0">
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="fld" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="item" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="hier" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cap" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PageField", propOrder = { - "extLst" -}) -public class CTPageField { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected int fld; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long item; - @XmlAttribute - protected Integer hier; - @XmlAttribute - protected String name; - @XmlAttribute - protected String cap; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the fld property. - * - */ - public int getFld() { - return fld; - } - - /** - * Sets the value of the fld property. - * - */ - public void setFld(int value) { - this.fld = value; - } - - /** - * Gets the value of the item property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getItem() { - return item; - } - - /** - * Sets the value of the item property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setItem(Long value) { - this.item = value; - } - - /** - * Gets the value of the hier property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getHier() { - return hier; - } - - /** - * Sets the value of the hier property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setHier(Integer value) { - this.hier = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the cap property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCap() { - return cap; - } - - /** - * Sets the value of the cap property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCap(String value) { - this.cap = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PageField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PageField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence minOccurs="0">
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="fld" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="item" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="hier" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cap" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PageField", propOrder = { + "extLst" +}) +public class CTPageField implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "fld", required = true) + protected int fld; + @XmlAttribute(name = "item") + @XmlSchemaType(name = "unsignedInt") + protected Long item; + @XmlAttribute(name = "hier") + protected Integer hier; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "cap") + protected String cap; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the fld property. + * + */ + public int getFld() { + return fld; + } + + /** + * Sets the value of the fld property. + * + */ + public void setFld(int value) { + this.fld = value; + } + + /** + * Gets the value of the item property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getItem() { + return item; + } + + /** + * Sets the value of the item property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setItem(Long value) { + this.item = value; + } + + /** + * Gets the value of the hier property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getHier() { + return hier; + } + + /** + * Sets the value of the hier property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHier(Integer value) { + this.hier = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the cap property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCap() { + return cap; + } + + /** + * Sets the value of the cap property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCap(String value) { + this.cap = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPageFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPageFields.java index 38803de251..e59d054989 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPageFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPageFields.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PageFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PageFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pageField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageField" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PageFields", propOrder = { - "pageField" -}) -public class CTPageFields { - - @XmlElement(required = true) - protected List pageField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the pageField property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the pageField property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPageField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPageField } - * - * - */ - public List getPageField() { - if (pageField == null) { - pageField = new ArrayList(); - } - return this.pageField; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PageFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PageFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pageField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageField" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PageFields", propOrder = { + "pageField" +}) +public class CTPageFields implements Child +{ + + @XmlElement(required = true) + protected List pageField; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pageField property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pageField property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPageField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPageField } + * + * + */ + public List getPageField() { + if (pageField == null) { + pageField = new ArrayList(); + } + return this.pageField; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPageItem.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPageItem.java index e5270bf64f..97ba90d5f3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPageItem.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPageItem.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PageItem complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PageItem">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PageItem") -public class CTPageItem { - - @XmlAttribute(required = true) - protected String name; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PageItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PageItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PageItem") +public class CTPageItem implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPageMargins.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPageMargins.java index 5e72ab1f3d..0cb62d2b84 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPageMargins.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPageMargins.java @@ -1,165 +1,177 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PageMargins complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PageMargins">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="left" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="right" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="top" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="bottom" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="header" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="footer" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PageMargins") -public class CTPageMargins { - - @XmlAttribute(required = true) - protected double left; - @XmlAttribute(required = true) - protected double right; - @XmlAttribute(required = true) - protected double top; - @XmlAttribute(required = true) - protected double bottom; - @XmlAttribute(required = true) - protected double header; - @XmlAttribute(required = true) - protected double footer; - - /** - * Gets the value of the left property. - * - */ - public double getLeft() { - return left; - } - - /** - * Sets the value of the left property. - * - */ - public void setLeft(double value) { - this.left = value; - } - - /** - * Gets the value of the right property. - * - */ - public double getRight() { - return right; - } - - /** - * Sets the value of the right property. - * - */ - public void setRight(double value) { - this.right = value; - } - - /** - * Gets the value of the top property. - * - */ - public double getTop() { - return top; - } - - /** - * Sets the value of the top property. - * - */ - public void setTop(double value) { - this.top = value; - } - - /** - * Gets the value of the bottom property. - * - */ - public double getBottom() { - return bottom; - } - - /** - * Sets the value of the bottom property. - * - */ - public void setBottom(double value) { - this.bottom = value; - } - - /** - * Gets the value of the header property. - * - */ - public double getHeader() { - return header; - } - - /** - * Sets the value of the header property. - * - */ - public void setHeader(double value) { - this.header = value; - } - - /** - * Gets the value of the footer property. - * - */ - public double getFooter() { - return footer; - } - - /** - * Sets the value of the footer property. - * - */ - public void setFooter(double value) { - this.footer = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PageMargins complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PageMargins">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="left" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="right" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="top" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="bottom" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="header" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="footer" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PageMargins") +public class CTPageMargins implements Child +{ + + @XmlAttribute(name = "left", required = true) + protected double left; + @XmlAttribute(name = "right", required = true) + protected double right; + @XmlAttribute(name = "top", required = true) + protected double top; + @XmlAttribute(name = "bottom", required = true) + protected double bottom; + @XmlAttribute(name = "header", required = true) + protected double header; + @XmlAttribute(name = "footer", required = true) + protected double footer; + @XmlTransient + private Object parent; + + /** + * Gets the value of the left property. + * + */ + public double getLeft() { + return left; + } + + /** + * Sets the value of the left property. + * + */ + public void setLeft(double value) { + this.left = value; + } + + /** + * Gets the value of the right property. + * + */ + public double getRight() { + return right; + } + + /** + * Sets the value of the right property. + * + */ + public void setRight(double value) { + this.right = value; + } + + /** + * Gets the value of the top property. + * + */ + public double getTop() { + return top; + } + + /** + * Sets the value of the top property. + * + */ + public void setTop(double value) { + this.top = value; + } + + /** + * Gets the value of the bottom property. + * + */ + public double getBottom() { + return bottom; + } + + /** + * Sets the value of the bottom property. + * + */ + public void setBottom(double value) { + this.bottom = value; + } + + /** + * Gets the value of the header property. + * + */ + public double getHeader() { + return header; + } + + /** + * Sets the value of the header property. + * + */ + public void setHeader(double value) { + this.header = value; + } + + /** + * Gets the value of the footer property. + * + */ + public double getFooter() { + return footer; + } + + /** + * Sets the value of the footer property. + * + */ + public void setFooter(double value) { + this.footer = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetUpPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetUpPr.java index 958c53462c..f8ec21bd18 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetUpPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetUpPr.java @@ -1,113 +1,125 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PageSetUpPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PageSetUpPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="autoPageBreaks" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="fitToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PageSetUpPr") -public class CTPageSetUpPr { - - @XmlAttribute - protected Boolean autoPageBreaks; - @XmlAttribute - protected Boolean fitToPage; - - /** - * Gets the value of the autoPageBreaks property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoPageBreaks() { - if (autoPageBreaks == null) { - return true; - } else { - return autoPageBreaks; - } - } - - /** - * Sets the value of the autoPageBreaks property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoPageBreaks(Boolean value) { - this.autoPageBreaks = value; - } - - /** - * Gets the value of the fitToPage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFitToPage() { - if (fitToPage == null) { - return false; - } else { - return fitToPage; - } - } - - /** - * Sets the value of the fitToPage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFitToPage(Boolean value) { - this.fitToPage = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PageSetUpPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PageSetUpPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="autoPageBreaks" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="fitToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PageSetUpPr") +public class CTPageSetUpPr implements Child +{ + + @XmlAttribute(name = "autoPageBreaks") + protected Boolean autoPageBreaks; + @XmlAttribute(name = "fitToPage") + protected Boolean fitToPage; + @XmlTransient + private Object parent; + + /** + * Gets the value of the autoPageBreaks property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoPageBreaks() { + if (autoPageBreaks == null) { + return true; + } else { + return autoPageBreaks; + } + } + + /** + * Sets the value of the autoPageBreaks property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoPageBreaks(Boolean value) { + this.autoPageBreaks = value; + } + + /** + * Gets the value of the fitToPage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFitToPage() { + if (fitToPage == null) { + return false; + } else { + return fitToPage; + } + } + + /** + * Sets the value of the fitToPage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFitToPage(Boolean value) { + this.fitToPage = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetup.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetup.java index b0cc653794..50c019ae7a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetup.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPageSetup.java @@ -1,583 +1,649 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PageSetup complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PageSetup">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
- *       <attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="fitToWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="fitToHeight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="pageOrder" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PageOrder" default="downThenOver" />
- *       <attribute name="orientation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Orientation" default="default" />
- *       <attribute name="usePrinterDefaults" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="cellComments" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellComments" default="none" />
- *       <attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="errors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PrintError" default="displayed" />
- *       <attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
- *       <attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
- *       <attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PageSetup") -public class CTPageSetup { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long paperSize; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long scale; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long firstPageNumber; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long fitToWidth; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long fitToHeight; - @XmlAttribute - protected STPageOrder pageOrder; - @XmlAttribute - protected STOrientation orientation; - @XmlAttribute - protected Boolean usePrinterDefaults; - @XmlAttribute - protected Boolean blackAndWhite; - @XmlAttribute - protected Boolean draft; - @XmlAttribute - protected STCellComments cellComments; - @XmlAttribute - protected Boolean useFirstPageNumber; - @XmlAttribute - protected STPrintError errors; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long horizontalDpi; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long verticalDpi; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long copies; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - - /** - * Gets the value of the paperSize property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getPaperSize() { - if (paperSize == null) { - return 1L; - } else { - return paperSize; - } - } - - /** - * Sets the value of the paperSize property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPaperSize(Long value) { - this.paperSize = value; - } - - /** - * Gets the value of the scale property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getScale() { - if (scale == null) { - return 100L; - } else { - return scale; - } - } - - /** - * Sets the value of the scale property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setScale(Long value) { - this.scale = value; - } - - /** - * Gets the value of the firstPageNumber property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getFirstPageNumber() { - if (firstPageNumber == null) { - return 1L; - } else { - return firstPageNumber; - } - } - - /** - * Sets the value of the firstPageNumber property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFirstPageNumber(Long value) { - this.firstPageNumber = value; - } - - /** - * Gets the value of the fitToWidth property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getFitToWidth() { - if (fitToWidth == null) { - return 1L; - } else { - return fitToWidth; - } - } - - /** - * Sets the value of the fitToWidth property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFitToWidth(Long value) { - this.fitToWidth = value; - } - - /** - * Gets the value of the fitToHeight property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getFitToHeight() { - if (fitToHeight == null) { - return 1L; - } else { - return fitToHeight; - } - } - - /** - * Sets the value of the fitToHeight property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFitToHeight(Long value) { - this.fitToHeight = value; - } - - /** - * Gets the value of the pageOrder property. - * - * @return - * possible object is - * {@link STPageOrder } - * - */ - public STPageOrder getPageOrder() { - if (pageOrder == null) { - return STPageOrder.DOWN_THEN_OVER; - } else { - return pageOrder; - } - } - - /** - * Sets the value of the pageOrder property. - * - * @param value - * allowed object is - * {@link STPageOrder } - * - */ - public void setPageOrder(STPageOrder value) { - this.pageOrder = value; - } - - /** - * Gets the value of the orientation property. - * - * @return - * possible object is - * {@link STOrientation } - * - */ - public STOrientation getOrientation() { - if (orientation == null) { - return STOrientation.DEFAULT; - } else { - return orientation; - } - } - - /** - * Sets the value of the orientation property. - * - * @param value - * allowed object is - * {@link STOrientation } - * - */ - public void setOrientation(STOrientation value) { - this.orientation = value; - } - - /** - * Gets the value of the usePrinterDefaults property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUsePrinterDefaults() { - if (usePrinterDefaults == null) { - return true; - } else { - return usePrinterDefaults; - } - } - - /** - * Sets the value of the usePrinterDefaults property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUsePrinterDefaults(Boolean value) { - this.usePrinterDefaults = value; - } - - /** - * Gets the value of the blackAndWhite property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBlackAndWhite() { - if (blackAndWhite == null) { - return false; - } else { - return blackAndWhite; - } - } - - /** - * Sets the value of the blackAndWhite property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBlackAndWhite(Boolean value) { - this.blackAndWhite = value; - } - - /** - * Gets the value of the draft property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDraft() { - if (draft == null) { - return false; - } else { - return draft; - } - } - - /** - * Sets the value of the draft property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDraft(Boolean value) { - this.draft = value; - } - - /** - * Gets the value of the cellComments property. - * - * @return - * possible object is - * {@link STCellComments } - * - */ - public STCellComments getCellComments() { - if (cellComments == null) { - return STCellComments.NONE; - } else { - return cellComments; - } - } - - /** - * Sets the value of the cellComments property. - * - * @param value - * allowed object is - * {@link STCellComments } - * - */ - public void setCellComments(STCellComments value) { - this.cellComments = value; - } - - /** - * Gets the value of the useFirstPageNumber property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUseFirstPageNumber() { - if (useFirstPageNumber == null) { - return false; - } else { - return useFirstPageNumber; - } - } - - /** - * Sets the value of the useFirstPageNumber property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUseFirstPageNumber(Boolean value) { - this.useFirstPageNumber = value; - } - - /** - * Gets the value of the errors property. - * - * @return - * possible object is - * {@link STPrintError } - * - */ - public STPrintError getErrors() { - if (errors == null) { - return STPrintError.DISPLAYED; - } else { - return errors; - } - } - - /** - * Sets the value of the errors property. - * - * @param value - * allowed object is - * {@link STPrintError } - * - */ - public void setErrors(STPrintError value) { - this.errors = value; - } - - /** - * Gets the value of the horizontalDpi property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getHorizontalDpi() { - if (horizontalDpi == null) { - return 600L; - } else { - return horizontalDpi; - } - } - - /** - * Sets the value of the horizontalDpi property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setHorizontalDpi(Long value) { - this.horizontalDpi = value; - } - - /** - * Gets the value of the verticalDpi property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getVerticalDpi() { - if (verticalDpi == null) { - return 600L; - } else { - return verticalDpi; - } - } - - /** - * Sets the value of the verticalDpi property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setVerticalDpi(Long value) { - this.verticalDpi = value; - } - - /** - * Gets the value of the copies property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCopies() { - if (copies == null) { - return 1L; - } else { - return copies; - } - } - - /** - * Sets the value of the copies property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCopies(Long value) { - this.copies = value; - } - - /** - * Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PageSetup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PageSetup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="paperSize" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="paperHeight" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
+ *       <attribute name="paperWidth" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_PositiveUniversalMeasure" />
+ *       <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
+ *       <attribute name="firstPageNumber" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="fitToWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="fitToHeight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="pageOrder" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PageOrder" default="downThenOver" />
+ *       <attribute name="orientation" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Orientation" default="default" />
+ *       <attribute name="usePrinterDefaults" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="blackAndWhite" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="draft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="cellComments" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellComments" default="none" />
+ *       <attribute name="useFirstPageNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="errors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PrintError" default="displayed" />
+ *       <attribute name="horizontalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
+ *       <attribute name="verticalDpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="600" />
+ *       <attribute name="copies" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PageSetup") +public class CTPageSetup implements Child +{ + + @XmlAttribute(name = "paperSize") + @XmlSchemaType(name = "unsignedInt") + protected Long paperSize; + @XmlAttribute(name = "paperHeight") + protected String paperHeight; + @XmlAttribute(name = "paperWidth") + protected String paperWidth; + @XmlAttribute(name = "scale") + @XmlSchemaType(name = "unsignedInt") + protected Long scale; + @XmlAttribute(name = "firstPageNumber") + @XmlSchemaType(name = "unsignedInt") + protected Long firstPageNumber; + @XmlAttribute(name = "fitToWidth") + @XmlSchemaType(name = "unsignedInt") + protected Long fitToWidth; + @XmlAttribute(name = "fitToHeight") + @XmlSchemaType(name = "unsignedInt") + protected Long fitToHeight; + @XmlAttribute(name = "pageOrder") + protected STPageOrder pageOrder; + @XmlAttribute(name = "orientation") + protected STOrientation orientation; + @XmlAttribute(name = "usePrinterDefaults") + protected Boolean usePrinterDefaults; + @XmlAttribute(name = "blackAndWhite") + protected Boolean blackAndWhite; + @XmlAttribute(name = "draft") + protected Boolean draft; + @XmlAttribute(name = "cellComments") + protected STCellComments cellComments; + @XmlAttribute(name = "useFirstPageNumber") + protected Boolean useFirstPageNumber; + @XmlAttribute(name = "errors") + protected STPrintError errors; + @XmlAttribute(name = "horizontalDpi") + @XmlSchemaType(name = "unsignedInt") + protected Long horizontalDpi; + @XmlAttribute(name = "verticalDpi") + @XmlSchemaType(name = "unsignedInt") + protected Long verticalDpi; + @XmlAttribute(name = "copies") + @XmlSchemaType(name = "unsignedInt") + protected Long copies; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the paperSize property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getPaperSize() { + if (paperSize == null) { + return 1L; + } else { + return paperSize; + } + } + + /** + * Sets the value of the paperSize property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPaperSize(Long value) { + this.paperSize = value; + } + + /** + * Gets the value of the paperHeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPaperHeight() { + return paperHeight; + } + + /** + * Sets the value of the paperHeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPaperHeight(String value) { + this.paperHeight = value; + } + + /** + * Gets the value of the paperWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPaperWidth() { + return paperWidth; + } + + /** + * Sets the value of the paperWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPaperWidth(String value) { + this.paperWidth = value; + } + + /** + * Gets the value of the scale property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getScale() { + if (scale == null) { + return 100L; + } else { + return scale; + } + } + + /** + * Sets the value of the scale property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setScale(Long value) { + this.scale = value; + } + + /** + * Gets the value of the firstPageNumber property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getFirstPageNumber() { + if (firstPageNumber == null) { + return 1L; + } else { + return firstPageNumber; + } + } + + /** + * Sets the value of the firstPageNumber property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFirstPageNumber(Long value) { + this.firstPageNumber = value; + } + + /** + * Gets the value of the fitToWidth property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getFitToWidth() { + if (fitToWidth == null) { + return 1L; + } else { + return fitToWidth; + } + } + + /** + * Sets the value of the fitToWidth property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFitToWidth(Long value) { + this.fitToWidth = value; + } + + /** + * Gets the value of the fitToHeight property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getFitToHeight() { + if (fitToHeight == null) { + return 1L; + } else { + return fitToHeight; + } + } + + /** + * Sets the value of the fitToHeight property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFitToHeight(Long value) { + this.fitToHeight = value; + } + + /** + * Gets the value of the pageOrder property. + * + * @return + * possible object is + * {@link STPageOrder } + * + */ + public STPageOrder getPageOrder() { + if (pageOrder == null) { + return STPageOrder.DOWN_THEN_OVER; + } else { + return pageOrder; + } + } + + /** + * Sets the value of the pageOrder property. + * + * @param value + * allowed object is + * {@link STPageOrder } + * + */ + public void setPageOrder(STPageOrder value) { + this.pageOrder = value; + } + + /** + * Gets the value of the orientation property. + * + * @return + * possible object is + * {@link STOrientation } + * + */ + public STOrientation getOrientation() { + if (orientation == null) { + return STOrientation.DEFAULT; + } else { + return orientation; + } + } + + /** + * Sets the value of the orientation property. + * + * @param value + * allowed object is + * {@link STOrientation } + * + */ + public void setOrientation(STOrientation value) { + this.orientation = value; + } + + /** + * Gets the value of the usePrinterDefaults property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUsePrinterDefaults() { + if (usePrinterDefaults == null) { + return true; + } else { + return usePrinterDefaults; + } + } + + /** + * Sets the value of the usePrinterDefaults property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUsePrinterDefaults(Boolean value) { + this.usePrinterDefaults = value; + } + + /** + * Gets the value of the blackAndWhite property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBlackAndWhite() { + if (blackAndWhite == null) { + return false; + } else { + return blackAndWhite; + } + } + + /** + * Sets the value of the blackAndWhite property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBlackAndWhite(Boolean value) { + this.blackAndWhite = value; + } + + /** + * Gets the value of the draft property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDraft() { + if (draft == null) { + return false; + } else { + return draft; + } + } + + /** + * Sets the value of the draft property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDraft(Boolean value) { + this.draft = value; + } + + /** + * Gets the value of the cellComments property. + * + * @return + * possible object is + * {@link STCellComments } + * + */ + public STCellComments getCellComments() { + if (cellComments == null) { + return STCellComments.NONE; + } else { + return cellComments; + } + } + + /** + * Sets the value of the cellComments property. + * + * @param value + * allowed object is + * {@link STCellComments } + * + */ + public void setCellComments(STCellComments value) { + this.cellComments = value; + } + + /** + * Gets the value of the useFirstPageNumber property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUseFirstPageNumber() { + if (useFirstPageNumber == null) { + return false; + } else { + return useFirstPageNumber; + } + } + + /** + * Sets the value of the useFirstPageNumber property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUseFirstPageNumber(Boolean value) { + this.useFirstPageNumber = value; + } + + /** + * Gets the value of the errors property. + * + * @return + * possible object is + * {@link STPrintError } + * + */ + public STPrintError getErrors() { + if (errors == null) { + return STPrintError.DISPLAYED; + } else { + return errors; + } + } + + /** + * Sets the value of the errors property. + * + * @param value + * allowed object is + * {@link STPrintError } + * + */ + public void setErrors(STPrintError value) { + this.errors = value; + } + + /** + * Gets the value of the horizontalDpi property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getHorizontalDpi() { + if (horizontalDpi == null) { + return 600L; + } else { + return horizontalDpi; + } + } + + /** + * Sets the value of the horizontalDpi property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setHorizontalDpi(Long value) { + this.horizontalDpi = value; + } + + /** + * Gets the value of the verticalDpi property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getVerticalDpi() { + if (verticalDpi == null) { + return 600L; + } else { + return verticalDpi; + } + } + + /** + * Sets the value of the verticalDpi property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setVerticalDpi(Long value) { + this.verticalDpi = value; + } + + /** + * Gets the value of the copies property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCopies() { + if (copies == null) { + return 1L; + } else { + return copies; + } + } + + /** + * Sets the value of the copies property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCopies(Long value) { + this.copies = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPages.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPages.java index 78becefe38..cf9a7c810f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPages.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPages.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Pages complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Pages">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="page" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDSCPage" maxOccurs="4"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Pages", propOrder = { - "page" -}) -public class CTPages { - - @XmlElement(required = true) - protected List page; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the page property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the page property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPage().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPCDSCPage } - * - * - */ - public List getPage() { - if (page == null) { - page = new ArrayList(); - } - return this.page; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Pages complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Pages">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="page" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDSCPage" maxOccurs="4"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Pages", propOrder = { + "page" +}) +public class CTPages implements Child +{ + + @XmlElement(required = true) + protected List page; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the page property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the page property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPCDSCPage } + * + * + */ + public List getPage() { + if (page == null) { + page = new ArrayList(); + } + return this.page; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPane.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPane.java index 81a668edc7..ec6b0fcacd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPane.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPane.java @@ -1,202 +1,214 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Pane complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Pane">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="xSplit" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
- *       <attribute name="ySplit" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
- *       <attribute name="topLeftCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="activePane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Pane" default="topLeft" />
- *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PaneState" default="split" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Pane") -public class CTPane { - - @XmlAttribute - protected Double xSplit; - @XmlAttribute - protected Double ySplit; - @XmlAttribute - protected String topLeftCell; - @XmlAttribute - protected STPane activePane; - @XmlAttribute - protected STPaneState state; - - /** - * Gets the value of the xSplit property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getXSplit() { - if (xSplit == null) { - return 0.0D; - } else { - return xSplit; - } - } - - /** - * Sets the value of the xSplit property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setXSplit(Double value) { - this.xSplit = value; - } - - /** - * Gets the value of the ySplit property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getYSplit() { - if (ySplit == null) { - return 0.0D; - } else { - return ySplit; - } - } - - /** - * Sets the value of the ySplit property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setYSplit(Double value) { - this.ySplit = value; - } - - /** - * Gets the value of the topLeftCell property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTopLeftCell() { - return topLeftCell; - } - - /** - * Sets the value of the topLeftCell property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTopLeftCell(String value) { - this.topLeftCell = value; - } - - /** - * Gets the value of the activePane property. - * - * @return - * possible object is - * {@link STPane } - * - */ - public STPane getActivePane() { - if (activePane == null) { - return STPane.TOP_LEFT; - } else { - return activePane; - } - } - - /** - * Sets the value of the activePane property. - * - * @param value - * allowed object is - * {@link STPane } - * - */ - public void setActivePane(STPane value) { - this.activePane = value; - } - - /** - * Gets the value of the state property. - * - * @return - * possible object is - * {@link STPaneState } - * - */ - public STPaneState getState() { - if (state == null) { - return STPaneState.SPLIT; - } else { - return state; - } - } - - /** - * Sets the value of the state property. - * - * @param value - * allowed object is - * {@link STPaneState } - * - */ - public void setState(STPaneState value) { - this.state = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Pane complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Pane">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="xSplit" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="ySplit" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="topLeftCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="activePane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Pane" default="topLeft" />
+ *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PaneState" default="split" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Pane") +public class CTPane implements Child +{ + + @XmlAttribute(name = "xSplit") + protected Double xSplit; + @XmlAttribute(name = "ySplit") + protected Double ySplit; + @XmlAttribute(name = "topLeftCell") + protected String topLeftCell; + @XmlAttribute(name = "activePane") + protected STPane activePane; + @XmlAttribute(name = "state") + protected STPaneState state; + @XmlTransient + private Object parent; + + /** + * Gets the value of the xSplit property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getXSplit() { + if (xSplit == null) { + return 0.0D; + } else { + return xSplit; + } + } + + /** + * Sets the value of the xSplit property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setXSplit(Double value) { + this.xSplit = value; + } + + /** + * Gets the value of the ySplit property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getYSplit() { + if (ySplit == null) { + return 0.0D; + } else { + return ySplit; + } + } + + /** + * Sets the value of the ySplit property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setYSplit(Double value) { + this.ySplit = value; + } + + /** + * Gets the value of the topLeftCell property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTopLeftCell() { + return topLeftCell; + } + + /** + * Sets the value of the topLeftCell property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTopLeftCell(String value) { + this.topLeftCell = value; + } + + /** + * Gets the value of the activePane property. + * + * @return + * possible object is + * {@link STPane } + * + */ + public STPane getActivePane() { + if (activePane == null) { + return STPane.TOP_LEFT; + } else { + return activePane; + } + } + + /** + * Sets the value of the activePane property. + * + * @param value + * allowed object is + * {@link STPane } + * + */ + public void setActivePane(STPane value) { + this.activePane = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link STPaneState } + * + */ + public STPaneState getState() { + if (state == null) { + return STPaneState.SPLIT; + } else { + return state; + } + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link STPaneState } + * + */ + public void setState(STPaneState value) { + this.state = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTParameter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTParameter.java index b583cd7e26..80c4b84b3f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTParameter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTParameter.java @@ -1,333 +1,345 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Parameter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Parameter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sqlType" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="parameterType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ParameterType" default="prompt" />
- *       <attribute name="refreshOnChange" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="prompt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="boolean" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="double" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="integer" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="string" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Parameter") -public class CTParameter { - - @XmlAttribute - protected String name; - @XmlAttribute - protected Integer sqlType; - @XmlAttribute - protected STParameterType parameterType; - @XmlAttribute - protected Boolean refreshOnChange; - @XmlAttribute - protected String prompt; - @XmlAttribute(name = "boolean") - protected Boolean _boolean; - @XmlAttribute(name = "double") - protected Double _double; - @XmlAttribute - protected Integer integer; - @XmlAttribute - protected String string; - @XmlAttribute - protected String cell; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the sqlType property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getSqlType() { - if (sqlType == null) { - return 0; - } else { - return sqlType; - } - } - - /** - * Sets the value of the sqlType property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setSqlType(Integer value) { - this.sqlType = value; - } - - /** - * Gets the value of the parameterType property. - * - * @return - * possible object is - * {@link STParameterType } - * - */ - public STParameterType getParameterType() { - if (parameterType == null) { - return STParameterType.PROMPT; - } else { - return parameterType; - } - } - - /** - * Sets the value of the parameterType property. - * - * @param value - * allowed object is - * {@link STParameterType } - * - */ - public void setParameterType(STParameterType value) { - this.parameterType = value; - } - - /** - * Gets the value of the refreshOnChange property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRefreshOnChange() { - if (refreshOnChange == null) { - return false; - } else { - return refreshOnChange; - } - } - - /** - * Sets the value of the refreshOnChange property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRefreshOnChange(Boolean value) { - this.refreshOnChange = value; - } - - /** - * Gets the value of the prompt property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPrompt() { - return prompt; - } - - /** - * Sets the value of the prompt property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPrompt(String value) { - this.prompt = value; - } - - /** - * Gets the value of the boolean property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isBoolean() { - return _boolean; - } - - /** - * Sets the value of the boolean property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBoolean(Boolean value) { - this._boolean = value; - } - - /** - * Gets the value of the double property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getDouble() { - return _double; - } - - /** - * Sets the value of the double property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setDouble(Double value) { - this._double = value; - } - - /** - * Gets the value of the integer property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getInteger() { - return integer; - } - - /** - * Sets the value of the integer property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setInteger(Integer value) { - this.integer = value; - } - - /** - * Gets the value of the string property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getString() { - return string; - } - - /** - * Sets the value of the string property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setString(String value) { - this.string = value; - } - - /** - * Gets the value of the cell property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCell() { - return cell; - } - - /** - * Sets the value of the cell property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCell(String value) { - this.cell = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Parameter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Parameter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sqlType" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="parameterType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ParameterType" default="prompt" />
+ *       <attribute name="refreshOnChange" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="prompt" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="boolean" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="double" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="integer" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="string" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cell" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Parameter") +public class CTParameter implements Child +{ + + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "sqlType") + protected Integer sqlType; + @XmlAttribute(name = "parameterType") + protected STParameterType parameterType; + @XmlAttribute(name = "refreshOnChange") + protected Boolean refreshOnChange; + @XmlAttribute(name = "prompt") + protected String prompt; + @XmlAttribute(name = "boolean") + protected Boolean _boolean; + @XmlAttribute(name = "double") + protected Double _double; + @XmlAttribute(name = "integer") + protected Integer integer; + @XmlAttribute(name = "string") + protected String string; + @XmlAttribute(name = "cell") + protected String cell; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the sqlType property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getSqlType() { + if (sqlType == null) { + return 0; + } else { + return sqlType; + } + } + + /** + * Sets the value of the sqlType property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSqlType(Integer value) { + this.sqlType = value; + } + + /** + * Gets the value of the parameterType property. + * + * @return + * possible object is + * {@link STParameterType } + * + */ + public STParameterType getParameterType() { + if (parameterType == null) { + return STParameterType.PROMPT; + } else { + return parameterType; + } + } + + /** + * Sets the value of the parameterType property. + * + * @param value + * allowed object is + * {@link STParameterType } + * + */ + public void setParameterType(STParameterType value) { + this.parameterType = value; + } + + /** + * Gets the value of the refreshOnChange property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRefreshOnChange() { + if (refreshOnChange == null) { + return false; + } else { + return refreshOnChange; + } + } + + /** + * Sets the value of the refreshOnChange property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRefreshOnChange(Boolean value) { + this.refreshOnChange = value; + } + + /** + * Gets the value of the prompt property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrompt() { + return prompt; + } + + /** + * Sets the value of the prompt property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrompt(String value) { + this.prompt = value; + } + + /** + * Gets the value of the boolean property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isBoolean() { + return _boolean; + } + + /** + * Sets the value of the boolean property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBoolean(Boolean value) { + this._boolean = value; + } + + /** + * Gets the value of the double property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getDouble() { + return _double; + } + + /** + * Sets the value of the double property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setDouble(Double value) { + this._double = value; + } + + /** + * Gets the value of the integer property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getInteger() { + return integer; + } + + /** + * Sets the value of the integer property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setInteger(Integer value) { + this.integer = value; + } + + /** + * Gets the value of the string property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getString() { + return string; + } + + /** + * Sets the value of the string property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setString(String value) { + this.string = value; + } + + /** + * Gets the value of the cell property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCell() { + return cell; + } + + /** + * Sets the value of the cell property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCell(String value) { + this.cell = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTParameters.java b/src/xlsx4j/java/org/xlsx4j/sml/CTParameters.java index d141657f4d..34fbcd7c6c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTParameters.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTParameters.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Parameters complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Parameters">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="parameter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Parameter" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Parameters", propOrder = { - "parameter" -}) -public class CTParameters { - - @XmlElement(required = true) - protected List parameter; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the parameter property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the parameter property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getParameter().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTParameter } - * - * - */ - public List getParameter() { - if (parameter == null) { - parameter = new ArrayList(); - } - return this.parameter; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Parameters complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Parameters">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="parameter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Parameter" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Parameters", propOrder = { + "parameter" +}) +public class CTParameters implements Child +{ + + @XmlElement(required = true) + protected List parameter; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the parameter property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the parameter property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getParameter().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTParameter } + * + * + */ + public List getParameter() { + if (parameter == null) { + parameter = new ArrayList(); + } + return this.parameter; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPatternFill.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPatternFill.java index c8ca6c1a6b..0060fa83b9 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPatternFill.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPatternFill.java @@ -1,135 +1,147 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PatternFill complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PatternFill">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="fgColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
- *         <element name="bgColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="patternType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PatternType" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PatternFill", propOrder = { - "fgColor", - "bgColor" -}) -public class CTPatternFill { - - protected CTColor fgColor; - protected CTColor bgColor; - @XmlAttribute - protected STPatternType patternType; - - /** - * Gets the value of the fgColor property. - * - * @return - * possible object is - * {@link CTColor } - * - */ - public CTColor getFgColor() { - return fgColor; - } - - /** - * Sets the value of the fgColor property. - * - * @param value - * allowed object is - * {@link CTColor } - * - */ - public void setFgColor(CTColor value) { - this.fgColor = value; - } - - /** - * Gets the value of the bgColor property. - * - * @return - * possible object is - * {@link CTColor } - * - */ - public CTColor getBgColor() { - return bgColor; - } - - /** - * Sets the value of the bgColor property. - * - * @param value - * allowed object is - * {@link CTColor } - * - */ - public void setBgColor(CTColor value) { - this.bgColor = value; - } - - /** - * Gets the value of the patternType property. - * - * @return - * possible object is - * {@link STPatternType } - * - */ - public STPatternType getPatternType() { - return patternType; - } - - /** - * Sets the value of the patternType property. - * - * @param value - * allowed object is - * {@link STPatternType } - * - */ - public void setPatternType(STPatternType value) { - this.patternType = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PatternFill complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PatternFill">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="fgColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
+ *         <element name="bgColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="patternType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PatternType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PatternFill", propOrder = { + "fgColor", + "bgColor" +}) +public class CTPatternFill implements Child +{ + + protected CTColor fgColor; + protected CTColor bgColor; + @XmlAttribute(name = "patternType") + protected STPatternType patternType; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fgColor property. + * + * @return + * possible object is + * {@link CTColor } + * + */ + public CTColor getFgColor() { + return fgColor; + } + + /** + * Sets the value of the fgColor property. + * + * @param value + * allowed object is + * {@link CTColor } + * + */ + public void setFgColor(CTColor value) { + this.fgColor = value; + } + + /** + * Gets the value of the bgColor property. + * + * @return + * possible object is + * {@link CTColor } + * + */ + public CTColor getBgColor() { + return bgColor; + } + + /** + * Sets the value of the bgColor property. + * + * @param value + * allowed object is + * {@link CTColor } + * + */ + public void setBgColor(CTColor value) { + this.bgColor = value; + } + + /** + * Gets the value of the patternType property. + * + * @return + * possible object is + * {@link STPatternType } + * + */ + public STPatternType getPatternType() { + return patternType; + } + + /** + * Sets the value of the patternType property. + * + * @param value + * allowed object is + * {@link STPatternType } + * + */ + public void setPatternType(STPatternType value) { + this.patternType = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticPr.java index ea3bf99bf9..f3c6c4b939 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticPr.java @@ -1,132 +1,144 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PhoneticPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PhoneticPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="fontId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontId" />
- *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PhoneticType" default="fullwidthKatakana" />
- *       <attribute name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PhoneticAlignment" default="left" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PhoneticPr") -public class CTPhoneticPr { - - @XmlAttribute(required = true) - protected long fontId; - @XmlAttribute - protected STPhoneticType type; - @XmlAttribute - protected STPhoneticAlignment alignment; - - /** - * Gets the value of the fontId property. - * - */ - public long getFontId() { - return fontId; - } - - /** - * Sets the value of the fontId property. - * - */ - public void setFontId(long value) { - this.fontId = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STPhoneticType } - * - */ - public STPhoneticType getType() { - if (type == null) { - return STPhoneticType.FULLWIDTH_KATAKANA; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STPhoneticType } - * - */ - public void setType(STPhoneticType value) { - this.type = value; - } - - /** - * Gets the value of the alignment property. - * - * @return - * possible object is - * {@link STPhoneticAlignment } - * - */ - public STPhoneticAlignment getAlignment() { - if (alignment == null) { - return STPhoneticAlignment.LEFT; - } else { - return alignment; - } - } - - /** - * Sets the value of the alignment property. - * - * @param value - * allowed object is - * {@link STPhoneticAlignment } - * - */ - public void setAlignment(STPhoneticAlignment value) { - this.alignment = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PhoneticPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PhoneticPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="fontId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontId" />
+ *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PhoneticType" default="fullwidthKatakana" />
+ *       <attribute name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PhoneticAlignment" default="left" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PhoneticPr") +public class CTPhoneticPr implements Child +{ + + @XmlAttribute(name = "fontId", required = true) + protected long fontId; + @XmlAttribute(name = "type") + protected STPhoneticType type; + @XmlAttribute(name = "alignment") + protected STPhoneticAlignment alignment; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fontId property. + * + */ + public long getFontId() { + return fontId; + } + + /** + * Sets the value of the fontId property. + * + */ + public void setFontId(long value) { + this.fontId = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STPhoneticType } + * + */ + public STPhoneticType getType() { + if (type == null) { + return STPhoneticType.FULLWIDTH_KATAKANA; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STPhoneticType } + * + */ + public void setType(STPhoneticType value) { + this.type = value; + } + + /** + * Gets the value of the alignment property. + * + * @return + * possible object is + * {@link STPhoneticAlignment } + * + */ + public STPhoneticAlignment getAlignment() { + if (alignment == null) { + return STPhoneticAlignment.LEFT; + } else { + return alignment; + } + } + + /** + * Sets the value of the alignment property. + * + * @param value + * allowed object is + * {@link STPhoneticAlignment } + * + */ + public void setAlignment(STPhoneticAlignment value) { + this.alignment = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticRun.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticRun.java index 6a1a621238..5230249691 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticRun.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPhoneticRun.java @@ -1,124 +1,136 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PhoneticRun complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PhoneticRun">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring"/>
- *       </sequence>
- *       <attribute name="sb" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="eb" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PhoneticRun", propOrder = { - "t" -}) -public class CTPhoneticRun { - - @XmlElement(required = true) - protected String t; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sb; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long eb; - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getT() { - return t; - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setT(String value) { - this.t = value; - } - - /** - * Gets the value of the sb property. - * - */ - public long getSb() { - return sb; - } - - /** - * Sets the value of the sb property. - * - */ - public void setSb(long value) { - this.sb = value; - } - - /** - * Gets the value of the eb property. - * - */ - public long getEb() { - return eb; - } - - /** - * Sets the value of the eb property. - * - */ - public void setEb(long value) { - this.eb = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PhoneticRun complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PhoneticRun">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Xstring_Whitespace"/>
+ *       </sequence>
+ *       <attribute name="sb" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="eb" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PhoneticRun", propOrder = { + "t" +}) +public class CTPhoneticRun implements Child +{ + + @XmlElement(required = true) + protected CTXstringWhitespace t; + @XmlAttribute(name = "sb", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sb; + @XmlAttribute(name = "eb", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long eb; + @XmlTransient + private Object parent; + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link CTXstringWhitespace } + * + */ + public CTXstringWhitespace getT() { + return t; + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link CTXstringWhitespace } + * + */ + public void setT(CTXstringWhitespace value) { + this.t = value; + } + + /** + * Gets the value of the sb property. + * + */ + public long getSb() { + return sb; + } + + /** + * Sets the value of the sb property. + * + */ + public void setSb(long value) { + this.sb = value; + } + + /** + * Gets the value of the eb property. + * + */ + public long getEb() { + return eb; + } + + /** + * Sets the value of the eb property. + * + */ + public void setEb(long value) { + this.eb = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotArea.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotArea.java index a30e2ace46..c18d1ea2c4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotArea.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotArea.java @@ -1,466 +1,478 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotArea complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotArea">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="references" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotAreaReferences" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="field" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PivotAreaType" default="normal" />
- *       <attribute name="dataOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="labelOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="grandRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="grandCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="cacheIndex" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="offset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="collapsedLevelsAreSubtotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="axis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Axis" />
- *       <attribute name="fieldPosition" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotArea", propOrder = { - "references", - "extLst" -}) -public class CTPivotArea { - - protected CTPivotAreaReferences references; - protected CTExtensionList extLst; - @XmlAttribute - protected Integer field; - @XmlAttribute - protected STPivotAreaType type; - @XmlAttribute - protected Boolean dataOnly; - @XmlAttribute - protected Boolean labelOnly; - @XmlAttribute - protected Boolean grandRow; - @XmlAttribute - protected Boolean grandCol; - @XmlAttribute - protected Boolean cacheIndex; - @XmlAttribute - protected Boolean outline; - @XmlAttribute - protected String offset; - @XmlAttribute - protected Boolean collapsedLevelsAreSubtotals; - @XmlAttribute - protected STAxis axis; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long fieldPosition; - - /** - * Gets the value of the references property. - * - * @return - * possible object is - * {@link CTPivotAreaReferences } - * - */ - public CTPivotAreaReferences getReferences() { - return references; - } - - /** - * Sets the value of the references property. - * - * @param value - * allowed object is - * {@link CTPivotAreaReferences } - * - */ - public void setReferences(CTPivotAreaReferences value) { - this.references = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the field property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getField() { - return field; - } - - /** - * Sets the value of the field property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setField(Integer value) { - this.field = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STPivotAreaType } - * - */ - public STPivotAreaType getType() { - if (type == null) { - return STPivotAreaType.NORMAL; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STPivotAreaType } - * - */ - public void setType(STPivotAreaType value) { - this.type = value; - } - - /** - * Gets the value of the dataOnly property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDataOnly() { - if (dataOnly == null) { - return true; - } else { - return dataOnly; - } - } - - /** - * Sets the value of the dataOnly property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDataOnly(Boolean value) { - this.dataOnly = value; - } - - /** - * Gets the value of the labelOnly property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLabelOnly() { - if (labelOnly == null) { - return false; - } else { - return labelOnly; - } - } - - /** - * Sets the value of the labelOnly property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLabelOnly(Boolean value) { - this.labelOnly = value; - } - - /** - * Gets the value of the grandRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGrandRow() { - if (grandRow == null) { - return false; - } else { - return grandRow; - } - } - - /** - * Sets the value of the grandRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGrandRow(Boolean value) { - this.grandRow = value; - } - - /** - * Gets the value of the grandCol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGrandCol() { - if (grandCol == null) { - return false; - } else { - return grandCol; - } - } - - /** - * Sets the value of the grandCol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGrandCol(Boolean value) { - this.grandCol = value; - } - - /** - * Gets the value of the cacheIndex property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCacheIndex() { - if (cacheIndex == null) { - return false; - } else { - return cacheIndex; - } - } - - /** - * Sets the value of the cacheIndex property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCacheIndex(Boolean value) { - this.cacheIndex = value; - } - - /** - * Gets the value of the outline property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOutline() { - if (outline == null) { - return true; - } else { - return outline; - } - } - - /** - * Sets the value of the outline property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOutline(Boolean value) { - this.outline = value; - } - - /** - * Gets the value of the offset property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOffset() { - return offset; - } - - /** - * Sets the value of the offset property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOffset(String value) { - this.offset = value; - } - - /** - * Gets the value of the collapsedLevelsAreSubtotals property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCollapsedLevelsAreSubtotals() { - if (collapsedLevelsAreSubtotals == null) { - return false; - } else { - return collapsedLevelsAreSubtotals; - } - } - - /** - * Sets the value of the collapsedLevelsAreSubtotals property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCollapsedLevelsAreSubtotals(Boolean value) { - this.collapsedLevelsAreSubtotals = value; - } - - /** - * Gets the value of the axis property. - * - * @return - * possible object is - * {@link STAxis } - * - */ - public STAxis getAxis() { - return axis; - } - - /** - * Sets the value of the axis property. - * - * @param value - * allowed object is - * {@link STAxis } - * - */ - public void setAxis(STAxis value) { - this.axis = value; - } - - /** - * Gets the value of the fieldPosition property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getFieldPosition() { - return fieldPosition; - } - - /** - * Sets the value of the fieldPosition property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFieldPosition(Long value) { - this.fieldPosition = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotArea complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotArea">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="references" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotAreaReferences" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="field" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PivotAreaType" default="normal" />
+ *       <attribute name="dataOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="labelOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="grandRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="grandCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="cacheIndex" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="offset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="collapsedLevelsAreSubtotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="axis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Axis" />
+ *       <attribute name="fieldPosition" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotArea", propOrder = { + "references", + "extLst" +}) +public class CTPivotArea implements Child +{ + + protected CTPivotAreaReferences references; + protected CTExtensionList extLst; + @XmlAttribute(name = "field") + protected Integer field; + @XmlAttribute(name = "type") + protected STPivotAreaType type; + @XmlAttribute(name = "dataOnly") + protected Boolean dataOnly; + @XmlAttribute(name = "labelOnly") + protected Boolean labelOnly; + @XmlAttribute(name = "grandRow") + protected Boolean grandRow; + @XmlAttribute(name = "grandCol") + protected Boolean grandCol; + @XmlAttribute(name = "cacheIndex") + protected Boolean cacheIndex; + @XmlAttribute(name = "outline") + protected Boolean outline; + @XmlAttribute(name = "offset") + protected String offset; + @XmlAttribute(name = "collapsedLevelsAreSubtotals") + protected Boolean collapsedLevelsAreSubtotals; + @XmlAttribute(name = "axis") + protected STAxis axis; + @XmlAttribute(name = "fieldPosition") + @XmlSchemaType(name = "unsignedInt") + protected Long fieldPosition; + @XmlTransient + private Object parent; + + /** + * Gets the value of the references property. + * + * @return + * possible object is + * {@link CTPivotAreaReferences } + * + */ + public CTPivotAreaReferences getReferences() { + return references; + } + + /** + * Sets the value of the references property. + * + * @param value + * allowed object is + * {@link CTPivotAreaReferences } + * + */ + public void setReferences(CTPivotAreaReferences value) { + this.references = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the field property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getField() { + return field; + } + + /** + * Sets the value of the field property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setField(Integer value) { + this.field = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STPivotAreaType } + * + */ + public STPivotAreaType getType() { + if (type == null) { + return STPivotAreaType.NORMAL; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STPivotAreaType } + * + */ + public void setType(STPivotAreaType value) { + this.type = value; + } + + /** + * Gets the value of the dataOnly property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDataOnly() { + if (dataOnly == null) { + return true; + } else { + return dataOnly; + } + } + + /** + * Sets the value of the dataOnly property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDataOnly(Boolean value) { + this.dataOnly = value; + } + + /** + * Gets the value of the labelOnly property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLabelOnly() { + if (labelOnly == null) { + return false; + } else { + return labelOnly; + } + } + + /** + * Sets the value of the labelOnly property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLabelOnly(Boolean value) { + this.labelOnly = value; + } + + /** + * Gets the value of the grandRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGrandRow() { + if (grandRow == null) { + return false; + } else { + return grandRow; + } + } + + /** + * Sets the value of the grandRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGrandRow(Boolean value) { + this.grandRow = value; + } + + /** + * Gets the value of the grandCol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGrandCol() { + if (grandCol == null) { + return false; + } else { + return grandCol; + } + } + + /** + * Sets the value of the grandCol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGrandCol(Boolean value) { + this.grandCol = value; + } + + /** + * Gets the value of the cacheIndex property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCacheIndex() { + if (cacheIndex == null) { + return false; + } else { + return cacheIndex; + } + } + + /** + * Sets the value of the cacheIndex property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCacheIndex(Boolean value) { + this.cacheIndex = value; + } + + /** + * Gets the value of the outline property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOutline() { + if (outline == null) { + return true; + } else { + return outline; + } + } + + /** + * Sets the value of the outline property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOutline(Boolean value) { + this.outline = value; + } + + /** + * Gets the value of the offset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOffset() { + return offset; + } + + /** + * Sets the value of the offset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOffset(String value) { + this.offset = value; + } + + /** + * Gets the value of the collapsedLevelsAreSubtotals property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCollapsedLevelsAreSubtotals() { + if (collapsedLevelsAreSubtotals == null) { + return false; + } else { + return collapsedLevelsAreSubtotals; + } + } + + /** + * Sets the value of the collapsedLevelsAreSubtotals property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCollapsedLevelsAreSubtotals(Boolean value) { + this.collapsedLevelsAreSubtotals = value; + } + + /** + * Gets the value of the axis property. + * + * @return + * possible object is + * {@link STAxis } + * + */ + public STAxis getAxis() { + return axis; + } + + /** + * Sets the value of the axis property. + * + * @param value + * allowed object is + * {@link STAxis } + * + */ + public void setAxis(STAxis value) { + this.axis = value; + } + + /** + * Gets the value of the fieldPosition property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFieldPosition() { + return fieldPosition; + } + + /** + * Sets the value of the fieldPosition property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFieldPosition(Long value) { + this.fieldPosition = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReference.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReference.java index c3e3814894..ce475b5f1f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReference.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReference.java @@ -1,637 +1,649 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotAreaReference complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotAreaReference">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="field" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="selected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="byPosition" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="relative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="defaultSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sumSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="countASubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="avgSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="maxSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="minSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="productSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="countSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="stdDevSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="stdDevPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="varSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="varPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotAreaReference", propOrder = { - "x", - "extLst" -}) -public class CTPivotAreaReference { - - protected List x; - protected CTExtensionList extLst; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long field; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - protected Boolean selected; - @XmlAttribute - protected Boolean byPosition; - @XmlAttribute - protected Boolean relative; - @XmlAttribute - protected Boolean defaultSubtotal; - @XmlAttribute - protected Boolean sumSubtotal; - @XmlAttribute - protected Boolean countASubtotal; - @XmlAttribute - protected Boolean avgSubtotal; - @XmlAttribute - protected Boolean maxSubtotal; - @XmlAttribute - protected Boolean minSubtotal; - @XmlAttribute - protected Boolean productSubtotal; - @XmlAttribute - protected Boolean countSubtotal; - @XmlAttribute - protected Boolean stdDevSubtotal; - @XmlAttribute - protected Boolean stdDevPSubtotal; - @XmlAttribute - protected Boolean varSubtotal; - @XmlAttribute - protected Boolean varPSubtotal; - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTIndex } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the field property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getField() { - return field; - } - - /** - * Sets the value of the field property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setField(Long value) { - this.field = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the selected property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSelected() { - if (selected == null) { - return true; - } else { - return selected; - } - } - - /** - * Sets the value of the selected property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSelected(Boolean value) { - this.selected = value; - } - - /** - * Gets the value of the byPosition property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isByPosition() { - if (byPosition == null) { - return false; - } else { - return byPosition; - } - } - - /** - * Sets the value of the byPosition property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setByPosition(Boolean value) { - this.byPosition = value; - } - - /** - * Gets the value of the relative property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRelative() { - if (relative == null) { - return false; - } else { - return relative; - } - } - - /** - * Sets the value of the relative property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRelative(Boolean value) { - this.relative = value; - } - - /** - * Gets the value of the defaultSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDefaultSubtotal() { - if (defaultSubtotal == null) { - return false; - } else { - return defaultSubtotal; - } - } - - /** - * Sets the value of the defaultSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDefaultSubtotal(Boolean value) { - this.defaultSubtotal = value; - } - - /** - * Gets the value of the sumSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSumSubtotal() { - if (sumSubtotal == null) { - return false; - } else { - return sumSubtotal; - } - } - - /** - * Sets the value of the sumSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSumSubtotal(Boolean value) { - this.sumSubtotal = value; - } - - /** - * Gets the value of the countASubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCountASubtotal() { - if (countASubtotal == null) { - return false; - } else { - return countASubtotal; - } - } - - /** - * Sets the value of the countASubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCountASubtotal(Boolean value) { - this.countASubtotal = value; - } - - /** - * Gets the value of the avgSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAvgSubtotal() { - if (avgSubtotal == null) { - return false; - } else { - return avgSubtotal; - } - } - - /** - * Sets the value of the avgSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAvgSubtotal(Boolean value) { - this.avgSubtotal = value; - } - - /** - * Gets the value of the maxSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMaxSubtotal() { - if (maxSubtotal == null) { - return false; - } else { - return maxSubtotal; - } - } - - /** - * Sets the value of the maxSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMaxSubtotal(Boolean value) { - this.maxSubtotal = value; - } - - /** - * Gets the value of the minSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMinSubtotal() { - if (minSubtotal == null) { - return false; - } else { - return minSubtotal; - } - } - - /** - * Sets the value of the minSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMinSubtotal(Boolean value) { - this.minSubtotal = value; - } - - /** - * Gets the value of the productSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isProductSubtotal() { - if (productSubtotal == null) { - return false; - } else { - return productSubtotal; - } - } - - /** - * Sets the value of the productSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setProductSubtotal(Boolean value) { - this.productSubtotal = value; - } - - /** - * Gets the value of the countSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCountSubtotal() { - if (countSubtotal == null) { - return false; - } else { - return countSubtotal; - } - } - - /** - * Sets the value of the countSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCountSubtotal(Boolean value) { - this.countSubtotal = value; - } - - /** - * Gets the value of the stdDevSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isStdDevSubtotal() { - if (stdDevSubtotal == null) { - return false; - } else { - return stdDevSubtotal; - } - } - - /** - * Sets the value of the stdDevSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setStdDevSubtotal(Boolean value) { - this.stdDevSubtotal = value; - } - - /** - * Gets the value of the stdDevPSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isStdDevPSubtotal() { - if (stdDevPSubtotal == null) { - return false; - } else { - return stdDevPSubtotal; - } - } - - /** - * Sets the value of the stdDevPSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setStdDevPSubtotal(Boolean value) { - this.stdDevPSubtotal = value; - } - - /** - * Gets the value of the varSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVarSubtotal() { - if (varSubtotal == null) { - return false; - } else { - return varSubtotal; - } - } - - /** - * Sets the value of the varSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVarSubtotal(Boolean value) { - this.varSubtotal = value; - } - - /** - * Gets the value of the varPSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVarPSubtotal() { - if (varPSubtotal == null) { - return false; - } else { - return varPSubtotal; - } - } - - /** - * Sets the value of the varPSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVarPSubtotal(Boolean value) { - this.varPSubtotal = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotAreaReference complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotAreaReference">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="field" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="selected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="byPosition" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="relative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="defaultSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sumSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="countASubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="avgSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="maxSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="minSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="productSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="countSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="stdDevSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="stdDevPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="varSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="varPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotAreaReference", propOrder = { + "x", + "extLst" +}) +public class CTPivotAreaReference implements Child +{ + + protected List x; + protected CTExtensionList extLst; + @XmlAttribute(name = "field") + @XmlSchemaType(name = "unsignedInt") + protected Long field; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "selected") + protected Boolean selected; + @XmlAttribute(name = "byPosition") + protected Boolean byPosition; + @XmlAttribute(name = "relative") + protected Boolean relative; + @XmlAttribute(name = "defaultSubtotal") + protected Boolean defaultSubtotal; + @XmlAttribute(name = "sumSubtotal") + protected Boolean sumSubtotal; + @XmlAttribute(name = "countASubtotal") + protected Boolean countASubtotal; + @XmlAttribute(name = "avgSubtotal") + protected Boolean avgSubtotal; + @XmlAttribute(name = "maxSubtotal") + protected Boolean maxSubtotal; + @XmlAttribute(name = "minSubtotal") + protected Boolean minSubtotal; + @XmlAttribute(name = "productSubtotal") + protected Boolean productSubtotal; + @XmlAttribute(name = "countSubtotal") + protected Boolean countSubtotal; + @XmlAttribute(name = "stdDevSubtotal") + protected Boolean stdDevSubtotal; + @XmlAttribute(name = "stdDevPSubtotal") + protected Boolean stdDevPSubtotal; + @XmlAttribute(name = "varSubtotal") + protected Boolean varSubtotal; + @XmlAttribute(name = "varPSubtotal") + protected Boolean varPSubtotal; + @XmlTransient + private Object parent; + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTIndex } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the field property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getField() { + return field; + } + + /** + * Sets the value of the field property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setField(Long value) { + this.field = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the selected property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSelected() { + if (selected == null) { + return true; + } else { + return selected; + } + } + + /** + * Sets the value of the selected property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSelected(Boolean value) { + this.selected = value; + } + + /** + * Gets the value of the byPosition property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isByPosition() { + if (byPosition == null) { + return false; + } else { + return byPosition; + } + } + + /** + * Sets the value of the byPosition property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setByPosition(Boolean value) { + this.byPosition = value; + } + + /** + * Gets the value of the relative property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRelative() { + if (relative == null) { + return false; + } else { + return relative; + } + } + + /** + * Sets the value of the relative property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRelative(Boolean value) { + this.relative = value; + } + + /** + * Gets the value of the defaultSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDefaultSubtotal() { + if (defaultSubtotal == null) { + return false; + } else { + return defaultSubtotal; + } + } + + /** + * Sets the value of the defaultSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDefaultSubtotal(Boolean value) { + this.defaultSubtotal = value; + } + + /** + * Gets the value of the sumSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSumSubtotal() { + if (sumSubtotal == null) { + return false; + } else { + return sumSubtotal; + } + } + + /** + * Sets the value of the sumSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSumSubtotal(Boolean value) { + this.sumSubtotal = value; + } + + /** + * Gets the value of the countASubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCountASubtotal() { + if (countASubtotal == null) { + return false; + } else { + return countASubtotal; + } + } + + /** + * Sets the value of the countASubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCountASubtotal(Boolean value) { + this.countASubtotal = value; + } + + /** + * Gets the value of the avgSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAvgSubtotal() { + if (avgSubtotal == null) { + return false; + } else { + return avgSubtotal; + } + } + + /** + * Sets the value of the avgSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAvgSubtotal(Boolean value) { + this.avgSubtotal = value; + } + + /** + * Gets the value of the maxSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMaxSubtotal() { + if (maxSubtotal == null) { + return false; + } else { + return maxSubtotal; + } + } + + /** + * Sets the value of the maxSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMaxSubtotal(Boolean value) { + this.maxSubtotal = value; + } + + /** + * Gets the value of the minSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMinSubtotal() { + if (minSubtotal == null) { + return false; + } else { + return minSubtotal; + } + } + + /** + * Sets the value of the minSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMinSubtotal(Boolean value) { + this.minSubtotal = value; + } + + /** + * Gets the value of the productSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isProductSubtotal() { + if (productSubtotal == null) { + return false; + } else { + return productSubtotal; + } + } + + /** + * Sets the value of the productSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setProductSubtotal(Boolean value) { + this.productSubtotal = value; + } + + /** + * Gets the value of the countSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCountSubtotal() { + if (countSubtotal == null) { + return false; + } else { + return countSubtotal; + } + } + + /** + * Sets the value of the countSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCountSubtotal(Boolean value) { + this.countSubtotal = value; + } + + /** + * Gets the value of the stdDevSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStdDevSubtotal() { + if (stdDevSubtotal == null) { + return false; + } else { + return stdDevSubtotal; + } + } + + /** + * Sets the value of the stdDevSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStdDevSubtotal(Boolean value) { + this.stdDevSubtotal = value; + } + + /** + * Gets the value of the stdDevPSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStdDevPSubtotal() { + if (stdDevPSubtotal == null) { + return false; + } else { + return stdDevPSubtotal; + } + } + + /** + * Sets the value of the stdDevPSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStdDevPSubtotal(Boolean value) { + this.stdDevPSubtotal = value; + } + + /** + * Gets the value of the varSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVarSubtotal() { + if (varSubtotal == null) { + return false; + } else { + return varSubtotal; + } + } + + /** + * Sets the value of the varSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVarSubtotal(Boolean value) { + this.varSubtotal = value; + } + + /** + * Gets the value of the varPSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVarPSubtotal() { + if (varPSubtotal == null) { + return false; + } else { + return varPSubtotal; + } + } + + /** + * Sets the value of the varPSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVarPSubtotal(Boolean value) { + this.varPSubtotal = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReferences.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReferences.java index 5c8dae3f75..540726e059 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReferences.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreaReferences.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotAreaReferences complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotAreaReferences">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="reference" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotAreaReference" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotAreaReferences", propOrder = { - "reference" -}) -public class CTPivotAreaReferences { - - @XmlElement(required = true) - protected List reference; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the reference property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the reference property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getReference().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotAreaReference } - * - * - */ - public List getReference() { - if (reference == null) { - reference = new ArrayList(); - } - return this.reference; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotAreaReferences complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotAreaReferences">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="reference" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotAreaReference" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotAreaReferences", propOrder = { + "reference" +}) +public class CTPivotAreaReferences implements Child +{ + + @XmlElement(required = true) + protected List reference; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the reference property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the reference property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getReference().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotAreaReference } + * + * + */ + public List getReference() { + if (reference == null) { + reference = new ArrayList(); + } + return this.reference; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreas.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreas.java index 233a9c3360..f63ed51573 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreas.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotAreas.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotAreas complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotAreas">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotAreas", propOrder = { - "pivotArea" -}) -public class CTPivotAreas { - - protected List pivotArea; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the pivotArea property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the pivotArea property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPivotArea().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotArea } - * - * - */ - public List getPivotArea() { - if (pivotArea == null) { - pivotArea = new ArrayList(); - } - return this.pivotArea; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotAreas complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotAreas">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotAreas", propOrder = { + "pivotArea" +}) +public class CTPivotAreas implements Child +{ + + protected List pivotArea; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotArea property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pivotArea property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPivotArea().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotArea } + * + * + */ + public List getPivotArea() { + if (pivotArea == null) { + pivotArea = new ArrayList(); + } + return this.pivotArea; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCache.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCache.java index 423572e587..f5009c53d3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCache.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCache.java @@ -1,99 +1,111 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotCache complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotCache">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="cacheId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotCache") -public class CTPivotCache { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long cacheId; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Gets the value of the cacheId property. - * - */ - public long getCacheId() { - return cacheId; - } - - /** - * Sets the value of the cacheId property. - * - */ - public void setCacheId(long value) { - this.cacheId = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotCache complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotCache">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="cacheId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotCache") +public class CTPivotCache implements Child +{ + + @XmlAttribute(name = "cacheId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long cacheId; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cacheId property. + * + */ + public long getCacheId() { + return cacheId; + } + + /** + * Sets the value of the cacheId property. + * + */ + public void setCacheId(long value) { + this.cacheId = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheDefinition.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheDefinition.java index 89e3a8693a..fedade20ab 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheDefinition.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheDefinition.java @@ -1,900 +1,941 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotCacheDefinition complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotCacheDefinition">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cacheSource" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheSource"/>
- *         <element name="cacheFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheFields"/>
- *         <element name="cacheHierarchies" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheHierarchies" minOccurs="0"/>
- *         <element name="kpis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDKPIs" minOccurs="0"/>
- *         <element name="tupleCache" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TupleCache" minOccurs="0"/>
- *         <element name="calculatedItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedItems" minOccurs="0"/>
- *         <element name="calculatedMembers" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedMembers" minOccurs="0"/>
- *         <element name="dimensions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dimensions" minOccurs="0"/>
- *         <element name="measureGroups" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureGroups" minOccurs="0"/>
- *         <element name="maps" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureDimensionMaps" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *       <attribute name="invalid" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="saveData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="refreshOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="optimizeMemory" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="enableRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="refreshedBy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="refreshedDate" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="backgroundQuery" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="missingItemsLimit" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="createdVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="refreshedVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="minRefreshableVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="recordCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="upgradeOnRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="tupleCache" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="supportSubquery" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="supportAdvancedDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotCacheDefinition", propOrder = { - "cacheSource", - "cacheFields", - "cacheHierarchies", - "kpis", - "tupleCache", - "calculatedItems", - "calculatedMembers", - "dimensions", - "measureGroups", - "maps", - "extLst" -}) -@XmlRootElement(name = "pivotCacheDefinition") -public class CTPivotCacheDefinition { - - @XmlElement(required = true) - protected CTCacheSource cacheSource; - @XmlElement(required = true) - protected CTCacheFields cacheFields; - protected CTCacheHierarchies cacheHierarchies; - protected CTPCDKPIs kpis; - protected CTTupleCache tupleCache; - protected CTCalculatedItems calculatedItems; - protected CTCalculatedMembers calculatedMembers; - protected CTDimensions dimensions; - protected CTMeasureGroups measureGroups; - protected CTMeasureDimensionMaps maps; - protected CTExtensionList extLst; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - @XmlAttribute - protected Boolean invalid; - @XmlAttribute - protected Boolean saveData; - @XmlAttribute - protected Boolean refreshOnLoad; - @XmlAttribute - protected Boolean optimizeMemory; - @XmlAttribute - protected Boolean enableRefresh; - @XmlAttribute - protected String refreshedBy; - @XmlAttribute - protected Double refreshedDate; - @XmlAttribute - protected Boolean backgroundQuery; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long missingItemsLimit; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short createdVersion; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short refreshedVersion; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short minRefreshableVersion; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long recordCount; - @XmlAttribute - protected Boolean upgradeOnRefresh; - @XmlAttribute(name = "tupleCache") - protected Boolean tupleCacheQ; - @XmlAttribute - protected Boolean supportSubquery; - @XmlAttribute - protected Boolean supportAdvancedDrill; - - /** - * Gets the value of the cacheSource property. - * - * @return - * possible object is - * {@link CTCacheSource } - * - */ - public CTCacheSource getCacheSource() { - return cacheSource; - } - - /** - * Sets the value of the cacheSource property. - * - * @param value - * allowed object is - * {@link CTCacheSource } - * - */ - public void setCacheSource(CTCacheSource value) { - this.cacheSource = value; - } - - /** - * Gets the value of the cacheFields property. - * - * @return - * possible object is - * {@link CTCacheFields } - * - */ - public CTCacheFields getCacheFields() { - return cacheFields; - } - - /** - * Sets the value of the cacheFields property. - * - * @param value - * allowed object is - * {@link CTCacheFields } - * - */ - public void setCacheFields(CTCacheFields value) { - this.cacheFields = value; - } - - /** - * Gets the value of the cacheHierarchies property. - * - * @return - * possible object is - * {@link CTCacheHierarchies } - * - */ - public CTCacheHierarchies getCacheHierarchies() { - return cacheHierarchies; - } - - /** - * Sets the value of the cacheHierarchies property. - * - * @param value - * allowed object is - * {@link CTCacheHierarchies } - * - */ - public void setCacheHierarchies(CTCacheHierarchies value) { - this.cacheHierarchies = value; - } - - /** - * Gets the value of the kpis property. - * - * @return - * possible object is - * {@link CTPCDKPIs } - * - */ - public CTPCDKPIs getKpis() { - return kpis; - } - - /** - * Sets the value of the kpis property. - * - * @param value - * allowed object is - * {@link CTPCDKPIs } - * - */ - public void setKpis(CTPCDKPIs value) { - this.kpis = value; - } - - /** - * Gets the value of the tupleCache property. - * - * @return - * possible object is - * {@link CTTupleCache } - * - */ - public CTTupleCache getTupleCache() { - return tupleCache; - } - - /** - * Sets the value of the tupleCache property. - * - * @param value - * allowed object is - * {@link CTTupleCache } - * - */ - public void setTupleCache(CTTupleCache value) { - this.tupleCache = value; - } - - /** - * Gets the value of the calculatedItems property. - * - * @return - * possible object is - * {@link CTCalculatedItems } - * - */ - public CTCalculatedItems getCalculatedItems() { - return calculatedItems; - } - - /** - * Sets the value of the calculatedItems property. - * - * @param value - * allowed object is - * {@link CTCalculatedItems } - * - */ - public void setCalculatedItems(CTCalculatedItems value) { - this.calculatedItems = value; - } - - /** - * Gets the value of the calculatedMembers property. - * - * @return - * possible object is - * {@link CTCalculatedMembers } - * - */ - public CTCalculatedMembers getCalculatedMembers() { - return calculatedMembers; - } - - /** - * Sets the value of the calculatedMembers property. - * - * @param value - * allowed object is - * {@link CTCalculatedMembers } - * - */ - public void setCalculatedMembers(CTCalculatedMembers value) { - this.calculatedMembers = value; - } - - /** - * Gets the value of the dimensions property. - * - * @return - * possible object is - * {@link CTDimensions } - * - */ - public CTDimensions getDimensions() { - return dimensions; - } - - /** - * Sets the value of the dimensions property. - * - * @param value - * allowed object is - * {@link CTDimensions } - * - */ - public void setDimensions(CTDimensions value) { - this.dimensions = value; - } - - /** - * Gets the value of the measureGroups property. - * - * @return - * possible object is - * {@link CTMeasureGroups } - * - */ - public CTMeasureGroups getMeasureGroups() { - return measureGroups; - } - - /** - * Sets the value of the measureGroups property. - * - * @param value - * allowed object is - * {@link CTMeasureGroups } - * - */ - public void setMeasureGroups(CTMeasureGroups value) { - this.measureGroups = value; - } - - /** - * Gets the value of the maps property. - * - * @return - * possible object is - * {@link CTMeasureDimensionMaps } - * - */ - public CTMeasureDimensionMaps getMaps() { - return maps; - } - - /** - * Sets the value of the maps property. - * - * @param value - * allowed object is - * {@link CTMeasureDimensionMaps } - * - */ - public void setMaps(CTMeasureDimensionMaps value) { - this.maps = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Relationship Identifier - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the invalid property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInvalid() { - if (invalid == null) { - return false; - } else { - return invalid; - } - } - - /** - * Sets the value of the invalid property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInvalid(Boolean value) { - this.invalid = value; - } - - /** - * Gets the value of the saveData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSaveData() { - if (saveData == null) { - return true; - } else { - return saveData; - } - } - - /** - * Sets the value of the saveData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSaveData(Boolean value) { - this.saveData = value; - } - - /** - * Gets the value of the refreshOnLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRefreshOnLoad() { - if (refreshOnLoad == null) { - return false; - } else { - return refreshOnLoad; - } - } - - /** - * Sets the value of the refreshOnLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRefreshOnLoad(Boolean value) { - this.refreshOnLoad = value; - } - - /** - * Gets the value of the optimizeMemory property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOptimizeMemory() { - if (optimizeMemory == null) { - return false; - } else { - return optimizeMemory; - } - } - - /** - * Sets the value of the optimizeMemory property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOptimizeMemory(Boolean value) { - this.optimizeMemory = value; - } - - /** - * Gets the value of the enableRefresh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEnableRefresh() { - if (enableRefresh == null) { - return true; - } else { - return enableRefresh; - } - } - - /** - * Sets the value of the enableRefresh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEnableRefresh(Boolean value) { - this.enableRefresh = value; - } - - /** - * Gets the value of the refreshedBy property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRefreshedBy() { - return refreshedBy; - } - - /** - * Sets the value of the refreshedBy property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRefreshedBy(String value) { - this.refreshedBy = value; - } - - /** - * Gets the value of the refreshedDate property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getRefreshedDate() { - return refreshedDate; - } - - /** - * Sets the value of the refreshedDate property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setRefreshedDate(Double value) { - this.refreshedDate = value; - } - - /** - * Gets the value of the backgroundQuery property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBackgroundQuery() { - if (backgroundQuery == null) { - return false; - } else { - return backgroundQuery; - } - } - - /** - * Sets the value of the backgroundQuery property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBackgroundQuery(Boolean value) { - this.backgroundQuery = value; - } - - /** - * Gets the value of the missingItemsLimit property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getMissingItemsLimit() { - return missingItemsLimit; - } - - /** - * Sets the value of the missingItemsLimit property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMissingItemsLimit(Long value) { - this.missingItemsLimit = value; - } - - /** - * Gets the value of the createdVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getCreatedVersion() { - if (createdVersion == null) { - return ((short) 0); - } else { - return createdVersion; - } - } - - /** - * Sets the value of the createdVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setCreatedVersion(Short value) { - this.createdVersion = value; - } - - /** - * Gets the value of the refreshedVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getRefreshedVersion() { - if (refreshedVersion == null) { - return ((short) 0); - } else { - return refreshedVersion; - } - } - - /** - * Sets the value of the refreshedVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setRefreshedVersion(Short value) { - this.refreshedVersion = value; - } - - /** - * Gets the value of the minRefreshableVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getMinRefreshableVersion() { - if (minRefreshableVersion == null) { - return ((short) 0); - } else { - return minRefreshableVersion; - } - } - - /** - * Sets the value of the minRefreshableVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setMinRefreshableVersion(Short value) { - this.minRefreshableVersion = value; - } - - /** - * Gets the value of the recordCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getRecordCount() { - return recordCount; - } - - /** - * Sets the value of the recordCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setRecordCount(Long value) { - this.recordCount = value; - } - - /** - * Gets the value of the upgradeOnRefresh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUpgradeOnRefresh() { - if (upgradeOnRefresh == null) { - return false; - } else { - return upgradeOnRefresh; - } - } - - /** - * Sets the value of the upgradeOnRefresh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUpgradeOnRefresh(Boolean value) { - this.upgradeOnRefresh = value; - } - - /** - * Gets the value of the tupleCacheQ property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTupleCacheQ() { - if (tupleCacheQ == null) { - return false; - } else { - return tupleCacheQ; - } - } - - /** - * Sets the value of the tupleCacheQ property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTupleCacheQ(Boolean value) { - this.tupleCacheQ = value; - } - - /** - * Gets the value of the supportSubquery property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSupportSubquery() { - if (supportSubquery == null) { - return false; - } else { - return supportSubquery; - } - } - - /** - * Sets the value of the supportSubquery property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSupportSubquery(Boolean value) { - this.supportSubquery = value; - } - - /** - * Gets the value of the supportAdvancedDrill property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSupportAdvancedDrill() { - if (supportAdvancedDrill == null) { - return false; - } else { - return supportAdvancedDrill; - } - } - - /** - * Sets the value of the supportAdvancedDrill property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSupportAdvancedDrill(Boolean value) { - this.supportAdvancedDrill = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotCacheDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotCacheDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cacheSource" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheSource"/>
+ *         <element name="cacheFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheFields"/>
+ *         <element name="cacheHierarchies" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CacheHierarchies" minOccurs="0"/>
+ *         <element name="kpis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDKPIs" minOccurs="0"/>
+ *         <element name="tupleCache" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TupleCache" minOccurs="0"/>
+ *         <element name="calculatedItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedItems" minOccurs="0"/>
+ *         <element name="calculatedMembers" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalculatedMembers" minOccurs="0"/>
+ *         <element name="dimensions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dimensions" minOccurs="0"/>
+ *         <element name="measureGroups" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureGroups" minOccurs="0"/>
+ *         <element name="maps" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MeasureDimensionMaps" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *       <attribute name="invalid" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="saveData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="refreshOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="optimizeMemory" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="enableRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="refreshedBy" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="refreshedDate" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="refreshedDateIso" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="backgroundQuery" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="missingItemsLimit" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="createdVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="refreshedVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="minRefreshableVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="recordCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="upgradeOnRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="tupleCache" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="supportSubquery" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="supportAdvancedDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotCacheDefinition", propOrder = { + "cacheSource", + "cacheFields", + "cacheHierarchies", + "kpis", + "tupleCache", + "calculatedItems", + "calculatedMembers", + "dimensions", + "measureGroups", + "maps", + "extLst" +}) +@XmlRootElement(name = "pivotCacheDefinition") +public class CTPivotCacheDefinition implements Child +{ + + @XmlElement(required = true) + protected CTCacheSource cacheSource; + @XmlElement(required = true) + protected CTCacheFields cacheFields; + protected CTCacheHierarchies cacheHierarchies; + protected CTPCDKPIs kpis; + protected CTTupleCache tupleCache; + protected CTCalculatedItems calculatedItems; + protected CTCalculatedMembers calculatedMembers; + protected CTDimensions dimensions; + protected CTMeasureGroups measureGroups; + protected CTMeasureDimensionMaps maps; + protected CTExtensionList extLst; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlAttribute(name = "invalid") + protected Boolean invalid; + @XmlAttribute(name = "saveData") + protected Boolean saveData; + @XmlAttribute(name = "refreshOnLoad") + protected Boolean refreshOnLoad; + @XmlAttribute(name = "optimizeMemory") + protected Boolean optimizeMemory; + @XmlAttribute(name = "enableRefresh") + protected Boolean enableRefresh; + @XmlAttribute(name = "refreshedBy") + protected String refreshedBy; + @XmlAttribute(name = "refreshedDate") + protected Double refreshedDate; + @XmlAttribute(name = "refreshedDateIso") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar refreshedDateIso; + @XmlAttribute(name = "backgroundQuery") + protected Boolean backgroundQuery; + @XmlAttribute(name = "missingItemsLimit") + @XmlSchemaType(name = "unsignedInt") + protected Long missingItemsLimit; + @XmlAttribute(name = "createdVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short createdVersion; + @XmlAttribute(name = "refreshedVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short refreshedVersion; + @XmlAttribute(name = "minRefreshableVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short minRefreshableVersion; + @XmlAttribute(name = "recordCount") + @XmlSchemaType(name = "unsignedInt") + protected Long recordCount; + @XmlAttribute(name = "upgradeOnRefresh") + protected Boolean upgradeOnRefresh; + @XmlAttribute(name = "tupleCache") + protected Boolean tupleCacheQ; + @XmlAttribute(name = "supportSubquery") + protected Boolean supportSubquery; + @XmlAttribute(name = "supportAdvancedDrill") + protected Boolean supportAdvancedDrill; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cacheSource property. + * + * @return + * possible object is + * {@link CTCacheSource } + * + */ + public CTCacheSource getCacheSource() { + return cacheSource; + } + + /** + * Sets the value of the cacheSource property. + * + * @param value + * allowed object is + * {@link CTCacheSource } + * + */ + public void setCacheSource(CTCacheSource value) { + this.cacheSource = value; + } + + /** + * Gets the value of the cacheFields property. + * + * @return + * possible object is + * {@link CTCacheFields } + * + */ + public CTCacheFields getCacheFields() { + return cacheFields; + } + + /** + * Sets the value of the cacheFields property. + * + * @param value + * allowed object is + * {@link CTCacheFields } + * + */ + public void setCacheFields(CTCacheFields value) { + this.cacheFields = value; + } + + /** + * Gets the value of the cacheHierarchies property. + * + * @return + * possible object is + * {@link CTCacheHierarchies } + * + */ + public CTCacheHierarchies getCacheHierarchies() { + return cacheHierarchies; + } + + /** + * Sets the value of the cacheHierarchies property. + * + * @param value + * allowed object is + * {@link CTCacheHierarchies } + * + */ + public void setCacheHierarchies(CTCacheHierarchies value) { + this.cacheHierarchies = value; + } + + /** + * Gets the value of the kpis property. + * + * @return + * possible object is + * {@link CTPCDKPIs } + * + */ + public CTPCDKPIs getKpis() { + return kpis; + } + + /** + * Sets the value of the kpis property. + * + * @param value + * allowed object is + * {@link CTPCDKPIs } + * + */ + public void setKpis(CTPCDKPIs value) { + this.kpis = value; + } + + /** + * Gets the value of the tupleCache property. + * + * @return + * possible object is + * {@link CTTupleCache } + * + */ + public CTTupleCache getTupleCache() { + return tupleCache; + } + + /** + * Sets the value of the tupleCache property. + * + * @param value + * allowed object is + * {@link CTTupleCache } + * + */ + public void setTupleCache(CTTupleCache value) { + this.tupleCache = value; + } + + /** + * Gets the value of the calculatedItems property. + * + * @return + * possible object is + * {@link CTCalculatedItems } + * + */ + public CTCalculatedItems getCalculatedItems() { + return calculatedItems; + } + + /** + * Sets the value of the calculatedItems property. + * + * @param value + * allowed object is + * {@link CTCalculatedItems } + * + */ + public void setCalculatedItems(CTCalculatedItems value) { + this.calculatedItems = value; + } + + /** + * Gets the value of the calculatedMembers property. + * + * @return + * possible object is + * {@link CTCalculatedMembers } + * + */ + public CTCalculatedMembers getCalculatedMembers() { + return calculatedMembers; + } + + /** + * Sets the value of the calculatedMembers property. + * + * @param value + * allowed object is + * {@link CTCalculatedMembers } + * + */ + public void setCalculatedMembers(CTCalculatedMembers value) { + this.calculatedMembers = value; + } + + /** + * Gets the value of the dimensions property. + * + * @return + * possible object is + * {@link CTDimensions } + * + */ + public CTDimensions getDimensions() { + return dimensions; + } + + /** + * Sets the value of the dimensions property. + * + * @param value + * allowed object is + * {@link CTDimensions } + * + */ + public void setDimensions(CTDimensions value) { + this.dimensions = value; + } + + /** + * Gets the value of the measureGroups property. + * + * @return + * possible object is + * {@link CTMeasureGroups } + * + */ + public CTMeasureGroups getMeasureGroups() { + return measureGroups; + } + + /** + * Sets the value of the measureGroups property. + * + * @param value + * allowed object is + * {@link CTMeasureGroups } + * + */ + public void setMeasureGroups(CTMeasureGroups value) { + this.measureGroups = value; + } + + /** + * Gets the value of the maps property. + * + * @return + * possible object is + * {@link CTMeasureDimensionMaps } + * + */ + public CTMeasureDimensionMaps getMaps() { + return maps; + } + + /** + * Sets the value of the maps property. + * + * @param value + * allowed object is + * {@link CTMeasureDimensionMaps } + * + */ + public void setMaps(CTMeasureDimensionMaps value) { + this.maps = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the invalid property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInvalid() { + if (invalid == null) { + return false; + } else { + return invalid; + } + } + + /** + * Sets the value of the invalid property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInvalid(Boolean value) { + this.invalid = value; + } + + /** + * Gets the value of the saveData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSaveData() { + if (saveData == null) { + return true; + } else { + return saveData; + } + } + + /** + * Sets the value of the saveData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSaveData(Boolean value) { + this.saveData = value; + } + + /** + * Gets the value of the refreshOnLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRefreshOnLoad() { + if (refreshOnLoad == null) { + return false; + } else { + return refreshOnLoad; + } + } + + /** + * Sets the value of the refreshOnLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRefreshOnLoad(Boolean value) { + this.refreshOnLoad = value; + } + + /** + * Gets the value of the optimizeMemory property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOptimizeMemory() { + if (optimizeMemory == null) { + return false; + } else { + return optimizeMemory; + } + } + + /** + * Sets the value of the optimizeMemory property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOptimizeMemory(Boolean value) { + this.optimizeMemory = value; + } + + /** + * Gets the value of the enableRefresh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEnableRefresh() { + if (enableRefresh == null) { + return true; + } else { + return enableRefresh; + } + } + + /** + * Sets the value of the enableRefresh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnableRefresh(Boolean value) { + this.enableRefresh = value; + } + + /** + * Gets the value of the refreshedBy property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRefreshedBy() { + return refreshedBy; + } + + /** + * Sets the value of the refreshedBy property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRefreshedBy(String value) { + this.refreshedBy = value; + } + + /** + * Gets the value of the refreshedDate property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getRefreshedDate() { + return refreshedDate; + } + + /** + * Sets the value of the refreshedDate property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setRefreshedDate(Double value) { + this.refreshedDate = value; + } + + /** + * Gets the value of the refreshedDateIso property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getRefreshedDateIso() { + return refreshedDateIso; + } + + /** + * Sets the value of the refreshedDateIso property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setRefreshedDateIso(XMLGregorianCalendar value) { + this.refreshedDateIso = value; + } + + /** + * Gets the value of the backgroundQuery property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBackgroundQuery() { + if (backgroundQuery == null) { + return false; + } else { + return backgroundQuery; + } + } + + /** + * Sets the value of the backgroundQuery property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBackgroundQuery(Boolean value) { + this.backgroundQuery = value; + } + + /** + * Gets the value of the missingItemsLimit property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMissingItemsLimit() { + return missingItemsLimit; + } + + /** + * Sets the value of the missingItemsLimit property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMissingItemsLimit(Long value) { + this.missingItemsLimit = value; + } + + /** + * Gets the value of the createdVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getCreatedVersion() { + if (createdVersion == null) { + return ((short) 0); + } else { + return createdVersion; + } + } + + /** + * Sets the value of the createdVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setCreatedVersion(Short value) { + this.createdVersion = value; + } + + /** + * Gets the value of the refreshedVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getRefreshedVersion() { + if (refreshedVersion == null) { + return ((short) 0); + } else { + return refreshedVersion; + } + } + + /** + * Sets the value of the refreshedVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setRefreshedVersion(Short value) { + this.refreshedVersion = value; + } + + /** + * Gets the value of the minRefreshableVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getMinRefreshableVersion() { + if (minRefreshableVersion == null) { + return ((short) 0); + } else { + return minRefreshableVersion; + } + } + + /** + * Sets the value of the minRefreshableVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setMinRefreshableVersion(Short value) { + this.minRefreshableVersion = value; + } + + /** + * Gets the value of the recordCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRecordCount() { + return recordCount; + } + + /** + * Sets the value of the recordCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRecordCount(Long value) { + this.recordCount = value; + } + + /** + * Gets the value of the upgradeOnRefresh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUpgradeOnRefresh() { + if (upgradeOnRefresh == null) { + return false; + } else { + return upgradeOnRefresh; + } + } + + /** + * Sets the value of the upgradeOnRefresh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUpgradeOnRefresh(Boolean value) { + this.upgradeOnRefresh = value; + } + + /** + * Gets the value of the tupleCacheQ property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTupleCacheQ() { + if (tupleCacheQ == null) { + return false; + } else { + return tupleCacheQ; + } + } + + /** + * Sets the value of the tupleCacheQ property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTupleCacheQ(Boolean value) { + this.tupleCacheQ = value; + } + + /** + * Gets the value of the supportSubquery property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSupportSubquery() { + if (supportSubquery == null) { + return false; + } else { + return supportSubquery; + } + } + + /** + * Sets the value of the supportSubquery property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSupportSubquery(Boolean value) { + this.supportSubquery = value; + } + + /** + * Gets the value of the supportAdvancedDrill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSupportAdvancedDrill() { + if (supportAdvancedDrill == null) { + return false; + } else { + return supportAdvancedDrill; + } + } + + /** + * Sets the value of the supportAdvancedDrill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSupportAdvancedDrill(Boolean value) { + this.supportAdvancedDrill = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheRecords.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheRecords.java index 131f9c08ae..aacd5a666d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheRecords.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCacheRecords.java @@ -1,146 +1,158 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotCacheRecords complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotCacheRecords">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Record" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotCacheRecords", propOrder = { - "r", - "extLst" -}) -@XmlRootElement(name = "pivotCacheRecords") -public class CTPivotCacheRecords { - - protected List r; - protected CTExtensionList extLst; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the r property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the r property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getR().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRecord } - * - * - */ - public List getR() { - if (r == null) { - r = new ArrayList(); - } - return this.r; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotCacheRecords complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotCacheRecords">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Record" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotCacheRecords", propOrder = { + "r", + "extLst" +}) +@XmlRootElement(name = "pivotCacheRecords") +public class CTPivotCacheRecords implements Child +{ + + protected List r; + protected CTExtensionList extLst; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the r property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the r property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getR().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTRecord } + * + * + */ + public List getR() { + if (r == null) { + r = new ArrayList(); + } + return this.r; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCaches.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCaches.java index 15c444bd64..7dceb24fca 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCaches.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotCaches.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotCaches complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotCaches">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotCache" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotCache" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotCaches", propOrder = { - "pivotCache" -}) -public class CTPivotCaches { - - @XmlElement(required = true) - protected List pivotCache; - - /** - * Gets the value of the pivotCache property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the pivotCache property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPivotCache().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotCache } - * - * - */ - public List getPivotCache() { - if (pivotCache == null) { - pivotCache = new ArrayList(); - } - return this.pivotCache; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotCaches complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotCaches">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotCache" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotCache" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotCaches", propOrder = { + "pivotCache" +}) +public class CTPivotCaches implements Child +{ + + @XmlElement(required = true) + protected List pivotCache; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotCache property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pivotCache property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPivotCache().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotCache } + * + * + */ + public List getPivotCache() { + if (pivotCache == null) { + pivotCache = new ArrayList(); + } + return this.pivotCache; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotDimension.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotDimension.java index 29fed90c2b..e8db117e47 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotDimension.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotDimension.java @@ -1,163 +1,175 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotDimension complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotDimension">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="measure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotDimension") -public class CTPivotDimension { - - @XmlAttribute - protected Boolean measure; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - protected String uniqueName; - @XmlAttribute(required = true) - protected String caption; - - /** - * Gets the value of the measure property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMeasure() { - if (measure == null) { - return false; - } else { - return measure; - } - } - - /** - * Sets the value of the measure property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMeasure(Boolean value) { - this.measure = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotDimension complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotDimension">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="measure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="uniqueName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="caption" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotDimension") +public class CTPivotDimension implements Child +{ + + @XmlAttribute(name = "measure") + protected Boolean measure; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "uniqueName", required = true) + protected String uniqueName; + @XmlAttribute(name = "caption", required = true) + protected String caption; + @XmlTransient + private Object parent; + + /** + * Gets the value of the measure property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMeasure() { + if (measure == null) { + return false; + } else { + return measure; + } + } + + /** + * Sets the value of the measure property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMeasure(Boolean value) { + this.measure = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotField.java index fc84166e10..7b55972912 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotField.java @@ -1,1598 +1,1610 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="items" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Items" minOccurs="0"/>
- *         <element name="autoSortScope" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoSortScope" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="axis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Axis" />
- *       <attribute name="dataField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="subtotalCaption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="showDropDowns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="hiddenLevel" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="uniqueMemberProperty" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="compact" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="allDrilled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
- *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="subtotalTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragToRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragToCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="multipleItemSelectionAllowed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="dragToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragToData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragOff" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="insertBlankRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="serverField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="insertPageBreak" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="autoShow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="topAutoShow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="hideNewItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="measureFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="includeNewItemsInFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="itemPageCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="10" />
- *       <attribute name="sortType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FieldSortType" default="manual" />
- *       <attribute name="dataSourceSort" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="nonAutoSortDefault" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="rankBy" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="defaultSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="sumSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="countASubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="avgSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="maxSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="minSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="productSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="countSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="stdDevSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="stdDevPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="varSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="varPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showPropCell" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showPropTip" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showPropAsCaption" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="defaultAttributeDrillState" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotField", propOrder = { - "items", - "autoSortScope", - "extLst" -}) -public class CTPivotField { - - protected CTItems items; - protected CTAutoSortScope autoSortScope; - protected CTExtensionList extLst; - @XmlAttribute - protected String name; - @XmlAttribute - protected STAxis axis; - @XmlAttribute - protected Boolean dataField; - @XmlAttribute - protected String subtotalCaption; - @XmlAttribute - protected Boolean showDropDowns; - @XmlAttribute - protected Boolean hiddenLevel; - @XmlAttribute - protected String uniqueMemberProperty; - @XmlAttribute - protected Boolean compact; - @XmlAttribute - protected Boolean allDrilled; - @XmlAttribute - protected Long numFmtId; - @XmlAttribute - protected Boolean outline; - @XmlAttribute - protected Boolean subtotalTop; - @XmlAttribute - protected Boolean dragToRow; - @XmlAttribute - protected Boolean dragToCol; - @XmlAttribute - protected Boolean multipleItemSelectionAllowed; - @XmlAttribute - protected Boolean dragToPage; - @XmlAttribute - protected Boolean dragToData; - @XmlAttribute - protected Boolean dragOff; - @XmlAttribute - protected Boolean showAll; - @XmlAttribute - protected Boolean insertBlankRow; - @XmlAttribute - protected Boolean serverField; - @XmlAttribute - protected Boolean insertPageBreak; - @XmlAttribute - protected Boolean autoShow; - @XmlAttribute - protected Boolean topAutoShow; - @XmlAttribute - protected Boolean hideNewItems; - @XmlAttribute - protected Boolean measureFilter; - @XmlAttribute - protected Boolean includeNewItemsInFilter; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long itemPageCount; - @XmlAttribute - protected STFieldSortType sortType; - @XmlAttribute - protected Boolean dataSourceSort; - @XmlAttribute - protected Boolean nonAutoSortDefault; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long rankBy; - @XmlAttribute - protected Boolean defaultSubtotal; - @XmlAttribute - protected Boolean sumSubtotal; - @XmlAttribute - protected Boolean countASubtotal; - @XmlAttribute - protected Boolean avgSubtotal; - @XmlAttribute - protected Boolean maxSubtotal; - @XmlAttribute - protected Boolean minSubtotal; - @XmlAttribute - protected Boolean productSubtotal; - @XmlAttribute - protected Boolean countSubtotal; - @XmlAttribute - protected Boolean stdDevSubtotal; - @XmlAttribute - protected Boolean stdDevPSubtotal; - @XmlAttribute - protected Boolean varSubtotal; - @XmlAttribute - protected Boolean varPSubtotal; - @XmlAttribute - protected Boolean showPropCell; - @XmlAttribute - protected Boolean showPropTip; - @XmlAttribute - protected Boolean showPropAsCaption; - @XmlAttribute - protected Boolean defaultAttributeDrillState; - - /** - * Gets the value of the items property. - * - * @return - * possible object is - * {@link CTItems } - * - */ - public CTItems getItems() { - return items; - } - - /** - * Sets the value of the items property. - * - * @param value - * allowed object is - * {@link CTItems } - * - */ - public void setItems(CTItems value) { - this.items = value; - } - - /** - * Gets the value of the autoSortScope property. - * - * @return - * possible object is - * {@link CTAutoSortScope } - * - */ - public CTAutoSortScope getAutoSortScope() { - return autoSortScope; - } - - /** - * Sets the value of the autoSortScope property. - * - * @param value - * allowed object is - * {@link CTAutoSortScope } - * - */ - public void setAutoSortScope(CTAutoSortScope value) { - this.autoSortScope = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the axis property. - * - * @return - * possible object is - * {@link STAxis } - * - */ - public STAxis getAxis() { - return axis; - } - - /** - * Sets the value of the axis property. - * - * @param value - * allowed object is - * {@link STAxis } - * - */ - public void setAxis(STAxis value) { - this.axis = value; - } - - /** - * Gets the value of the dataField property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDataField() { - if (dataField == null) { - return false; - } else { - return dataField; - } - } - - /** - * Sets the value of the dataField property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDataField(Boolean value) { - this.dataField = value; - } - - /** - * Gets the value of the subtotalCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSubtotalCaption() { - return subtotalCaption; - } - - /** - * Sets the value of the subtotalCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSubtotalCaption(String value) { - this.subtotalCaption = value; - } - - /** - * Gets the value of the showDropDowns property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowDropDowns() { - if (showDropDowns == null) { - return true; - } else { - return showDropDowns; - } - } - - /** - * Sets the value of the showDropDowns property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowDropDowns(Boolean value) { - this.showDropDowns = value; - } - - /** - * Gets the value of the hiddenLevel property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHiddenLevel() { - if (hiddenLevel == null) { - return false; - } else { - return hiddenLevel; - } - } - - /** - * Sets the value of the hiddenLevel property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHiddenLevel(Boolean value) { - this.hiddenLevel = value; - } - - /** - * Gets the value of the uniqueMemberProperty property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueMemberProperty() { - return uniqueMemberProperty; - } - - /** - * Sets the value of the uniqueMemberProperty property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueMemberProperty(String value) { - this.uniqueMemberProperty = value; - } - - /** - * Gets the value of the compact property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCompact() { - if (compact == null) { - return true; - } else { - return compact; - } - } - - /** - * Sets the value of the compact property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCompact(Boolean value) { - this.compact = value; - } - - /** - * Gets the value of the allDrilled property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAllDrilled() { - if (allDrilled == null) { - return false; - } else { - return allDrilled; - } - } - - /** - * Sets the value of the allDrilled property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAllDrilled(Boolean value) { - this.allDrilled = value; - } - - /** - * Gets the value of the numFmtId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getNumFmtId() { - return numFmtId; - } - - /** - * Sets the value of the numFmtId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNumFmtId(Long value) { - this.numFmtId = value; - } - - /** - * Gets the value of the outline property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOutline() { - if (outline == null) { - return true; - } else { - return outline; - } - } - - /** - * Sets the value of the outline property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOutline(Boolean value) { - this.outline = value; - } - - /** - * Gets the value of the subtotalTop property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSubtotalTop() { - if (subtotalTop == null) { - return true; - } else { - return subtotalTop; - } - } - - /** - * Sets the value of the subtotalTop property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSubtotalTop(Boolean value) { - this.subtotalTop = value; - } - - /** - * Gets the value of the dragToRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToRow() { - if (dragToRow == null) { - return true; - } else { - return dragToRow; - } - } - - /** - * Sets the value of the dragToRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToRow(Boolean value) { - this.dragToRow = value; - } - - /** - * Gets the value of the dragToCol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToCol() { - if (dragToCol == null) { - return true; - } else { - return dragToCol; - } - } - - /** - * Sets the value of the dragToCol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToCol(Boolean value) { - this.dragToCol = value; - } - - /** - * Gets the value of the multipleItemSelectionAllowed property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMultipleItemSelectionAllowed() { - if (multipleItemSelectionAllowed == null) { - return false; - } else { - return multipleItemSelectionAllowed; - } - } - - /** - * Sets the value of the multipleItemSelectionAllowed property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMultipleItemSelectionAllowed(Boolean value) { - this.multipleItemSelectionAllowed = value; - } - - /** - * Gets the value of the dragToPage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToPage() { - if (dragToPage == null) { - return true; - } else { - return dragToPage; - } - } - - /** - * Sets the value of the dragToPage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToPage(Boolean value) { - this.dragToPage = value; - } - - /** - * Gets the value of the dragToData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToData() { - if (dragToData == null) { - return true; - } else { - return dragToData; - } - } - - /** - * Sets the value of the dragToData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToData(Boolean value) { - this.dragToData = value; - } - - /** - * Gets the value of the dragOff property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragOff() { - if (dragOff == null) { - return true; - } else { - return dragOff; - } - } - - /** - * Sets the value of the dragOff property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragOff(Boolean value) { - this.dragOff = value; - } - - /** - * Gets the value of the showAll property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowAll() { - if (showAll == null) { - return true; - } else { - return showAll; - } - } - - /** - * Sets the value of the showAll property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowAll(Boolean value) { - this.showAll = value; - } - - /** - * Gets the value of the insertBlankRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInsertBlankRow() { - if (insertBlankRow == null) { - return false; - } else { - return insertBlankRow; - } - } - - /** - * Sets the value of the insertBlankRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInsertBlankRow(Boolean value) { - this.insertBlankRow = value; - } - - /** - * Gets the value of the serverField property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isServerField() { - if (serverField == null) { - return false; - } else { - return serverField; - } - } - - /** - * Sets the value of the serverField property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setServerField(Boolean value) { - this.serverField = value; - } - - /** - * Gets the value of the insertPageBreak property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInsertPageBreak() { - if (insertPageBreak == null) { - return false; - } else { - return insertPageBreak; - } - } - - /** - * Sets the value of the insertPageBreak property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInsertPageBreak(Boolean value) { - this.insertPageBreak = value; - } - - /** - * Gets the value of the autoShow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoShow() { - if (autoShow == null) { - return false; - } else { - return autoShow; - } - } - - /** - * Sets the value of the autoShow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoShow(Boolean value) { - this.autoShow = value; - } - - /** - * Gets the value of the topAutoShow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTopAutoShow() { - if (topAutoShow == null) { - return true; - } else { - return topAutoShow; - } - } - - /** - * Sets the value of the topAutoShow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTopAutoShow(Boolean value) { - this.topAutoShow = value; - } - - /** - * Gets the value of the hideNewItems property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHideNewItems() { - if (hideNewItems == null) { - return false; - } else { - return hideNewItems; - } - } - - /** - * Sets the value of the hideNewItems property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHideNewItems(Boolean value) { - this.hideNewItems = value; - } - - /** - * Gets the value of the measureFilter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMeasureFilter() { - if (measureFilter == null) { - return false; - } else { - return measureFilter; - } - } - - /** - * Sets the value of the measureFilter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMeasureFilter(Boolean value) { - this.measureFilter = value; - } - - /** - * Gets the value of the includeNewItemsInFilter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isIncludeNewItemsInFilter() { - if (includeNewItemsInFilter == null) { - return false; - } else { - return includeNewItemsInFilter; - } - } - - /** - * Sets the value of the includeNewItemsInFilter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIncludeNewItemsInFilter(Boolean value) { - this.includeNewItemsInFilter = value; - } - - /** - * Gets the value of the itemPageCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getItemPageCount() { - if (itemPageCount == null) { - return 10L; - } else { - return itemPageCount; - } - } - - /** - * Sets the value of the itemPageCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setItemPageCount(Long value) { - this.itemPageCount = value; - } - - /** - * Gets the value of the sortType property. - * - * @return - * possible object is - * {@link STFieldSortType } - * - */ - public STFieldSortType getSortType() { - if (sortType == null) { - return STFieldSortType.MANUAL; - } else { - return sortType; - } - } - - /** - * Sets the value of the sortType property. - * - * @param value - * allowed object is - * {@link STFieldSortType } - * - */ - public void setSortType(STFieldSortType value) { - this.sortType = value; - } - - /** - * Gets the value of the dataSourceSort property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isDataSourceSort() { - return dataSourceSort; - } - - /** - * Sets the value of the dataSourceSort property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDataSourceSort(Boolean value) { - this.dataSourceSort = value; - } - - /** - * Gets the value of the nonAutoSortDefault property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isNonAutoSortDefault() { - if (nonAutoSortDefault == null) { - return false; - } else { - return nonAutoSortDefault; - } - } - - /** - * Sets the value of the nonAutoSortDefault property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setNonAutoSortDefault(Boolean value) { - this.nonAutoSortDefault = value; - } - - /** - * Gets the value of the rankBy property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getRankBy() { - return rankBy; - } - - /** - * Sets the value of the rankBy property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setRankBy(Long value) { - this.rankBy = value; - } - - /** - * Gets the value of the defaultSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDefaultSubtotal() { - if (defaultSubtotal == null) { - return true; - } else { - return defaultSubtotal; - } - } - - /** - * Sets the value of the defaultSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDefaultSubtotal(Boolean value) { - this.defaultSubtotal = value; - } - - /** - * Gets the value of the sumSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSumSubtotal() { - if (sumSubtotal == null) { - return false; - } else { - return sumSubtotal; - } - } - - /** - * Sets the value of the sumSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSumSubtotal(Boolean value) { - this.sumSubtotal = value; - } - - /** - * Gets the value of the countASubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCountASubtotal() { - if (countASubtotal == null) { - return false; - } else { - return countASubtotal; - } - } - - /** - * Sets the value of the countASubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCountASubtotal(Boolean value) { - this.countASubtotal = value; - } - - /** - * Gets the value of the avgSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAvgSubtotal() { - if (avgSubtotal == null) { - return false; - } else { - return avgSubtotal; - } - } - - /** - * Sets the value of the avgSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAvgSubtotal(Boolean value) { - this.avgSubtotal = value; - } - - /** - * Gets the value of the maxSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMaxSubtotal() { - if (maxSubtotal == null) { - return false; - } else { - return maxSubtotal; - } - } - - /** - * Sets the value of the maxSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMaxSubtotal(Boolean value) { - this.maxSubtotal = value; - } - - /** - * Gets the value of the minSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMinSubtotal() { - if (minSubtotal == null) { - return false; - } else { - return minSubtotal; - } - } - - /** - * Sets the value of the minSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMinSubtotal(Boolean value) { - this.minSubtotal = value; - } - - /** - * Gets the value of the productSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isProductSubtotal() { - if (productSubtotal == null) { - return false; - } else { - return productSubtotal; - } - } - - /** - * Sets the value of the productSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setProductSubtotal(Boolean value) { - this.productSubtotal = value; - } - - /** - * Gets the value of the countSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCountSubtotal() { - if (countSubtotal == null) { - return false; - } else { - return countSubtotal; - } - } - - /** - * Sets the value of the countSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCountSubtotal(Boolean value) { - this.countSubtotal = value; - } - - /** - * Gets the value of the stdDevSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isStdDevSubtotal() { - if (stdDevSubtotal == null) { - return false; - } else { - return stdDevSubtotal; - } - } - - /** - * Sets the value of the stdDevSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setStdDevSubtotal(Boolean value) { - this.stdDevSubtotal = value; - } - - /** - * Gets the value of the stdDevPSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isStdDevPSubtotal() { - if (stdDevPSubtotal == null) { - return false; - } else { - return stdDevPSubtotal; - } - } - - /** - * Sets the value of the stdDevPSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setStdDevPSubtotal(Boolean value) { - this.stdDevPSubtotal = value; - } - - /** - * Gets the value of the varSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVarSubtotal() { - if (varSubtotal == null) { - return false; - } else { - return varSubtotal; - } - } - - /** - * Sets the value of the varSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVarSubtotal(Boolean value) { - this.varSubtotal = value; - } - - /** - * Gets the value of the varPSubtotal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVarPSubtotal() { - if (varPSubtotal == null) { - return false; - } else { - return varPSubtotal; - } - } - - /** - * Sets the value of the varPSubtotal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVarPSubtotal(Boolean value) { - this.varPSubtotal = value; - } - - /** - * Gets the value of the showPropCell property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowPropCell() { - if (showPropCell == null) { - return false; - } else { - return showPropCell; - } - } - - /** - * Sets the value of the showPropCell property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowPropCell(Boolean value) { - this.showPropCell = value; - } - - /** - * Gets the value of the showPropTip property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowPropTip() { - if (showPropTip == null) { - return false; - } else { - return showPropTip; - } - } - - /** - * Sets the value of the showPropTip property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowPropTip(Boolean value) { - this.showPropTip = value; - } - - /** - * Gets the value of the showPropAsCaption property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowPropAsCaption() { - if (showPropAsCaption == null) { - return false; - } else { - return showPropAsCaption; - } - } - - /** - * Sets the value of the showPropAsCaption property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowPropAsCaption(Boolean value) { - this.showPropAsCaption = value; - } - - /** - * Gets the value of the defaultAttributeDrillState property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDefaultAttributeDrillState() { - if (defaultAttributeDrillState == null) { - return false; - } else { - return defaultAttributeDrillState; - } - } - - /** - * Sets the value of the defaultAttributeDrillState property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDefaultAttributeDrillState(Boolean value) { - this.defaultAttributeDrillState = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="items" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Items" minOccurs="0"/>
+ *         <element name="autoSortScope" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoSortScope" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="axis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Axis" />
+ *       <attribute name="dataField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="subtotalCaption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="showDropDowns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="hiddenLevel" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="uniqueMemberProperty" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="compact" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="allDrilled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
+ *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="subtotalTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragToRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragToCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="multipleItemSelectionAllowed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="dragToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragToData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragOff" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showAll" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="insertBlankRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="serverField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="insertPageBreak" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="autoShow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="topAutoShow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="hideNewItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="measureFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="includeNewItemsInFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="itemPageCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="10" />
+ *       <attribute name="sortType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FieldSortType" default="manual" />
+ *       <attribute name="dataSourceSort" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="nonAutoSortDefault" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="rankBy" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="defaultSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="sumSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="countASubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="avgSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="maxSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="minSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="productSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="countSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="stdDevSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="stdDevPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="varSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="varPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showPropCell" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showPropTip" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showPropAsCaption" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="defaultAttributeDrillState" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotField", propOrder = { + "items", + "autoSortScope", + "extLst" +}) +public class CTPivotField implements Child +{ + + protected CTItems items; + protected CTAutoSortScope autoSortScope; + protected CTExtensionList extLst; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "axis") + protected STAxis axis; + @XmlAttribute(name = "dataField") + protected Boolean dataField; + @XmlAttribute(name = "subtotalCaption") + protected String subtotalCaption; + @XmlAttribute(name = "showDropDowns") + protected Boolean showDropDowns; + @XmlAttribute(name = "hiddenLevel") + protected Boolean hiddenLevel; + @XmlAttribute(name = "uniqueMemberProperty") + protected String uniqueMemberProperty; + @XmlAttribute(name = "compact") + protected Boolean compact; + @XmlAttribute(name = "allDrilled") + protected Boolean allDrilled; + @XmlAttribute(name = "numFmtId") + protected Long numFmtId; + @XmlAttribute(name = "outline") + protected Boolean outline; + @XmlAttribute(name = "subtotalTop") + protected Boolean subtotalTop; + @XmlAttribute(name = "dragToRow") + protected Boolean dragToRow; + @XmlAttribute(name = "dragToCol") + protected Boolean dragToCol; + @XmlAttribute(name = "multipleItemSelectionAllowed") + protected Boolean multipleItemSelectionAllowed; + @XmlAttribute(name = "dragToPage") + protected Boolean dragToPage; + @XmlAttribute(name = "dragToData") + protected Boolean dragToData; + @XmlAttribute(name = "dragOff") + protected Boolean dragOff; + @XmlAttribute(name = "showAll") + protected Boolean showAll; + @XmlAttribute(name = "insertBlankRow") + protected Boolean insertBlankRow; + @XmlAttribute(name = "serverField") + protected Boolean serverField; + @XmlAttribute(name = "insertPageBreak") + protected Boolean insertPageBreak; + @XmlAttribute(name = "autoShow") + protected Boolean autoShow; + @XmlAttribute(name = "topAutoShow") + protected Boolean topAutoShow; + @XmlAttribute(name = "hideNewItems") + protected Boolean hideNewItems; + @XmlAttribute(name = "measureFilter") + protected Boolean measureFilter; + @XmlAttribute(name = "includeNewItemsInFilter") + protected Boolean includeNewItemsInFilter; + @XmlAttribute(name = "itemPageCount") + @XmlSchemaType(name = "unsignedInt") + protected Long itemPageCount; + @XmlAttribute(name = "sortType") + protected STFieldSortType sortType; + @XmlAttribute(name = "dataSourceSort") + protected Boolean dataSourceSort; + @XmlAttribute(name = "nonAutoSortDefault") + protected Boolean nonAutoSortDefault; + @XmlAttribute(name = "rankBy") + @XmlSchemaType(name = "unsignedInt") + protected Long rankBy; + @XmlAttribute(name = "defaultSubtotal") + protected Boolean defaultSubtotal; + @XmlAttribute(name = "sumSubtotal") + protected Boolean sumSubtotal; + @XmlAttribute(name = "countASubtotal") + protected Boolean countASubtotal; + @XmlAttribute(name = "avgSubtotal") + protected Boolean avgSubtotal; + @XmlAttribute(name = "maxSubtotal") + protected Boolean maxSubtotal; + @XmlAttribute(name = "minSubtotal") + protected Boolean minSubtotal; + @XmlAttribute(name = "productSubtotal") + protected Boolean productSubtotal; + @XmlAttribute(name = "countSubtotal") + protected Boolean countSubtotal; + @XmlAttribute(name = "stdDevSubtotal") + protected Boolean stdDevSubtotal; + @XmlAttribute(name = "stdDevPSubtotal") + protected Boolean stdDevPSubtotal; + @XmlAttribute(name = "varSubtotal") + protected Boolean varSubtotal; + @XmlAttribute(name = "varPSubtotal") + protected Boolean varPSubtotal; + @XmlAttribute(name = "showPropCell") + protected Boolean showPropCell; + @XmlAttribute(name = "showPropTip") + protected Boolean showPropTip; + @XmlAttribute(name = "showPropAsCaption") + protected Boolean showPropAsCaption; + @XmlAttribute(name = "defaultAttributeDrillState") + protected Boolean defaultAttributeDrillState; + @XmlTransient + private Object parent; + + /** + * Gets the value of the items property. + * + * @return + * possible object is + * {@link CTItems } + * + */ + public CTItems getItems() { + return items; + } + + /** + * Sets the value of the items property. + * + * @param value + * allowed object is + * {@link CTItems } + * + */ + public void setItems(CTItems value) { + this.items = value; + } + + /** + * Gets the value of the autoSortScope property. + * + * @return + * possible object is + * {@link CTAutoSortScope } + * + */ + public CTAutoSortScope getAutoSortScope() { + return autoSortScope; + } + + /** + * Sets the value of the autoSortScope property. + * + * @param value + * allowed object is + * {@link CTAutoSortScope } + * + */ + public void setAutoSortScope(CTAutoSortScope value) { + this.autoSortScope = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the axis property. + * + * @return + * possible object is + * {@link STAxis } + * + */ + public STAxis getAxis() { + return axis; + } + + /** + * Sets the value of the axis property. + * + * @param value + * allowed object is + * {@link STAxis } + * + */ + public void setAxis(STAxis value) { + this.axis = value; + } + + /** + * Gets the value of the dataField property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDataField() { + if (dataField == null) { + return false; + } else { + return dataField; + } + } + + /** + * Sets the value of the dataField property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDataField(Boolean value) { + this.dataField = value; + } + + /** + * Gets the value of the subtotalCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubtotalCaption() { + return subtotalCaption; + } + + /** + * Sets the value of the subtotalCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubtotalCaption(String value) { + this.subtotalCaption = value; + } + + /** + * Gets the value of the showDropDowns property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowDropDowns() { + if (showDropDowns == null) { + return true; + } else { + return showDropDowns; + } + } + + /** + * Sets the value of the showDropDowns property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowDropDowns(Boolean value) { + this.showDropDowns = value; + } + + /** + * Gets the value of the hiddenLevel property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHiddenLevel() { + if (hiddenLevel == null) { + return false; + } else { + return hiddenLevel; + } + } + + /** + * Sets the value of the hiddenLevel property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenLevel(Boolean value) { + this.hiddenLevel = value; + } + + /** + * Gets the value of the uniqueMemberProperty property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueMemberProperty() { + return uniqueMemberProperty; + } + + /** + * Sets the value of the uniqueMemberProperty property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueMemberProperty(String value) { + this.uniqueMemberProperty = value; + } + + /** + * Gets the value of the compact property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCompact() { + if (compact == null) { + return true; + } else { + return compact; + } + } + + /** + * Sets the value of the compact property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCompact(Boolean value) { + this.compact = value; + } + + /** + * Gets the value of the allDrilled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAllDrilled() { + if (allDrilled == null) { + return false; + } else { + return allDrilled; + } + } + + /** + * Sets the value of the allDrilled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAllDrilled(Boolean value) { + this.allDrilled = value; + } + + /** + * Gets the value of the numFmtId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getNumFmtId() { + return numFmtId; + } + + /** + * Sets the value of the numFmtId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNumFmtId(Long value) { + this.numFmtId = value; + } + + /** + * Gets the value of the outline property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOutline() { + if (outline == null) { + return true; + } else { + return outline; + } + } + + /** + * Sets the value of the outline property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOutline(Boolean value) { + this.outline = value; + } + + /** + * Gets the value of the subtotalTop property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSubtotalTop() { + if (subtotalTop == null) { + return true; + } else { + return subtotalTop; + } + } + + /** + * Sets the value of the subtotalTop property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSubtotalTop(Boolean value) { + this.subtotalTop = value; + } + + /** + * Gets the value of the dragToRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToRow() { + if (dragToRow == null) { + return true; + } else { + return dragToRow; + } + } + + /** + * Sets the value of the dragToRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToRow(Boolean value) { + this.dragToRow = value; + } + + /** + * Gets the value of the dragToCol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToCol() { + if (dragToCol == null) { + return true; + } else { + return dragToCol; + } + } + + /** + * Sets the value of the dragToCol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToCol(Boolean value) { + this.dragToCol = value; + } + + /** + * Gets the value of the multipleItemSelectionAllowed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMultipleItemSelectionAllowed() { + if (multipleItemSelectionAllowed == null) { + return false; + } else { + return multipleItemSelectionAllowed; + } + } + + /** + * Sets the value of the multipleItemSelectionAllowed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMultipleItemSelectionAllowed(Boolean value) { + this.multipleItemSelectionAllowed = value; + } + + /** + * Gets the value of the dragToPage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToPage() { + if (dragToPage == null) { + return true; + } else { + return dragToPage; + } + } + + /** + * Sets the value of the dragToPage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToPage(Boolean value) { + this.dragToPage = value; + } + + /** + * Gets the value of the dragToData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToData() { + if (dragToData == null) { + return true; + } else { + return dragToData; + } + } + + /** + * Sets the value of the dragToData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToData(Boolean value) { + this.dragToData = value; + } + + /** + * Gets the value of the dragOff property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragOff() { + if (dragOff == null) { + return true; + } else { + return dragOff; + } + } + + /** + * Sets the value of the dragOff property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragOff(Boolean value) { + this.dragOff = value; + } + + /** + * Gets the value of the showAll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowAll() { + if (showAll == null) { + return true; + } else { + return showAll; + } + } + + /** + * Sets the value of the showAll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowAll(Boolean value) { + this.showAll = value; + } + + /** + * Gets the value of the insertBlankRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInsertBlankRow() { + if (insertBlankRow == null) { + return false; + } else { + return insertBlankRow; + } + } + + /** + * Sets the value of the insertBlankRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInsertBlankRow(Boolean value) { + this.insertBlankRow = value; + } + + /** + * Gets the value of the serverField property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isServerField() { + if (serverField == null) { + return false; + } else { + return serverField; + } + } + + /** + * Sets the value of the serverField property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setServerField(Boolean value) { + this.serverField = value; + } + + /** + * Gets the value of the insertPageBreak property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInsertPageBreak() { + if (insertPageBreak == null) { + return false; + } else { + return insertPageBreak; + } + } + + /** + * Sets the value of the insertPageBreak property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInsertPageBreak(Boolean value) { + this.insertPageBreak = value; + } + + /** + * Gets the value of the autoShow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoShow() { + if (autoShow == null) { + return false; + } else { + return autoShow; + } + } + + /** + * Sets the value of the autoShow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoShow(Boolean value) { + this.autoShow = value; + } + + /** + * Gets the value of the topAutoShow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTopAutoShow() { + if (topAutoShow == null) { + return true; + } else { + return topAutoShow; + } + } + + /** + * Sets the value of the topAutoShow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTopAutoShow(Boolean value) { + this.topAutoShow = value; + } + + /** + * Gets the value of the hideNewItems property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHideNewItems() { + if (hideNewItems == null) { + return false; + } else { + return hideNewItems; + } + } + + /** + * Sets the value of the hideNewItems property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHideNewItems(Boolean value) { + this.hideNewItems = value; + } + + /** + * Gets the value of the measureFilter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMeasureFilter() { + if (measureFilter == null) { + return false; + } else { + return measureFilter; + } + } + + /** + * Sets the value of the measureFilter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMeasureFilter(Boolean value) { + this.measureFilter = value; + } + + /** + * Gets the value of the includeNewItemsInFilter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIncludeNewItemsInFilter() { + if (includeNewItemsInFilter == null) { + return false; + } else { + return includeNewItemsInFilter; + } + } + + /** + * Sets the value of the includeNewItemsInFilter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeNewItemsInFilter(Boolean value) { + this.includeNewItemsInFilter = value; + } + + /** + * Gets the value of the itemPageCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getItemPageCount() { + if (itemPageCount == null) { + return 10L; + } else { + return itemPageCount; + } + } + + /** + * Sets the value of the itemPageCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setItemPageCount(Long value) { + this.itemPageCount = value; + } + + /** + * Gets the value of the sortType property. + * + * @return + * possible object is + * {@link STFieldSortType } + * + */ + public STFieldSortType getSortType() { + if (sortType == null) { + return STFieldSortType.MANUAL; + } else { + return sortType; + } + } + + /** + * Sets the value of the sortType property. + * + * @param value + * allowed object is + * {@link STFieldSortType } + * + */ + public void setSortType(STFieldSortType value) { + this.sortType = value; + } + + /** + * Gets the value of the dataSourceSort property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isDataSourceSort() { + return dataSourceSort; + } + + /** + * Sets the value of the dataSourceSort property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDataSourceSort(Boolean value) { + this.dataSourceSort = value; + } + + /** + * Gets the value of the nonAutoSortDefault property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isNonAutoSortDefault() { + if (nonAutoSortDefault == null) { + return false; + } else { + return nonAutoSortDefault; + } + } + + /** + * Sets the value of the nonAutoSortDefault property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNonAutoSortDefault(Boolean value) { + this.nonAutoSortDefault = value; + } + + /** + * Gets the value of the rankBy property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRankBy() { + return rankBy; + } + + /** + * Sets the value of the rankBy property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRankBy(Long value) { + this.rankBy = value; + } + + /** + * Gets the value of the defaultSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDefaultSubtotal() { + if (defaultSubtotal == null) { + return true; + } else { + return defaultSubtotal; + } + } + + /** + * Sets the value of the defaultSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDefaultSubtotal(Boolean value) { + this.defaultSubtotal = value; + } + + /** + * Gets the value of the sumSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSumSubtotal() { + if (sumSubtotal == null) { + return false; + } else { + return sumSubtotal; + } + } + + /** + * Sets the value of the sumSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSumSubtotal(Boolean value) { + this.sumSubtotal = value; + } + + /** + * Gets the value of the countASubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCountASubtotal() { + if (countASubtotal == null) { + return false; + } else { + return countASubtotal; + } + } + + /** + * Sets the value of the countASubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCountASubtotal(Boolean value) { + this.countASubtotal = value; + } + + /** + * Gets the value of the avgSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAvgSubtotal() { + if (avgSubtotal == null) { + return false; + } else { + return avgSubtotal; + } + } + + /** + * Sets the value of the avgSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAvgSubtotal(Boolean value) { + this.avgSubtotal = value; + } + + /** + * Gets the value of the maxSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMaxSubtotal() { + if (maxSubtotal == null) { + return false; + } else { + return maxSubtotal; + } + } + + /** + * Sets the value of the maxSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMaxSubtotal(Boolean value) { + this.maxSubtotal = value; + } + + /** + * Gets the value of the minSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMinSubtotal() { + if (minSubtotal == null) { + return false; + } else { + return minSubtotal; + } + } + + /** + * Sets the value of the minSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMinSubtotal(Boolean value) { + this.minSubtotal = value; + } + + /** + * Gets the value of the productSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isProductSubtotal() { + if (productSubtotal == null) { + return false; + } else { + return productSubtotal; + } + } + + /** + * Sets the value of the productSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setProductSubtotal(Boolean value) { + this.productSubtotal = value; + } + + /** + * Gets the value of the countSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCountSubtotal() { + if (countSubtotal == null) { + return false; + } else { + return countSubtotal; + } + } + + /** + * Sets the value of the countSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCountSubtotal(Boolean value) { + this.countSubtotal = value; + } + + /** + * Gets the value of the stdDevSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStdDevSubtotal() { + if (stdDevSubtotal == null) { + return false; + } else { + return stdDevSubtotal; + } + } + + /** + * Sets the value of the stdDevSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStdDevSubtotal(Boolean value) { + this.stdDevSubtotal = value; + } + + /** + * Gets the value of the stdDevPSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isStdDevPSubtotal() { + if (stdDevPSubtotal == null) { + return false; + } else { + return stdDevPSubtotal; + } + } + + /** + * Sets the value of the stdDevPSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setStdDevPSubtotal(Boolean value) { + this.stdDevPSubtotal = value; + } + + /** + * Gets the value of the varSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVarSubtotal() { + if (varSubtotal == null) { + return false; + } else { + return varSubtotal; + } + } + + /** + * Sets the value of the varSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVarSubtotal(Boolean value) { + this.varSubtotal = value; + } + + /** + * Gets the value of the varPSubtotal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVarPSubtotal() { + if (varPSubtotal == null) { + return false; + } else { + return varPSubtotal; + } + } + + /** + * Sets the value of the varPSubtotal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVarPSubtotal(Boolean value) { + this.varPSubtotal = value; + } + + /** + * Gets the value of the showPropCell property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowPropCell() { + if (showPropCell == null) { + return false; + } else { + return showPropCell; + } + } + + /** + * Sets the value of the showPropCell property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowPropCell(Boolean value) { + this.showPropCell = value; + } + + /** + * Gets the value of the showPropTip property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowPropTip() { + if (showPropTip == null) { + return false; + } else { + return showPropTip; + } + } + + /** + * Sets the value of the showPropTip property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowPropTip(Boolean value) { + this.showPropTip = value; + } + + /** + * Gets the value of the showPropAsCaption property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowPropAsCaption() { + if (showPropAsCaption == null) { + return false; + } else { + return showPropAsCaption; + } + } + + /** + * Sets the value of the showPropAsCaption property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowPropAsCaption(Boolean value) { + this.showPropAsCaption = value; + } + + /** + * Gets the value of the defaultAttributeDrillState property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDefaultAttributeDrillState() { + if (defaultAttributeDrillState == null) { + return false; + } else { + return defaultAttributeDrillState; + } + } + + /** + * Sets the value of the defaultAttributeDrillState property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDefaultAttributeDrillState(Boolean value) { + this.defaultAttributeDrillState = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFields.java index 6d9cfe6b5f..60e29b8739 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFields.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotField" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotFields", propOrder = { - "pivotField" -}) -public class CTPivotFields { - - @XmlElement(required = true) - protected List pivotField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the pivotField property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the pivotField property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPivotField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotField } - * - * - */ - public List getPivotField() { - if (pivotField == null) { - pivotField = new ArrayList(); - } - return this.pivotField; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotField" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotFields", propOrder = { + "pivotField" +}) +public class CTPivotFields implements Child +{ + + @XmlElement(required = true) + protected List pivotField; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotField property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pivotField property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPivotField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotField } + * + * + */ + public List getPivotField() { + if (pivotField == null) { + pivotField = new ArrayList(); + } + return this.pivotField; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilter.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilter.java index f6e389f955..98963f8717 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilter.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilter.java @@ -1,401 +1,413 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotFilter complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotFilter">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="fld" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="mpFld" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PivotFilterType" />
- *       <attribute name="evalOrder" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="iMeasureHier" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="iMeasureFld" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="description" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="stringValue1" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="stringValue2" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotFilter", propOrder = { - "autoFilter", - "extLst" -}) -public class CTPivotFilter { - - @XmlElement(required = true) - protected CTAutoFilter autoFilter; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long fld; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long mpFld; - @XmlAttribute(required = true) - protected STPivotFilterType type; - @XmlAttribute - protected Integer evalOrder; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long iMeasureHier; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long iMeasureFld; - @XmlAttribute - protected String name; - @XmlAttribute - protected String description; - @XmlAttribute - protected String stringValue1; - @XmlAttribute - protected String stringValue2; - - /** - * Gets the value of the autoFilter property. - * - * @return - * possible object is - * {@link CTAutoFilter } - * - */ - public CTAutoFilter getAutoFilter() { - return autoFilter; - } - - /** - * Sets the value of the autoFilter property. - * - * @param value - * allowed object is - * {@link CTAutoFilter } - * - */ - public void setAutoFilter(CTAutoFilter value) { - this.autoFilter = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the fld property. - * - */ - public long getFld() { - return fld; - } - - /** - * Sets the value of the fld property. - * - */ - public void setFld(long value) { - this.fld = value; - } - - /** - * Gets the value of the mpFld property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getMpFld() { - return mpFld; - } - - /** - * Sets the value of the mpFld property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMpFld(Long value) { - this.mpFld = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STPivotFilterType } - * - */ - public STPivotFilterType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STPivotFilterType } - * - */ - public void setType(STPivotFilterType value) { - this.type = value; - } - - /** - * Gets the value of the evalOrder property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getEvalOrder() { - if (evalOrder == null) { - return 0; - } else { - return evalOrder; - } - } - - /** - * Sets the value of the evalOrder property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setEvalOrder(Integer value) { - this.evalOrder = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the iMeasureHier property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIMeasureHier() { - return iMeasureHier; - } - - /** - * Sets the value of the iMeasureHier property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIMeasureHier(Long value) { - this.iMeasureHier = value; - } - - /** - * Gets the value of the iMeasureFld property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIMeasureFld() { - return iMeasureFld; - } - - /** - * Sets the value of the iMeasureFld property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIMeasureFld(Long value) { - this.iMeasureFld = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the description property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescription(String value) { - this.description = value; - } - - /** - * Gets the value of the stringValue1 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStringValue1() { - return stringValue1; - } - - /** - * Sets the value of the stringValue1 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStringValue1(String value) { - this.stringValue1 = value; - } - - /** - * Gets the value of the stringValue2 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStringValue2() { - return stringValue2; - } - - /** - * Sets the value of the stringValue2 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStringValue2(String value) { - this.stringValue2 = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotFilter complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotFilter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="fld" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="mpFld" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PivotFilterType" />
+ *       <attribute name="evalOrder" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="iMeasureHier" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="iMeasureFld" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="description" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="stringValue1" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="stringValue2" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotFilter", propOrder = { + "autoFilter", + "extLst" +}) +public class CTPivotFilter implements Child +{ + + @XmlElement(required = true) + protected CTAutoFilter autoFilter; + protected CTExtensionList extLst; + @XmlAttribute(name = "fld", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long fld; + @XmlAttribute(name = "mpFld") + @XmlSchemaType(name = "unsignedInt") + protected Long mpFld; + @XmlAttribute(name = "type", required = true) + protected STPivotFilterType type; + @XmlAttribute(name = "evalOrder") + protected Integer evalOrder; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "iMeasureHier") + @XmlSchemaType(name = "unsignedInt") + protected Long iMeasureHier; + @XmlAttribute(name = "iMeasureFld") + @XmlSchemaType(name = "unsignedInt") + protected Long iMeasureFld; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "description") + protected String description; + @XmlAttribute(name = "stringValue1") + protected String stringValue1; + @XmlAttribute(name = "stringValue2") + protected String stringValue2; + @XmlTransient + private Object parent; + + /** + * Gets the value of the autoFilter property. + * + * @return + * possible object is + * {@link CTAutoFilter } + * + */ + public CTAutoFilter getAutoFilter() { + return autoFilter; + } + + /** + * Sets the value of the autoFilter property. + * + * @param value + * allowed object is + * {@link CTAutoFilter } + * + */ + public void setAutoFilter(CTAutoFilter value) { + this.autoFilter = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the fld property. + * + */ + public long getFld() { + return fld; + } + + /** + * Sets the value of the fld property. + * + */ + public void setFld(long value) { + this.fld = value; + } + + /** + * Gets the value of the mpFld property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMpFld() { + return mpFld; + } + + /** + * Sets the value of the mpFld property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMpFld(Long value) { + this.mpFld = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STPivotFilterType } + * + */ + public STPivotFilterType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STPivotFilterType } + * + */ + public void setType(STPivotFilterType value) { + this.type = value; + } + + /** + * Gets the value of the evalOrder property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getEvalOrder() { + if (evalOrder == null) { + return 0; + } else { + return evalOrder; + } + } + + /** + * Sets the value of the evalOrder property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setEvalOrder(Integer value) { + this.evalOrder = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the iMeasureHier property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIMeasureHier() { + return iMeasureHier; + } + + /** + * Sets the value of the iMeasureHier property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIMeasureHier(Long value) { + this.iMeasureHier = value; + } + + /** + * Gets the value of the iMeasureFld property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIMeasureFld() { + return iMeasureFld; + } + + /** + * Sets the value of the iMeasureFld property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIMeasureFld(Long value) { + this.iMeasureFld = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the stringValue1 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStringValue1() { + return stringValue1; + } + + /** + * Sets the value of the stringValue1 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStringValue1(String value) { + this.stringValue1 = value; + } + + /** + * Gets the value of the stringValue2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStringValue2() { + return stringValue2; + } + + /** + * Sets the value of the stringValue2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStringValue2(String value) { + this.stringValue2 = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilters.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilters.java index 698f322b89..6f01990a9e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilters.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotFilters.java @@ -1,121 +1,133 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotFilters complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotFilters">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="filter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotFilter" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotFilters", propOrder = { - "filter" -}) -public class CTPivotFilters { - - protected List filter; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the filter property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the filter property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFilter().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotFilter } - * - * - */ - public List getFilter() { - if (filter == null) { - filter = new ArrayList(); - } - return this.filter; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotFilters complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotFilters">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="filter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotFilter" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotFilters", propOrder = { + "filter" +}) +public class CTPivotFilters implements Child +{ + + protected List filter; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the filter property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the filter property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFilter().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotFilter } + * + * + */ + public List getFilter() { + if (filter == null) { + filter = new ArrayList(); + } + return this.filter; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchies.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchies.java index f6c498c1b9..276cbd113a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchies.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchies.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotHierarchies complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotHierarchies">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotHierarchy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotHierarchy" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotHierarchies", propOrder = { - "pivotHierarchy" -}) -public class CTPivotHierarchies { - - @XmlElement(required = true) - protected List pivotHierarchy; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the pivotHierarchy property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the pivotHierarchy property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPivotHierarchy().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotHierarchy } - * - * - */ - public List getPivotHierarchy() { - if (pivotHierarchy == null) { - pivotHierarchy = new ArrayList(); - } - return this.pivotHierarchy; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotHierarchies complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotHierarchies">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotHierarchy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotHierarchy" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotHierarchies", propOrder = { + "pivotHierarchy" +}) +public class CTPivotHierarchies implements Child +{ + + @XmlElement(required = true) + protected List pivotHierarchy; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotHierarchy property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pivotHierarchy property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPivotHierarchy().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotHierarchy } + * + * + */ + public List getPivotHierarchy() { + if (pivotHierarchy == null) { + pivotHierarchy = new ArrayList(); + } + return this.pivotHierarchy; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchy.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchy.java index 9490f1e01d..fd4b226fc2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchy.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotHierarchy.java @@ -1,479 +1,491 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotHierarchy complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotHierarchy">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="mps" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MemberProperties" minOccurs="0"/>
- *         <element name="members" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Members" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="multipleItemSelectionAllowed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="subtotalTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showInFieldList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragToRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragToCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="dragToData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="dragOff" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="includeNewItemsInFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="caption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotHierarchy", propOrder = { - "mps", - "members", - "extLst" -}) -public class CTPivotHierarchy { - - protected CTMemberProperties mps; - protected List members; - protected CTExtensionList extLst; - @XmlAttribute - protected Boolean outline; - @XmlAttribute - protected Boolean multipleItemSelectionAllowed; - @XmlAttribute - protected Boolean subtotalTop; - @XmlAttribute - protected Boolean showInFieldList; - @XmlAttribute - protected Boolean dragToRow; - @XmlAttribute - protected Boolean dragToCol; - @XmlAttribute - protected Boolean dragToPage; - @XmlAttribute - protected Boolean dragToData; - @XmlAttribute - protected Boolean dragOff; - @XmlAttribute - protected Boolean includeNewItemsInFilter; - @XmlAttribute - protected String caption; - - /** - * Gets the value of the mps property. - * - * @return - * possible object is - * {@link CTMemberProperties } - * - */ - public CTMemberProperties getMps() { - return mps; - } - - /** - * Sets the value of the mps property. - * - * @param value - * allowed object is - * {@link CTMemberProperties } - * - */ - public void setMps(CTMemberProperties value) { - this.mps = value; - } - - /** - * Gets the value of the members property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the members property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMembers().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMembers } - * - * - */ - public List getMembers() { - if (members == null) { - members = new ArrayList(); - } - return this.members; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the outline property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOutline() { - if (outline == null) { - return false; - } else { - return outline; - } - } - - /** - * Sets the value of the outline property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOutline(Boolean value) { - this.outline = value; - } - - /** - * Gets the value of the multipleItemSelectionAllowed property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMultipleItemSelectionAllowed() { - if (multipleItemSelectionAllowed == null) { - return false; - } else { - return multipleItemSelectionAllowed; - } - } - - /** - * Sets the value of the multipleItemSelectionAllowed property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMultipleItemSelectionAllowed(Boolean value) { - this.multipleItemSelectionAllowed = value; - } - - /** - * Gets the value of the subtotalTop property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSubtotalTop() { - if (subtotalTop == null) { - return false; - } else { - return subtotalTop; - } - } - - /** - * Sets the value of the subtotalTop property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSubtotalTop(Boolean value) { - this.subtotalTop = value; - } - - /** - * Gets the value of the showInFieldList property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowInFieldList() { - if (showInFieldList == null) { - return true; - } else { - return showInFieldList; - } - } - - /** - * Sets the value of the showInFieldList property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowInFieldList(Boolean value) { - this.showInFieldList = value; - } - - /** - * Gets the value of the dragToRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToRow() { - if (dragToRow == null) { - return true; - } else { - return dragToRow; - } - } - - /** - * Sets the value of the dragToRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToRow(Boolean value) { - this.dragToRow = value; - } - - /** - * Gets the value of the dragToCol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToCol() { - if (dragToCol == null) { - return true; - } else { - return dragToCol; - } - } - - /** - * Sets the value of the dragToCol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToCol(Boolean value) { - this.dragToCol = value; - } - - /** - * Gets the value of the dragToPage property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToPage() { - if (dragToPage == null) { - return true; - } else { - return dragToPage; - } - } - - /** - * Sets the value of the dragToPage property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToPage(Boolean value) { - this.dragToPage = value; - } - - /** - * Gets the value of the dragToData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragToData() { - if (dragToData == null) { - return false; - } else { - return dragToData; - } - } - - /** - * Sets the value of the dragToData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragToData(Boolean value) { - this.dragToData = value; - } - - /** - * Gets the value of the dragOff property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDragOff() { - if (dragOff == null) { - return true; - } else { - return dragOff; - } - } - - /** - * Sets the value of the dragOff property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDragOff(Boolean value) { - this.dragOff = value; - } - - /** - * Gets the value of the includeNewItemsInFilter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isIncludeNewItemsInFilter() { - if (includeNewItemsInFilter == null) { - return false; - } else { - return includeNewItemsInFilter; - } - } - - /** - * Sets the value of the includeNewItemsInFilter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIncludeNewItemsInFilter(Boolean value) { - this.includeNewItemsInFilter = value; - } - - /** - * Gets the value of the caption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCaption() { - return caption; - } - - /** - * Sets the value of the caption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCaption(String value) { - this.caption = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotHierarchy complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotHierarchy">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mps" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MemberProperties" minOccurs="0"/>
+ *         <element name="members" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Members" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="multipleItemSelectionAllowed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="subtotalTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showInFieldList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragToRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragToCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragToPage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="dragToData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="dragOff" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="includeNewItemsInFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="caption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotHierarchy", propOrder = { + "mps", + "members", + "extLst" +}) +public class CTPivotHierarchy implements Child +{ + + protected CTMemberProperties mps; + protected List members; + protected CTExtensionList extLst; + @XmlAttribute(name = "outline") + protected Boolean outline; + @XmlAttribute(name = "multipleItemSelectionAllowed") + protected Boolean multipleItemSelectionAllowed; + @XmlAttribute(name = "subtotalTop") + protected Boolean subtotalTop; + @XmlAttribute(name = "showInFieldList") + protected Boolean showInFieldList; + @XmlAttribute(name = "dragToRow") + protected Boolean dragToRow; + @XmlAttribute(name = "dragToCol") + protected Boolean dragToCol; + @XmlAttribute(name = "dragToPage") + protected Boolean dragToPage; + @XmlAttribute(name = "dragToData") + protected Boolean dragToData; + @XmlAttribute(name = "dragOff") + protected Boolean dragOff; + @XmlAttribute(name = "includeNewItemsInFilter") + protected Boolean includeNewItemsInFilter; + @XmlAttribute(name = "caption") + protected String caption; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mps property. + * + * @return + * possible object is + * {@link CTMemberProperties } + * + */ + public CTMemberProperties getMps() { + return mps; + } + + /** + * Sets the value of the mps property. + * + * @param value + * allowed object is + * {@link CTMemberProperties } + * + */ + public void setMps(CTMemberProperties value) { + this.mps = value; + } + + /** + * Gets the value of the members property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the members property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMembers().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMembers } + * + * + */ + public List getMembers() { + if (members == null) { + members = new ArrayList(); + } + return this.members; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the outline property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOutline() { + if (outline == null) { + return false; + } else { + return outline; + } + } + + /** + * Sets the value of the outline property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOutline(Boolean value) { + this.outline = value; + } + + /** + * Gets the value of the multipleItemSelectionAllowed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMultipleItemSelectionAllowed() { + if (multipleItemSelectionAllowed == null) { + return false; + } else { + return multipleItemSelectionAllowed; + } + } + + /** + * Sets the value of the multipleItemSelectionAllowed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMultipleItemSelectionAllowed(Boolean value) { + this.multipleItemSelectionAllowed = value; + } + + /** + * Gets the value of the subtotalTop property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSubtotalTop() { + if (subtotalTop == null) { + return false; + } else { + return subtotalTop; + } + } + + /** + * Sets the value of the subtotalTop property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSubtotalTop(Boolean value) { + this.subtotalTop = value; + } + + /** + * Gets the value of the showInFieldList property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowInFieldList() { + if (showInFieldList == null) { + return true; + } else { + return showInFieldList; + } + } + + /** + * Sets the value of the showInFieldList property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowInFieldList(Boolean value) { + this.showInFieldList = value; + } + + /** + * Gets the value of the dragToRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToRow() { + if (dragToRow == null) { + return true; + } else { + return dragToRow; + } + } + + /** + * Sets the value of the dragToRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToRow(Boolean value) { + this.dragToRow = value; + } + + /** + * Gets the value of the dragToCol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToCol() { + if (dragToCol == null) { + return true; + } else { + return dragToCol; + } + } + + /** + * Sets the value of the dragToCol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToCol(Boolean value) { + this.dragToCol = value; + } + + /** + * Gets the value of the dragToPage property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToPage() { + if (dragToPage == null) { + return true; + } else { + return dragToPage; + } + } + + /** + * Sets the value of the dragToPage property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToPage(Boolean value) { + this.dragToPage = value; + } + + /** + * Gets the value of the dragToData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragToData() { + if (dragToData == null) { + return false; + } else { + return dragToData; + } + } + + /** + * Sets the value of the dragToData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragToData(Boolean value) { + this.dragToData = value; + } + + /** + * Gets the value of the dragOff property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDragOff() { + if (dragOff == null) { + return true; + } else { + return dragOff; + } + } + + /** + * Sets the value of the dragOff property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDragOff(Boolean value) { + this.dragOff = value; + } + + /** + * Gets the value of the includeNewItemsInFilter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIncludeNewItemsInFilter() { + if (includeNewItemsInFilter == null) { + return false; + } else { + return includeNewItemsInFilter; + } + } + + /** + * Sets the value of the includeNewItemsInFilter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeNewItemsInFilter(Boolean value) { + this.includeNewItemsInFilter = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotSelection.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotSelection.java index b8e69b7252..c7f43d7e5b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotSelection.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotSelection.java @@ -1,613 +1,625 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotSelection complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotSelection">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
- *       </sequence>
- *       <attribute name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Pane" default="topLeft" />
- *       <attribute name="showHeader" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="data" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="extendable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="axis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Axis" />
- *       <attribute name="dimension" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="start" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="activeRow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="activeCol" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="previousRow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="previousCol" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="click" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotSelection", propOrder = { - "pivotArea" -}) -public class CTPivotSelection { - - @XmlElement(required = true) - protected CTPivotArea pivotArea; - @XmlAttribute - protected STPane pane; - @XmlAttribute - protected Boolean showHeader; - @XmlAttribute - protected Boolean label; - @XmlAttribute - protected Boolean data; - @XmlAttribute - protected Boolean extendable; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - protected STAxis axis; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long dimension; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long start; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long min; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long max; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long activeRow; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long activeCol; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long previousRow; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long previousCol; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long click; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - - /** - * Gets the value of the pivotArea property. - * - * @return - * possible object is - * {@link CTPivotArea } - * - */ - public CTPivotArea getPivotArea() { - return pivotArea; - } - - /** - * Sets the value of the pivotArea property. - * - * @param value - * allowed object is - * {@link CTPivotArea } - * - */ - public void setPivotArea(CTPivotArea value) { - this.pivotArea = value; - } - - /** - * Gets the value of the pane property. - * - * @return - * possible object is - * {@link STPane } - * - */ - public STPane getPane() { - if (pane == null) { - return STPane.TOP_LEFT; - } else { - return pane; - } - } - - /** - * Sets the value of the pane property. - * - * @param value - * allowed object is - * {@link STPane } - * - */ - public void setPane(STPane value) { - this.pane = value; - } - - /** - * Gets the value of the showHeader property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowHeader() { - if (showHeader == null) { - return false; - } else { - return showHeader; - } - } - - /** - * Sets the value of the showHeader property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowHeader(Boolean value) { - this.showHeader = value; - } - - /** - * Gets the value of the label property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLabel() { - if (label == null) { - return false; - } else { - return label; - } - } - - /** - * Sets the value of the label property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLabel(Boolean value) { - this.label = value; - } - - /** - * Gets the value of the data property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isData() { - if (data == null) { - return false; - } else { - return data; - } - } - - /** - * Sets the value of the data property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setData(Boolean value) { - this.data = value; - } - - /** - * Gets the value of the extendable property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isExtendable() { - if (extendable == null) { - return false; - } else { - return extendable; - } - } - - /** - * Sets the value of the extendable property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setExtendable(Boolean value) { - this.extendable = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the axis property. - * - * @return - * possible object is - * {@link STAxis } - * - */ - public STAxis getAxis() { - return axis; - } - - /** - * Sets the value of the axis property. - * - * @param value - * allowed object is - * {@link STAxis } - * - */ - public void setAxis(STAxis value) { - this.axis = value; - } - - /** - * Gets the value of the dimension property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getDimension() { - if (dimension == null) { - return 0L; - } else { - return dimension; - } - } - - /** - * Sets the value of the dimension property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDimension(Long value) { - this.dimension = value; - } - - /** - * Gets the value of the start property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getStart() { - if (start == null) { - return 0L; - } else { - return start; - } - } - - /** - * Sets the value of the start property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setStart(Long value) { - this.start = value; - } - - /** - * Gets the value of the min property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getMin() { - if (min == null) { - return 0L; - } else { - return min; - } - } - - /** - * Sets the value of the min property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMin(Long value) { - this.min = value; - } - - /** - * Gets the value of the max property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getMax() { - if (max == null) { - return 0L; - } else { - return max; - } - } - - /** - * Sets the value of the max property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMax(Long value) { - this.max = value; - } - - /** - * Gets the value of the activeRow property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getActiveRow() { - if (activeRow == null) { - return 0L; - } else { - return activeRow; - } - } - - /** - * Sets the value of the activeRow property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setActiveRow(Long value) { - this.activeRow = value; - } - - /** - * Gets the value of the activeCol property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getActiveCol() { - if (activeCol == null) { - return 0L; - } else { - return activeCol; - } - } - - /** - * Sets the value of the activeCol property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setActiveCol(Long value) { - this.activeCol = value; - } - - /** - * Gets the value of the previousRow property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getPreviousRow() { - if (previousRow == null) { - return 0L; - } else { - return previousRow; - } - } - - /** - * Sets the value of the previousRow property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPreviousRow(Long value) { - this.previousRow = value; - } - - /** - * Gets the value of the previousCol property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getPreviousCol() { - if (previousCol == null) { - return 0L; - } else { - return previousCol; - } - } - - /** - * Sets the value of the previousCol property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPreviousCol(Long value) { - this.previousCol = value; - } - - /** - * Gets the value of the click property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getClick() { - if (click == null) { - return 0L; - } else { - return click; - } - } - - /** - * Sets the value of the click property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setClick(Long value) { - this.click = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotSelection complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotSelection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pivotArea" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotArea"/>
+ *       </sequence>
+ *       <attribute name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Pane" default="topLeft" />
+ *       <attribute name="showHeader" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="data" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="extendable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="axis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Axis" />
+ *       <attribute name="dimension" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="start" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="activeRow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="activeCol" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="previousRow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="previousCol" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="click" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotSelection", propOrder = { + "pivotArea" +}) +public class CTPivotSelection implements Child +{ + + @XmlElement(required = true) + protected CTPivotArea pivotArea; + @XmlAttribute(name = "pane") + protected STPane pane; + @XmlAttribute(name = "showHeader") + protected Boolean showHeader; + @XmlAttribute(name = "label") + protected Boolean label; + @XmlAttribute(name = "data") + protected Boolean data; + @XmlAttribute(name = "extendable") + protected Boolean extendable; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "axis") + protected STAxis axis; + @XmlAttribute(name = "dimension") + @XmlSchemaType(name = "unsignedInt") + protected Long dimension; + @XmlAttribute(name = "start") + @XmlSchemaType(name = "unsignedInt") + protected Long start; + @XmlAttribute(name = "min") + @XmlSchemaType(name = "unsignedInt") + protected Long min; + @XmlAttribute(name = "max") + @XmlSchemaType(name = "unsignedInt") + protected Long max; + @XmlAttribute(name = "activeRow") + @XmlSchemaType(name = "unsignedInt") + protected Long activeRow; + @XmlAttribute(name = "activeCol") + @XmlSchemaType(name = "unsignedInt") + protected Long activeCol; + @XmlAttribute(name = "previousRow") + @XmlSchemaType(name = "unsignedInt") + protected Long previousRow; + @XmlAttribute(name = "previousCol") + @XmlSchemaType(name = "unsignedInt") + protected Long previousCol; + @XmlAttribute(name = "click") + @XmlSchemaType(name = "unsignedInt") + protected Long click; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pivotArea property. + * + * @return + * possible object is + * {@link CTPivotArea } + * + */ + public CTPivotArea getPivotArea() { + return pivotArea; + } + + /** + * Sets the value of the pivotArea property. + * + * @param value + * allowed object is + * {@link CTPivotArea } + * + */ + public void setPivotArea(CTPivotArea value) { + this.pivotArea = value; + } + + /** + * Gets the value of the pane property. + * + * @return + * possible object is + * {@link STPane } + * + */ + public STPane getPane() { + if (pane == null) { + return STPane.TOP_LEFT; + } else { + return pane; + } + } + + /** + * Sets the value of the pane property. + * + * @param value + * allowed object is + * {@link STPane } + * + */ + public void setPane(STPane value) { + this.pane = value; + } + + /** + * Gets the value of the showHeader property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowHeader() { + if (showHeader == null) { + return false; + } else { + return showHeader; + } + } + + /** + * Sets the value of the showHeader property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowHeader(Boolean value) { + this.showHeader = value; + } + + /** + * Gets the value of the label property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLabel() { + if (label == null) { + return false; + } else { + return label; + } + } + + /** + * Sets the value of the label property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLabel(Boolean value) { + this.label = value; + } + + /** + * Gets the value of the data property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isData() { + if (data == null) { + return false; + } else { + return data; + } + } + + /** + * Sets the value of the data property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setData(Boolean value) { + this.data = value; + } + + /** + * Gets the value of the extendable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isExtendable() { + if (extendable == null) { + return false; + } else { + return extendable; + } + } + + /** + * Sets the value of the extendable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setExtendable(Boolean value) { + this.extendable = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the axis property. + * + * @return + * possible object is + * {@link STAxis } + * + */ + public STAxis getAxis() { + return axis; + } + + /** + * Sets the value of the axis property. + * + * @param value + * allowed object is + * {@link STAxis } + * + */ + public void setAxis(STAxis value) { + this.axis = value; + } + + /** + * Gets the value of the dimension property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getDimension() { + if (dimension == null) { + return 0L; + } else { + return dimension; + } + } + + /** + * Sets the value of the dimension property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDimension(Long value) { + this.dimension = value; + } + + /** + * Gets the value of the start property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getStart() { + if (start == null) { + return 0L; + } else { + return start; + } + } + + /** + * Sets the value of the start property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setStart(Long value) { + this.start = value; + } + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getMin() { + if (min == null) { + return 0L; + } else { + return min; + } + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMin(Long value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getMax() { + if (max == null) { + return 0L; + } else { + return max; + } + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMax(Long value) { + this.max = value; + } + + /** + * Gets the value of the activeRow property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getActiveRow() { + if (activeRow == null) { + return 0L; + } else { + return activeRow; + } + } + + /** + * Sets the value of the activeRow property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setActiveRow(Long value) { + this.activeRow = value; + } + + /** + * Gets the value of the activeCol property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getActiveCol() { + if (activeCol == null) { + return 0L; + } else { + return activeCol; + } + } + + /** + * Sets the value of the activeCol property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setActiveCol(Long value) { + this.activeCol = value; + } + + /** + * Gets the value of the previousRow property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getPreviousRow() { + if (previousRow == null) { + return 0L; + } else { + return previousRow; + } + } + + /** + * Sets the value of the previousRow property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPreviousRow(Long value) { + this.previousRow = value; + } + + /** + * Gets the value of the previousCol property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getPreviousCol() { + if (previousCol == null) { + return 0L; + } else { + return previousCol; + } + } + + /** + * Sets the value of the previousCol property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPreviousCol(Long value) { + this.previousCol = value; + } + + /** + * Gets the value of the click property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getClick() { + if (click == null) { + return 0L; + } else { + return click; + } + } + + /** + * Sets the value of the click property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setClick(Long value) { + this.click = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableDefinition.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableDefinition.java index 60cf672719..96cca46776 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableDefinition.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableDefinition.java @@ -1,2541 +1,2553 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_pivotTableDefinition complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_pivotTableDefinition">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="location" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Location"/>
- *         <element name="pivotFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotFields" minOccurs="0"/>
- *         <element name="rowFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RowFields" minOccurs="0"/>
- *         <element name="rowItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_rowItems" minOccurs="0"/>
- *         <element name="colFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColFields" minOccurs="0"/>
- *         <element name="colItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_colItems" minOccurs="0"/>
- *         <element name="pageFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageFields" minOccurs="0"/>
- *         <element name="dataFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataFields" minOccurs="0"/>
- *         <element name="formats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Formats" minOccurs="0"/>
- *         <element name="conditionalFormats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormats" minOccurs="0"/>
- *         <element name="chartFormats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartFormats" minOccurs="0"/>
- *         <element name="pivotHierarchies" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotHierarchies" minOccurs="0"/>
- *         <element name="pivotTableStyleInfo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotTableStyle" minOccurs="0"/>
- *         <element name="filters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotFilters" minOccurs="0"/>
- *         <element name="rowHierarchiesUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RowHierarchiesUsage" minOccurs="0"/>
- *         <element name="colHierarchiesUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColHierarchiesUsage" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_AutoFormat"/>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cacheId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="dataOnRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="dataPosition" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="dataCaption" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="grandTotalCaption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="errorCaption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="showError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="missingCaption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="showMissing" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="pageStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="pivotTableStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="vacatedStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="tag" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="updatedVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="minRefreshableVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="asteriskTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="editData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="disableFieldList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showCalcMbrs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="visualTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showMultipleLabel" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showDataDropDown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="printDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showMemberPropertyTips" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showDataTips" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="enableWizard" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="enableDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="enableFieldProperties" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="preserveFormatting" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="useAutoFormatting" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pageWrap" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="pageOverThenDown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="subtotalHiddenItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="rowGrandTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="colGrandTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="fieldPrintTitles" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="itemPrintTitles" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="mergeItem" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showDropZones" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="createdVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="indent" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="showEmptyRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showEmptyCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="compact" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="outlineData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="compactData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="gridDropZones" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="immersive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="multipleFieldFilters" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="chartFormat" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="rowHeaderCaption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="colHeaderCaption" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="fieldListSortAscending" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="mdxSubqueries" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="customListSort" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_pivotTableDefinition", propOrder = { - "location", - "pivotFields", - "rowFields", - "rowItems", - "colFields", - "colItems", - "pageFields", - "dataFields", - "formats", - "conditionalFormats", - "chartFormats", - "pivotHierarchies", - "pivotTableStyleInfo", - "filters", - "rowHierarchiesUsage", - "colHierarchiesUsage", - "extLst" -}) -@XmlRootElement(name = "pivotTableDefinition") -public class CTPivotTableDefinition { - - @XmlElement(required = true) - protected CTLocation location; - protected CTPivotFields pivotFields; - protected CTRowFields rowFields; - protected CTRowItems rowItems; - protected CTColFields colFields; - protected CTColItems colItems; - protected CTPageFields pageFields; - protected CTDataFields dataFields; - protected CTFormats formats; - protected CTConditionalFormats conditionalFormats; - protected CTChartFormats chartFormats; - protected CTPivotHierarchies pivotHierarchies; - protected CTPivotTableStyle pivotTableStyleInfo; - protected CTPivotFilters filters; - protected CTRowHierarchiesUsage rowHierarchiesUsage; - protected CTColHierarchiesUsage colHierarchiesUsage; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long cacheId; - @XmlAttribute - protected Boolean dataOnRows; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long dataPosition; - @XmlAttribute(required = true) - protected String dataCaption; - @XmlAttribute - protected String grandTotalCaption; - @XmlAttribute - protected String errorCaption; - @XmlAttribute - protected Boolean showError; - @XmlAttribute - protected String missingCaption; - @XmlAttribute - protected Boolean showMissing; - @XmlAttribute - protected String pageStyle; - @XmlAttribute - protected String pivotTableStyle; - @XmlAttribute - protected String vacatedStyle; - @XmlAttribute - protected String tag; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short updatedVersion; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short minRefreshableVersion; - @XmlAttribute - protected Boolean asteriskTotals; - @XmlAttribute - protected Boolean showItems; - @XmlAttribute - protected Boolean editData; - @XmlAttribute - protected Boolean disableFieldList; - @XmlAttribute - protected Boolean showCalcMbrs; - @XmlAttribute - protected Boolean visualTotals; - @XmlAttribute - protected Boolean showMultipleLabel; - @XmlAttribute - protected Boolean showDataDropDown; - @XmlAttribute - protected Boolean showDrill; - @XmlAttribute - protected Boolean printDrill; - @XmlAttribute - protected Boolean showMemberPropertyTips; - @XmlAttribute - protected Boolean showDataTips; - @XmlAttribute - protected Boolean enableWizard; - @XmlAttribute - protected Boolean enableDrill; - @XmlAttribute - protected Boolean enableFieldProperties; - @XmlAttribute - protected Boolean preserveFormatting; - @XmlAttribute - protected Boolean useAutoFormatting; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long pageWrap; - @XmlAttribute - protected Boolean pageOverThenDown; - @XmlAttribute - protected Boolean subtotalHiddenItems; - @XmlAttribute - protected Boolean rowGrandTotals; - @XmlAttribute - protected Boolean colGrandTotals; - @XmlAttribute - protected Boolean fieldPrintTitles; - @XmlAttribute - protected Boolean itemPrintTitles; - @XmlAttribute - protected Boolean mergeItem; - @XmlAttribute - protected Boolean showDropZones; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short createdVersion; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long indent; - @XmlAttribute - protected Boolean showEmptyRow; - @XmlAttribute - protected Boolean showEmptyCol; - @XmlAttribute - protected Boolean showHeaders; - @XmlAttribute - protected Boolean compact; - @XmlAttribute - protected Boolean outline; - @XmlAttribute - protected Boolean outlineData; - @XmlAttribute - protected Boolean compactData; - @XmlAttribute - protected Boolean published; - @XmlAttribute - protected Boolean gridDropZones; - @XmlAttribute - protected Boolean immersive; - @XmlAttribute - protected Boolean multipleFieldFilters; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long chartFormat; - @XmlAttribute - protected String rowHeaderCaption; - @XmlAttribute - protected String colHeaderCaption; - @XmlAttribute - protected Boolean fieldListSortAscending; - @XmlAttribute - protected Boolean mdxSubqueries; - @XmlAttribute - protected Boolean customListSort; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long autoFormatId; - @XmlAttribute - protected Boolean applyNumberFormats; - @XmlAttribute - protected Boolean applyBorderFormats; - @XmlAttribute - protected Boolean applyFontFormats; - @XmlAttribute - protected Boolean applyPatternFormats; - @XmlAttribute - protected Boolean applyAlignmentFormats; - @XmlAttribute - protected Boolean applyWidthHeightFormats; - - /** - * Gets the value of the location property. - * - * @return - * possible object is - * {@link CTLocation } - * - */ - public CTLocation getLocation() { - return location; - } - - /** - * Sets the value of the location property. - * - * @param value - * allowed object is - * {@link CTLocation } - * - */ - public void setLocation(CTLocation value) { - this.location = value; - } - - /** - * Gets the value of the pivotFields property. - * - * @return - * possible object is - * {@link CTPivotFields } - * - */ - public CTPivotFields getPivotFields() { - return pivotFields; - } - - /** - * Sets the value of the pivotFields property. - * - * @param value - * allowed object is - * {@link CTPivotFields } - * - */ - public void setPivotFields(CTPivotFields value) { - this.pivotFields = value; - } - - /** - * Gets the value of the rowFields property. - * - * @return - * possible object is - * {@link CTRowFields } - * - */ - public CTRowFields getRowFields() { - return rowFields; - } - - /** - * Sets the value of the rowFields property. - * - * @param value - * allowed object is - * {@link CTRowFields } - * - */ - public void setRowFields(CTRowFields value) { - this.rowFields = value; - } - - /** - * Gets the value of the rowItems property. - * - * @return - * possible object is - * {@link CTRowItems } - * - */ - public CTRowItems getRowItems() { - return rowItems; - } - - /** - * Sets the value of the rowItems property. - * - * @param value - * allowed object is - * {@link CTRowItems } - * - */ - public void setRowItems(CTRowItems value) { - this.rowItems = value; - } - - /** - * Gets the value of the colFields property. - * - * @return - * possible object is - * {@link CTColFields } - * - */ - public CTColFields getColFields() { - return colFields; - } - - /** - * Sets the value of the colFields property. - * - * @param value - * allowed object is - * {@link CTColFields } - * - */ - public void setColFields(CTColFields value) { - this.colFields = value; - } - - /** - * Gets the value of the colItems property. - * - * @return - * possible object is - * {@link CTColItems } - * - */ - public CTColItems getColItems() { - return colItems; - } - - /** - * Sets the value of the colItems property. - * - * @param value - * allowed object is - * {@link CTColItems } - * - */ - public void setColItems(CTColItems value) { - this.colItems = value; - } - - /** - * Gets the value of the pageFields property. - * - * @return - * possible object is - * {@link CTPageFields } - * - */ - public CTPageFields getPageFields() { - return pageFields; - } - - /** - * Sets the value of the pageFields property. - * - * @param value - * allowed object is - * {@link CTPageFields } - * - */ - public void setPageFields(CTPageFields value) { - this.pageFields = value; - } - - /** - * Gets the value of the dataFields property. - * - * @return - * possible object is - * {@link CTDataFields } - * - */ - public CTDataFields getDataFields() { - return dataFields; - } - - /** - * Sets the value of the dataFields property. - * - * @param value - * allowed object is - * {@link CTDataFields } - * - */ - public void setDataFields(CTDataFields value) { - this.dataFields = value; - } - - /** - * Gets the value of the formats property. - * - * @return - * possible object is - * {@link CTFormats } - * - */ - public CTFormats getFormats() { - return formats; - } - - /** - * Sets the value of the formats property. - * - * @param value - * allowed object is - * {@link CTFormats } - * - */ - public void setFormats(CTFormats value) { - this.formats = value; - } - - /** - * Gets the value of the conditionalFormats property. - * - * @return - * possible object is - * {@link CTConditionalFormats } - * - */ - public CTConditionalFormats getConditionalFormats() { - return conditionalFormats; - } - - /** - * Sets the value of the conditionalFormats property. - * - * @param value - * allowed object is - * {@link CTConditionalFormats } - * - */ - public void setConditionalFormats(CTConditionalFormats value) { - this.conditionalFormats = value; - } - - /** - * Gets the value of the chartFormats property. - * - * @return - * possible object is - * {@link CTChartFormats } - * - */ - public CTChartFormats getChartFormats() { - return chartFormats; - } - - /** - * Sets the value of the chartFormats property. - * - * @param value - * allowed object is - * {@link CTChartFormats } - * - */ - public void setChartFormats(CTChartFormats value) { - this.chartFormats = value; - } - - /** - * Gets the value of the pivotHierarchies property. - * - * @return - * possible object is - * {@link CTPivotHierarchies } - * - */ - public CTPivotHierarchies getPivotHierarchies() { - return pivotHierarchies; - } - - /** - * Sets the value of the pivotHierarchies property. - * - * @param value - * allowed object is - * {@link CTPivotHierarchies } - * - */ - public void setPivotHierarchies(CTPivotHierarchies value) { - this.pivotHierarchies = value; - } - - /** - * Gets the value of the pivotTableStyleInfo property. - * - * @return - * possible object is - * {@link CTPivotTableStyle } - * - */ - public CTPivotTableStyle getPivotTableStyleInfo() { - return pivotTableStyleInfo; - } - - /** - * Sets the value of the pivotTableStyleInfo property. - * - * @param value - * allowed object is - * {@link CTPivotTableStyle } - * - */ - public void setPivotTableStyleInfo(CTPivotTableStyle value) { - this.pivotTableStyleInfo = value; - } - - /** - * Gets the value of the filters property. - * - * @return - * possible object is - * {@link CTPivotFilters } - * - */ - public CTPivotFilters getFilters() { - return filters; - } - - /** - * Sets the value of the filters property. - * - * @param value - * allowed object is - * {@link CTPivotFilters } - * - */ - public void setFilters(CTPivotFilters value) { - this.filters = value; - } - - /** - * Gets the value of the rowHierarchiesUsage property. - * - * @return - * possible object is - * {@link CTRowHierarchiesUsage } - * - */ - public CTRowHierarchiesUsage getRowHierarchiesUsage() { - return rowHierarchiesUsage; - } - - /** - * Sets the value of the rowHierarchiesUsage property. - * - * @param value - * allowed object is - * {@link CTRowHierarchiesUsage } - * - */ - public void setRowHierarchiesUsage(CTRowHierarchiesUsage value) { - this.rowHierarchiesUsage = value; - } - - /** - * Gets the value of the colHierarchiesUsage property. - * - * @return - * possible object is - * {@link CTColHierarchiesUsage } - * - */ - public CTColHierarchiesUsage getColHierarchiesUsage() { - return colHierarchiesUsage; - } - - /** - * Sets the value of the colHierarchiesUsage property. - * - * @param value - * allowed object is - * {@link CTColHierarchiesUsage } - * - */ - public void setColHierarchiesUsage(CTColHierarchiesUsage value) { - this.colHierarchiesUsage = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the cacheId property. - * - */ - public long getCacheId() { - return cacheId; - } - - /** - * Sets the value of the cacheId property. - * - */ - public void setCacheId(long value) { - this.cacheId = value; - } - - /** - * Gets the value of the dataOnRows property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDataOnRows() { - if (dataOnRows == null) { - return false; - } else { - return dataOnRows; - } - } - - /** - * Sets the value of the dataOnRows property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDataOnRows(Boolean value) { - this.dataOnRows = value; - } - - /** - * Gets the value of the dataPosition property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDataPosition() { - return dataPosition; - } - - /** - * Sets the value of the dataPosition property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDataPosition(Long value) { - this.dataPosition = value; - } - - /** - * Gets the value of the dataCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataCaption() { - return dataCaption; - } - - /** - * Sets the value of the dataCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataCaption(String value) { - this.dataCaption = value; - } - - /** - * Gets the value of the grandTotalCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGrandTotalCaption() { - return grandTotalCaption; - } - - /** - * Sets the value of the grandTotalCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGrandTotalCaption(String value) { - this.grandTotalCaption = value; - } - - /** - * Gets the value of the errorCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getErrorCaption() { - return errorCaption; - } - - /** - * Sets the value of the errorCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setErrorCaption(String value) { - this.errorCaption = value; - } - - /** - * Gets the value of the showError property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowError() { - if (showError == null) { - return false; - } else { - return showError; - } - } - - /** - * Sets the value of the showError property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowError(Boolean value) { - this.showError = value; - } - - /** - * Gets the value of the missingCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMissingCaption() { - return missingCaption; - } - - /** - * Sets the value of the missingCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMissingCaption(String value) { - this.missingCaption = value; - } - - /** - * Gets the value of the showMissing property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowMissing() { - if (showMissing == null) { - return true; - } else { - return showMissing; - } - } - - /** - * Sets the value of the showMissing property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowMissing(Boolean value) { - this.showMissing = value; - } - - /** - * Gets the value of the pageStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPageStyle() { - return pageStyle; - } - - /** - * Sets the value of the pageStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPageStyle(String value) { - this.pageStyle = value; - } - - /** - * Gets the value of the pivotTableStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPivotTableStyle() { - return pivotTableStyle; - } - - /** - * Sets the value of the pivotTableStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPivotTableStyle(String value) { - this.pivotTableStyle = value; - } - - /** - * Gets the value of the vacatedStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVacatedStyle() { - return vacatedStyle; - } - - /** - * Sets the value of the vacatedStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVacatedStyle(String value) { - this.vacatedStyle = value; - } - - /** - * Gets the value of the tag property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTag() { - return tag; - } - - /** - * Sets the value of the tag property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTag(String value) { - this.tag = value; - } - - /** - * Gets the value of the updatedVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getUpdatedVersion() { - if (updatedVersion == null) { - return ((short) 0); - } else { - return updatedVersion; - } - } - - /** - * Sets the value of the updatedVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setUpdatedVersion(Short value) { - this.updatedVersion = value; - } - - /** - * Gets the value of the minRefreshableVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getMinRefreshableVersion() { - if (minRefreshableVersion == null) { - return ((short) 0); - } else { - return minRefreshableVersion; - } - } - - /** - * Sets the value of the minRefreshableVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setMinRefreshableVersion(Short value) { - this.minRefreshableVersion = value; - } - - /** - * Gets the value of the asteriskTotals property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAsteriskTotals() { - if (asteriskTotals == null) { - return false; - } else { - return asteriskTotals; - } - } - - /** - * Sets the value of the asteriskTotals property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAsteriskTotals(Boolean value) { - this.asteriskTotals = value; - } - - /** - * Gets the value of the showItems property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowItems() { - if (showItems == null) { - return true; - } else { - return showItems; - } - } - - /** - * Sets the value of the showItems property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowItems(Boolean value) { - this.showItems = value; - } - - /** - * Gets the value of the editData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEditData() { - if (editData == null) { - return false; - } else { - return editData; - } - } - - /** - * Sets the value of the editData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEditData(Boolean value) { - this.editData = value; - } - - /** - * Gets the value of the disableFieldList property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDisableFieldList() { - if (disableFieldList == null) { - return false; - } else { - return disableFieldList; - } - } - - /** - * Sets the value of the disableFieldList property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDisableFieldList(Boolean value) { - this.disableFieldList = value; - } - - /** - * Gets the value of the showCalcMbrs property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowCalcMbrs() { - if (showCalcMbrs == null) { - return true; - } else { - return showCalcMbrs; - } - } - - /** - * Sets the value of the showCalcMbrs property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowCalcMbrs(Boolean value) { - this.showCalcMbrs = value; - } - - /** - * Gets the value of the visualTotals property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVisualTotals() { - if (visualTotals == null) { - return true; - } else { - return visualTotals; - } - } - - /** - * Sets the value of the visualTotals property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVisualTotals(Boolean value) { - this.visualTotals = value; - } - - /** - * Gets the value of the showMultipleLabel property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowMultipleLabel() { - if (showMultipleLabel == null) { - return true; - } else { - return showMultipleLabel; - } - } - - /** - * Sets the value of the showMultipleLabel property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowMultipleLabel(Boolean value) { - this.showMultipleLabel = value; - } - - /** - * Gets the value of the showDataDropDown property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowDataDropDown() { - if (showDataDropDown == null) { - return true; - } else { - return showDataDropDown; - } - } - - /** - * Sets the value of the showDataDropDown property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowDataDropDown(Boolean value) { - this.showDataDropDown = value; - } - - /** - * Gets the value of the showDrill property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowDrill() { - if (showDrill == null) { - return true; - } else { - return showDrill; - } - } - - /** - * Sets the value of the showDrill property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowDrill(Boolean value) { - this.showDrill = value; - } - - /** - * Gets the value of the printDrill property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPrintDrill() { - if (printDrill == null) { - return false; - } else { - return printDrill; - } - } - - /** - * Sets the value of the printDrill property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPrintDrill(Boolean value) { - this.printDrill = value; - } - - /** - * Gets the value of the showMemberPropertyTips property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowMemberPropertyTips() { - if (showMemberPropertyTips == null) { - return true; - } else { - return showMemberPropertyTips; - } - } - - /** - * Sets the value of the showMemberPropertyTips property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowMemberPropertyTips(Boolean value) { - this.showMemberPropertyTips = value; - } - - /** - * Gets the value of the showDataTips property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowDataTips() { - if (showDataTips == null) { - return true; - } else { - return showDataTips; - } - } - - /** - * Sets the value of the showDataTips property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowDataTips(Boolean value) { - this.showDataTips = value; - } - - /** - * Gets the value of the enableWizard property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEnableWizard() { - if (enableWizard == null) { - return true; - } else { - return enableWizard; - } - } - - /** - * Sets the value of the enableWizard property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEnableWizard(Boolean value) { - this.enableWizard = value; - } - - /** - * Gets the value of the enableDrill property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEnableDrill() { - if (enableDrill == null) { - return true; - } else { - return enableDrill; - } - } - - /** - * Sets the value of the enableDrill property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEnableDrill(Boolean value) { - this.enableDrill = value; - } - - /** - * Gets the value of the enableFieldProperties property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEnableFieldProperties() { - if (enableFieldProperties == null) { - return true; - } else { - return enableFieldProperties; - } - } - - /** - * Sets the value of the enableFieldProperties property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEnableFieldProperties(Boolean value) { - this.enableFieldProperties = value; - } - - /** - * Gets the value of the preserveFormatting property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPreserveFormatting() { - if (preserveFormatting == null) { - return true; - } else { - return preserveFormatting; - } - } - - /** - * Sets the value of the preserveFormatting property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreserveFormatting(Boolean value) { - this.preserveFormatting = value; - } - - /** - * Gets the value of the useAutoFormatting property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUseAutoFormatting() { - if (useAutoFormatting == null) { - return false; - } else { - return useAutoFormatting; - } - } - - /** - * Sets the value of the useAutoFormatting property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUseAutoFormatting(Boolean value) { - this.useAutoFormatting = value; - } - - /** - * Gets the value of the pageWrap property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getPageWrap() { - if (pageWrap == null) { - return 0L; - } else { - return pageWrap; - } - } - - /** - * Sets the value of the pageWrap property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPageWrap(Long value) { - this.pageWrap = value; - } - - /** - * Gets the value of the pageOverThenDown property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPageOverThenDown() { - if (pageOverThenDown == null) { - return false; - } else { - return pageOverThenDown; - } - } - - /** - * Sets the value of the pageOverThenDown property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPageOverThenDown(Boolean value) { - this.pageOverThenDown = value; - } - - /** - * Gets the value of the subtotalHiddenItems property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSubtotalHiddenItems() { - if (subtotalHiddenItems == null) { - return false; - } else { - return subtotalHiddenItems; - } - } - - /** - * Sets the value of the subtotalHiddenItems property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSubtotalHiddenItems(Boolean value) { - this.subtotalHiddenItems = value; - } - - /** - * Gets the value of the rowGrandTotals property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRowGrandTotals() { - if (rowGrandTotals == null) { - return true; - } else { - return rowGrandTotals; - } - } - - /** - * Sets the value of the rowGrandTotals property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRowGrandTotals(Boolean value) { - this.rowGrandTotals = value; - } - - /** - * Gets the value of the colGrandTotals property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isColGrandTotals() { - if (colGrandTotals == null) { - return true; - } else { - return colGrandTotals; - } - } - - /** - * Sets the value of the colGrandTotals property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setColGrandTotals(Boolean value) { - this.colGrandTotals = value; - } - - /** - * Gets the value of the fieldPrintTitles property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFieldPrintTitles() { - if (fieldPrintTitles == null) { - return false; - } else { - return fieldPrintTitles; - } - } - - /** - * Sets the value of the fieldPrintTitles property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFieldPrintTitles(Boolean value) { - this.fieldPrintTitles = value; - } - - /** - * Gets the value of the itemPrintTitles property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isItemPrintTitles() { - if (itemPrintTitles == null) { - return false; - } else { - return itemPrintTitles; - } - } - - /** - * Sets the value of the itemPrintTitles property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setItemPrintTitles(Boolean value) { - this.itemPrintTitles = value; - } - - /** - * Gets the value of the mergeItem property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMergeItem() { - if (mergeItem == null) { - return false; - } else { - return mergeItem; - } - } - - /** - * Sets the value of the mergeItem property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMergeItem(Boolean value) { - this.mergeItem = value; - } - - /** - * Gets the value of the showDropZones property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowDropZones() { - if (showDropZones == null) { - return true; - } else { - return showDropZones; - } - } - - /** - * Sets the value of the showDropZones property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowDropZones(Boolean value) { - this.showDropZones = value; - } - - /** - * Gets the value of the createdVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getCreatedVersion() { - if (createdVersion == null) { - return ((short) 0); - } else { - return createdVersion; - } - } - - /** - * Sets the value of the createdVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setCreatedVersion(Short value) { - this.createdVersion = value; - } - - /** - * Gets the value of the indent property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getIndent() { - if (indent == null) { - return 1L; - } else { - return indent; - } - } - - /** - * Sets the value of the indent property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIndent(Long value) { - this.indent = value; - } - - /** - * Gets the value of the showEmptyRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowEmptyRow() { - if (showEmptyRow == null) { - return false; - } else { - return showEmptyRow; - } - } - - /** - * Sets the value of the showEmptyRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowEmptyRow(Boolean value) { - this.showEmptyRow = value; - } - - /** - * Gets the value of the showEmptyCol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowEmptyCol() { - if (showEmptyCol == null) { - return false; - } else { - return showEmptyCol; - } - } - - /** - * Sets the value of the showEmptyCol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowEmptyCol(Boolean value) { - this.showEmptyCol = value; - } - - /** - * Gets the value of the showHeaders property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowHeaders() { - if (showHeaders == null) { - return true; - } else { - return showHeaders; - } - } - - /** - * Sets the value of the showHeaders property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowHeaders(Boolean value) { - this.showHeaders = value; - } - - /** - * Gets the value of the compact property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCompact() { - if (compact == null) { - return true; - } else { - return compact; - } - } - - /** - * Sets the value of the compact property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCompact(Boolean value) { - this.compact = value; - } - - /** - * Gets the value of the outline property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOutline() { - if (outline == null) { - return false; - } else { - return outline; - } - } - - /** - * Sets the value of the outline property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOutline(Boolean value) { - this.outline = value; - } - - /** - * Gets the value of the outlineData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOutlineData() { - if (outlineData == null) { - return false; - } else { - return outlineData; - } - } - - /** - * Sets the value of the outlineData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOutlineData(Boolean value) { - this.outlineData = value; - } - - /** - * Gets the value of the compactData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCompactData() { - if (compactData == null) { - return true; - } else { - return compactData; - } - } - - /** - * Sets the value of the compactData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCompactData(Boolean value) { - this.compactData = value; - } - - /** - * Gets the value of the published property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPublished() { - if (published == null) { - return false; - } else { - return published; - } - } - - /** - * Sets the value of the published property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPublished(Boolean value) { - this.published = value; - } - - /** - * Gets the value of the gridDropZones property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGridDropZones() { - if (gridDropZones == null) { - return false; - } else { - return gridDropZones; - } - } - - /** - * Sets the value of the gridDropZones property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGridDropZones(Boolean value) { - this.gridDropZones = value; - } - - /** - * Gets the value of the immersive property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isImmersive() { - if (immersive == null) { - return true; - } else { - return immersive; - } - } - - /** - * Sets the value of the immersive property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setImmersive(Boolean value) { - this.immersive = value; - } - - /** - * Gets the value of the multipleFieldFilters property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMultipleFieldFilters() { - if (multipleFieldFilters == null) { - return true; - } else { - return multipleFieldFilters; - } - } - - /** - * Sets the value of the multipleFieldFilters property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMultipleFieldFilters(Boolean value) { - this.multipleFieldFilters = value; - } - - /** - * Gets the value of the chartFormat property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getChartFormat() { - if (chartFormat == null) { - return 0L; - } else { - return chartFormat; - } - } - - /** - * Sets the value of the chartFormat property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setChartFormat(Long value) { - this.chartFormat = value; - } - - /** - * Gets the value of the rowHeaderCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRowHeaderCaption() { - return rowHeaderCaption; - } - - /** - * Sets the value of the rowHeaderCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRowHeaderCaption(String value) { - this.rowHeaderCaption = value; - } - - /** - * Gets the value of the colHeaderCaption property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getColHeaderCaption() { - return colHeaderCaption; - } - - /** - * Sets the value of the colHeaderCaption property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setColHeaderCaption(String value) { - this.colHeaderCaption = value; - } - - /** - * Gets the value of the fieldListSortAscending property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFieldListSortAscending() { - if (fieldListSortAscending == null) { - return false; - } else { - return fieldListSortAscending; - } - } - - /** - * Sets the value of the fieldListSortAscending property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFieldListSortAscending(Boolean value) { - this.fieldListSortAscending = value; - } - - /** - * Gets the value of the mdxSubqueries property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isMdxSubqueries() { - if (mdxSubqueries == null) { - return false; - } else { - return mdxSubqueries; - } - } - - /** - * Sets the value of the mdxSubqueries property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setMdxSubqueries(Boolean value) { - this.mdxSubqueries = value; - } - - /** - * Gets the value of the customListSort property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCustomListSort() { - if (customListSort == null) { - return true; - } else { - return customListSort; - } - } - - /** - * Sets the value of the customListSort property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomListSort(Boolean value) { - this.customListSort = value; - } - - /** - * Gets the value of the autoFormatId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getAutoFormatId() { - return autoFormatId; - } - - /** - * Sets the value of the autoFormatId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setAutoFormatId(Long value) { - this.autoFormatId = value; - } - - /** - * Gets the value of the applyNumberFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyNumberFormats() { - return applyNumberFormats; - } - - /** - * Sets the value of the applyNumberFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyNumberFormats(Boolean value) { - this.applyNumberFormats = value; - } - - /** - * Gets the value of the applyBorderFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyBorderFormats() { - return applyBorderFormats; - } - - /** - * Sets the value of the applyBorderFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyBorderFormats(Boolean value) { - this.applyBorderFormats = value; - } - - /** - * Gets the value of the applyFontFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyFontFormats() { - return applyFontFormats; - } - - /** - * Sets the value of the applyFontFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyFontFormats(Boolean value) { - this.applyFontFormats = value; - } - - /** - * Gets the value of the applyPatternFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyPatternFormats() { - return applyPatternFormats; - } - - /** - * Sets the value of the applyPatternFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyPatternFormats(Boolean value) { - this.applyPatternFormats = value; - } - - /** - * Gets the value of the applyAlignmentFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyAlignmentFormats() { - return applyAlignmentFormats; - } - - /** - * Sets the value of the applyAlignmentFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyAlignmentFormats(Boolean value) { - this.applyAlignmentFormats = value; - } - - /** - * Gets the value of the applyWidthHeightFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyWidthHeightFormats() { - return applyWidthHeightFormats; - } - - /** - * Sets the value of the applyWidthHeightFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyWidthHeightFormats(Boolean value) { - this.applyWidthHeightFormats = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_pivotTableDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_pivotTableDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="location" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Location"/>
+ *         <element name="pivotFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotFields" minOccurs="0"/>
+ *         <element name="rowFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RowFields" minOccurs="0"/>
+ *         <element name="rowItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_rowItems" minOccurs="0"/>
+ *         <element name="colFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColFields" minOccurs="0"/>
+ *         <element name="colItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_colItems" minOccurs="0"/>
+ *         <element name="pageFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageFields" minOccurs="0"/>
+ *         <element name="dataFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataFields" minOccurs="0"/>
+ *         <element name="formats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Formats" minOccurs="0"/>
+ *         <element name="conditionalFormats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormats" minOccurs="0"/>
+ *         <element name="chartFormats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ChartFormats" minOccurs="0"/>
+ *         <element name="pivotHierarchies" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotHierarchies" minOccurs="0"/>
+ *         <element name="pivotTableStyleInfo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotTableStyle" minOccurs="0"/>
+ *         <element name="filters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotFilters" minOccurs="0"/>
+ *         <element name="rowHierarchiesUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RowHierarchiesUsage" minOccurs="0"/>
+ *         <element name="colHierarchiesUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColHierarchiesUsage" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_AutoFormat"/>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cacheId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="dataOnRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="dataPosition" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="dataCaption" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="grandTotalCaption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="errorCaption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="showError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="missingCaption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="showMissing" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="pageStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="pivotTableStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="vacatedStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="tag" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="updatedVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="minRefreshableVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="asteriskTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="editData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="disableFieldList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showCalcMbrs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="visualTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showMultipleLabel" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showDataDropDown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="printDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showMemberPropertyTips" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showDataTips" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="enableWizard" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="enableDrill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="enableFieldProperties" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="preserveFormatting" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="useAutoFormatting" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pageWrap" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="pageOverThenDown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="subtotalHiddenItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="rowGrandTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="colGrandTotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="fieldPrintTitles" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="itemPrintTitles" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="mergeItem" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showDropZones" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="createdVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="indent" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="showEmptyRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showEmptyCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="compact" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="outlineData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="compactData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="gridDropZones" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="immersive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="multipleFieldFilters" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="chartFormat" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="rowHeaderCaption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="colHeaderCaption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="fieldListSortAscending" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="mdxSubqueries" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="customListSort" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_pivotTableDefinition", propOrder = { + "location", + "pivotFields", + "rowFields", + "rowItems", + "colFields", + "colItems", + "pageFields", + "dataFields", + "formats", + "conditionalFormats", + "chartFormats", + "pivotHierarchies", + "pivotTableStyleInfo", + "filters", + "rowHierarchiesUsage", + "colHierarchiesUsage", + "extLst" +}) +@XmlRootElement(name = "pivotTableDefinition") +public class CTPivotTableDefinition implements Child +{ + + @XmlElement(required = true) + protected CTLocation location; + protected CTPivotFields pivotFields; + protected CTRowFields rowFields; + protected CTRowItems rowItems; + protected CTColFields colFields; + protected CTColItems colItems; + protected CTPageFields pageFields; + protected CTDataFields dataFields; + protected CTFormats formats; + protected CTConditionalFormats conditionalFormats; + protected CTChartFormats chartFormats; + protected CTPivotHierarchies pivotHierarchies; + protected CTPivotTableStyle pivotTableStyleInfo; + protected CTPivotFilters filters; + protected CTRowHierarchiesUsage rowHierarchiesUsage; + protected CTColHierarchiesUsage colHierarchiesUsage; + protected CTExtensionList extLst; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "cacheId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long cacheId; + @XmlAttribute(name = "dataOnRows") + protected Boolean dataOnRows; + @XmlAttribute(name = "dataPosition") + @XmlSchemaType(name = "unsignedInt") + protected Long dataPosition; + @XmlAttribute(name = "dataCaption", required = true) + protected String dataCaption; + @XmlAttribute(name = "grandTotalCaption") + protected String grandTotalCaption; + @XmlAttribute(name = "errorCaption") + protected String errorCaption; + @XmlAttribute(name = "showError") + protected Boolean showError; + @XmlAttribute(name = "missingCaption") + protected String missingCaption; + @XmlAttribute(name = "showMissing") + protected Boolean showMissing; + @XmlAttribute(name = "pageStyle") + protected String pageStyle; + @XmlAttribute(name = "pivotTableStyle") + protected String pivotTableStyle; + @XmlAttribute(name = "vacatedStyle") + protected String vacatedStyle; + @XmlAttribute(name = "tag") + protected String tag; + @XmlAttribute(name = "updatedVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short updatedVersion; + @XmlAttribute(name = "minRefreshableVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short minRefreshableVersion; + @XmlAttribute(name = "asteriskTotals") + protected Boolean asteriskTotals; + @XmlAttribute(name = "showItems") + protected Boolean showItems; + @XmlAttribute(name = "editData") + protected Boolean editData; + @XmlAttribute(name = "disableFieldList") + protected Boolean disableFieldList; + @XmlAttribute(name = "showCalcMbrs") + protected Boolean showCalcMbrs; + @XmlAttribute(name = "visualTotals") + protected Boolean visualTotals; + @XmlAttribute(name = "showMultipleLabel") + protected Boolean showMultipleLabel; + @XmlAttribute(name = "showDataDropDown") + protected Boolean showDataDropDown; + @XmlAttribute(name = "showDrill") + protected Boolean showDrill; + @XmlAttribute(name = "printDrill") + protected Boolean printDrill; + @XmlAttribute(name = "showMemberPropertyTips") + protected Boolean showMemberPropertyTips; + @XmlAttribute(name = "showDataTips") + protected Boolean showDataTips; + @XmlAttribute(name = "enableWizard") + protected Boolean enableWizard; + @XmlAttribute(name = "enableDrill") + protected Boolean enableDrill; + @XmlAttribute(name = "enableFieldProperties") + protected Boolean enableFieldProperties; + @XmlAttribute(name = "preserveFormatting") + protected Boolean preserveFormatting; + @XmlAttribute(name = "useAutoFormatting") + protected Boolean useAutoFormatting; + @XmlAttribute(name = "pageWrap") + @XmlSchemaType(name = "unsignedInt") + protected Long pageWrap; + @XmlAttribute(name = "pageOverThenDown") + protected Boolean pageOverThenDown; + @XmlAttribute(name = "subtotalHiddenItems") + protected Boolean subtotalHiddenItems; + @XmlAttribute(name = "rowGrandTotals") + protected Boolean rowGrandTotals; + @XmlAttribute(name = "colGrandTotals") + protected Boolean colGrandTotals; + @XmlAttribute(name = "fieldPrintTitles") + protected Boolean fieldPrintTitles; + @XmlAttribute(name = "itemPrintTitles") + protected Boolean itemPrintTitles; + @XmlAttribute(name = "mergeItem") + protected Boolean mergeItem; + @XmlAttribute(name = "showDropZones") + protected Boolean showDropZones; + @XmlAttribute(name = "createdVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short createdVersion; + @XmlAttribute(name = "indent") + @XmlSchemaType(name = "unsignedInt") + protected Long indent; + @XmlAttribute(name = "showEmptyRow") + protected Boolean showEmptyRow; + @XmlAttribute(name = "showEmptyCol") + protected Boolean showEmptyCol; + @XmlAttribute(name = "showHeaders") + protected Boolean showHeaders; + @XmlAttribute(name = "compact") + protected Boolean compact; + @XmlAttribute(name = "outline") + protected Boolean outline; + @XmlAttribute(name = "outlineData") + protected Boolean outlineData; + @XmlAttribute(name = "compactData") + protected Boolean compactData; + @XmlAttribute(name = "published") + protected Boolean published; + @XmlAttribute(name = "gridDropZones") + protected Boolean gridDropZones; + @XmlAttribute(name = "immersive") + protected Boolean immersive; + @XmlAttribute(name = "multipleFieldFilters") + protected Boolean multipleFieldFilters; + @XmlAttribute(name = "chartFormat") + @XmlSchemaType(name = "unsignedInt") + protected Long chartFormat; + @XmlAttribute(name = "rowHeaderCaption") + protected String rowHeaderCaption; + @XmlAttribute(name = "colHeaderCaption") + protected String colHeaderCaption; + @XmlAttribute(name = "fieldListSortAscending") + protected Boolean fieldListSortAscending; + @XmlAttribute(name = "mdxSubqueries") + protected Boolean mdxSubqueries; + @XmlAttribute(name = "customListSort") + protected Boolean customListSort; + @XmlAttribute(name = "autoFormatId") + @XmlSchemaType(name = "unsignedInt") + protected Long autoFormatId; + @XmlAttribute(name = "applyNumberFormats") + protected Boolean applyNumberFormats; + @XmlAttribute(name = "applyBorderFormats") + protected Boolean applyBorderFormats; + @XmlAttribute(name = "applyFontFormats") + protected Boolean applyFontFormats; + @XmlAttribute(name = "applyPatternFormats") + protected Boolean applyPatternFormats; + @XmlAttribute(name = "applyAlignmentFormats") + protected Boolean applyAlignmentFormats; + @XmlAttribute(name = "applyWidthHeightFormats") + protected Boolean applyWidthHeightFormats; + @XmlTransient + private Object parent; + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link CTLocation } + * + */ + public CTLocation getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link CTLocation } + * + */ + public void setLocation(CTLocation value) { + this.location = value; + } + + /** + * Gets the value of the pivotFields property. + * + * @return + * possible object is + * {@link CTPivotFields } + * + */ + public CTPivotFields getPivotFields() { + return pivotFields; + } + + /** + * Sets the value of the pivotFields property. + * + * @param value + * allowed object is + * {@link CTPivotFields } + * + */ + public void setPivotFields(CTPivotFields value) { + this.pivotFields = value; + } + + /** + * Gets the value of the rowFields property. + * + * @return + * possible object is + * {@link CTRowFields } + * + */ + public CTRowFields getRowFields() { + return rowFields; + } + + /** + * Sets the value of the rowFields property. + * + * @param value + * allowed object is + * {@link CTRowFields } + * + */ + public void setRowFields(CTRowFields value) { + this.rowFields = value; + } + + /** + * Gets the value of the rowItems property. + * + * @return + * possible object is + * {@link CTRowItems } + * + */ + public CTRowItems getRowItems() { + return rowItems; + } + + /** + * Sets the value of the rowItems property. + * + * @param value + * allowed object is + * {@link CTRowItems } + * + */ + public void setRowItems(CTRowItems value) { + this.rowItems = value; + } + + /** + * Gets the value of the colFields property. + * + * @return + * possible object is + * {@link CTColFields } + * + */ + public CTColFields getColFields() { + return colFields; + } + + /** + * Sets the value of the colFields property. + * + * @param value + * allowed object is + * {@link CTColFields } + * + */ + public void setColFields(CTColFields value) { + this.colFields = value; + } + + /** + * Gets the value of the colItems property. + * + * @return + * possible object is + * {@link CTColItems } + * + */ + public CTColItems getColItems() { + return colItems; + } + + /** + * Sets the value of the colItems property. + * + * @param value + * allowed object is + * {@link CTColItems } + * + */ + public void setColItems(CTColItems value) { + this.colItems = value; + } + + /** + * Gets the value of the pageFields property. + * + * @return + * possible object is + * {@link CTPageFields } + * + */ + public CTPageFields getPageFields() { + return pageFields; + } + + /** + * Sets the value of the pageFields property. + * + * @param value + * allowed object is + * {@link CTPageFields } + * + */ + public void setPageFields(CTPageFields value) { + this.pageFields = value; + } + + /** + * Gets the value of the dataFields property. + * + * @return + * possible object is + * {@link CTDataFields } + * + */ + public CTDataFields getDataFields() { + return dataFields; + } + + /** + * Sets the value of the dataFields property. + * + * @param value + * allowed object is + * {@link CTDataFields } + * + */ + public void setDataFields(CTDataFields value) { + this.dataFields = value; + } + + /** + * Gets the value of the formats property. + * + * @return + * possible object is + * {@link CTFormats } + * + */ + public CTFormats getFormats() { + return formats; + } + + /** + * Sets the value of the formats property. + * + * @param value + * allowed object is + * {@link CTFormats } + * + */ + public void setFormats(CTFormats value) { + this.formats = value; + } + + /** + * Gets the value of the conditionalFormats property. + * + * @return + * possible object is + * {@link CTConditionalFormats } + * + */ + public CTConditionalFormats getConditionalFormats() { + return conditionalFormats; + } + + /** + * Sets the value of the conditionalFormats property. + * + * @param value + * allowed object is + * {@link CTConditionalFormats } + * + */ + public void setConditionalFormats(CTConditionalFormats value) { + this.conditionalFormats = value; + } + + /** + * Gets the value of the chartFormats property. + * + * @return + * possible object is + * {@link CTChartFormats } + * + */ + public CTChartFormats getChartFormats() { + return chartFormats; + } + + /** + * Sets the value of the chartFormats property. + * + * @param value + * allowed object is + * {@link CTChartFormats } + * + */ + public void setChartFormats(CTChartFormats value) { + this.chartFormats = value; + } + + /** + * Gets the value of the pivotHierarchies property. + * + * @return + * possible object is + * {@link CTPivotHierarchies } + * + */ + public CTPivotHierarchies getPivotHierarchies() { + return pivotHierarchies; + } + + /** + * Sets the value of the pivotHierarchies property. + * + * @param value + * allowed object is + * {@link CTPivotHierarchies } + * + */ + public void setPivotHierarchies(CTPivotHierarchies value) { + this.pivotHierarchies = value; + } + + /** + * Gets the value of the pivotTableStyleInfo property. + * + * @return + * possible object is + * {@link CTPivotTableStyle } + * + */ + public CTPivotTableStyle getPivotTableStyleInfo() { + return pivotTableStyleInfo; + } + + /** + * Sets the value of the pivotTableStyleInfo property. + * + * @param value + * allowed object is + * {@link CTPivotTableStyle } + * + */ + public void setPivotTableStyleInfo(CTPivotTableStyle value) { + this.pivotTableStyleInfo = value; + } + + /** + * Gets the value of the filters property. + * + * @return + * possible object is + * {@link CTPivotFilters } + * + */ + public CTPivotFilters getFilters() { + return filters; + } + + /** + * Sets the value of the filters property. + * + * @param value + * allowed object is + * {@link CTPivotFilters } + * + */ + public void setFilters(CTPivotFilters value) { + this.filters = value; + } + + /** + * Gets the value of the rowHierarchiesUsage property. + * + * @return + * possible object is + * {@link CTRowHierarchiesUsage } + * + */ + public CTRowHierarchiesUsage getRowHierarchiesUsage() { + return rowHierarchiesUsage; + } + + /** + * Sets the value of the rowHierarchiesUsage property. + * + * @param value + * allowed object is + * {@link CTRowHierarchiesUsage } + * + */ + public void setRowHierarchiesUsage(CTRowHierarchiesUsage value) { + this.rowHierarchiesUsage = value; + } + + /** + * Gets the value of the colHierarchiesUsage property. + * + * @return + * possible object is + * {@link CTColHierarchiesUsage } + * + */ + public CTColHierarchiesUsage getColHierarchiesUsage() { + return colHierarchiesUsage; + } + + /** + * Sets the value of the colHierarchiesUsage property. + * + * @param value + * allowed object is + * {@link CTColHierarchiesUsage } + * + */ + public void setColHierarchiesUsage(CTColHierarchiesUsage value) { + this.colHierarchiesUsage = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the cacheId property. + * + */ + public long getCacheId() { + return cacheId; + } + + /** + * Sets the value of the cacheId property. + * + */ + public void setCacheId(long value) { + this.cacheId = value; + } + + /** + * Gets the value of the dataOnRows property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDataOnRows() { + if (dataOnRows == null) { + return false; + } else { + return dataOnRows; + } + } + + /** + * Sets the value of the dataOnRows property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDataOnRows(Boolean value) { + this.dataOnRows = value; + } + + /** + * Gets the value of the dataPosition property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDataPosition() { + return dataPosition; + } + + /** + * Sets the value of the dataPosition property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDataPosition(Long value) { + this.dataPosition = value; + } + + /** + * Gets the value of the dataCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDataCaption() { + return dataCaption; + } + + /** + * Sets the value of the dataCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDataCaption(String value) { + this.dataCaption = value; + } + + /** + * Gets the value of the grandTotalCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGrandTotalCaption() { + return grandTotalCaption; + } + + /** + * Sets the value of the grandTotalCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGrandTotalCaption(String value) { + this.grandTotalCaption = value; + } + + /** + * Gets the value of the errorCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCaption() { + return errorCaption; + } + + /** + * Sets the value of the errorCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCaption(String value) { + this.errorCaption = value; + } + + /** + * Gets the value of the showError property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowError() { + if (showError == null) { + return false; + } else { + return showError; + } + } + + /** + * Sets the value of the showError property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowError(Boolean value) { + this.showError = value; + } + + /** + * Gets the value of the missingCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMissingCaption() { + return missingCaption; + } + + /** + * Sets the value of the missingCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMissingCaption(String value) { + this.missingCaption = value; + } + + /** + * Gets the value of the showMissing property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowMissing() { + if (showMissing == null) { + return true; + } else { + return showMissing; + } + } + + /** + * Sets the value of the showMissing property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowMissing(Boolean value) { + this.showMissing = value; + } + + /** + * Gets the value of the pageStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPageStyle() { + return pageStyle; + } + + /** + * Sets the value of the pageStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPageStyle(String value) { + this.pageStyle = value; + } + + /** + * Gets the value of the pivotTableStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPivotTableStyle() { + return pivotTableStyle; + } + + /** + * Sets the value of the pivotTableStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPivotTableStyle(String value) { + this.pivotTableStyle = value; + } + + /** + * Gets the value of the vacatedStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVacatedStyle() { + return vacatedStyle; + } + + /** + * Sets the value of the vacatedStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVacatedStyle(String value) { + this.vacatedStyle = value; + } + + /** + * Gets the value of the tag property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTag() { + return tag; + } + + /** + * Sets the value of the tag property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTag(String value) { + this.tag = value; + } + + /** + * Gets the value of the updatedVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getUpdatedVersion() { + if (updatedVersion == null) { + return ((short) 0); + } else { + return updatedVersion; + } + } + + /** + * Sets the value of the updatedVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setUpdatedVersion(Short value) { + this.updatedVersion = value; + } + + /** + * Gets the value of the minRefreshableVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getMinRefreshableVersion() { + if (minRefreshableVersion == null) { + return ((short) 0); + } else { + return minRefreshableVersion; + } + } + + /** + * Sets the value of the minRefreshableVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setMinRefreshableVersion(Short value) { + this.minRefreshableVersion = value; + } + + /** + * Gets the value of the asteriskTotals property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAsteriskTotals() { + if (asteriskTotals == null) { + return false; + } else { + return asteriskTotals; + } + } + + /** + * Sets the value of the asteriskTotals property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAsteriskTotals(Boolean value) { + this.asteriskTotals = value; + } + + /** + * Gets the value of the showItems property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowItems() { + if (showItems == null) { + return true; + } else { + return showItems; + } + } + + /** + * Sets the value of the showItems property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowItems(Boolean value) { + this.showItems = value; + } + + /** + * Gets the value of the editData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEditData() { + if (editData == null) { + return false; + } else { + return editData; + } + } + + /** + * Sets the value of the editData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEditData(Boolean value) { + this.editData = value; + } + + /** + * Gets the value of the disableFieldList property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDisableFieldList() { + if (disableFieldList == null) { + return false; + } else { + return disableFieldList; + } + } + + /** + * Sets the value of the disableFieldList property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisableFieldList(Boolean value) { + this.disableFieldList = value; + } + + /** + * Gets the value of the showCalcMbrs property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowCalcMbrs() { + if (showCalcMbrs == null) { + return true; + } else { + return showCalcMbrs; + } + } + + /** + * Sets the value of the showCalcMbrs property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowCalcMbrs(Boolean value) { + this.showCalcMbrs = value; + } + + /** + * Gets the value of the visualTotals property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVisualTotals() { + if (visualTotals == null) { + return true; + } else { + return visualTotals; + } + } + + /** + * Sets the value of the visualTotals property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVisualTotals(Boolean value) { + this.visualTotals = value; + } + + /** + * Gets the value of the showMultipleLabel property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowMultipleLabel() { + if (showMultipleLabel == null) { + return true; + } else { + return showMultipleLabel; + } + } + + /** + * Sets the value of the showMultipleLabel property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowMultipleLabel(Boolean value) { + this.showMultipleLabel = value; + } + + /** + * Gets the value of the showDataDropDown property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowDataDropDown() { + if (showDataDropDown == null) { + return true; + } else { + return showDataDropDown; + } + } + + /** + * Sets the value of the showDataDropDown property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowDataDropDown(Boolean value) { + this.showDataDropDown = value; + } + + /** + * Gets the value of the showDrill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowDrill() { + if (showDrill == null) { + return true; + } else { + return showDrill; + } + } + + /** + * Sets the value of the showDrill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowDrill(Boolean value) { + this.showDrill = value; + } + + /** + * Gets the value of the printDrill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPrintDrill() { + if (printDrill == null) { + return false; + } else { + return printDrill; + } + } + + /** + * Sets the value of the printDrill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPrintDrill(Boolean value) { + this.printDrill = value; + } + + /** + * Gets the value of the showMemberPropertyTips property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowMemberPropertyTips() { + if (showMemberPropertyTips == null) { + return true; + } else { + return showMemberPropertyTips; + } + } + + /** + * Sets the value of the showMemberPropertyTips property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowMemberPropertyTips(Boolean value) { + this.showMemberPropertyTips = value; + } + + /** + * Gets the value of the showDataTips property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowDataTips() { + if (showDataTips == null) { + return true; + } else { + return showDataTips; + } + } + + /** + * Sets the value of the showDataTips property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowDataTips(Boolean value) { + this.showDataTips = value; + } + + /** + * Gets the value of the enableWizard property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEnableWizard() { + if (enableWizard == null) { + return true; + } else { + return enableWizard; + } + } + + /** + * Sets the value of the enableWizard property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnableWizard(Boolean value) { + this.enableWizard = value; + } + + /** + * Gets the value of the enableDrill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEnableDrill() { + if (enableDrill == null) { + return true; + } else { + return enableDrill; + } + } + + /** + * Sets the value of the enableDrill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnableDrill(Boolean value) { + this.enableDrill = value; + } + + /** + * Gets the value of the enableFieldProperties property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEnableFieldProperties() { + if (enableFieldProperties == null) { + return true; + } else { + return enableFieldProperties; + } + } + + /** + * Sets the value of the enableFieldProperties property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnableFieldProperties(Boolean value) { + this.enableFieldProperties = value; + } + + /** + * Gets the value of the preserveFormatting property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPreserveFormatting() { + if (preserveFormatting == null) { + return true; + } else { + return preserveFormatting; + } + } + + /** + * Sets the value of the preserveFormatting property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPreserveFormatting(Boolean value) { + this.preserveFormatting = value; + } + + /** + * Gets the value of the useAutoFormatting property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUseAutoFormatting() { + if (useAutoFormatting == null) { + return false; + } else { + return useAutoFormatting; + } + } + + /** + * Sets the value of the useAutoFormatting property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUseAutoFormatting(Boolean value) { + this.useAutoFormatting = value; + } + + /** + * Gets the value of the pageWrap property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getPageWrap() { + if (pageWrap == null) { + return 0L; + } else { + return pageWrap; + } + } + + /** + * Sets the value of the pageWrap property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPageWrap(Long value) { + this.pageWrap = value; + } + + /** + * Gets the value of the pageOverThenDown property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPageOverThenDown() { + if (pageOverThenDown == null) { + return false; + } else { + return pageOverThenDown; + } + } + + /** + * Sets the value of the pageOverThenDown property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPageOverThenDown(Boolean value) { + this.pageOverThenDown = value; + } + + /** + * Gets the value of the subtotalHiddenItems property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSubtotalHiddenItems() { + if (subtotalHiddenItems == null) { + return false; + } else { + return subtotalHiddenItems; + } + } + + /** + * Sets the value of the subtotalHiddenItems property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSubtotalHiddenItems(Boolean value) { + this.subtotalHiddenItems = value; + } + + /** + * Gets the value of the rowGrandTotals property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRowGrandTotals() { + if (rowGrandTotals == null) { + return true; + } else { + return rowGrandTotals; + } + } + + /** + * Sets the value of the rowGrandTotals property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRowGrandTotals(Boolean value) { + this.rowGrandTotals = value; + } + + /** + * Gets the value of the colGrandTotals property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isColGrandTotals() { + if (colGrandTotals == null) { + return true; + } else { + return colGrandTotals; + } + } + + /** + * Sets the value of the colGrandTotals property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setColGrandTotals(Boolean value) { + this.colGrandTotals = value; + } + + /** + * Gets the value of the fieldPrintTitles property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFieldPrintTitles() { + if (fieldPrintTitles == null) { + return false; + } else { + return fieldPrintTitles; + } + } + + /** + * Sets the value of the fieldPrintTitles property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFieldPrintTitles(Boolean value) { + this.fieldPrintTitles = value; + } + + /** + * Gets the value of the itemPrintTitles property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isItemPrintTitles() { + if (itemPrintTitles == null) { + return false; + } else { + return itemPrintTitles; + } + } + + /** + * Sets the value of the itemPrintTitles property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setItemPrintTitles(Boolean value) { + this.itemPrintTitles = value; + } + + /** + * Gets the value of the mergeItem property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMergeItem() { + if (mergeItem == null) { + return false; + } else { + return mergeItem; + } + } + + /** + * Sets the value of the mergeItem property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMergeItem(Boolean value) { + this.mergeItem = value; + } + + /** + * Gets the value of the showDropZones property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowDropZones() { + if (showDropZones == null) { + return true; + } else { + return showDropZones; + } + } + + /** + * Sets the value of the showDropZones property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowDropZones(Boolean value) { + this.showDropZones = value; + } + + /** + * Gets the value of the createdVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getCreatedVersion() { + if (createdVersion == null) { + return ((short) 0); + } else { + return createdVersion; + } + } + + /** + * Sets the value of the createdVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setCreatedVersion(Short value) { + this.createdVersion = value; + } + + /** + * Gets the value of the indent property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getIndent() { + if (indent == null) { + return 1L; + } else { + return indent; + } + } + + /** + * Sets the value of the indent property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIndent(Long value) { + this.indent = value; + } + + /** + * Gets the value of the showEmptyRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowEmptyRow() { + if (showEmptyRow == null) { + return false; + } else { + return showEmptyRow; + } + } + + /** + * Sets the value of the showEmptyRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowEmptyRow(Boolean value) { + this.showEmptyRow = value; + } + + /** + * Gets the value of the showEmptyCol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowEmptyCol() { + if (showEmptyCol == null) { + return false; + } else { + return showEmptyCol; + } + } + + /** + * Sets the value of the showEmptyCol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowEmptyCol(Boolean value) { + this.showEmptyCol = value; + } + + /** + * Gets the value of the showHeaders property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowHeaders() { + if (showHeaders == null) { + return true; + } else { + return showHeaders; + } + } + + /** + * Sets the value of the showHeaders property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowHeaders(Boolean value) { + this.showHeaders = value; + } + + /** + * Gets the value of the compact property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCompact() { + if (compact == null) { + return true; + } else { + return compact; + } + } + + /** + * Sets the value of the compact property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCompact(Boolean value) { + this.compact = value; + } + + /** + * Gets the value of the outline property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOutline() { + if (outline == null) { + return false; + } else { + return outline; + } + } + + /** + * Sets the value of the outline property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOutline(Boolean value) { + this.outline = value; + } + + /** + * Gets the value of the outlineData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOutlineData() { + if (outlineData == null) { + return false; + } else { + return outlineData; + } + } + + /** + * Sets the value of the outlineData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOutlineData(Boolean value) { + this.outlineData = value; + } + + /** + * Gets the value of the compactData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCompactData() { + if (compactData == null) { + return true; + } else { + return compactData; + } + } + + /** + * Sets the value of the compactData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCompactData(Boolean value) { + this.compactData = value; + } + + /** + * Gets the value of the published property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPublished() { + if (published == null) { + return false; + } else { + return published; + } + } + + /** + * Sets the value of the published property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPublished(Boolean value) { + this.published = value; + } + + /** + * Gets the value of the gridDropZones property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGridDropZones() { + if (gridDropZones == null) { + return false; + } else { + return gridDropZones; + } + } + + /** + * Sets the value of the gridDropZones property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGridDropZones(Boolean value) { + this.gridDropZones = value; + } + + /** + * Gets the value of the immersive property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isImmersive() { + if (immersive == null) { + return true; + } else { + return immersive; + } + } + + /** + * Sets the value of the immersive property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setImmersive(Boolean value) { + this.immersive = value; + } + + /** + * Gets the value of the multipleFieldFilters property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMultipleFieldFilters() { + if (multipleFieldFilters == null) { + return true; + } else { + return multipleFieldFilters; + } + } + + /** + * Sets the value of the multipleFieldFilters property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMultipleFieldFilters(Boolean value) { + this.multipleFieldFilters = value; + } + + /** + * Gets the value of the chartFormat property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getChartFormat() { + if (chartFormat == null) { + return 0L; + } else { + return chartFormat; + } + } + + /** + * Sets the value of the chartFormat property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setChartFormat(Long value) { + this.chartFormat = value; + } + + /** + * Gets the value of the rowHeaderCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRowHeaderCaption() { + return rowHeaderCaption; + } + + /** + * Sets the value of the rowHeaderCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRowHeaderCaption(String value) { + this.rowHeaderCaption = value; + } + + /** + * Gets the value of the colHeaderCaption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColHeaderCaption() { + return colHeaderCaption; + } + + /** + * Sets the value of the colHeaderCaption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColHeaderCaption(String value) { + this.colHeaderCaption = value; + } + + /** + * Gets the value of the fieldListSortAscending property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFieldListSortAscending() { + if (fieldListSortAscending == null) { + return false; + } else { + return fieldListSortAscending; + } + } + + /** + * Sets the value of the fieldListSortAscending property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFieldListSortAscending(Boolean value) { + this.fieldListSortAscending = value; + } + + /** + * Gets the value of the mdxSubqueries property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isMdxSubqueries() { + if (mdxSubqueries == null) { + return false; + } else { + return mdxSubqueries; + } + } + + /** + * Sets the value of the mdxSubqueries property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMdxSubqueries(Boolean value) { + this.mdxSubqueries = value; + } + + /** + * Gets the value of the customListSort property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCustomListSort() { + if (customListSort == null) { + return true; + } else { + return customListSort; + } + } + + /** + * Sets the value of the customListSort property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomListSort(Boolean value) { + this.customListSort = value; + } + + /** + * Gets the value of the autoFormatId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAutoFormatId() { + return autoFormatId; + } + + /** + * Sets the value of the autoFormatId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAutoFormatId(Long value) { + this.autoFormatId = value; + } + + /** + * Gets the value of the applyNumberFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyNumberFormats() { + return applyNumberFormats; + } + + /** + * Sets the value of the applyNumberFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyNumberFormats(Boolean value) { + this.applyNumberFormats = value; + } + + /** + * Gets the value of the applyBorderFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyBorderFormats() { + return applyBorderFormats; + } + + /** + * Sets the value of the applyBorderFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyBorderFormats(Boolean value) { + this.applyBorderFormats = value; + } + + /** + * Gets the value of the applyFontFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyFontFormats() { + return applyFontFormats; + } + + /** + * Sets the value of the applyFontFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyFontFormats(Boolean value) { + this.applyFontFormats = value; + } + + /** + * Gets the value of the applyPatternFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyPatternFormats() { + return applyPatternFormats; + } + + /** + * Sets the value of the applyPatternFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyPatternFormats(Boolean value) { + this.applyPatternFormats = value; + } + + /** + * Gets the value of the applyAlignmentFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyAlignmentFormats() { + return applyAlignmentFormats; + } + + /** + * Sets the value of the applyAlignmentFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyAlignmentFormats(Boolean value) { + this.applyAlignmentFormats = value; + } + + /** + * Gets the value of the applyWidthHeightFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyWidthHeightFormats() { + return applyWidthHeightFormats; + } + + /** + * Sets the value of the applyWidthHeightFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyWidthHeightFormats(Boolean value) { + this.applyWidthHeightFormats = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableStyle.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableStyle.java index 6270400224..727d870b6f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableStyle.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPivotTableStyle.java @@ -1,213 +1,225 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PivotTableStyle complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PivotTableStyle">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="showRowHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="showColHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="showRowStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="showColStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="showLastColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PivotTableStyle") -public class CTPivotTableStyle { - - @XmlAttribute - protected String name; - @XmlAttribute - protected Boolean showRowHeaders; - @XmlAttribute - protected Boolean showColHeaders; - @XmlAttribute - protected Boolean showRowStripes; - @XmlAttribute - protected Boolean showColStripes; - @XmlAttribute - protected Boolean showLastColumn; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the showRowHeaders property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowRowHeaders() { - return showRowHeaders; - } - - /** - * Sets the value of the showRowHeaders property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowRowHeaders(Boolean value) { - this.showRowHeaders = value; - } - - /** - * Gets the value of the showColHeaders property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowColHeaders() { - return showColHeaders; - } - - /** - * Sets the value of the showColHeaders property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowColHeaders(Boolean value) { - this.showColHeaders = value; - } - - /** - * Gets the value of the showRowStripes property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowRowStripes() { - return showRowStripes; - } - - /** - * Sets the value of the showRowStripes property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowRowStripes(Boolean value) { - this.showRowStripes = value; - } - - /** - * Gets the value of the showColStripes property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowColStripes() { - return showColStripes; - } - - /** - * Sets the value of the showColStripes property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowColStripes(Boolean value) { - this.showColStripes = value; - } - - /** - * Gets the value of the showLastColumn property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowLastColumn() { - return showLastColumn; - } - - /** - * Sets the value of the showLastColumn property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowLastColumn(Boolean value) { - this.showLastColumn = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PivotTableStyle complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PivotTableStyle">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="showRowHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="showColHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="showRowStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="showColStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="showLastColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PivotTableStyle") +public class CTPivotTableStyle implements Child +{ + + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "showRowHeaders") + protected Boolean showRowHeaders; + @XmlAttribute(name = "showColHeaders") + protected Boolean showColHeaders; + @XmlAttribute(name = "showRowStripes") + protected Boolean showRowStripes; + @XmlAttribute(name = "showColStripes") + protected Boolean showColStripes; + @XmlAttribute(name = "showLastColumn") + protected Boolean showLastColumn; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the showRowHeaders property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowRowHeaders() { + return showRowHeaders; + } + + /** + * Sets the value of the showRowHeaders property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowRowHeaders(Boolean value) { + this.showRowHeaders = value; + } + + /** + * Gets the value of the showColHeaders property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowColHeaders() { + return showColHeaders; + } + + /** + * Sets the value of the showColHeaders property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowColHeaders(Boolean value) { + this.showColHeaders = value; + } + + /** + * Gets the value of the showRowStripes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowRowStripes() { + return showRowStripes; + } + + /** + * Sets the value of the showRowStripes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowRowStripes(Boolean value) { + this.showRowStripes = value; + } + + /** + * Gets the value of the showColStripes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowColStripes() { + return showColStripes; + } + + /** + * Sets the value of the showColStripes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowColStripes(Boolean value) { + this.showColStripes = value; + } + + /** + * Gets the value of the showLastColumn property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowLastColumn() { + return showLastColumn; + } + + /** + * Sets the value of the showLastColumn property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowLastColumn(Boolean value) { + this.showLastColumn = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTPrintOptions.java b/src/xlsx4j/java/org/xlsx4j/sml/CTPrintOptions.java index bbd953b60a..673dd8b035 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTPrintOptions.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTPrintOptions.java @@ -1,206 +1,218 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_PrintOptions complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_PrintOptions">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="horizontalCentered" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="verticalCentered" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="headings" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="gridLines" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="gridLinesSet" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_PrintOptions") -public class CTPrintOptions { - - @XmlAttribute - protected Boolean horizontalCentered; - @XmlAttribute - protected Boolean verticalCentered; - @XmlAttribute - protected Boolean headings; - @XmlAttribute - protected Boolean gridLines; - @XmlAttribute - protected Boolean gridLinesSet; - - /** - * Gets the value of the horizontalCentered property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHorizontalCentered() { - if (horizontalCentered == null) { - return false; - } else { - return horizontalCentered; - } - } - - /** - * Sets the value of the horizontalCentered property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHorizontalCentered(Boolean value) { - this.horizontalCentered = value; - } - - /** - * Gets the value of the verticalCentered property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVerticalCentered() { - if (verticalCentered == null) { - return false; - } else { - return verticalCentered; - } - } - - /** - * Sets the value of the verticalCentered property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVerticalCentered(Boolean value) { - this.verticalCentered = value; - } - - /** - * Gets the value of the headings property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHeadings() { - if (headings == null) { - return false; - } else { - return headings; - } - } - - /** - * Sets the value of the headings property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHeadings(Boolean value) { - this.headings = value; - } - - /** - * Gets the value of the gridLines property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGridLines() { - if (gridLines == null) { - return false; - } else { - return gridLines; - } - } - - /** - * Sets the value of the gridLines property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGridLines(Boolean value) { - this.gridLines = value; - } - - /** - * Gets the value of the gridLinesSet property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isGridLinesSet() { - if (gridLinesSet == null) { - return true; - } else { - return gridLinesSet; - } - } - - /** - * Sets the value of the gridLinesSet property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setGridLinesSet(Boolean value) { - this.gridLinesSet = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_PrintOptions complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_PrintOptions">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="horizontalCentered" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="verticalCentered" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="headings" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="gridLines" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="gridLinesSet" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_PrintOptions") +public class CTPrintOptions implements Child +{ + + @XmlAttribute(name = "horizontalCentered") + protected Boolean horizontalCentered; + @XmlAttribute(name = "verticalCentered") + protected Boolean verticalCentered; + @XmlAttribute(name = "headings") + protected Boolean headings; + @XmlAttribute(name = "gridLines") + protected Boolean gridLines; + @XmlAttribute(name = "gridLinesSet") + protected Boolean gridLinesSet; + @XmlTransient + private Object parent; + + /** + * Gets the value of the horizontalCentered property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHorizontalCentered() { + if (horizontalCentered == null) { + return false; + } else { + return horizontalCentered; + } + } + + /** + * Sets the value of the horizontalCentered property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHorizontalCentered(Boolean value) { + this.horizontalCentered = value; + } + + /** + * Gets the value of the verticalCentered property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVerticalCentered() { + if (verticalCentered == null) { + return false; + } else { + return verticalCentered; + } + } + + /** + * Sets the value of the verticalCentered property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVerticalCentered(Boolean value) { + this.verticalCentered = value; + } + + /** + * Gets the value of the headings property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHeadings() { + if (headings == null) { + return false; + } else { + return headings; + } + } + + /** + * Sets the value of the headings property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHeadings(Boolean value) { + this.headings = value; + } + + /** + * Gets the value of the gridLines property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGridLines() { + if (gridLines == null) { + return false; + } else { + return gridLines; + } + } + + /** + * Sets the value of the gridLines property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGridLines(Boolean value) { + this.gridLines = value; + } + + /** + * Gets the value of the gridLinesSet property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isGridLinesSet() { + if (gridLinesSet == null) { + return true; + } else { + return gridLinesSet; + } + } + + /** + * Sets the value of the gridLinesSet property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGridLinesSet(Boolean value) { + this.gridLinesSet = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRange.java b/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRange.java index 7a49d24f70..89020a2a76 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRange.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRange.java @@ -1,169 +1,322 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_ProtectedRange complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ProtectedRange">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="password" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
- *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="securityDescriptor" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ProtectedRange") -public class CTProtectedRange { - - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] password; - @XmlAttribute(required = true) - protected List sqref; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected String securityDescriptor; - - /** - * Gets the value of the password property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getPassword() { - return password; - } - - /** - * Sets the value of the password property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPassword(byte[] value) { - this.password = ((byte[]) value); - } - - /** - * Gets the value of the sqref property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sqref property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSqref().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSqref() { - if (sqref == null) { - sqref = new ArrayList(); - } - return this.sqref; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the securityDescriptor property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSecurityDescriptor() { - return securityDescriptor; - } - - /** - * Sets the value of the securityDescriptor property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSecurityDescriptor(String value) { - this.securityDescriptor = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ProtectedRange complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ProtectedRange">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="securityDescriptor" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="password" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
+ *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="securityDescriptor" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="algorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="hashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="saltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="spinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ProtectedRange", propOrder = { + "securityDescriptor" +}) +public class CTProtectedRange implements Child +{ + + protected List securityDescriptor; + @XmlAttribute(name = "password") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] password; + @XmlAttribute(name = "sqref", required = true) + protected List sqref; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "securityDescriptor") + protected String securityDescriptorAttr; + @XmlAttribute(name = "algorithmName") + protected String algorithmName; + @XmlAttribute(name = "hashValue") + protected byte[] hashValue; + @XmlAttribute(name = "saltValue") + protected byte[] saltValue; + @XmlAttribute(name = "spinCount") + @XmlSchemaType(name = "unsignedInt") + protected Long spinCount; + @XmlTransient + private Object parent; + + /** + * Gets the value of the securityDescriptor property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the securityDescriptor property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSecurityDescriptor().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSecurityDescriptor() { + if (securityDescriptor == null) { + securityDescriptor = new ArrayList(); + } + return this.securityDescriptor; + } + + /** + * Gets the value of the password property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getPassword() { + return password; + } + + /** + * Sets the value of the password property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPassword(byte[] value) { + this.password = value; + } + + /** + * Gets the value of the sqref property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sqref property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSqref().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSqref() { + if (sqref == null) { + sqref = new ArrayList(); + } + return this.sqref; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the securityDescriptorAttr property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSecurityDescriptorAttr() { + return securityDescriptorAttr; + } + + /** + * Sets the value of the securityDescriptorAttr property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSecurityDescriptorAttr(String value) { + this.securityDescriptorAttr = value; + } + + /** + * Gets the value of the algorithmName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithmName() { + return algorithmName; + } + + /** + * Sets the value of the algorithmName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithmName(String value) { + this.algorithmName = value; + } + + /** + * Gets the value of the hashValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashValue() { + return hashValue; + } + + /** + * Sets the value of the hashValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashValue(byte[] value) { + this.hashValue = value; + } + + /** + * Gets the value of the saltValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getSaltValue() { + return saltValue; + } + + /** + * Sets the value of the saltValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setSaltValue(byte[] value) { + this.saltValue = value; + } + + /** + * Gets the value of the spinCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSpinCount() { + return spinCount; + } + + /** + * Sets the value of the spinCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSpinCount(Long value) { + this.spinCount = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRanges.java b/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRanges.java index 38b9c06a67..94d9ef790e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRanges.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTProtectedRanges.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ProtectedRanges complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ProtectedRanges">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="protectedRange" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ProtectedRange" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ProtectedRanges", propOrder = { - "protectedRange" -}) -public class CTProtectedRanges { - - @XmlElement(required = true) - protected List protectedRange; - - /** - * Gets the value of the protectedRange property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the protectedRange property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getProtectedRange().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTProtectedRange } - * - * - */ - public List getProtectedRange() { - if (protectedRange == null) { - protectedRange = new ArrayList(); - } - return this.protectedRange; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ProtectedRanges complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ProtectedRanges">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="protectedRange" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ProtectedRange" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ProtectedRanges", propOrder = { + "protectedRange" +}) +public class CTProtectedRanges implements Child +{ + + @XmlElement(required = true) + protected List protectedRange; + @XmlTransient + private Object parent; + + /** + * Gets the value of the protectedRange property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the protectedRange property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getProtectedRange().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTProtectedRange } + * + * + */ + public List getProtectedRange() { + if (protectedRange == null) { + protectedRange = new ArrayList(); + } + return this.protectedRange; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTQuery.java b/src/xlsx4j/java/org/xlsx4j/sml/CTQuery.java index 913fd1b3ae..9c08153d9f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTQuery.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTQuery.java @@ -1,108 +1,120 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Query complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Query">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="mdx" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Query", propOrder = { - "tpls" -}) -public class CTQuery { - - protected CTTuples tpls; - @XmlAttribute(required = true) - protected String mdx; - - /** - * Gets the value of the tpls property. - * - * @return - * possible object is - * {@link CTTuples } - * - */ - public CTTuples getTpls() { - return tpls; - } - - /** - * Sets the value of the tpls property. - * - * @param value - * allowed object is - * {@link CTTuples } - * - */ - public void setTpls(CTTuples value) { - this.tpls = value; - } - - /** - * Gets the value of the mdx property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMdx() { - return mdx; - } - - /** - * Sets the value of the mdx property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMdx(String value) { - this.mdx = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Query complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Query">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="mdx" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Query", propOrder = { + "tpls" +}) +public class CTQuery implements Child +{ + + protected CTTuples tpls; + @XmlAttribute(name = "mdx", required = true) + protected String mdx; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tpls property. + * + * @return + * possible object is + * {@link CTTuples } + * + */ + public CTTuples getTpls() { + return tpls; + } + + /** + * Sets the value of the tpls property. + * + * @param value + * allowed object is + * {@link CTTuples } + * + */ + public void setTpls(CTTuples value) { + this.tpls = value; + } + + /** + * Gets the value of the mdx property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMdx() { + return mdx; + } + + /** + * Sets the value of the mdx property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMdx(String value) { + this.mdx = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryCache.java b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryCache.java index 18cdd2633d..01e0040616 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryCache.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryCache.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_QueryCache complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_QueryCache">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="query" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Query" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_QueryCache", propOrder = { - "query" -}) -public class CTQueryCache { - - @XmlElement(required = true) - protected List query; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the query property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the query property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getQuery().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTQuery } - * - * - */ - public List getQuery() { - if (query == null) { - query = new ArrayList(); - } - return this.query; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_QueryCache complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_QueryCache">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="query" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Query" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_QueryCache", propOrder = { + "query" +}) +public class CTQueryCache implements Child +{ + + @XmlElement(required = true) + protected List query; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the query property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the query property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getQuery().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTQuery } + * + * + */ + public List getQuery() { + if (query == null) { + query = new ArrayList(); + } + return this.query; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTable.java b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTable.java index 461f59325b..8b00c06f18 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTable.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTable.java @@ -1,743 +1,755 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_QueryTable complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_QueryTable">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="queryTableRefresh" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableRefresh" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_AutoFormat"/>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="headers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="rowNumbers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="disableRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="backgroundRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="firstBackgroundRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="refreshOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="growShrinkType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_GrowShrinkType" default="insertDelete" />
- *       <attribute name="fillFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="removeDataOnSave" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="disableEdit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="preserveFormatting" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="adjustColumnWidth" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="intermediate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="connectionId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_QueryTable", propOrder = { - "queryTableRefresh", - "extLst" -}) -public class CTQueryTable { - - protected CTQueryTableRefresh queryTableRefresh; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected Boolean headers; - @XmlAttribute - protected Boolean rowNumbers; - @XmlAttribute - protected Boolean disableRefresh; - @XmlAttribute - protected Boolean backgroundRefresh; - @XmlAttribute - protected Boolean firstBackgroundRefresh; - @XmlAttribute - protected Boolean refreshOnLoad; - @XmlAttribute - protected STGrowShrinkType growShrinkType; - @XmlAttribute - protected Boolean fillFormulas; - @XmlAttribute - protected Boolean removeDataOnSave; - @XmlAttribute - protected Boolean disableEdit; - @XmlAttribute - protected Boolean preserveFormatting; - @XmlAttribute - protected Boolean adjustColumnWidth; - @XmlAttribute - protected Boolean intermediate; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long connectionId; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long autoFormatId; - @XmlAttribute - protected Boolean applyNumberFormats; - @XmlAttribute - protected Boolean applyBorderFormats; - @XmlAttribute - protected Boolean applyFontFormats; - @XmlAttribute - protected Boolean applyPatternFormats; - @XmlAttribute - protected Boolean applyAlignmentFormats; - @XmlAttribute - protected Boolean applyWidthHeightFormats; - - /** - * Gets the value of the queryTableRefresh property. - * - * @return - * possible object is - * {@link CTQueryTableRefresh } - * - */ - public CTQueryTableRefresh getQueryTableRefresh() { - return queryTableRefresh; - } - - /** - * Sets the value of the queryTableRefresh property. - * - * @param value - * allowed object is - * {@link CTQueryTableRefresh } - * - */ - public void setQueryTableRefresh(CTQueryTableRefresh value) { - this.queryTableRefresh = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the headers property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHeaders() { - if (headers == null) { - return true; - } else { - return headers; - } - } - - /** - * Sets the value of the headers property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHeaders(Boolean value) { - this.headers = value; - } - - /** - * Gets the value of the rowNumbers property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRowNumbers() { - if (rowNumbers == null) { - return false; - } else { - return rowNumbers; - } - } - - /** - * Sets the value of the rowNumbers property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRowNumbers(Boolean value) { - this.rowNumbers = value; - } - - /** - * Gets the value of the disableRefresh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDisableRefresh() { - if (disableRefresh == null) { - return false; - } else { - return disableRefresh; - } - } - - /** - * Sets the value of the disableRefresh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDisableRefresh(Boolean value) { - this.disableRefresh = value; - } - - /** - * Gets the value of the backgroundRefresh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBackgroundRefresh() { - if (backgroundRefresh == null) { - return true; - } else { - return backgroundRefresh; - } - } - - /** - * Sets the value of the backgroundRefresh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBackgroundRefresh(Boolean value) { - this.backgroundRefresh = value; - } - - /** - * Gets the value of the firstBackgroundRefresh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFirstBackgroundRefresh() { - if (firstBackgroundRefresh == null) { - return false; - } else { - return firstBackgroundRefresh; - } - } - - /** - * Sets the value of the firstBackgroundRefresh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFirstBackgroundRefresh(Boolean value) { - this.firstBackgroundRefresh = value; - } - - /** - * Gets the value of the refreshOnLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRefreshOnLoad() { - if (refreshOnLoad == null) { - return false; - } else { - return refreshOnLoad; - } - } - - /** - * Sets the value of the refreshOnLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRefreshOnLoad(Boolean value) { - this.refreshOnLoad = value; - } - - /** - * Gets the value of the growShrinkType property. - * - * @return - * possible object is - * {@link STGrowShrinkType } - * - */ - public STGrowShrinkType getGrowShrinkType() { - if (growShrinkType == null) { - return STGrowShrinkType.INSERT_DELETE; - } else { - return growShrinkType; - } - } - - /** - * Sets the value of the growShrinkType property. - * - * @param value - * allowed object is - * {@link STGrowShrinkType } - * - */ - public void setGrowShrinkType(STGrowShrinkType value) { - this.growShrinkType = value; - } - - /** - * Gets the value of the fillFormulas property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFillFormulas() { - if (fillFormulas == null) { - return false; - } else { - return fillFormulas; - } - } - - /** - * Sets the value of the fillFormulas property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFillFormulas(Boolean value) { - this.fillFormulas = value; - } - - /** - * Gets the value of the removeDataOnSave property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRemoveDataOnSave() { - if (removeDataOnSave == null) { - return false; - } else { - return removeDataOnSave; - } - } - - /** - * Sets the value of the removeDataOnSave property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRemoveDataOnSave(Boolean value) { - this.removeDataOnSave = value; - } - - /** - * Gets the value of the disableEdit property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDisableEdit() { - if (disableEdit == null) { - return false; - } else { - return disableEdit; - } - } - - /** - * Sets the value of the disableEdit property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDisableEdit(Boolean value) { - this.disableEdit = value; - } - - /** - * Gets the value of the preserveFormatting property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPreserveFormatting() { - if (preserveFormatting == null) { - return true; - } else { - return preserveFormatting; - } - } - - /** - * Sets the value of the preserveFormatting property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreserveFormatting(Boolean value) { - this.preserveFormatting = value; - } - - /** - * Gets the value of the adjustColumnWidth property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAdjustColumnWidth() { - if (adjustColumnWidth == null) { - return true; - } else { - return adjustColumnWidth; - } - } - - /** - * Sets the value of the adjustColumnWidth property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAdjustColumnWidth(Boolean value) { - this.adjustColumnWidth = value; - } - - /** - * Gets the value of the intermediate property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isIntermediate() { - if (intermediate == null) { - return false; - } else { - return intermediate; - } - } - - /** - * Sets the value of the intermediate property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setIntermediate(Boolean value) { - this.intermediate = value; - } - - /** - * Gets the value of the connectionId property. - * - */ - public long getConnectionId() { - return connectionId; - } - - /** - * Sets the value of the connectionId property. - * - */ - public void setConnectionId(long value) { - this.connectionId = value; - } - - /** - * Gets the value of the autoFormatId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getAutoFormatId() { - return autoFormatId; - } - - /** - * Sets the value of the autoFormatId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setAutoFormatId(Long value) { - this.autoFormatId = value; - } - - /** - * Gets the value of the applyNumberFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyNumberFormats() { - return applyNumberFormats; - } - - /** - * Sets the value of the applyNumberFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyNumberFormats(Boolean value) { - this.applyNumberFormats = value; - } - - /** - * Gets the value of the applyBorderFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyBorderFormats() { - return applyBorderFormats; - } - - /** - * Sets the value of the applyBorderFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyBorderFormats(Boolean value) { - this.applyBorderFormats = value; - } - - /** - * Gets the value of the applyFontFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyFontFormats() { - return applyFontFormats; - } - - /** - * Sets the value of the applyFontFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyFontFormats(Boolean value) { - this.applyFontFormats = value; - } - - /** - * Gets the value of the applyPatternFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyPatternFormats() { - return applyPatternFormats; - } - - /** - * Sets the value of the applyPatternFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyPatternFormats(Boolean value) { - this.applyPatternFormats = value; - } - - /** - * Gets the value of the applyAlignmentFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyAlignmentFormats() { - return applyAlignmentFormats; - } - - /** - * Sets the value of the applyAlignmentFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyAlignmentFormats(Boolean value) { - this.applyAlignmentFormats = value; - } - - /** - * Gets the value of the applyWidthHeightFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyWidthHeightFormats() { - return applyWidthHeightFormats; - } - - /** - * Sets the value of the applyWidthHeightFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyWidthHeightFormats(Boolean value) { - this.applyWidthHeightFormats = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_QueryTable complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_QueryTable">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="queryTableRefresh" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableRefresh" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_AutoFormat"/>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="headers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="rowNumbers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="disableRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="backgroundRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="firstBackgroundRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="refreshOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="growShrinkType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_GrowShrinkType" default="insertDelete" />
+ *       <attribute name="fillFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="removeDataOnSave" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="disableEdit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="preserveFormatting" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="adjustColumnWidth" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="intermediate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="connectionId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_QueryTable", propOrder = { + "queryTableRefresh", + "extLst" +}) +public class CTQueryTable implements Child +{ + + protected CTQueryTableRefresh queryTableRefresh; + protected CTExtensionList extLst; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "headers") + protected Boolean headers; + @XmlAttribute(name = "rowNumbers") + protected Boolean rowNumbers; + @XmlAttribute(name = "disableRefresh") + protected Boolean disableRefresh; + @XmlAttribute(name = "backgroundRefresh") + protected Boolean backgroundRefresh; + @XmlAttribute(name = "firstBackgroundRefresh") + protected Boolean firstBackgroundRefresh; + @XmlAttribute(name = "refreshOnLoad") + protected Boolean refreshOnLoad; + @XmlAttribute(name = "growShrinkType") + protected STGrowShrinkType growShrinkType; + @XmlAttribute(name = "fillFormulas") + protected Boolean fillFormulas; + @XmlAttribute(name = "removeDataOnSave") + protected Boolean removeDataOnSave; + @XmlAttribute(name = "disableEdit") + protected Boolean disableEdit; + @XmlAttribute(name = "preserveFormatting") + protected Boolean preserveFormatting; + @XmlAttribute(name = "adjustColumnWidth") + protected Boolean adjustColumnWidth; + @XmlAttribute(name = "intermediate") + protected Boolean intermediate; + @XmlAttribute(name = "connectionId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long connectionId; + @XmlAttribute(name = "autoFormatId") + @XmlSchemaType(name = "unsignedInt") + protected Long autoFormatId; + @XmlAttribute(name = "applyNumberFormats") + protected Boolean applyNumberFormats; + @XmlAttribute(name = "applyBorderFormats") + protected Boolean applyBorderFormats; + @XmlAttribute(name = "applyFontFormats") + protected Boolean applyFontFormats; + @XmlAttribute(name = "applyPatternFormats") + protected Boolean applyPatternFormats; + @XmlAttribute(name = "applyAlignmentFormats") + protected Boolean applyAlignmentFormats; + @XmlAttribute(name = "applyWidthHeightFormats") + protected Boolean applyWidthHeightFormats; + @XmlTransient + private Object parent; + + /** + * Gets the value of the queryTableRefresh property. + * + * @return + * possible object is + * {@link CTQueryTableRefresh } + * + */ + public CTQueryTableRefresh getQueryTableRefresh() { + return queryTableRefresh; + } + + /** + * Sets the value of the queryTableRefresh property. + * + * @param value + * allowed object is + * {@link CTQueryTableRefresh } + * + */ + public void setQueryTableRefresh(CTQueryTableRefresh value) { + this.queryTableRefresh = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the headers property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHeaders() { + if (headers == null) { + return true; + } else { + return headers; + } + } + + /** + * Sets the value of the headers property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHeaders(Boolean value) { + this.headers = value; + } + + /** + * Gets the value of the rowNumbers property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRowNumbers() { + if (rowNumbers == null) { + return false; + } else { + return rowNumbers; + } + } + + /** + * Sets the value of the rowNumbers property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRowNumbers(Boolean value) { + this.rowNumbers = value; + } + + /** + * Gets the value of the disableRefresh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDisableRefresh() { + if (disableRefresh == null) { + return false; + } else { + return disableRefresh; + } + } + + /** + * Sets the value of the disableRefresh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisableRefresh(Boolean value) { + this.disableRefresh = value; + } + + /** + * Gets the value of the backgroundRefresh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBackgroundRefresh() { + if (backgroundRefresh == null) { + return true; + } else { + return backgroundRefresh; + } + } + + /** + * Sets the value of the backgroundRefresh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBackgroundRefresh(Boolean value) { + this.backgroundRefresh = value; + } + + /** + * Gets the value of the firstBackgroundRefresh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFirstBackgroundRefresh() { + if (firstBackgroundRefresh == null) { + return false; + } else { + return firstBackgroundRefresh; + } + } + + /** + * Sets the value of the firstBackgroundRefresh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFirstBackgroundRefresh(Boolean value) { + this.firstBackgroundRefresh = value; + } + + /** + * Gets the value of the refreshOnLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRefreshOnLoad() { + if (refreshOnLoad == null) { + return false; + } else { + return refreshOnLoad; + } + } + + /** + * Sets the value of the refreshOnLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRefreshOnLoad(Boolean value) { + this.refreshOnLoad = value; + } + + /** + * Gets the value of the growShrinkType property. + * + * @return + * possible object is + * {@link STGrowShrinkType } + * + */ + public STGrowShrinkType getGrowShrinkType() { + if (growShrinkType == null) { + return STGrowShrinkType.INSERT_DELETE; + } else { + return growShrinkType; + } + } + + /** + * Sets the value of the growShrinkType property. + * + * @param value + * allowed object is + * {@link STGrowShrinkType } + * + */ + public void setGrowShrinkType(STGrowShrinkType value) { + this.growShrinkType = value; + } + + /** + * Gets the value of the fillFormulas property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFillFormulas() { + if (fillFormulas == null) { + return false; + } else { + return fillFormulas; + } + } + + /** + * Sets the value of the fillFormulas property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFillFormulas(Boolean value) { + this.fillFormulas = value; + } + + /** + * Gets the value of the removeDataOnSave property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRemoveDataOnSave() { + if (removeDataOnSave == null) { + return false; + } else { + return removeDataOnSave; + } + } + + /** + * Sets the value of the removeDataOnSave property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRemoveDataOnSave(Boolean value) { + this.removeDataOnSave = value; + } + + /** + * Gets the value of the disableEdit property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDisableEdit() { + if (disableEdit == null) { + return false; + } else { + return disableEdit; + } + } + + /** + * Sets the value of the disableEdit property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisableEdit(Boolean value) { + this.disableEdit = value; + } + + /** + * Gets the value of the preserveFormatting property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPreserveFormatting() { + if (preserveFormatting == null) { + return true; + } else { + return preserveFormatting; + } + } + + /** + * Sets the value of the preserveFormatting property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPreserveFormatting(Boolean value) { + this.preserveFormatting = value; + } + + /** + * Gets the value of the adjustColumnWidth property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAdjustColumnWidth() { + if (adjustColumnWidth == null) { + return true; + } else { + return adjustColumnWidth; + } + } + + /** + * Sets the value of the adjustColumnWidth property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAdjustColumnWidth(Boolean value) { + this.adjustColumnWidth = value; + } + + /** + * Gets the value of the intermediate property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isIntermediate() { + if (intermediate == null) { + return false; + } else { + return intermediate; + } + } + + /** + * Sets the value of the intermediate property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIntermediate(Boolean value) { + this.intermediate = value; + } + + /** + * Gets the value of the connectionId property. + * + */ + public long getConnectionId() { + return connectionId; + } + + /** + * Sets the value of the connectionId property. + * + */ + public void setConnectionId(long value) { + this.connectionId = value; + } + + /** + * Gets the value of the autoFormatId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAutoFormatId() { + return autoFormatId; + } + + /** + * Sets the value of the autoFormatId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAutoFormatId(Long value) { + this.autoFormatId = value; + } + + /** + * Gets the value of the applyNumberFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyNumberFormats() { + return applyNumberFormats; + } + + /** + * Sets the value of the applyNumberFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyNumberFormats(Boolean value) { + this.applyNumberFormats = value; + } + + /** + * Gets the value of the applyBorderFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyBorderFormats() { + return applyBorderFormats; + } + + /** + * Sets the value of the applyBorderFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyBorderFormats(Boolean value) { + this.applyBorderFormats = value; + } + + /** + * Gets the value of the applyFontFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyFontFormats() { + return applyFontFormats; + } + + /** + * Sets the value of the applyFontFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyFontFormats(Boolean value) { + this.applyFontFormats = value; + } + + /** + * Gets the value of the applyPatternFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyPatternFormats() { + return applyPatternFormats; + } + + /** + * Sets the value of the applyPatternFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyPatternFormats(Boolean value) { + this.applyPatternFormats = value; + } + + /** + * Gets the value of the applyAlignmentFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyAlignmentFormats() { + return applyAlignmentFormats; + } + + /** + * Sets the value of the applyAlignmentFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyAlignmentFormats(Boolean value) { + this.applyAlignmentFormats = value; + } + + /** + * Gets the value of the applyWidthHeightFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyWidthHeightFormats() { + return applyWidthHeightFormats; + } + + /** + * Sets the value of the applyWidthHeightFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyWidthHeightFormats(Boolean value) { + this.applyWidthHeightFormats = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableDeletedFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableDeletedFields.java index a2e1d005ef..8c5456bf61 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableDeletedFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableDeletedFields.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_QueryTableDeletedFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_QueryTableDeletedFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="deletedField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DeletedField" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_QueryTableDeletedFields", propOrder = { - "deletedField" -}) -public class CTQueryTableDeletedFields { - - @XmlElement(required = true) - protected List deletedField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the deletedField property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the deletedField property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDeletedField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDeletedField } - * - * - */ - public List getDeletedField() { - if (deletedField == null) { - deletedField = new ArrayList(); - } - return this.deletedField; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_QueryTableDeletedFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_QueryTableDeletedFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="deletedField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DeletedField" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_QueryTableDeletedFields", propOrder = { + "deletedField" +}) +public class CTQueryTableDeletedFields implements Child +{ + + @XmlElement(required = true) + protected List deletedField; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the deletedField property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the deletedField property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDeletedField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDeletedField } + * + * + */ + public List getDeletedField() { + if (deletedField == null) { + deletedField = new ArrayList(); + } + return this.deletedField; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableField.java index c26c05c994..add2dd7bb0 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableField.java @@ -1,285 +1,297 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_QueryTableField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_QueryTableField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence minOccurs="0">
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="dataBound" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="rowNumbers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="fillFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="clipped" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="tableColumnId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_QueryTableField", propOrder = { - "extLst" -}) -public class CTQueryTableField { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute - protected String name; - @XmlAttribute - protected Boolean dataBound; - @XmlAttribute - protected Boolean rowNumbers; - @XmlAttribute - protected Boolean fillFormulas; - @XmlAttribute - protected Boolean clipped; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long tableColumnId; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the dataBound property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDataBound() { - if (dataBound == null) { - return true; - } else { - return dataBound; - } - } - - /** - * Sets the value of the dataBound property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDataBound(Boolean value) { - this.dataBound = value; - } - - /** - * Gets the value of the rowNumbers property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRowNumbers() { - if (rowNumbers == null) { - return false; - } else { - return rowNumbers; - } - } - - /** - * Sets the value of the rowNumbers property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRowNumbers(Boolean value) { - this.rowNumbers = value; - } - - /** - * Gets the value of the fillFormulas property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFillFormulas() { - if (fillFormulas == null) { - return false; - } else { - return fillFormulas; - } - } - - /** - * Sets the value of the fillFormulas property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFillFormulas(Boolean value) { - this.fillFormulas = value; - } - - /** - * Gets the value of the clipped property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isClipped() { - if (clipped == null) { - return false; - } else { - return clipped; - } - } - - /** - * Sets the value of the clipped property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setClipped(Boolean value) { - this.clipped = value; - } - - /** - * Gets the value of the tableColumnId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getTableColumnId() { - if (tableColumnId == null) { - return 0L; - } else { - return tableColumnId; - } - } - - /** - * Sets the value of the tableColumnId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTableColumnId(Long value) { - this.tableColumnId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_QueryTableField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_QueryTableField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence minOccurs="0">
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="dataBound" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="rowNumbers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="fillFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="clipped" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="tableColumnId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_QueryTableField", propOrder = { + "extLst" +}) +public class CTQueryTableField implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "dataBound") + protected Boolean dataBound; + @XmlAttribute(name = "rowNumbers") + protected Boolean rowNumbers; + @XmlAttribute(name = "fillFormulas") + protected Boolean fillFormulas; + @XmlAttribute(name = "clipped") + protected Boolean clipped; + @XmlAttribute(name = "tableColumnId") + @XmlSchemaType(name = "unsignedInt") + protected Long tableColumnId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the dataBound property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDataBound() { + if (dataBound == null) { + return true; + } else { + return dataBound; + } + } + + /** + * Sets the value of the dataBound property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDataBound(Boolean value) { + this.dataBound = value; + } + + /** + * Gets the value of the rowNumbers property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRowNumbers() { + if (rowNumbers == null) { + return false; + } else { + return rowNumbers; + } + } + + /** + * Sets the value of the rowNumbers property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRowNumbers(Boolean value) { + this.rowNumbers = value; + } + + /** + * Gets the value of the fillFormulas property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFillFormulas() { + if (fillFormulas == null) { + return false; + } else { + return fillFormulas; + } + } + + /** + * Sets the value of the fillFormulas property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFillFormulas(Boolean value) { + this.fillFormulas = value; + } + + /** + * Gets the value of the clipped property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClipped() { + if (clipped == null) { + return false; + } else { + return clipped; + } + } + + /** + * Sets the value of the clipped property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClipped(Boolean value) { + this.clipped = value; + } + + /** + * Gets the value of the tableColumnId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getTableColumnId() { + if (tableColumnId == null) { + return 0L; + } else { + return tableColumnId; + } + } + + /** + * Sets the value of the tableColumnId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTableColumnId(Long value) { + this.tableColumnId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableFields.java index 663e923c4d..4b4f43d19a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableFields.java @@ -1,121 +1,133 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_QueryTableFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_QueryTableFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="queryTableField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableField" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_QueryTableFields", propOrder = { - "queryTableField" -}) -public class CTQueryTableFields { - - protected List queryTableField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the queryTableField property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the queryTableField property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getQueryTableField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTQueryTableField } - * - * - */ - public List getQueryTableField() { - if (queryTableField == null) { - queryTableField = new ArrayList(); - } - return this.queryTableField; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_QueryTableFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_QueryTableFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="queryTableField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableField" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_QueryTableFields", propOrder = { + "queryTableField" +}) +public class CTQueryTableFields implements Child +{ + + protected List queryTableField; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the queryTableField property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the queryTableField property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getQueryTableField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTQueryTableField } + * + * + */ + public List getQueryTableField() { + if (queryTableField == null) { + queryTableField = new ArrayList(); + } + return this.queryTableField; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableRefresh.java b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableRefresh.java index ee9fbec3af..411b1175cf 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableRefresh.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTQueryTableRefresh.java @@ -1,386 +1,398 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_QueryTableRefresh complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_QueryTableRefresh">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="queryTableFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableFields"/>
- *         <element name="queryTableDeletedFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableDeletedFields" minOccurs="0"/>
- *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="preserveSortFilterLayout" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="fieldIdWrapped" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="headersInLastRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="minimumVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="nextId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="unboundColumnsLeft" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="unboundColumnsRight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_QueryTableRefresh", propOrder = { - "queryTableFields", - "queryTableDeletedFields", - "sortState", - "extLst" -}) -public class CTQueryTableRefresh { - - @XmlElement(required = true) - protected CTQueryTableFields queryTableFields; - protected CTQueryTableDeletedFields queryTableDeletedFields; - protected CTSortState sortState; - protected CTExtensionList extLst; - @XmlAttribute - protected Boolean preserveSortFilterLayout; - @XmlAttribute - protected Boolean fieldIdWrapped; - @XmlAttribute - protected Boolean headersInLastRefresh; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short minimumVersion; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long nextId; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long unboundColumnsLeft; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long unboundColumnsRight; - - /** - * Gets the value of the queryTableFields property. - * - * @return - * possible object is - * {@link CTQueryTableFields } - * - */ - public CTQueryTableFields getQueryTableFields() { - return queryTableFields; - } - - /** - * Sets the value of the queryTableFields property. - * - * @param value - * allowed object is - * {@link CTQueryTableFields } - * - */ - public void setQueryTableFields(CTQueryTableFields value) { - this.queryTableFields = value; - } - - /** - * Gets the value of the queryTableDeletedFields property. - * - * @return - * possible object is - * {@link CTQueryTableDeletedFields } - * - */ - public CTQueryTableDeletedFields getQueryTableDeletedFields() { - return queryTableDeletedFields; - } - - /** - * Sets the value of the queryTableDeletedFields property. - * - * @param value - * allowed object is - * {@link CTQueryTableDeletedFields } - * - */ - public void setQueryTableDeletedFields(CTQueryTableDeletedFields value) { - this.queryTableDeletedFields = value; - } - - /** - * Gets the value of the sortState property. - * - * @return - * possible object is - * {@link CTSortState } - * - */ - public CTSortState getSortState() { - return sortState; - } - - /** - * Sets the value of the sortState property. - * - * @param value - * allowed object is - * {@link CTSortState } - * - */ - public void setSortState(CTSortState value) { - this.sortState = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the preserveSortFilterLayout property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPreserveSortFilterLayout() { - if (preserveSortFilterLayout == null) { - return true; - } else { - return preserveSortFilterLayout; - } - } - - /** - * Sets the value of the preserveSortFilterLayout property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreserveSortFilterLayout(Boolean value) { - this.preserveSortFilterLayout = value; - } - - /** - * Gets the value of the fieldIdWrapped property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFieldIdWrapped() { - if (fieldIdWrapped == null) { - return false; - } else { - return fieldIdWrapped; - } - } - - /** - * Sets the value of the fieldIdWrapped property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFieldIdWrapped(Boolean value) { - this.fieldIdWrapped = value; - } - - /** - * Gets the value of the headersInLastRefresh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHeadersInLastRefresh() { - if (headersInLastRefresh == null) { - return true; - } else { - return headersInLastRefresh; - } - } - - /** - * Sets the value of the headersInLastRefresh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHeadersInLastRefresh(Boolean value) { - this.headersInLastRefresh = value; - } - - /** - * Gets the value of the minimumVersion property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getMinimumVersion() { - if (minimumVersion == null) { - return ((short) 0); - } else { - return minimumVersion; - } - } - - /** - * Sets the value of the minimumVersion property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setMinimumVersion(Short value) { - this.minimumVersion = value; - } - - /** - * Gets the value of the nextId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getNextId() { - if (nextId == null) { - return 1L; - } else { - return nextId; - } - } - - /** - * Sets the value of the nextId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNextId(Long value) { - this.nextId = value; - } - - /** - * Gets the value of the unboundColumnsLeft property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getUnboundColumnsLeft() { - if (unboundColumnsLeft == null) { - return 0L; - } else { - return unboundColumnsLeft; - } - } - - /** - * Sets the value of the unboundColumnsLeft property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setUnboundColumnsLeft(Long value) { - this.unboundColumnsLeft = value; - } - - /** - * Gets the value of the unboundColumnsRight property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getUnboundColumnsRight() { - if (unboundColumnsRight == null) { - return 0L; - } else { - return unboundColumnsRight; - } - } - - /** - * Sets the value of the unboundColumnsRight property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setUnboundColumnsRight(Long value) { - this.unboundColumnsRight = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_QueryTableRefresh complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_QueryTableRefresh">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="queryTableFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableFields"/>
+ *         <element name="queryTableDeletedFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryTableDeletedFields" minOccurs="0"/>
+ *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="preserveSortFilterLayout" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="fieldIdWrapped" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="headersInLastRefresh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="minimumVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="nextId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="unboundColumnsLeft" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="unboundColumnsRight" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_QueryTableRefresh", propOrder = { + "queryTableFields", + "queryTableDeletedFields", + "sortState", + "extLst" +}) +public class CTQueryTableRefresh implements Child +{ + + @XmlElement(required = true) + protected CTQueryTableFields queryTableFields; + protected CTQueryTableDeletedFields queryTableDeletedFields; + protected CTSortState sortState; + protected CTExtensionList extLst; + @XmlAttribute(name = "preserveSortFilterLayout") + protected Boolean preserveSortFilterLayout; + @XmlAttribute(name = "fieldIdWrapped") + protected Boolean fieldIdWrapped; + @XmlAttribute(name = "headersInLastRefresh") + protected Boolean headersInLastRefresh; + @XmlAttribute(name = "minimumVersion") + @XmlSchemaType(name = "unsignedByte") + protected Short minimumVersion; + @XmlAttribute(name = "nextId") + @XmlSchemaType(name = "unsignedInt") + protected Long nextId; + @XmlAttribute(name = "unboundColumnsLeft") + @XmlSchemaType(name = "unsignedInt") + protected Long unboundColumnsLeft; + @XmlAttribute(name = "unboundColumnsRight") + @XmlSchemaType(name = "unsignedInt") + protected Long unboundColumnsRight; + @XmlTransient + private Object parent; + + /** + * Gets the value of the queryTableFields property. + * + * @return + * possible object is + * {@link CTQueryTableFields } + * + */ + public CTQueryTableFields getQueryTableFields() { + return queryTableFields; + } + + /** + * Sets the value of the queryTableFields property. + * + * @param value + * allowed object is + * {@link CTQueryTableFields } + * + */ + public void setQueryTableFields(CTQueryTableFields value) { + this.queryTableFields = value; + } + + /** + * Gets the value of the queryTableDeletedFields property. + * + * @return + * possible object is + * {@link CTQueryTableDeletedFields } + * + */ + public CTQueryTableDeletedFields getQueryTableDeletedFields() { + return queryTableDeletedFields; + } + + /** + * Sets the value of the queryTableDeletedFields property. + * + * @param value + * allowed object is + * {@link CTQueryTableDeletedFields } + * + */ + public void setQueryTableDeletedFields(CTQueryTableDeletedFields value) { + this.queryTableDeletedFields = value; + } + + /** + * Gets the value of the sortState property. + * + * @return + * possible object is + * {@link CTSortState } + * + */ + public CTSortState getSortState() { + return sortState; + } + + /** + * Sets the value of the sortState property. + * + * @param value + * allowed object is + * {@link CTSortState } + * + */ + public void setSortState(CTSortState value) { + this.sortState = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the preserveSortFilterLayout property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPreserveSortFilterLayout() { + if (preserveSortFilterLayout == null) { + return true; + } else { + return preserveSortFilterLayout; + } + } + + /** + * Sets the value of the preserveSortFilterLayout property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPreserveSortFilterLayout(Boolean value) { + this.preserveSortFilterLayout = value; + } + + /** + * Gets the value of the fieldIdWrapped property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFieldIdWrapped() { + if (fieldIdWrapped == null) { + return false; + } else { + return fieldIdWrapped; + } + } + + /** + * Sets the value of the fieldIdWrapped property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFieldIdWrapped(Boolean value) { + this.fieldIdWrapped = value; + } + + /** + * Gets the value of the headersInLastRefresh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHeadersInLastRefresh() { + if (headersInLastRefresh == null) { + return true; + } else { + return headersInLastRefresh; + } + } + + /** + * Sets the value of the headersInLastRefresh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHeadersInLastRefresh(Boolean value) { + this.headersInLastRefresh = value; + } + + /** + * Gets the value of the minimumVersion property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getMinimumVersion() { + if (minimumVersion == null) { + return ((short) 0); + } else { + return minimumVersion; + } + } + + /** + * Sets the value of the minimumVersion property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setMinimumVersion(Short value) { + this.minimumVersion = value; + } + + /** + * Gets the value of the nextId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getNextId() { + if (nextId == null) { + return 1L; + } else { + return nextId; + } + } + + /** + * Sets the value of the nextId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNextId(Long value) { + this.nextId = value; + } + + /** + * Gets the value of the unboundColumnsLeft property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getUnboundColumnsLeft() { + if (unboundColumnsLeft == null) { + return 0L; + } else { + return unboundColumnsLeft; + } + } + + /** + * Sets the value of the unboundColumnsLeft property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setUnboundColumnsLeft(Long value) { + this.unboundColumnsLeft = value; + } + + /** + * Gets the value of the unboundColumnsRight property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getUnboundColumnsRight() { + if (unboundColumnsRight == null) { + return 0L; + } else { + return unboundColumnsRight; + } + } + + /** + * Sets the value of the unboundColumnsRight property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setUnboundColumnsRight(Long value) { + this.unboundColumnsRight = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRElt.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRElt.java index c1d123183e..3b3421bd89 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRElt.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRElt.java @@ -1,109 +1,121 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RElt complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RElt">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="rPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RPrElt" minOccurs="0"/>
- *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RElt", propOrder = { - "rPr", - "t" -}) -public class CTRElt { - - protected CTRPrElt rPr; - @XmlElement(required = true) - protected String t; - - /** - * Gets the value of the rPr property. - * - * @return - * possible object is - * {@link CTRPrElt } - * - */ - public CTRPrElt getRPr() { - return rPr; - } - - /** - * Sets the value of the rPr property. - * - * @param value - * allowed object is - * {@link CTRPrElt } - * - */ - public void setRPr(CTRPrElt value) { - this.rPr = value; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getT() { - return t; - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setT(String value) { - this.t = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RElt complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RElt">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="rPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RPrElt" minOccurs="0"/>
+ *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Xstring_Whitespace"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RElt", propOrder = { + "rPr", + "t" +}) +public class CTRElt implements Child +{ + + protected CTRPrElt rPr; + @XmlElement(required = true) + protected CTXstringWhitespace t; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rPr property. + * + * @return + * possible object is + * {@link CTRPrElt } + * + */ + public CTRPrElt getRPr() { + return rPr; + } + + /** + * Sets the value of the rPr property. + * + * @param value + * allowed object is + * {@link CTRPrElt } + * + */ + public void setRPr(CTRPrElt value) { + this.rPr = value; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link CTXstringWhitespace } + * + */ + public CTXstringWhitespace getT() { + return t; + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link CTXstringWhitespace } + * + */ + public void setT(CTXstringWhitespace value) { + this.t = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRPrElt.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRPrElt.java index 5e9337efd7..d05285a26e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRPrElt.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRPrElt.java @@ -1,135 +1,147 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RPrElt complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RPrElt">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="rFont" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontName" minOccurs="0"/>
- *         <element name="charset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
- *         <element name="family" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
- *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="strike" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="outline" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="shadow" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="condense" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="extend" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
- *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
- *         <element name="sz" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontSize" minOccurs="0"/>
- *         <element name="u" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UnderlineProperty" minOccurs="0"/>
- *         <element name="vertAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VerticalAlignFontProperty" minOccurs="0"/>
- *         <element name="scheme" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontScheme" minOccurs="0"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RPrElt", propOrder = { - "rFontOrCharsetOrFamily" -}) -public class CTRPrElt { - - @XmlElementRefs({ - @XmlElementRef(name = "i", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "vertAlign", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "sz", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "scheme", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "condense", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "shadow", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "rFont", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "strike", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "b", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "color", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "extend", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "family", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "u", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "charset", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), - @XmlElementRef(name = "outline", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class) - }) - protected List> rFontOrCharsetOrFamily; - - /** - * Gets the value of the rFontOrCharsetOrFamily property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the rFontOrCharsetOrFamily property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRFontOrCharsetOrFamily().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTFontSize }{@code >} - * {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTFontName }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTColor }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >} - * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} - * - * - */ - public List> getRFontOrCharsetOrFamily() { - if (rFontOrCharsetOrFamily == null) { - rFontOrCharsetOrFamily = new ArrayList>(); - } - return this.rFontOrCharsetOrFamily; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RPrElt complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RPrElt">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="rFont" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontName" minOccurs="0"/>
+ *         <element name="charset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
+ *         <element name="family" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
+ *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="strike" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="outline" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="shadow" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="condense" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="extend" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
+ *         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
+ *         <element name="sz" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontSize" minOccurs="0"/>
+ *         <element name="u" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UnderlineProperty" minOccurs="0"/>
+ *         <element name="vertAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VerticalAlignFontProperty" minOccurs="0"/>
+ *         <element name="scheme" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontScheme" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RPrElt", propOrder = { + "rFontOrCharsetOrFamily" +}) +public class CTRPrElt implements Child +{ + + @XmlElementRefs({ + @XmlElementRef(name = "scheme", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "b", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "i", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "u", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "rFont", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "vertAlign", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "outline", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "sz", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "charset", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "strike", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "shadow", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "extend", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "condense", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "family", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class), + @XmlElementRef(name = "color", namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", type = JAXBElement.class) + }) + protected List> rFontOrCharsetOrFamily; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rFontOrCharsetOrFamily property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rFontOrCharsetOrFamily property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRFontOrCharsetOrFamily().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTFontName }{@code >} + * {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTFontSize }{@code >} + * {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >} + * {@link JAXBElement }{@code <}{@link CTColor }{@code >} + * + * + */ + public List> getRFontOrCharsetOrFamily() { + if (rFontOrCharsetOrFamily == null) { + rFontOrCharsetOrFamily = new ArrayList>(); + } + return this.rFontOrCharsetOrFamily; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRangePr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRangePr.java index 4d46825ef5..ae36248a49 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRangePr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRangePr.java @@ -1,287 +1,299 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for CT_RangePr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RangePr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="autoStart" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="autoEnd" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="groupBy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_GroupBy" default="range" />
- *       <attribute name="startNum" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="endNum" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="startDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
- *       <attribute name="endDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
- *       <attribute name="groupInterval" type="{http://www.w3.org/2001/XMLSchema}double" default="1" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RangePr") -public class CTRangePr { - - @XmlAttribute - protected Boolean autoStart; - @XmlAttribute - protected Boolean autoEnd; - @XmlAttribute - protected STGroupBy groupBy; - @XmlAttribute - protected Double startNum; - @XmlAttribute - protected Double endNum; - @XmlAttribute - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar startDate; - @XmlAttribute - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar endDate; - @XmlAttribute - protected Double groupInterval; - - /** - * Gets the value of the autoStart property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoStart() { - if (autoStart == null) { - return true; - } else { - return autoStart; - } - } - - /** - * Sets the value of the autoStart property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoStart(Boolean value) { - this.autoStart = value; - } - - /** - * Gets the value of the autoEnd property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoEnd() { - if (autoEnd == null) { - return true; - } else { - return autoEnd; - } - } - - /** - * Sets the value of the autoEnd property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoEnd(Boolean value) { - this.autoEnd = value; - } - - /** - * Gets the value of the groupBy property. - * - * @return - * possible object is - * {@link STGroupBy } - * - */ - public STGroupBy getGroupBy() { - if (groupBy == null) { - return STGroupBy.RANGE; - } else { - return groupBy; - } - } - - /** - * Sets the value of the groupBy property. - * - * @param value - * allowed object is - * {@link STGroupBy } - * - */ - public void setGroupBy(STGroupBy value) { - this.groupBy = value; - } - - /** - * Gets the value of the startNum property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getStartNum() { - return startNum; - } - - /** - * Sets the value of the startNum property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setStartNum(Double value) { - this.startNum = value; - } - - /** - * Gets the value of the endNum property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getEndNum() { - return endNum; - } - - /** - * Sets the value of the endNum property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setEndNum(Double value) { - this.endNum = value; - } - - /** - * Gets the value of the startDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getStartDate() { - return startDate; - } - - /** - * Sets the value of the startDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setStartDate(XMLGregorianCalendar value) { - this.startDate = value; - } - - /** - * Gets the value of the endDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getEndDate() { - return endDate; - } - - /** - * Sets the value of the endDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setEndDate(XMLGregorianCalendar value) { - this.endDate = value; - } - - /** - * Gets the value of the groupInterval property. - * - * @return - * possible object is - * {@link Double } - * - */ - public double getGroupInterval() { - if (groupInterval == null) { - return 1.0D; - } else { - return groupInterval; - } - } - - /** - * Sets the value of the groupInterval property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setGroupInterval(Double value) { - this.groupInterval = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RangePr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RangePr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="autoStart" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="autoEnd" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="groupBy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_GroupBy" default="range" />
+ *       <attribute name="startNum" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="endNum" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="startDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="endDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="groupInterval" type="{http://www.w3.org/2001/XMLSchema}double" default="1" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RangePr") +public class CTRangePr implements Child +{ + + @XmlAttribute(name = "autoStart") + protected Boolean autoStart; + @XmlAttribute(name = "autoEnd") + protected Boolean autoEnd; + @XmlAttribute(name = "groupBy") + protected STGroupBy groupBy; + @XmlAttribute(name = "startNum") + protected Double startNum; + @XmlAttribute(name = "endNum") + protected Double endNum; + @XmlAttribute(name = "startDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar startDate; + @XmlAttribute(name = "endDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar endDate; + @XmlAttribute(name = "groupInterval") + protected Double groupInterval; + @XmlTransient + private Object parent; + + /** + * Gets the value of the autoStart property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoStart() { + if (autoStart == null) { + return true; + } else { + return autoStart; + } + } + + /** + * Sets the value of the autoStart property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoStart(Boolean value) { + this.autoStart = value; + } + + /** + * Gets the value of the autoEnd property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoEnd() { + if (autoEnd == null) { + return true; + } else { + return autoEnd; + } + } + + /** + * Sets the value of the autoEnd property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoEnd(Boolean value) { + this.autoEnd = value; + } + + /** + * Gets the value of the groupBy property. + * + * @return + * possible object is + * {@link STGroupBy } + * + */ + public STGroupBy getGroupBy() { + if (groupBy == null) { + return STGroupBy.RANGE; + } else { + return groupBy; + } + } + + /** + * Sets the value of the groupBy property. + * + * @param value + * allowed object is + * {@link STGroupBy } + * + */ + public void setGroupBy(STGroupBy value) { + this.groupBy = value; + } + + /** + * Gets the value of the startNum property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getStartNum() { + return startNum; + } + + /** + * Sets the value of the startNum property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setStartNum(Double value) { + this.startNum = value; + } + + /** + * Gets the value of the endNum property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEndNum() { + return endNum; + } + + /** + * Sets the value of the endNum property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEndNum(Double value) { + this.endNum = value; + } + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setStartDate(XMLGregorianCalendar value) { + this.startDate = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setEndDate(XMLGregorianCalendar value) { + this.endDate = value; + } + + /** + * Gets the value of the groupInterval property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getGroupInterval() { + if (groupInterval == null) { + return 1.0D; + } else { + return groupInterval; + } + } + + /** + * Sets the value of the groupInterval property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setGroupInterval(Double value) { + this.groupInterval = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSet.java index f58af941b6..3934aee0d5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSet.java @@ -1,272 +1,284 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RangeSet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RangeSet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="i1" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="i2" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="i3" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="i4" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sheet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RangeSet") -public class CTRangeSet { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long i1; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long i2; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long i3; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long i4; - @XmlAttribute - protected String ref; - @XmlAttribute - protected String name; - @XmlAttribute - protected String sheet; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - - /** - * Gets the value of the i1 property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getI1() { - return i1; - } - - /** - * Sets the value of the i1 property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setI1(Long value) { - this.i1 = value; - } - - /** - * Gets the value of the i2 property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getI2() { - return i2; - } - - /** - * Sets the value of the i2 property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setI2(Long value) { - this.i2 = value; - } - - /** - * Gets the value of the i3 property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getI3() { - return i3; - } - - /** - * Sets the value of the i3 property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setI3(Long value) { - this.i3 = value; - } - - /** - * Gets the value of the i4 property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getI4() { - return i4; - } - - /** - * Sets the value of the i4 property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setI4(Long value) { - this.i4 = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the sheet property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSheet() { - return sheet; - } - - /** - * Sets the value of the sheet property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSheet(String value) { - this.sheet = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RangeSet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RangeSet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="i1" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="i2" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="i3" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="i4" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sheet" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RangeSet") +public class CTRangeSet implements Child +{ + + @XmlAttribute(name = "i1") + @XmlSchemaType(name = "unsignedInt") + protected Long i1; + @XmlAttribute(name = "i2") + @XmlSchemaType(name = "unsignedInt") + protected Long i2; + @XmlAttribute(name = "i3") + @XmlSchemaType(name = "unsignedInt") + protected Long i3; + @XmlAttribute(name = "i4") + @XmlSchemaType(name = "unsignedInt") + protected Long i4; + @XmlAttribute(name = "ref") + protected String ref; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "sheet") + protected String sheet; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the i1 property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getI1() { + return i1; + } + + /** + * Sets the value of the i1 property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setI1(Long value) { + this.i1 = value; + } + + /** + * Gets the value of the i2 property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getI2() { + return i2; + } + + /** + * Sets the value of the i2 property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setI2(Long value) { + this.i2 = value; + } + + /** + * Gets the value of the i3 property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getI3() { + return i3; + } + + /** + * Sets the value of the i3 property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setI3(Long value) { + this.i3 = value; + } + + /** + * Gets the value of the i4 property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getI4() { + return i4; + } + + /** + * Sets the value of the i4 property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setI4(Long value) { + this.i4 = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the sheet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSheet() { + return sheet; + } + + /** + * Sets the value of the sheet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSheet(String value) { + this.sheet = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSets.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSets.java index c6812f4e85..6141a0f1b9 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSets.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRangeSets.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RangeSets complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RangeSets">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="rangeSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RangeSet" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RangeSets", propOrder = { - "rangeSet" -}) -public class CTRangeSets { - - @XmlElement(required = true) - protected List rangeSet; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the rangeSet property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the rangeSet property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRangeSet().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRangeSet } - * - * - */ - public List getRangeSet() { - if (rangeSet == null) { - rangeSet = new ArrayList(); - } - return this.rangeSet; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RangeSets complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RangeSets">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="rangeSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RangeSet" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RangeSets", propOrder = { + "rangeSet" +}) +public class CTRangeSets implements Child +{ + + @XmlElement(required = true) + protected List rangeSet; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rangeSet property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rangeSet property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRangeSet().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTRangeSet } + * + * + */ + public List getRangeSet() { + if (rangeSet == null) { + rangeSet = new ArrayList(); + } + return this.rangeSet; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRecord.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRecord.java index d892af69d2..455a1cbaa3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRecord.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRecord.java @@ -1,110 +1,122 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Record complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Record">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
- *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
- *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Boolean"/>
- *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
- *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
- *         <element name="d" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateTime"/>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Record", propOrder = { - "mOrNOrB" -}) -public class CTRecord { - - @XmlElements({ - @XmlElement(name = "m", type = CTMissing.class), - @XmlElement(name = "d", type = CTDateTime.class), - @XmlElement(name = "n", type = CTNumber.class), - @XmlElement(name = "e", type = CTError.class), - @XmlElement(name = "x", type = CTIndex.class), - @XmlElement(name = "b", type = CTBoolean.class), - @XmlElement(name = "s", type = CTString.class) - }) - protected List mOrNOrB; - - /** - * Gets the value of the mOrNOrB property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mOrNOrB property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMOrNOrB().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTMissing } - * {@link CTDateTime } - * {@link CTNumber } - * {@link CTError } - * {@link CTIndex } - * {@link CTBoolean } - * {@link CTString } - * - * - */ - public List getMOrNOrB() { - if (mOrNOrB == null) { - mOrNOrB = new ArrayList(); - } - return this.mOrNOrB; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Record complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Record">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
+ *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
+ *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Boolean"/>
+ *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
+ *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
+ *         <element name="d" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateTime"/>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Record", propOrder = { + "mOrNOrB" +}) +public class CTRecord implements Child +{ + + @XmlElements({ + @XmlElement(name = "m", type = CTMissing.class), + @XmlElement(name = "n", type = CTNumber.class), + @XmlElement(name = "b", type = CTBoolean.class), + @XmlElement(name = "e", type = CTError.class), + @XmlElement(name = "s", type = CTString.class), + @XmlElement(name = "d", type = CTDateTime.class), + @XmlElement(name = "x", type = CTIndex.class) + }) + protected List mOrNOrB; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mOrNOrB property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mOrNOrB property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMOrNOrB().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMissing } + * {@link CTNumber } + * {@link CTBoolean } + * {@link CTError } + * {@link CTString } + * {@link CTDateTime } + * {@link CTIndex } + * + * + */ + public List getMOrNOrB() { + if (mOrNOrB == null) { + mOrNOrB = new ArrayList(); + } + return this.mOrNOrB; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTReviewed.java b/src/xlsx4j/java/org/xlsx4j/sml/CTReviewed.java index 5fb26678a6..732795e310 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTReviewed.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTReviewed.java @@ -1,72 +1,84 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Reviewed complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Reviewed">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="rId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Reviewed") -public class CTReviewed { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Reviewed complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Reviewed">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="rId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Reviewed") +public class CTReviewed implements Child +{ + + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTReviewedRevisions.java b/src/xlsx4j/java/org/xlsx4j/sml/CTReviewedRevisions.java index 132f306a09..e06b02f572 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTReviewedRevisions.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTReviewedRevisions.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ReviewedRevisions complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ReviewedRevisions">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="reviewed" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Reviewed" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ReviewedRevisions", propOrder = { - "reviewed" -}) -public class CTReviewedRevisions { - - @XmlElement(required = true) - protected List reviewed; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the reviewed property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the reviewed property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getReviewed().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTReviewed } - * - * - */ - public List getReviewed() { - if (reviewed == null) { - reviewed = new ArrayList(); - } - return this.reviewed; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ReviewedRevisions complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ReviewedRevisions">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="reviewed" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Reviewed" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ReviewedRevisions", propOrder = { + "reviewed" +}) +public class CTReviewedRevisions implements Child +{ + + @XmlElement(required = true) + protected List reviewed; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the reviewed property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the reviewed property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getReviewed().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTReviewed } + * + * + */ + public List getReviewed() { + if (reviewed == null) { + reviewed = new ArrayList(); + } + return this.reviewed; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionAutoFormatting.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionAutoFormatting.java index 24f84258b1..83717b357d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionAutoFormatting.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionAutoFormatting.java @@ -1,283 +1,295 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionAutoFormatting complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionAutoFormatting">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_AutoFormat"/>
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionAutoFormatting") -public class CTRevisionAutoFormatting { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long autoFormatId; - @XmlAttribute - protected Boolean applyNumberFormats; - @XmlAttribute - protected Boolean applyBorderFormats; - @XmlAttribute - protected Boolean applyFontFormats; - @XmlAttribute - protected Boolean applyPatternFormats; - @XmlAttribute - protected Boolean applyAlignmentFormats; - @XmlAttribute - protected Boolean applyWidthHeightFormats; - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the autoFormatId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getAutoFormatId() { - return autoFormatId; - } - - /** - * Sets the value of the autoFormatId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setAutoFormatId(Long value) { - this.autoFormatId = value; - } - - /** - * Gets the value of the applyNumberFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyNumberFormats() { - return applyNumberFormats; - } - - /** - * Sets the value of the applyNumberFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyNumberFormats(Boolean value) { - this.applyNumberFormats = value; - } - - /** - * Gets the value of the applyBorderFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyBorderFormats() { - return applyBorderFormats; - } - - /** - * Sets the value of the applyBorderFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyBorderFormats(Boolean value) { - this.applyBorderFormats = value; - } - - /** - * Gets the value of the applyFontFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyFontFormats() { - return applyFontFormats; - } - - /** - * Sets the value of the applyFontFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyFontFormats(Boolean value) { - this.applyFontFormats = value; - } - - /** - * Gets the value of the applyPatternFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyPatternFormats() { - return applyPatternFormats; - } - - /** - * Sets the value of the applyPatternFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyPatternFormats(Boolean value) { - this.applyPatternFormats = value; - } - - /** - * Gets the value of the applyAlignmentFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyAlignmentFormats() { - return applyAlignmentFormats; - } - - /** - * Sets the value of the applyAlignmentFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyAlignmentFormats(Boolean value) { - this.applyAlignmentFormats = value; - } - - /** - * Gets the value of the applyWidthHeightFormats property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyWidthHeightFormats() { - return applyWidthHeightFormats; - } - - /** - * Sets the value of the applyWidthHeightFormats property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyWidthHeightFormats(Boolean value) { - this.applyWidthHeightFormats = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionAutoFormatting complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionAutoFormatting">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_AutoFormat"/>
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionAutoFormatting") +public class CTRevisionAutoFormatting implements Child +{ + + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "autoFormatId") + @XmlSchemaType(name = "unsignedInt") + protected Long autoFormatId; + @XmlAttribute(name = "applyNumberFormats") + protected Boolean applyNumberFormats; + @XmlAttribute(name = "applyBorderFormats") + protected Boolean applyBorderFormats; + @XmlAttribute(name = "applyFontFormats") + protected Boolean applyFontFormats; + @XmlAttribute(name = "applyPatternFormats") + protected Boolean applyPatternFormats; + @XmlAttribute(name = "applyAlignmentFormats") + protected Boolean applyAlignmentFormats; + @XmlAttribute(name = "applyWidthHeightFormats") + protected Boolean applyWidthHeightFormats; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the autoFormatId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAutoFormatId() { + return autoFormatId; + } + + /** + * Sets the value of the autoFormatId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAutoFormatId(Long value) { + this.autoFormatId = value; + } + + /** + * Gets the value of the applyNumberFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyNumberFormats() { + return applyNumberFormats; + } + + /** + * Sets the value of the applyNumberFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyNumberFormats(Boolean value) { + this.applyNumberFormats = value; + } + + /** + * Gets the value of the applyBorderFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyBorderFormats() { + return applyBorderFormats; + } + + /** + * Sets the value of the applyBorderFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyBorderFormats(Boolean value) { + this.applyBorderFormats = value; + } + + /** + * Gets the value of the applyFontFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyFontFormats() { + return applyFontFormats; + } + + /** + * Sets the value of the applyFontFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyFontFormats(Boolean value) { + this.applyFontFormats = value; + } + + /** + * Gets the value of the applyPatternFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyPatternFormats() { + return applyPatternFormats; + } + + /** + * Sets the value of the applyPatternFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyPatternFormats(Boolean value) { + this.applyPatternFormats = value; + } + + /** + * Gets the value of the applyAlignmentFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyAlignmentFormats() { + return applyAlignmentFormats; + } + + /** + * Sets the value of the applyAlignmentFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyAlignmentFormats(Boolean value) { + this.applyAlignmentFormats = value; + } + + /** + * Gets the value of the applyWidthHeightFormats property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyWidthHeightFormats() { + return applyWidthHeightFormats; + } + + /** + * Sets the value of the applyWidthHeightFormats property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyWidthHeightFormats(Boolean value) { + this.applyWidthHeightFormats = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCellChange.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCellChange.java index 020bbb845e..d0adb430d4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCellChange.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCellChange.java @@ -1,598 +1,610 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionCellChange complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionCellChange">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="oc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cell" minOccurs="0"/>
- *         <element name="nc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cell"/>
- *         <element name="odxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" minOccurs="0"/>
- *         <element name="ndxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
- *       <attribute name="sId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="odxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="xfDxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="dxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
- *       <attribute name="quotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="oldQuotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="oldPh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="endOfListFormulaUpdate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionCellChange", propOrder = { - "oc", - "nc", - "odxf", - "ndxf", - "extLst" -}) -public class CTRevisionCellChange { - - protected Cell oc; - @XmlElement(required = true) - protected Cell nc; - protected CTDxf odxf; - protected CTDxf ndxf; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sId; - @XmlAttribute(name = "odxf") - protected Boolean odxfQ; - @XmlAttribute - protected Boolean xfDxf; - @XmlAttribute - protected Boolean s; - @XmlAttribute - protected Boolean dxf; - @XmlAttribute - protected Long numFmtId; - @XmlAttribute - protected Boolean quotePrefix; - @XmlAttribute - protected Boolean oldQuotePrefix; - @XmlAttribute - protected Boolean ph; - @XmlAttribute - protected Boolean oldPh; - @XmlAttribute - protected Boolean endOfListFormulaUpdate; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - @XmlAttribute - protected Boolean ua; - @XmlAttribute - protected Boolean ra; - - /** - * Gets the value of the oc property. - * - * @return - * possible object is - * {@link Cell } - * - */ - public Cell getOc() { - return oc; - } - - /** - * Sets the value of the oc property. - * - * @param value - * allowed object is - * {@link Cell } - * - */ - public void setOc(Cell value) { - this.oc = value; - } - - /** - * Gets the value of the nc property. - * - * @return - * possible object is - * {@link Cell } - * - */ - public Cell getNc() { - return nc; - } - - /** - * Sets the value of the nc property. - * - * @param value - * allowed object is - * {@link Cell } - * - */ - public void setNc(Cell value) { - this.nc = value; - } - - /** - * Gets the value of the odxf property. - * - * @return - * possible object is - * {@link CTDxf } - * - */ - public CTDxf getOdxf() { - return odxf; - } - - /** - * Sets the value of the odxf property. - * - * @param value - * allowed object is - * {@link CTDxf } - * - */ - public void setOdxf(CTDxf value) { - this.odxf = value; - } - - /** - * Gets the value of the ndxf property. - * - * @return - * possible object is - * {@link CTDxf } - * - */ - public CTDxf getNdxf() { - return ndxf; - } - - /** - * Sets the value of the ndxf property. - * - * @param value - * allowed object is - * {@link CTDxf } - * - */ - public void setNdxf(CTDxf value) { - this.ndxf = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the sId property. - * - */ - public long getSId() { - return sId; - } - - /** - * Sets the value of the sId property. - * - */ - public void setSId(long value) { - this.sId = value; - } - - /** - * Gets the value of the odxfQ property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOdxfQ() { - if (odxfQ == null) { - return false; - } else { - return odxfQ; - } - } - - /** - * Sets the value of the odxfQ property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOdxfQ(Boolean value) { - this.odxfQ = value; - } - - /** - * Gets the value of the xfDxf property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isXfDxf() { - if (xfDxf == null) { - return false; - } else { - return xfDxf; - } - } - - /** - * Sets the value of the xfDxf property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setXfDxf(Boolean value) { - this.xfDxf = value; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isS() { - if (s == null) { - return false; - } else { - return s; - } - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setS(Boolean value) { - this.s = value; - } - - /** - * Gets the value of the dxf property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDxf() { - if (dxf == null) { - return false; - } else { - return dxf; - } - } - - /** - * Sets the value of the dxf property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDxf(Boolean value) { - this.dxf = value; - } - - /** - * Gets the value of the numFmtId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getNumFmtId() { - return numFmtId; - } - - /** - * Sets the value of the numFmtId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNumFmtId(Long value) { - this.numFmtId = value; - } - - /** - * Gets the value of the quotePrefix property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isQuotePrefix() { - if (quotePrefix == null) { - return false; - } else { - return quotePrefix; - } - } - - /** - * Sets the value of the quotePrefix property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setQuotePrefix(Boolean value) { - this.quotePrefix = value; - } - - /** - * Gets the value of the oldQuotePrefix property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOldQuotePrefix() { - if (oldQuotePrefix == null) { - return false; - } else { - return oldQuotePrefix; - } - } - - /** - * Sets the value of the oldQuotePrefix property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOldQuotePrefix(Boolean value) { - this.oldQuotePrefix = value; - } - - /** - * Gets the value of the ph property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPh() { - if (ph == null) { - return false; - } else { - return ph; - } - } - - /** - * Sets the value of the ph property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPh(Boolean value) { - this.ph = value; - } - - /** - * Gets the value of the oldPh property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOldPh() { - if (oldPh == null) { - return false; - } else { - return oldPh; - } - } - - /** - * Sets the value of the oldPh property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOldPh(Boolean value) { - this.oldPh = value; - } - - /** - * Gets the value of the endOfListFormulaUpdate property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEndOfListFormulaUpdate() { - if (endOfListFormulaUpdate == null) { - return false; - } else { - return endOfListFormulaUpdate; - } - } - - /** - * Sets the value of the endOfListFormulaUpdate property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEndOfListFormulaUpdate(Boolean value) { - this.endOfListFormulaUpdate = value; - } - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - - /** - * Gets the value of the ua property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUa() { - if (ua == null) { - return false; - } else { - return ua; - } - } - - /** - * Sets the value of the ua property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUa(Boolean value) { - this.ua = value; - } - - /** - * Gets the value of the ra property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRa() { - if (ra == null) { - return false; - } else { - return ra; - } - } - - /** - * Sets the value of the ra property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRa(Boolean value) { - this.ra = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionCellChange complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionCellChange">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="oc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cell" minOccurs="0"/>
+ *         <element name="nc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cell"/>
+ *         <element name="odxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" minOccurs="0"/>
+ *         <element name="ndxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
+ *       <attribute name="sId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="odxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="xfDxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="dxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
+ *       <attribute name="quotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="oldQuotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="oldPh" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="endOfListFormulaUpdate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionCellChange", propOrder = { + "oc", + "nc", + "odxf", + "ndxf", + "extLst" +}) +public class CTRevisionCellChange implements Child +{ + + protected Cell oc; + @XmlElement(required = true) + protected Cell nc; + protected CTDxf odxf; + protected CTDxf ndxf; + protected CTExtensionList extLst; + @XmlAttribute(name = "sId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sId; + @XmlAttribute(name = "odxf") + protected Boolean odxfQ; + @XmlAttribute(name = "xfDxf") + protected Boolean xfDxf; + @XmlAttribute(name = "s") + protected Boolean s; + @XmlAttribute(name = "dxf") + protected Boolean dxf; + @XmlAttribute(name = "numFmtId") + protected Long numFmtId; + @XmlAttribute(name = "quotePrefix") + protected Boolean quotePrefix; + @XmlAttribute(name = "oldQuotePrefix") + protected Boolean oldQuotePrefix; + @XmlAttribute(name = "ph") + protected Boolean ph; + @XmlAttribute(name = "oldPh") + protected Boolean oldPh; + @XmlAttribute(name = "endOfListFormulaUpdate") + protected Boolean endOfListFormulaUpdate; + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlAttribute(name = "ua") + protected Boolean ua; + @XmlAttribute(name = "ra") + protected Boolean ra; + @XmlTransient + private Object parent; + + /** + * Gets the value of the oc property. + * + * @return + * possible object is + * {@link Cell } + * + */ + public Cell getOc() { + return oc; + } + + /** + * Sets the value of the oc property. + * + * @param value + * allowed object is + * {@link Cell } + * + */ + public void setOc(Cell value) { + this.oc = value; + } + + /** + * Gets the value of the nc property. + * + * @return + * possible object is + * {@link Cell } + * + */ + public Cell getNc() { + return nc; + } + + /** + * Sets the value of the nc property. + * + * @param value + * allowed object is + * {@link Cell } + * + */ + public void setNc(Cell value) { + this.nc = value; + } + + /** + * Gets the value of the odxf property. + * + * @return + * possible object is + * {@link CTDxf } + * + */ + public CTDxf getOdxf() { + return odxf; + } + + /** + * Sets the value of the odxf property. + * + * @param value + * allowed object is + * {@link CTDxf } + * + */ + public void setOdxf(CTDxf value) { + this.odxf = value; + } + + /** + * Gets the value of the ndxf property. + * + * @return + * possible object is + * {@link CTDxf } + * + */ + public CTDxf getNdxf() { + return ndxf; + } + + /** + * Sets the value of the ndxf property. + * + * @param value + * allowed object is + * {@link CTDxf } + * + */ + public void setNdxf(CTDxf value) { + this.ndxf = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the sId property. + * + */ + public long getSId() { + return sId; + } + + /** + * Sets the value of the sId property. + * + */ + public void setSId(long value) { + this.sId = value; + } + + /** + * Gets the value of the odxfQ property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOdxfQ() { + if (odxfQ == null) { + return false; + } else { + return odxfQ; + } + } + + /** + * Sets the value of the odxfQ property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOdxfQ(Boolean value) { + this.odxfQ = value; + } + + /** + * Gets the value of the xfDxf property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isXfDxf() { + if (xfDxf == null) { + return false; + } else { + return xfDxf; + } + } + + /** + * Sets the value of the xfDxf property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setXfDxf(Boolean value) { + this.xfDxf = value; + } + + /** + * Gets the value of the s property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isS() { + if (s == null) { + return false; + } else { + return s; + } + } + + /** + * Sets the value of the s property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setS(Boolean value) { + this.s = value; + } + + /** + * Gets the value of the dxf property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDxf() { + if (dxf == null) { + return false; + } else { + return dxf; + } + } + + /** + * Sets the value of the dxf property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDxf(Boolean value) { + this.dxf = value; + } + + /** + * Gets the value of the numFmtId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getNumFmtId() { + return numFmtId; + } + + /** + * Sets the value of the numFmtId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNumFmtId(Long value) { + this.numFmtId = value; + } + + /** + * Gets the value of the quotePrefix property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isQuotePrefix() { + if (quotePrefix == null) { + return false; + } else { + return quotePrefix; + } + } + + /** + * Sets the value of the quotePrefix property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setQuotePrefix(Boolean value) { + this.quotePrefix = value; + } + + /** + * Gets the value of the oldQuotePrefix property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOldQuotePrefix() { + if (oldQuotePrefix == null) { + return false; + } else { + return oldQuotePrefix; + } + } + + /** + * Sets the value of the oldQuotePrefix property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOldQuotePrefix(Boolean value) { + this.oldQuotePrefix = value; + } + + /** + * Gets the value of the ph property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPh() { + if (ph == null) { + return false; + } else { + return ph; + } + } + + /** + * Sets the value of the ph property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPh(Boolean value) { + this.ph = value; + } + + /** + * Gets the value of the oldPh property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOldPh() { + if (oldPh == null) { + return false; + } else { + return oldPh; + } + } + + /** + * Sets the value of the oldPh property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOldPh(Boolean value) { + this.oldPh = value; + } + + /** + * Gets the value of the endOfListFormulaUpdate property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEndOfListFormulaUpdate() { + if (endOfListFormulaUpdate == null) { + return false; + } else { + return endOfListFormulaUpdate; + } + } + + /** + * Sets the value of the endOfListFormulaUpdate property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEndOfListFormulaUpdate(Boolean value) { + this.endOfListFormulaUpdate = value; + } + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the value of the ua property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUa() { + if (ua == null) { + return false; + } else { + return ua; + } + } + + /** + * Sets the value of the ua property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUa(Boolean value) { + this.ua = value; + } + + /** + * Gets the value of the ra property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRa() { + if (ra == null) { + return false; + } else { + return ra; + } + } + + /** + * Sets the value of the ra property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRa(Boolean value) { + this.ra = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionComment.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionComment.java index 9483cca668..1bb7812634 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionComment.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionComment.java @@ -1,375 +1,387 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_RevisionComment complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionComment">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="cell" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="action" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RevisionAction" default="add" />
- *       <attribute name="alwaysShow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="old" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="hiddenRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="hiddenColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="author" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="oldLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="newLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionComment") -public class CTRevisionComment { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute(required = true) - protected String cell; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute - protected STRevisionAction action; - @XmlAttribute - protected Boolean alwaysShow; - @XmlAttribute - protected Boolean old; - @XmlAttribute - protected Boolean hiddenRow; - @XmlAttribute - protected Boolean hiddenColumn; - @XmlAttribute(required = true) - protected String author; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long oldLength; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long newLength; - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the cell property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCell() { - return cell; - } - - /** - * Sets the value of the cell property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCell(String value) { - this.cell = value; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the action property. - * - * @return - * possible object is - * {@link STRevisionAction } - * - */ - public STRevisionAction getAction() { - if (action == null) { - return STRevisionAction.ADD; - } else { - return action; - } - } - - /** - * Sets the value of the action property. - * - * @param value - * allowed object is - * {@link STRevisionAction } - * - */ - public void setAction(STRevisionAction value) { - this.action = value; - } - - /** - * Gets the value of the alwaysShow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAlwaysShow() { - if (alwaysShow == null) { - return false; - } else { - return alwaysShow; - } - } - - /** - * Sets the value of the alwaysShow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAlwaysShow(Boolean value) { - this.alwaysShow = value; - } - - /** - * Gets the value of the old property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOld() { - if (old == null) { - return false; - } else { - return old; - } - } - - /** - * Sets the value of the old property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOld(Boolean value) { - this.old = value; - } - - /** - * Gets the value of the hiddenRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHiddenRow() { - if (hiddenRow == null) { - return false; - } else { - return hiddenRow; - } - } - - /** - * Sets the value of the hiddenRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHiddenRow(Boolean value) { - this.hiddenRow = value; - } - - /** - * Gets the value of the hiddenColumn property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHiddenColumn() { - if (hiddenColumn == null) { - return false; - } else { - return hiddenColumn; - } - } - - /** - * Sets the value of the hiddenColumn property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHiddenColumn(Boolean value) { - this.hiddenColumn = value; - } - - /** - * Gets the value of the author property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAuthor() { - return author; - } - - /** - * Sets the value of the author property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAuthor(String value) { - this.author = value; - } - - /** - * Gets the value of the oldLength property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getOldLength() { - if (oldLength == null) { - return 0L; - } else { - return oldLength; - } - } - - /** - * Sets the value of the oldLength property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setOldLength(Long value) { - this.oldLength = value; - } - - /** - * Gets the value of the newLength property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getNewLength() { - if (newLength == null) { - return 0L; - } else { - return newLength; - } - } - - /** - * Sets the value of the newLength property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNewLength(Long value) { - this.newLength = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionComment complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionComment">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="cell" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="action" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RevisionAction" default="add" />
+ *       <attribute name="alwaysShow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="old" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="hiddenRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="hiddenColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="author" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="oldLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="newLength" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionComment") +public class CTRevisionComment implements Child +{ + + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "cell", required = true) + protected String cell; + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "action") + protected STRevisionAction action; + @XmlAttribute(name = "alwaysShow") + protected Boolean alwaysShow; + @XmlAttribute(name = "old") + protected Boolean old; + @XmlAttribute(name = "hiddenRow") + protected Boolean hiddenRow; + @XmlAttribute(name = "hiddenColumn") + protected Boolean hiddenColumn; + @XmlAttribute(name = "author", required = true) + protected String author; + @XmlAttribute(name = "oldLength") + @XmlSchemaType(name = "unsignedInt") + protected Long oldLength; + @XmlAttribute(name = "newLength") + @XmlSchemaType(name = "unsignedInt") + protected Long newLength; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the cell property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCell() { + return cell; + } + + /** + * Sets the value of the cell property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCell(String value) { + this.cell = value; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the action property. + * + * @return + * possible object is + * {@link STRevisionAction } + * + */ + public STRevisionAction getAction() { + if (action == null) { + return STRevisionAction.ADD; + } else { + return action; + } + } + + /** + * Sets the value of the action property. + * + * @param value + * allowed object is + * {@link STRevisionAction } + * + */ + public void setAction(STRevisionAction value) { + this.action = value; + } + + /** + * Gets the value of the alwaysShow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAlwaysShow() { + if (alwaysShow == null) { + return false; + } else { + return alwaysShow; + } + } + + /** + * Sets the value of the alwaysShow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAlwaysShow(Boolean value) { + this.alwaysShow = value; + } + + /** + * Gets the value of the old property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOld() { + if (old == null) { + return false; + } else { + return old; + } + } + + /** + * Sets the value of the old property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOld(Boolean value) { + this.old = value; + } + + /** + * Gets the value of the hiddenRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHiddenRow() { + if (hiddenRow == null) { + return false; + } else { + return hiddenRow; + } + } + + /** + * Sets the value of the hiddenRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenRow(Boolean value) { + this.hiddenRow = value; + } + + /** + * Gets the value of the hiddenColumn property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHiddenColumn() { + if (hiddenColumn == null) { + return false; + } else { + return hiddenColumn; + } + } + + /** + * Sets the value of the hiddenColumn property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHiddenColumn(Boolean value) { + this.hiddenColumn = value; + } + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the oldLength property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getOldLength() { + if (oldLength == null) { + return 0L; + } else { + return oldLength; + } + } + + /** + * Sets the value of the oldLength property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setOldLength(Long value) { + this.oldLength = value; + } + + /** + * Gets the value of the newLength property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getNewLength() { + if (newLength == null) { + return 0L; + } else { + return newLength; + } + } + + /** + * Sets the value of the newLength property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNewLength(Long value) { + this.newLength = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionConflict.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionConflict.java index e00241ca83..e53d274f3d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionConflict.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionConflict.java @@ -1,160 +1,172 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionConflict complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionConflict">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
- *       <attribute name="sheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionConflict") -public class CTRevisionConflict { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long sheetId; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - @XmlAttribute - protected Boolean ua; - @XmlAttribute - protected Boolean ra; - - /** - * Gets the value of the sheetId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setSheetId(Long value) { - this.sheetId = value; - } - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - - /** - * Gets the value of the ua property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUa() { - if (ua == null) { - return false; - } else { - return ua; - } - } - - /** - * Sets the value of the ua property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUa(Boolean value) { - this.ua = value; - } - - /** - * Gets the value of the ra property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRa() { - if (ra == null) { - return false; - } else { - return ra; - } - } - - /** - * Sets the value of the ra property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRa(Boolean value) { - this.ra = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionConflict complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionConflict">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
+ *       <attribute name="sheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionConflict") +public class CTRevisionConflict implements Child +{ + + @XmlAttribute(name = "sheetId") + @XmlSchemaType(name = "unsignedInt") + protected Long sheetId; + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlAttribute(name = "ua") + protected Boolean ua; + @XmlAttribute(name = "ra") + protected Boolean ra; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSheetId(Long value) { + this.sheetId = value; + } + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the value of the ua property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUa() { + if (ua == null) { + return false; + } else { + return ua; + } + } + + /** + * Sets the value of the ua property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUa(Boolean value) { + this.ua = value; + } + + /** + * Gets the value of the ra property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRa() { + if (ra == null) { + return false; + } else { + return ra; + } + } + + /** + * Sets the value of the ra property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRa(Boolean value) { + this.ra = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCustomView.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCustomView.java index 2ac544c07b..4670abfb0b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCustomView.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionCustomView.java @@ -1,108 +1,120 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_RevisionCustomView complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionCustomView">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="action" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RevisionAction" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionCustomView") -public class CTRevisionCustomView { - - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute(required = true) - protected STRevisionAction action; - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the action property. - * - * @return - * possible object is - * {@link STRevisionAction } - * - */ - public STRevisionAction getAction() { - return action; - } - - /** - * Sets the value of the action property. - * - * @param value - * allowed object is - * {@link STRevisionAction } - * - */ - public void setAction(STRevisionAction value) { - this.action = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionCustomView complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionCustomView">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="action" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RevisionAction" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionCustomView") +public class CTRevisionCustomView implements Child +{ + + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "action", required = true) + protected STRevisionAction action; + @XmlTransient + private Object parent; + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the action property. + * + * @return + * possible object is + * {@link STRevisionAction } + * + */ + public STRevisionAction getAction() { + return action; + } + + /** + * Sets the value of the action property. + * + * @param value + * allowed object is + * {@link STRevisionAction } + * + */ + public void setAction(STRevisionAction value) { + this.action = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionDefinedName.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionDefinedName.java index 548bd38e5d..26ef5e2aac 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionDefinedName.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionDefinedName.java @@ -1,808 +1,820 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionDefinedName complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionDefinedName">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="formula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
- *         <element name="oldFormula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
- *       <attribute name="localSheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="customView" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="function" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="oldFunction" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="functionGroupId" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
- *       <attribute name="oldFunctionGroupId" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
- *       <attribute name="shortcutKey" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
- *       <attribute name="oldShortcutKey" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="oldHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="customMenu" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="oldCustomMenu" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="description" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="oldDescription" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="help" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="oldHelp" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="statusBar" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="oldStatusBar" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="comment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="oldComment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionDefinedName", propOrder = { - "formula", - "oldFormula", - "extLst" -}) -public class CTRevisionDefinedName { - - protected String formula; - protected String oldFormula; - protected CTExtensionList extLst; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long localSheetId; - @XmlAttribute - protected Boolean customView; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected Boolean function; - @XmlAttribute - protected Boolean oldFunction; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short functionGroupId; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short oldFunctionGroupId; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short shortcutKey; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short oldShortcutKey; - @XmlAttribute - protected Boolean hidden; - @XmlAttribute - protected Boolean oldHidden; - @XmlAttribute - protected String customMenu; - @XmlAttribute - protected String oldCustomMenu; - @XmlAttribute - protected String description; - @XmlAttribute - protected String oldDescription; - @XmlAttribute - protected String help; - @XmlAttribute - protected String oldHelp; - @XmlAttribute - protected String statusBar; - @XmlAttribute - protected String oldStatusBar; - @XmlAttribute - protected String comment; - @XmlAttribute - protected String oldComment; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - @XmlAttribute - protected Boolean ua; - @XmlAttribute - protected Boolean ra; - - /** - * Gets the value of the formula property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormula() { - return formula; - } - - /** - * Sets the value of the formula property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormula(String value) { - this.formula = value; - } - - /** - * Gets the value of the oldFormula property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOldFormula() { - return oldFormula; - } - - /** - * Sets the value of the oldFormula property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOldFormula(String value) { - this.oldFormula = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the localSheetId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getLocalSheetId() { - return localSheetId; - } - - /** - * Sets the value of the localSheetId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setLocalSheetId(Long value) { - this.localSheetId = value; - } - - /** - * Gets the value of the customView property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCustomView() { - if (customView == null) { - return false; - } else { - return customView; - } - } - - /** - * Sets the value of the customView property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomView(Boolean value) { - this.customView = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the function property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFunction() { - if (function == null) { - return false; - } else { - return function; - } - } - - /** - * Sets the value of the function property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFunction(Boolean value) { - this.function = value; - } - - /** - * Gets the value of the oldFunction property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOldFunction() { - if (oldFunction == null) { - return false; - } else { - return oldFunction; - } - } - - /** - * Sets the value of the oldFunction property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOldFunction(Boolean value) { - this.oldFunction = value; - } - - /** - * Gets the value of the functionGroupId property. - * - * @return - * possible object is - * {@link Short } - * - */ - public Short getFunctionGroupId() { - return functionGroupId; - } - - /** - * Sets the value of the functionGroupId property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setFunctionGroupId(Short value) { - this.functionGroupId = value; - } - - /** - * Gets the value of the oldFunctionGroupId property. - * - * @return - * possible object is - * {@link Short } - * - */ - public Short getOldFunctionGroupId() { - return oldFunctionGroupId; - } - - /** - * Sets the value of the oldFunctionGroupId property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setOldFunctionGroupId(Short value) { - this.oldFunctionGroupId = value; - } - - /** - * Gets the value of the shortcutKey property. - * - * @return - * possible object is - * {@link Short } - * - */ - public Short getShortcutKey() { - return shortcutKey; - } - - /** - * Sets the value of the shortcutKey property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setShortcutKey(Short value) { - this.shortcutKey = value; - } - - /** - * Gets the value of the oldShortcutKey property. - * - * @return - * possible object is - * {@link Short } - * - */ - public Short getOldShortcutKey() { - return oldShortcutKey; - } - - /** - * Sets the value of the oldShortcutKey property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setOldShortcutKey(Short value) { - this.oldShortcutKey = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHidden() { - if (hidden == null) { - return false; - } else { - return hidden; - } - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - - /** - * Gets the value of the oldHidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isOldHidden() { - if (oldHidden == null) { - return false; - } else { - return oldHidden; - } - } - - /** - * Sets the value of the oldHidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setOldHidden(Boolean value) { - this.oldHidden = value; - } - - /** - * Gets the value of the customMenu property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCustomMenu() { - return customMenu; - } - - /** - * Sets the value of the customMenu property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCustomMenu(String value) { - this.customMenu = value; - } - - /** - * Gets the value of the oldCustomMenu property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOldCustomMenu() { - return oldCustomMenu; - } - - /** - * Sets the value of the oldCustomMenu property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOldCustomMenu(String value) { - this.oldCustomMenu = value; - } - - /** - * Gets the value of the description property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescription(String value) { - this.description = value; - } - - /** - * Gets the value of the oldDescription property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOldDescription() { - return oldDescription; - } - - /** - * Sets the value of the oldDescription property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOldDescription(String value) { - this.oldDescription = value; - } - - /** - * Gets the value of the help property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHelp() { - return help; - } - - /** - * Sets the value of the help property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHelp(String value) { - this.help = value; - } - - /** - * Gets the value of the oldHelp property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOldHelp() { - return oldHelp; - } - - /** - * Sets the value of the oldHelp property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOldHelp(String value) { - this.oldHelp = value; - } - - /** - * Gets the value of the statusBar property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStatusBar() { - return statusBar; - } - - /** - * Sets the value of the statusBar property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStatusBar(String value) { - this.statusBar = value; - } - - /** - * Gets the value of the oldStatusBar property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOldStatusBar() { - return oldStatusBar; - } - - /** - * Sets the value of the oldStatusBar property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOldStatusBar(String value) { - this.oldStatusBar = value; - } - - /** - * Gets the value of the comment property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getComment() { - return comment; - } - - /** - * Sets the value of the comment property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setComment(String value) { - this.comment = value; - } - - /** - * Gets the value of the oldComment property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOldComment() { - return oldComment; - } - - /** - * Sets the value of the oldComment property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOldComment(String value) { - this.oldComment = value; - } - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - - /** - * Gets the value of the ua property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUa() { - if (ua == null) { - return false; - } else { - return ua; - } - } - - /** - * Sets the value of the ua property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUa(Boolean value) { - this.ua = value; - } - - /** - * Gets the value of the ra property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRa() { - if (ra == null) { - return false; - } else { - return ra; - } - } - - /** - * Sets the value of the ra property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRa(Boolean value) { - this.ra = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionDefinedName complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionDefinedName">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="formula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
+ *         <element name="oldFormula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
+ *       <attribute name="localSheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="customView" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="function" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="oldFunction" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="functionGroupId" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
+ *       <attribute name="oldFunctionGroupId" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
+ *       <attribute name="shortcutKey" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
+ *       <attribute name="oldShortcutKey" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="oldHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="customMenu" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="oldCustomMenu" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="description" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="oldDescription" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="help" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="oldHelp" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="statusBar" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="oldStatusBar" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="comment" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="oldComment" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionDefinedName", propOrder = { + "formula", + "oldFormula", + "extLst" +}) +public class CTRevisionDefinedName implements Child +{ + + protected String formula; + protected String oldFormula; + protected CTExtensionList extLst; + @XmlAttribute(name = "localSheetId") + @XmlSchemaType(name = "unsignedInt") + protected Long localSheetId; + @XmlAttribute(name = "customView") + protected Boolean customView; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "function") + protected Boolean function; + @XmlAttribute(name = "oldFunction") + protected Boolean oldFunction; + @XmlAttribute(name = "functionGroupId") + @XmlSchemaType(name = "unsignedByte") + protected Short functionGroupId; + @XmlAttribute(name = "oldFunctionGroupId") + @XmlSchemaType(name = "unsignedByte") + protected Short oldFunctionGroupId; + @XmlAttribute(name = "shortcutKey") + @XmlSchemaType(name = "unsignedByte") + protected Short shortcutKey; + @XmlAttribute(name = "oldShortcutKey") + @XmlSchemaType(name = "unsignedByte") + protected Short oldShortcutKey; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlAttribute(name = "oldHidden") + protected Boolean oldHidden; + @XmlAttribute(name = "customMenu") + protected String customMenu; + @XmlAttribute(name = "oldCustomMenu") + protected String oldCustomMenu; + @XmlAttribute(name = "description") + protected String description; + @XmlAttribute(name = "oldDescription") + protected String oldDescription; + @XmlAttribute(name = "help") + protected String help; + @XmlAttribute(name = "oldHelp") + protected String oldHelp; + @XmlAttribute(name = "statusBar") + protected String statusBar; + @XmlAttribute(name = "oldStatusBar") + protected String oldStatusBar; + @XmlAttribute(name = "comment") + protected String comment; + @XmlAttribute(name = "oldComment") + protected String oldComment; + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlAttribute(name = "ua") + protected Boolean ua; + @XmlAttribute(name = "ra") + protected Boolean ra; + @XmlTransient + private Object parent; + + /** + * Gets the value of the formula property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormula() { + return formula; + } + + /** + * Sets the value of the formula property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormula(String value) { + this.formula = value; + } + + /** + * Gets the value of the oldFormula property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOldFormula() { + return oldFormula; + } + + /** + * Sets the value of the oldFormula property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOldFormula(String value) { + this.oldFormula = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the localSheetId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLocalSheetId() { + return localSheetId; + } + + /** + * Sets the value of the localSheetId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLocalSheetId(Long value) { + this.localSheetId = value; + } + + /** + * Gets the value of the customView property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCustomView() { + if (customView == null) { + return false; + } else { + return customView; + } + } + + /** + * Sets the value of the customView property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomView(Boolean value) { + this.customView = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the function property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFunction() { + if (function == null) { + return false; + } else { + return function; + } + } + + /** + * Sets the value of the function property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFunction(Boolean value) { + this.function = value; + } + + /** + * Gets the value of the oldFunction property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOldFunction() { + if (oldFunction == null) { + return false; + } else { + return oldFunction; + } + } + + /** + * Sets the value of the oldFunction property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOldFunction(Boolean value) { + this.oldFunction = value; + } + + /** + * Gets the value of the functionGroupId property. + * + * @return + * possible object is + * {@link Short } + * + */ + public Short getFunctionGroupId() { + return functionGroupId; + } + + /** + * Sets the value of the functionGroupId property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setFunctionGroupId(Short value) { + this.functionGroupId = value; + } + + /** + * Gets the value of the oldFunctionGroupId property. + * + * @return + * possible object is + * {@link Short } + * + */ + public Short getOldFunctionGroupId() { + return oldFunctionGroupId; + } + + /** + * Sets the value of the oldFunctionGroupId property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setOldFunctionGroupId(Short value) { + this.oldFunctionGroupId = value; + } + + /** + * Gets the value of the shortcutKey property. + * + * @return + * possible object is + * {@link Short } + * + */ + public Short getShortcutKey() { + return shortcutKey; + } + + /** + * Sets the value of the shortcutKey property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setShortcutKey(Short value) { + this.shortcutKey = value; + } + + /** + * Gets the value of the oldShortcutKey property. + * + * @return + * possible object is + * {@link Short } + * + */ + public Short getOldShortcutKey() { + return oldShortcutKey; + } + + /** + * Sets the value of the oldShortcutKey property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setOldShortcutKey(Short value) { + this.oldShortcutKey = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHidden() { + if (hidden == null) { + return false; + } else { + return hidden; + } + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the value of the oldHidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOldHidden() { + if (oldHidden == null) { + return false; + } else { + return oldHidden; + } + } + + /** + * Sets the value of the oldHidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOldHidden(Boolean value) { + this.oldHidden = value; + } + + /** + * Gets the value of the customMenu property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCustomMenu() { + return customMenu; + } + + /** + * Sets the value of the customMenu property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCustomMenu(String value) { + this.customMenu = value; + } + + /** + * Gets the value of the oldCustomMenu property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOldCustomMenu() { + return oldCustomMenu; + } + + /** + * Sets the value of the oldCustomMenu property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOldCustomMenu(String value) { + this.oldCustomMenu = value; + } + + /** + * Gets the value of the description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * Gets the value of the oldDescription property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOldDescription() { + return oldDescription; + } + + /** + * Sets the value of the oldDescription property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOldDescription(String value) { + this.oldDescription = value; + } + + /** + * Gets the value of the help property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHelp() { + return help; + } + + /** + * Sets the value of the help property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHelp(String value) { + this.help = value; + } + + /** + * Gets the value of the oldHelp property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOldHelp() { + return oldHelp; + } + + /** + * Sets the value of the oldHelp property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOldHelp(String value) { + this.oldHelp = value; + } + + /** + * Gets the value of the statusBar property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStatusBar() { + return statusBar; + } + + /** + * Sets the value of the statusBar property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStatusBar(String value) { + this.statusBar = value; + } + + /** + * Gets the value of the oldStatusBar property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOldStatusBar() { + return oldStatusBar; + } + + /** + * Sets the value of the oldStatusBar property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOldStatusBar(String value) { + this.oldStatusBar = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the oldComment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOldComment() { + return oldComment; + } + + /** + * Sets the value of the oldComment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOldComment(String value) { + this.oldComment = value; + } + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the value of the ua property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUa() { + if (ua == null) { + return false; + } else { + return ua; + } + } + + /** + * Sets the value of the ua property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUa(Boolean value) { + this.ua = value; + } + + /** + * Gets the value of the ra property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRa() { + if (ra == null) { + return false; + } else { + return ra; + } + } + + /** + * Sets the value of the ra property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRa(Boolean value) { + this.ra = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionFormatting.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionFormatting.java index 97b90b4cd5..3536e0f623 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionFormatting.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionFormatting.java @@ -1,281 +1,293 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionFormatting complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionFormatting">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="dxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="xfDxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
- *       <attribute name="start" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionFormatting", propOrder = { - "dxf", - "extLst" -}) -public class CTRevisionFormatting { - - protected CTDxf dxf; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute - protected Boolean xfDxf; - @XmlAttribute - protected Boolean s; - @XmlAttribute(required = true) - protected List sqref; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long start; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long length; - - /** - * Gets the value of the dxf property. - * - * @return - * possible object is - * {@link CTDxf } - * - */ - public CTDxf getDxf() { - return dxf; - } - - /** - * Sets the value of the dxf property. - * - * @param value - * allowed object is - * {@link CTDxf } - * - */ - public void setDxf(CTDxf value) { - this.dxf = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the xfDxf property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isXfDxf() { - if (xfDxf == null) { - return false; - } else { - return xfDxf; - } - } - - /** - * Sets the value of the xfDxf property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setXfDxf(Boolean value) { - this.xfDxf = value; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isS() { - if (s == null) { - return false; - } else { - return s; - } - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setS(Boolean value) { - this.s = value; - } - - /** - * Gets the value of the sqref property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sqref property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSqref().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSqref() { - if (sqref == null) { - sqref = new ArrayList(); - } - return this.sqref; - } - - /** - * Gets the value of the start property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getStart() { - return start; - } - - /** - * Sets the value of the start property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setStart(Long value) { - this.start = value; - } - - /** - * Gets the value of the length property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getLength() { - return length; - } - - /** - * Sets the value of the length property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setLength(Long value) { - this.length = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionFormatting complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionFormatting">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dxf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxf" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="xfDxf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
+ *       <attribute name="start" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionFormatting", propOrder = { + "dxf", + "extLst" +}) +public class CTRevisionFormatting implements Child +{ + + protected CTDxf dxf; + protected CTExtensionList extLst; + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "xfDxf") + protected Boolean xfDxf; + @XmlAttribute(name = "s") + protected Boolean s; + @XmlAttribute(name = "sqref", required = true) + protected List sqref; + @XmlAttribute(name = "start") + @XmlSchemaType(name = "unsignedInt") + protected Long start; + @XmlAttribute(name = "length") + @XmlSchemaType(name = "unsignedInt") + protected Long length; + @XmlTransient + private Object parent; + + /** + * Gets the value of the dxf property. + * + * @return + * possible object is + * {@link CTDxf } + * + */ + public CTDxf getDxf() { + return dxf; + } + + /** + * Sets the value of the dxf property. + * + * @param value + * allowed object is + * {@link CTDxf } + * + */ + public void setDxf(CTDxf value) { + this.dxf = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the xfDxf property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isXfDxf() { + if (xfDxf == null) { + return false; + } else { + return xfDxf; + } + } + + /** + * Sets the value of the xfDxf property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setXfDxf(Boolean value) { + this.xfDxf = value; + } + + /** + * Gets the value of the s property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isS() { + if (s == null) { + return false; + } else { + return s; + } + } + + /** + * Sets the value of the s property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setS(Boolean value) { + this.s = value; + } + + /** + * Gets the value of the sqref property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sqref property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSqref().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSqref() { + if (sqref == null) { + sqref = new ArrayList(); + } + return this.sqref; + } + + /** + * Gets the value of the start property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getStart() { + return start; + } + + /** + * Sets the value of the start property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setStart(Long value) { + this.start = value; + } + + /** + * Gets the value of the length property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getLength() { + return length; + } + + /** + * Sets the value of the length property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setLength(Long value) { + this.length = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeader.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeader.java index e966e808c6..f0dc8ec418 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeader.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeader.java @@ -1,327 +1,339 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for CT_RevisionHeader complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionHeader">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetIdMap" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetIdMap"/>
- *         <element name="reviewedList" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ReviewedRevisions" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="dateTime" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
- *       <attribute name="maxSheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="userName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *       <attribute name="minRId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="maxRId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionHeader", propOrder = { - "sheetIdMap", - "reviewedList", - "extLst" -}) -public class CTRevisionHeader { - - @XmlElement(required = true) - protected CTSheetIdMap sheetIdMap; - protected CTReviewedRevisions reviewedList; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute(required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar dateTime; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long maxSheetId; - @XmlAttribute(required = true) - protected String userName; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long minRId; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long maxRId; - - /** - * Gets the value of the sheetIdMap property. - * - * @return - * possible object is - * {@link CTSheetIdMap } - * - */ - public CTSheetIdMap getSheetIdMap() { - return sheetIdMap; - } - - /** - * Sets the value of the sheetIdMap property. - * - * @param value - * allowed object is - * {@link CTSheetIdMap } - * - */ - public void setSheetIdMap(CTSheetIdMap value) { - this.sheetIdMap = value; - } - - /** - * Gets the value of the reviewedList property. - * - * @return - * possible object is - * {@link CTReviewedRevisions } - * - */ - public CTReviewedRevisions getReviewedList() { - return reviewedList; - } - - /** - * Sets the value of the reviewedList property. - * - * @param value - * allowed object is - * {@link CTReviewedRevisions } - * - */ - public void setReviewedList(CTReviewedRevisions value) { - this.reviewedList = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the dateTime property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDateTime() { - return dateTime; - } - - /** - * Sets the value of the dateTime property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDateTime(XMLGregorianCalendar value) { - this.dateTime = value; - } - - /** - * Gets the value of the maxSheetId property. - * - */ - public long getMaxSheetId() { - return maxSheetId; - } - - /** - * Sets the value of the maxSheetId property. - * - */ - public void setMaxSheetId(long value) { - this.maxSheetId = value; - } - - /** - * Gets the value of the userName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUserName() { - return userName; - } - - /** - * Sets the value of the userName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUserName(String value) { - this.userName = value; - } - - /** - * Relationship ID - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - - /** - * Gets the value of the minRId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getMinRId() { - return minRId; - } - - /** - * Sets the value of the minRId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMinRId(Long value) { - this.minRId = value; - } - - /** - * Gets the value of the maxRId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getMaxRId() { - return maxRId; - } - - /** - * Sets the value of the maxRId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setMaxRId(Long value) { - this.maxRId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.datatype.XMLGregorianCalendar; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionHeader complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionHeader">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetIdMap" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetIdMap"/>
+ *         <element name="reviewedList" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ReviewedRevisions" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="dateTime" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="maxSheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="userName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *       <attribute name="minRId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="maxRId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionHeader", propOrder = { + "sheetIdMap", + "reviewedList", + "extLst" +}) +public class CTRevisionHeader implements Child +{ + + @XmlElement(required = true) + protected CTSheetIdMap sheetIdMap; + protected CTReviewedRevisions reviewedList; + protected CTExtensionList extLst; + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "dateTime", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar dateTime; + @XmlAttribute(name = "maxSheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long maxSheetId; + @XmlAttribute(name = "userName", required = true) + protected String userName; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlAttribute(name = "minRId") + @XmlSchemaType(name = "unsignedInt") + protected Long minRId; + @XmlAttribute(name = "maxRId") + @XmlSchemaType(name = "unsignedInt") + protected Long maxRId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetIdMap property. + * + * @return + * possible object is + * {@link CTSheetIdMap } + * + */ + public CTSheetIdMap getSheetIdMap() { + return sheetIdMap; + } + + /** + * Sets the value of the sheetIdMap property. + * + * @param value + * allowed object is + * {@link CTSheetIdMap } + * + */ + public void setSheetIdMap(CTSheetIdMap value) { + this.sheetIdMap = value; + } + + /** + * Gets the value of the reviewedList property. + * + * @return + * possible object is + * {@link CTReviewedRevisions } + * + */ + public CTReviewedRevisions getReviewedList() { + return reviewedList; + } + + /** + * Sets the value of the reviewedList property. + * + * @param value + * allowed object is + * {@link CTReviewedRevisions } + * + */ + public void setReviewedList(CTReviewedRevisions value) { + this.reviewedList = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the dateTime property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getDateTime() { + return dateTime; + } + + /** + * Sets the value of the dateTime property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setDateTime(XMLGregorianCalendar value) { + this.dateTime = value; + } + + /** + * Gets the value of the maxSheetId property. + * + */ + public long getMaxSheetId() { + return maxSheetId; + } + + /** + * Sets the value of the maxSheetId property. + * + */ + public void setMaxSheetId(long value) { + this.maxSheetId = value; + } + + /** + * Gets the value of the userName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUserName() { + return userName; + } + + /** + * Sets the value of the userName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUserName(String value) { + this.userName = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the minRId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMinRId() { + return minRId; + } + + /** + * Sets the value of the minRId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMinRId(Long value) { + this.minRId = value; + } + + /** + * Gets the value of the maxRId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMaxRId() { + return maxRId; + } + + /** + * Sets the value of the maxRId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMaxRId(Long value) { + this.maxRId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeaders.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeaders.java index ca30bad128..4dad88c54a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeaders.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionHeaders.java @@ -1,461 +1,473 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_RevisionHeaders complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionHeaders">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="header" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionHeader" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="lastGuid" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="shared" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="diskRevisions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="history" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="trackRevisions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="exclusive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="revisionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
- *       <attribute name="keepChangeHistory" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="protected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="preserveHistory" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="30" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionHeaders", propOrder = { - "header" -}) -public class CTRevisionHeaders { - - @XmlElement(required = true) - protected List header; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String lastGuid; - @XmlAttribute - protected Boolean shared; - @XmlAttribute - protected Boolean diskRevisions; - @XmlAttribute - protected Boolean history; - @XmlAttribute - protected Boolean trackRevisions; - @XmlAttribute - protected Boolean exclusive; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long revisionId; - @XmlAttribute - protected Integer version; - @XmlAttribute - protected Boolean keepChangeHistory; - @XmlAttribute(name = "protected") - protected Boolean _protected; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long preserveHistory; - - /** - * Gets the value of the header property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the header property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getHeader().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRevisionHeader } - * - * - */ - public List getHeader() { - if (header == null) { - header = new ArrayList(); - } - return this.header; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the lastGuid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLastGuid() { - return lastGuid; - } - - /** - * Sets the value of the lastGuid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLastGuid(String value) { - this.lastGuid = value; - } - - /** - * Gets the value of the shared property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShared() { - if (shared == null) { - return true; - } else { - return shared; - } - } - - /** - * Sets the value of the shared property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShared(Boolean value) { - this.shared = value; - } - - /** - * Gets the value of the diskRevisions property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDiskRevisions() { - if (diskRevisions == null) { - return false; - } else { - return diskRevisions; - } - } - - /** - * Sets the value of the diskRevisions property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDiskRevisions(Boolean value) { - this.diskRevisions = value; - } - - /** - * Gets the value of the history property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHistory() { - if (history == null) { - return true; - } else { - return history; - } - } - - /** - * Sets the value of the history property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHistory(Boolean value) { - this.history = value; - } - - /** - * Gets the value of the trackRevisions property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTrackRevisions() { - if (trackRevisions == null) { - return true; - } else { - return trackRevisions; - } - } - - /** - * Sets the value of the trackRevisions property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTrackRevisions(Boolean value) { - this.trackRevisions = value; - } - - /** - * Gets the value of the exclusive property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isExclusive() { - if (exclusive == null) { - return false; - } else { - return exclusive; - } - } - - /** - * Sets the value of the exclusive property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setExclusive(Boolean value) { - this.exclusive = value; - } - - /** - * Gets the value of the revisionId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getRevisionId() { - if (revisionId == null) { - return 0L; - } else { - return revisionId; - } - } - - /** - * Sets the value of the revisionId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setRevisionId(Long value) { - this.revisionId = value; - } - - /** - * Gets the value of the version property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getVersion() { - if (version == null) { - return 1; - } else { - return version; - } - } - - /** - * Sets the value of the version property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setVersion(Integer value) { - this.version = value; - } - - /** - * Gets the value of the keepChangeHistory property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isKeepChangeHistory() { - if (keepChangeHistory == null) { - return true; - } else { - return keepChangeHistory; - } - } - - /** - * Sets the value of the keepChangeHistory property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setKeepChangeHistory(Boolean value) { - this.keepChangeHistory = value; - } - - /** - * Gets the value of the protected property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isProtected() { - if (_protected == null) { - return false; - } else { - return _protected; - } - } - - /** - * Sets the value of the protected property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setProtected(Boolean value) { - this._protected = value; - } - - /** - * Gets the value of the preserveHistory property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getPreserveHistory() { - if (preserveHistory == null) { - return 30L; - } else { - return preserveHistory; - } - } - - /** - * Sets the value of the preserveHistory property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPreserveHistory(Long value) { - this.preserveHistory = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionHeaders complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionHeaders">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="header" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionHeader" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="lastGuid" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="shared" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="diskRevisions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="history" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="trackRevisions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="exclusive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="revisionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
+ *       <attribute name="keepChangeHistory" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="protected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="preserveHistory" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="30" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionHeaders", propOrder = { + "header" +}) +public class CTRevisionHeaders implements Child +{ + + @XmlElement(required = true) + protected List header; + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "lastGuid") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String lastGuid; + @XmlAttribute(name = "shared") + protected Boolean shared; + @XmlAttribute(name = "diskRevisions") + protected Boolean diskRevisions; + @XmlAttribute(name = "history") + protected Boolean history; + @XmlAttribute(name = "trackRevisions") + protected Boolean trackRevisions; + @XmlAttribute(name = "exclusive") + protected Boolean exclusive; + @XmlAttribute(name = "revisionId") + @XmlSchemaType(name = "unsignedInt") + protected Long revisionId; + @XmlAttribute(name = "version") + protected Integer version; + @XmlAttribute(name = "keepChangeHistory") + protected Boolean keepChangeHistory; + @XmlAttribute(name = "protected") + protected Boolean _protected; + @XmlAttribute(name = "preserveHistory") + @XmlSchemaType(name = "unsignedInt") + protected Long preserveHistory; + @XmlTransient + private Object parent; + + /** + * Gets the value of the header property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the header property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getHeader().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTRevisionHeader } + * + * + */ + public List getHeader() { + if (header == null) { + header = new ArrayList(); + } + return this.header; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the lastGuid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastGuid() { + return lastGuid; + } + + /** + * Sets the value of the lastGuid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastGuid(String value) { + this.lastGuid = value; + } + + /** + * Gets the value of the shared property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShared() { + if (shared == null) { + return true; + } else { + return shared; + } + } + + /** + * Sets the value of the shared property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShared(Boolean value) { + this.shared = value; + } + + /** + * Gets the value of the diskRevisions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDiskRevisions() { + if (diskRevisions == null) { + return false; + } else { + return diskRevisions; + } + } + + /** + * Sets the value of the diskRevisions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDiskRevisions(Boolean value) { + this.diskRevisions = value; + } + + /** + * Gets the value of the history property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHistory() { + if (history == null) { + return true; + } else { + return history; + } + } + + /** + * Sets the value of the history property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHistory(Boolean value) { + this.history = value; + } + + /** + * Gets the value of the trackRevisions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTrackRevisions() { + if (trackRevisions == null) { + return true; + } else { + return trackRevisions; + } + } + + /** + * Sets the value of the trackRevisions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTrackRevisions(Boolean value) { + this.trackRevisions = value; + } + + /** + * Gets the value of the exclusive property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isExclusive() { + if (exclusive == null) { + return false; + } else { + return exclusive; + } + } + + /** + * Sets the value of the exclusive property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setExclusive(Boolean value) { + this.exclusive = value; + } + + /** + * Gets the value of the revisionId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getRevisionId() { + if (revisionId == null) { + return 0L; + } else { + return revisionId; + } + } + + /** + * Sets the value of the revisionId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRevisionId(Long value) { + this.revisionId = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getVersion() { + if (version == null) { + return 1; + } else { + return version; + } + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setVersion(Integer value) { + this.version = value; + } + + /** + * Gets the value of the keepChangeHistory property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isKeepChangeHistory() { + if (keepChangeHistory == null) { + return true; + } else { + return keepChangeHistory; + } + } + + /** + * Sets the value of the keepChangeHistory property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setKeepChangeHistory(Boolean value) { + this.keepChangeHistory = value; + } + + /** + * Gets the value of the protected property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isProtected() { + if (_protected == null) { + return false; + } else { + return _protected; + } + } + + /** + * Sets the value of the protected property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setProtected(Boolean value) { + this._protected = value; + } + + /** + * Gets the value of the preserveHistory property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getPreserveHistory() { + if (preserveHistory == null) { + return 30L; + } else { + return preserveHistory; + } + } + + /** + * Sets the value of the preserveHistory property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPreserveHistory(Long value) { + this.preserveHistory = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionInsertSheet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionInsertSheet.java index eee687e086..2a16775814 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionInsertSheet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionInsertSheet.java @@ -1,199 +1,211 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionInsertSheet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionInsertSheet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sheetPosition" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionInsertSheet") -public class CTRevisionInsertSheet { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetPosition; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - @XmlAttribute - protected Boolean ua; - @XmlAttribute - protected Boolean ra; - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the sheetPosition property. - * - */ - public long getSheetPosition() { - return sheetPosition; - } - - /** - * Sets the value of the sheetPosition property. - * - */ - public void setSheetPosition(long value) { - this.sheetPosition = value; - } - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - - /** - * Gets the value of the ua property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUa() { - if (ua == null) { - return false; - } else { - return ua; - } - } - - /** - * Sets the value of the ua property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUa(Boolean value) { - this.ua = value; - } - - /** - * Gets the value of the ra property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRa() { - if (ra == null) { - return false; - } else { - return ra; - } - } - - /** - * Sets the value of the ra property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRa(Boolean value) { - this.ra = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionInsertSheet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionInsertSheet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sheetPosition" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionInsertSheet") +public class CTRevisionInsertSheet implements Child +{ + + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "sheetPosition", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetPosition; + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlAttribute(name = "ua") + protected Boolean ua; + @XmlAttribute(name = "ra") + protected Boolean ra; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the sheetPosition property. + * + */ + public long getSheetPosition() { + return sheetPosition; + } + + /** + * Sets the value of the sheetPosition property. + * + */ + public void setSheetPosition(long value) { + this.sheetPosition = value; + } + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the value of the ua property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUa() { + if (ua == null) { + return false; + } else { + return ua; + } + } + + /** + * Sets the value of the ua property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUa(Boolean value) { + this.ua = value; + } + + /** + * Gets the value of the ra property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRa() { + if (ra == null) { + return false; + } else { + return ra; + } + } + + /** + * Sets the value of the ra property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRa(Boolean value) { + this.ra = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionMove.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionMove.java index fdcf8b2aa6..9d683d42f0 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionMove.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionMove.java @@ -1,286 +1,298 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionMove complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionMove">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded" minOccurs="0">
- *         <element name="undo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UndoInfo" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rcc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCellChange" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rfmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionFormatting" maxOccurs="unbounded" minOccurs="0"/>
- *       </choice>
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="source" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="destination" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="sourceSheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionMove", propOrder = { - "undoOrRccOrRfmt" -}) -public class CTRevisionMove { - - @XmlElements({ - @XmlElement(name = "undo", type = CTUndoInfo.class), - @XmlElement(name = "rfmt", type = CTRevisionFormatting.class), - @XmlElement(name = "rcc", type = CTRevisionCellChange.class) - }) - protected List undoOrRccOrRfmt; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute(required = true) - protected String source; - @XmlAttribute(required = true) - protected String destination; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long sourceSheetId; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - @XmlAttribute - protected Boolean ua; - @XmlAttribute - protected Boolean ra; - - /** - * Gets the value of the undoOrRccOrRfmt property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the undoOrRccOrRfmt property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUndoOrRccOrRfmt().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTUndoInfo } - * {@link CTRevisionFormatting } - * {@link CTRevisionCellChange } - * - * - */ - public List getUndoOrRccOrRfmt() { - if (undoOrRccOrRfmt == null) { - undoOrRccOrRfmt = new ArrayList(); - } - return this.undoOrRccOrRfmt; - } - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the source property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSource() { - return source; - } - - /** - * Sets the value of the source property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSource(String value) { - this.source = value; - } - - /** - * Gets the value of the destination property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDestination() { - return destination; - } - - /** - * Sets the value of the destination property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDestination(String value) { - this.destination = value; - } - - /** - * Gets the value of the sourceSheetId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getSourceSheetId() { - if (sourceSheetId == null) { - return 0L; - } else { - return sourceSheetId; - } - } - - /** - * Sets the value of the sourceSheetId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setSourceSheetId(Long value) { - this.sourceSheetId = value; - } - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - - /** - * Gets the value of the ua property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUa() { - if (ua == null) { - return false; - } else { - return ua; - } - } - - /** - * Sets the value of the ua property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUa(Boolean value) { - this.ua = value; - } - - /** - * Gets the value of the ra property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRa() { - if (ra == null) { - return false; - } else { - return ra; - } - } - - /** - * Sets the value of the ra property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRa(Boolean value) { - this.ra = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionMove complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionMove">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element name="undo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UndoInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rcc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCellChange" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rfmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionFormatting" maxOccurs="unbounded" minOccurs="0"/>
+ *       </choice>
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="source" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="destination" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="sourceSheetId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionMove", propOrder = { + "undoOrRccOrRfmt" +}) +public class CTRevisionMove implements Child +{ + + @XmlElements({ + @XmlElement(name = "undo", type = CTUndoInfo.class), + @XmlElement(name = "rcc", type = CTRevisionCellChange.class), + @XmlElement(name = "rfmt", type = CTRevisionFormatting.class) + }) + protected List undoOrRccOrRfmt; + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "source", required = true) + protected String source; + @XmlAttribute(name = "destination", required = true) + protected String destination; + @XmlAttribute(name = "sourceSheetId") + @XmlSchemaType(name = "unsignedInt") + protected Long sourceSheetId; + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlAttribute(name = "ua") + protected Boolean ua; + @XmlAttribute(name = "ra") + protected Boolean ra; + @XmlTransient + private Object parent; + + /** + * Gets the value of the undoOrRccOrRfmt property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the undoOrRccOrRfmt property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getUndoOrRccOrRfmt().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTUndoInfo } + * {@link CTRevisionCellChange } + * {@link CTRevisionFormatting } + * + * + */ + public List getUndoOrRccOrRfmt() { + if (undoOrRccOrRfmt == null) { + undoOrRccOrRfmt = new ArrayList(); + } + return this.undoOrRccOrRfmt; + } + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSource(String value) { + this.source = value; + } + + /** + * Gets the value of the destination property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestination() { + return destination; + } + + /** + * Sets the value of the destination property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestination(String value) { + this.destination = value; + } + + /** + * Gets the value of the sourceSheetId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getSourceSheetId() { + if (sourceSheetId == null) { + return 0L; + } else { + return sourceSheetId; + } + } + + /** + * Sets the value of the sourceSheetId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSourceSheetId(Long value) { + this.sourceSheetId = value; + } + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the value of the ua property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUa() { + if (ua == null) { + return false; + } else { + return ua; + } + } + + /** + * Sets the value of the ua property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUa(Boolean value) { + this.ua = value; + } + + /** + * Gets the value of the ra property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRa() { + if (ra == null) { + return false; + } else { + return ra; + } + } + + /** + * Sets the value of the ra property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRa(Boolean value) { + this.ra = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionQueryTableField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionQueryTableField.java index 68420f2521..7a1b28d679 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionQueryTableField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionQueryTableField.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionQueryTableField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionQueryTableField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="fieldId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionQueryTableField") -public class CTRevisionQueryTableField { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long fieldId; - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the fieldId property. - * - */ - public long getFieldId() { - return fieldId; - } - - /** - * Sets the value of the fieldId property. - * - */ - public void setFieldId(long value) { - this.fieldId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionQueryTableField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionQueryTableField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="fieldId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionQueryTableField") +public class CTRevisionQueryTableField implements Child +{ + + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "fieldId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long fieldId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the fieldId property. + * + */ + public long getFieldId() { + return fieldId; + } + + /** + * Sets the value of the fieldId property. + * + */ + public void setFieldId(long value) { + this.fieldId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionRowColumn.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionRowColumn.java index bf5bf842fb..bc6ebfaffa 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionRowColumn.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionRowColumn.java @@ -1,316 +1,328 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionRowColumn complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionRowColumn">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded" minOccurs="0">
- *         <element name="undo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UndoInfo" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rcc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCellChange" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rfmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionFormatting" maxOccurs="unbounded" minOccurs="0"/>
- *       </choice>
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
- *       <attribute name="sId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="eol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="action" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_rwColActionType" />
- *       <attribute name="edge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionRowColumn", propOrder = { - "undoOrRccOrRfmt" -}) -public class CTRevisionRowColumn { - - @XmlElements({ - @XmlElement(name = "rcc", type = CTRevisionCellChange.class), - @XmlElement(name = "rfmt", type = CTRevisionFormatting.class), - @XmlElement(name = "undo", type = CTUndoInfo.class) - }) - protected List undoOrRccOrRfmt; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sId; - @XmlAttribute - protected Boolean eol; - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute(required = true) - protected STRwColActionType action; - @XmlAttribute - protected Boolean edge; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - @XmlAttribute - protected Boolean ua; - @XmlAttribute - protected Boolean ra; - - /** - * Gets the value of the undoOrRccOrRfmt property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the undoOrRccOrRfmt property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUndoOrRccOrRfmt().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRevisionCellChange } - * {@link CTRevisionFormatting } - * {@link CTUndoInfo } - * - * - */ - public List getUndoOrRccOrRfmt() { - if (undoOrRccOrRfmt == null) { - undoOrRccOrRfmt = new ArrayList(); - } - return this.undoOrRccOrRfmt; - } - - /** - * Gets the value of the sId property. - * - */ - public long getSId() { - return sId; - } - - /** - * Sets the value of the sId property. - * - */ - public void setSId(long value) { - this.sId = value; - } - - /** - * Gets the value of the eol property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEol() { - if (eol == null) { - return false; - } else { - return eol; - } - } - - /** - * Sets the value of the eol property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEol(Boolean value) { - this.eol = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the action property. - * - * @return - * possible object is - * {@link STRwColActionType } - * - */ - public STRwColActionType getAction() { - return action; - } - - /** - * Sets the value of the action property. - * - * @param value - * allowed object is - * {@link STRwColActionType } - * - */ - public void setAction(STRwColActionType value) { - this.action = value; - } - - /** - * Gets the value of the edge property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEdge() { - if (edge == null) { - return false; - } else { - return edge; - } - } - - /** - * Sets the value of the edge property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEdge(Boolean value) { - this.edge = value; - } - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - - /** - * Gets the value of the ua property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUa() { - if (ua == null) { - return false; - } else { - return ua; - } - } - - /** - * Sets the value of the ua property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUa(Boolean value) { - this.ua = value; - } - - /** - * Gets the value of the ra property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRa() { - if (ra == null) { - return false; - } else { - return ra; - } - } - - /** - * Sets the value of the ra property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRa(Boolean value) { - this.ra = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionRowColumn complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionRowColumn">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element name="undo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UndoInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rcc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCellChange" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rfmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionFormatting" maxOccurs="unbounded" minOccurs="0"/>
+ *       </choice>
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
+ *       <attribute name="sId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="eol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="action" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_rwColActionType" />
+ *       <attribute name="edge" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionRowColumn", propOrder = { + "undoOrRccOrRfmt" +}) +public class CTRevisionRowColumn implements Child +{ + + @XmlElements({ + @XmlElement(name = "undo", type = CTUndoInfo.class), + @XmlElement(name = "rcc", type = CTRevisionCellChange.class), + @XmlElement(name = "rfmt", type = CTRevisionFormatting.class) + }) + protected List undoOrRccOrRfmt; + @XmlAttribute(name = "sId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sId; + @XmlAttribute(name = "eol") + protected Boolean eol; + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "action", required = true) + protected STRwColActionType action; + @XmlAttribute(name = "edge") + protected Boolean edge; + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlAttribute(name = "ua") + protected Boolean ua; + @XmlAttribute(name = "ra") + protected Boolean ra; + @XmlTransient + private Object parent; + + /** + * Gets the value of the undoOrRccOrRfmt property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the undoOrRccOrRfmt property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getUndoOrRccOrRfmt().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTUndoInfo } + * {@link CTRevisionCellChange } + * {@link CTRevisionFormatting } + * + * + */ + public List getUndoOrRccOrRfmt() { + if (undoOrRccOrRfmt == null) { + undoOrRccOrRfmt = new ArrayList(); + } + return this.undoOrRccOrRfmt; + } + + /** + * Gets the value of the sId property. + * + */ + public long getSId() { + return sId; + } + + /** + * Sets the value of the sId property. + * + */ + public void setSId(long value) { + this.sId = value; + } + + /** + * Gets the value of the eol property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEol() { + if (eol == null) { + return false; + } else { + return eol; + } + } + + /** + * Sets the value of the eol property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEol(Boolean value) { + this.eol = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the action property. + * + * @return + * possible object is + * {@link STRwColActionType } + * + */ + public STRwColActionType getAction() { + return action; + } + + /** + * Sets the value of the action property. + * + * @param value + * allowed object is + * {@link STRwColActionType } + * + */ + public void setAction(STRwColActionType value) { + this.action = value; + } + + /** + * Gets the value of the edge property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEdge() { + if (edge == null) { + return false; + } else { + return edge; + } + } + + /** + * Sets the value of the edge property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEdge(Boolean value) { + this.edge = value; + } + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the value of the ua property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUa() { + if (ua == null) { + return false; + } else { + return ua; + } + } + + /** + * Sets the value of the ua property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUa(Boolean value) { + this.ua = value; + } + + /** + * Gets the value of the ra property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRa() { + if (ra == null) { + return false; + } else { + return ra; + } + } + + /** + * Sets the value of the ra property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRa(Boolean value) { + this.ra = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionSheetRename.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionSheetRename.java index 6bc1667dac..cf0df5a01d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionSheetRename.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisionSheetRename.java @@ -1,236 +1,248 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RevisionSheetRename complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RevisionSheetRename">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="oldName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="newName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RevisionSheetRename", propOrder = { - "extLst" -}) -public class CTRevisionSheetRename { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute(required = true) - protected String oldName; - @XmlAttribute(required = true) - protected String newName; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long rId; - @XmlAttribute - protected Boolean ua; - @XmlAttribute - protected Boolean ra; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the oldName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOldName() { - return oldName; - } - - /** - * Sets the value of the oldName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOldName(String value) { - this.oldName = value; - } - - /** - * Gets the value of the newName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getNewName() { - return newName; - } - - /** - * Sets the value of the newName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setNewName(String value) { - this.newName = value; - } - - /** - * Gets the value of the rId property. - * - */ - public long getRId() { - return rId; - } - - /** - * Sets the value of the rId property. - * - */ - public void setRId(long value) { - this.rId = value; - } - - /** - * Gets the value of the ua property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUa() { - if (ua == null) { - return false; - } else { - return ua; - } - } - - /** - * Sets the value of the ua property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUa(Boolean value) { - this.ua = value; - } - - /** - * Gets the value of the ra property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRa() { - if (ra == null) { - return false; - } else { - return ra; - } - } - - /** - * Sets the value of the ra property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRa(Boolean value) { - this.ra = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RevisionSheetRename complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RevisionSheetRename">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}AG_RevData"/>
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="oldName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="newName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RevisionSheetRename", propOrder = { + "extLst" +}) +public class CTRevisionSheetRename implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "oldName", required = true) + protected String oldName; + @XmlAttribute(name = "newName", required = true) + protected String newName; + @XmlAttribute(name = "rId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long rId; + @XmlAttribute(name = "ua") + protected Boolean ua; + @XmlAttribute(name = "ra") + protected Boolean ra; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the oldName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOldName() { + return oldName; + } + + /** + * Sets the value of the oldName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOldName(String value) { + this.oldName = value; + } + + /** + * Gets the value of the newName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNewName() { + return newName; + } + + /** + * Sets the value of the newName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNewName(String value) { + this.newName = value; + } + + /** + * Gets the value of the rId property. + * + */ + public long getRId() { + return rId; + } + + /** + * Sets the value of the rId property. + * + */ + public void setRId(long value) { + this.rId = value; + } + + /** + * Gets the value of the ua property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUa() { + if (ua == null) { + return false; + } else { + return ua; + } + } + + /** + * Sets the value of the ua property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUa(Boolean value) { + this.ua = value; + } + + /** + * Gets the value of the ra property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRa() { + if (ra == null) { + return false; + } else { + return ra; + } + } + + /** + * Sets the value of the ra property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRa(Boolean value) { + this.ra = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisions.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisions.java index 1bf85899e4..4abaf187b3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRevisions.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRevisions.java @@ -1,125 +1,137 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Revisions complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Revisions">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="rrc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionRowColumn" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rm" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionMove" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rcv" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCustomView" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rsnm" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionSheetRename" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="ris" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionInsertSheet" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rcc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCellChange" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rfmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionFormatting" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="raf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionAutoFormatting" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rdn" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionDefinedName" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rcmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionComment" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rqt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionQueryTableField" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rcft" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionConflict" maxOccurs="unbounded" minOccurs="0"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Revisions", propOrder = { - "rrcOrRmOrRcv" -}) -public class CTRevisions { - - @XmlElements({ - @XmlElement(name = "rm", type = CTRevisionMove.class), - @XmlElement(name = "rrc", type = CTRevisionRowColumn.class), - @XmlElement(name = "rcmt", type = CTRevisionComment.class), - @XmlElement(name = "ris", type = CTRevisionInsertSheet.class), - @XmlElement(name = "rcft", type = CTRevisionConflict.class), - @XmlElement(name = "rsnm", type = CTRevisionSheetRename.class), - @XmlElement(name = "rdn", type = CTRevisionDefinedName.class), - @XmlElement(name = "rqt", type = CTRevisionQueryTableField.class), - @XmlElement(name = "raf", type = CTRevisionAutoFormatting.class), - @XmlElement(name = "rcc", type = CTRevisionCellChange.class), - @XmlElement(name = "rcv", type = CTRevisionCustomView.class), - @XmlElement(name = "rfmt", type = CTRevisionFormatting.class) - }) - protected List rrcOrRmOrRcv; - - /** - * Gets the value of the rrcOrRmOrRcv property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the rrcOrRmOrRcv property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRrcOrRmOrRcv().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRevisionMove } - * {@link CTRevisionRowColumn } - * {@link CTRevisionComment } - * {@link CTRevisionInsertSheet } - * {@link CTRevisionConflict } - * {@link CTRevisionSheetRename } - * {@link CTRevisionDefinedName } - * {@link CTRevisionQueryTableField } - * {@link CTRevisionAutoFormatting } - * {@link CTRevisionCellChange } - * {@link CTRevisionCustomView } - * {@link CTRevisionFormatting } - * - * - */ - public List getRrcOrRmOrRcv() { - if (rrcOrRmOrRcv == null) { - rrcOrRmOrRcv = new ArrayList(); - } - return this.rrcOrRmOrRcv; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Revisions complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Revisions">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="rrc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionRowColumn" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rm" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionMove" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rcv" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCustomView" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rsnm" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionSheetRename" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="ris" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionInsertSheet" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rcc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionCellChange" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rfmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionFormatting" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="raf" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionAutoFormatting" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rdn" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionDefinedName" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rcmt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionComment" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rqt" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionQueryTableField" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rcft" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionConflict" maxOccurs="unbounded" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Revisions", propOrder = { + "rrcOrRmOrRcv" +}) +public class CTRevisions implements Child +{ + + @XmlElements({ + @XmlElement(name = "rrc", type = CTRevisionRowColumn.class), + @XmlElement(name = "rm", type = CTRevisionMove.class), + @XmlElement(name = "rcv", type = CTRevisionCustomView.class), + @XmlElement(name = "rsnm", type = CTRevisionSheetRename.class), + @XmlElement(name = "ris", type = CTRevisionInsertSheet.class), + @XmlElement(name = "rcc", type = CTRevisionCellChange.class), + @XmlElement(name = "rfmt", type = CTRevisionFormatting.class), + @XmlElement(name = "raf", type = CTRevisionAutoFormatting.class), + @XmlElement(name = "rdn", type = CTRevisionDefinedName.class), + @XmlElement(name = "rcmt", type = CTRevisionComment.class), + @XmlElement(name = "rqt", type = CTRevisionQueryTableField.class), + @XmlElement(name = "rcft", type = CTRevisionConflict.class) + }) + protected List rrcOrRmOrRcv; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rrcOrRmOrRcv property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rrcOrRmOrRcv property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRrcOrRmOrRcv().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTRevisionRowColumn } + * {@link CTRevisionMove } + * {@link CTRevisionCustomView } + * {@link CTRevisionSheetRename } + * {@link CTRevisionInsertSheet } + * {@link CTRevisionCellChange } + * {@link CTRevisionFormatting } + * {@link CTRevisionAutoFormatting } + * {@link CTRevisionDefinedName } + * {@link CTRevisionComment } + * {@link CTRevisionQueryTableField } + * {@link CTRevisionConflict } + * + * + */ + public List getRrcOrRmOrRcv() { + if (rrcOrRmOrRcv == null) { + rrcOrRmOrRcv = new ArrayList(); + } + return this.rrcOrRmOrRcv; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRgbColor.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRgbColor.java index 5b555d6dc9..ec444b45c4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRgbColor.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRgbColor.java @@ -1,81 +1,93 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_RgbColor complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RgbColor">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="rgb" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RgbColor") -public class CTRgbColor { - - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] rgb; - - /** - * Gets the value of the rgb property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getRgb() { - return rgb; - } - - /** - * Sets the value of the rgb property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRgb(byte[] value) { - this.rgb = ((byte[]) value); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RgbColor complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RgbColor">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="rgb" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RgbColor") +public class CTRgbColor implements Child +{ + + @XmlAttribute(name = "rgb") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] rgb; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rgb property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getRgb() { + return rgb; + } + + /** + * Sets the value of the rgb property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRgb(byte[] value) { + this.rgb = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRowFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRowFields.java index 38fd69f482..b2191662d5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRowFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRowFields.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RowFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RowFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="field" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Field" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RowFields", propOrder = { - "field" -}) -public class CTRowFields { - - @XmlElement(required = true) - protected List field; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the field property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the field property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTField } - * - * - */ - public List getField() { - if (field == null) { - field = new ArrayList(); - } - return this.field; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 0L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RowFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RowFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="field" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Field" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RowFields", propOrder = { + "field" +}) +public class CTRowFields implements Child +{ + + @XmlElement(required = true) + protected List field; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the field property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the field property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTField } + * + * + */ + public List getField() { + if (field == null) { + field = new ArrayList(); + } + return this.field; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 0L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRowHierarchiesUsage.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRowHierarchiesUsage.java index da322ed7aa..98c5d5d21e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRowHierarchiesUsage.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRowHierarchiesUsage.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_RowHierarchiesUsage complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_RowHierarchiesUsage">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="rowHierarchyUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HierarchyUsage" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_RowHierarchiesUsage", propOrder = { - "rowHierarchyUsage" -}) -public class CTRowHierarchiesUsage { - - @XmlElement(required = true) - protected List rowHierarchyUsage; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the rowHierarchyUsage property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the rowHierarchyUsage property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRowHierarchyUsage().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTHierarchyUsage } - * - * - */ - public List getRowHierarchyUsage() { - if (rowHierarchyUsage == null) { - rowHierarchyUsage = new ArrayList(); - } - return this.rowHierarchyUsage; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_RowHierarchiesUsage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_RowHierarchiesUsage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="rowHierarchyUsage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HierarchyUsage" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_RowHierarchiesUsage", propOrder = { + "rowHierarchyUsage" +}) +public class CTRowHierarchiesUsage implements Child +{ + + @XmlElement(required = true) + protected List rowHierarchyUsage; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the rowHierarchyUsage property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rowHierarchyUsage property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRowHierarchyUsage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTHierarchyUsage } + * + * + */ + public List getRowHierarchyUsage() { + if (rowHierarchyUsage == null) { + rowHierarchyUsage = new ArrayList(); + } + return this.rowHierarchyUsage; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRowItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRowItems.java index 36543562ab..3e1b1e95b6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRowItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRowItems.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_rowItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_rowItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_I" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_rowItems", propOrder = { - "i" -}) -public class CTRowItems { - - @XmlElement(required = true) - protected List i; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the i property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the i property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getI().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTI } - * - * - */ - public List getI() { - if (i == null) { - i = new ArrayList(); - } - return this.i; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_rowItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_rowItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_I" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_rowItems", propOrder = { + "i" +}) +public class CTRowItems implements Child +{ + + @XmlElement(required = true) + protected List i; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the i property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the i property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getI().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTI } + * + * + */ + public List getI() { + if (i == null) { + i = new ArrayList(); + } + return this.i; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTRst.java b/src/xlsx4j/java/org/xlsx4j/sml/CTRst.java index 60eb97ac7b..b79c9084ce 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTRst.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTRst.java @@ -1,173 +1,185 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Rst complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Rst">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *         <element name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RElt" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="rPh" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticRun" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="phoneticPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticPr" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Rst", propOrder = { - "t", - "r", - "rPh", - "phoneticPr" -}) -public class CTRst { - - protected String t; - protected List r; - protected List rPh; - protected CTPhoneticPr phoneticPr; - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getT() { - return t; - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setT(String value) { - this.t = value; - } - - /** - * Gets the value of the r property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the r property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getR().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRElt } - * - * - */ - public List getR() { - if (r == null) { - r = new ArrayList(); - } - return this.r; - } - - /** - * Gets the value of the rPh property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the rPh property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRPh().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPhoneticRun } - * - * - */ - public List getRPh() { - if (rPh == null) { - rPh = new ArrayList(); - } - return this.rPh; - } - - /** - * Gets the value of the phoneticPr property. - * - * @return - * possible object is - * {@link CTPhoneticPr } - * - */ - public CTPhoneticPr getPhoneticPr() { - return phoneticPr; - } - - /** - * Sets the value of the phoneticPr property. - * - * @param value - * allowed object is - * {@link CTPhoneticPr } - * - */ - public void setPhoneticPr(CTPhoneticPr value) { - this.phoneticPr = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Rst complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Rst">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Xstring_Whitespace" minOccurs="0"/>
+ *         <element name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RElt" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="rPh" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticRun" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="phoneticPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticPr" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Rst", propOrder = { + "t", + "r", + "rPh", + "phoneticPr" +}) +public class CTRst implements Child +{ + + protected CTXstringWhitespace t; + protected List r; + protected List rPh; + protected CTPhoneticPr phoneticPr; + @XmlTransient + private Object parent; + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link CTXstringWhitespace } + * + */ + public CTXstringWhitespace getT() { + return t; + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link CTXstringWhitespace } + * + */ + public void setT(CTXstringWhitespace value) { + this.t = value; + } + + /** + * Gets the value of the r property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the r property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getR().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTRElt } + * + * + */ + public List getR() { + if (r == null) { + r = new ArrayList(); + } + return this.r; + } + + /** + * Gets the value of the rPh property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the rPh property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRPh().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPhoneticRun } + * + * + */ + public List getRPh() { + if (rPh == null) { + rPh = new ArrayList(); + } + return this.rPh; + } + + /** + * Gets the value of the phoneticPr property. + * + * @return + * possible object is + * {@link CTPhoneticPr } + * + */ + public CTPhoneticPr getPhoneticPr() { + return phoneticPr; + } + + /** + * Sets the value of the phoneticPr property. + * + * @param value + * allowed object is + * {@link CTPhoneticPr } + * + */ + public void setPhoneticPr(CTPhoneticPr value) { + this.phoneticPr = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTScenario.java b/src/xlsx4j/java/org/xlsx4j/sml/CTScenario.java index bdadde6fa1..77a2efa467 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTScenario.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTScenario.java @@ -1,262 +1,274 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Scenario complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Scenario">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="inputCells" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_InputCells" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="user" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="comment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Scenario", propOrder = { - "inputCells" -}) -public class CTScenario { - - @XmlElement(required = true) - protected List inputCells; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected Boolean locked; - @XmlAttribute - protected Boolean hidden; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - protected String user; - @XmlAttribute - protected String comment; - - /** - * Gets the value of the inputCells property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the inputCells property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getInputCells().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTInputCells } - * - * - */ - public List getInputCells() { - if (inputCells == null) { - inputCells = new ArrayList(); - } - return this.inputCells; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the locked property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLocked() { - if (locked == null) { - return false; - } else { - return locked; - } - } - - /** - * Sets the value of the locked property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLocked(Boolean value) { - this.locked = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHidden() { - if (hidden == null) { - return false; - } else { - return hidden; - } - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the user property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUser() { - return user; - } - - /** - * Sets the value of the user property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUser(String value) { - this.user = value; - } - - /** - * Gets the value of the comment property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getComment() { - return comment; - } - - /** - * Sets the value of the comment property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setComment(String value) { - this.comment = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Scenario complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Scenario">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="inputCells" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_InputCells" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="user" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="comment" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Scenario", propOrder = { + "inputCells" +}) +public class CTScenario implements Child +{ + + @XmlElement(required = true) + protected List inputCells; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "locked") + protected Boolean locked; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "user") + protected String user; + @XmlAttribute(name = "comment") + protected String comment; + @XmlTransient + private Object parent; + + /** + * Gets the value of the inputCells property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the inputCells property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getInputCells().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTInputCells } + * + * + */ + public List getInputCells() { + if (inputCells == null) { + inputCells = new ArrayList(); + } + return this.inputCells; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the locked property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLocked() { + if (locked == null) { + return false; + } else { + return locked; + } + } + + /** + * Sets the value of the locked property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocked(Boolean value) { + this.locked = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHidden() { + if (hidden == null) { + return false; + } else { + return hidden; + } + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the user property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUser() { + return user; + } + + /** + * Sets the value of the user property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUser(String value) { + this.user = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTScenarios.java b/src/xlsx4j/java/org/xlsx4j/sml/CTScenarios.java index 0577ddfce1..395de1d66c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTScenarios.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTScenarios.java @@ -1,179 +1,191 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Scenarios complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Scenarios">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="scenario" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Scenario" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="current" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="show" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="sqref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Scenarios", propOrder = { - "scenario" -}) -public class CTScenarios { - - @XmlElement(required = true) - protected List scenario; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long current; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long show; - @XmlAttribute - protected List sqref; - - /** - * Gets the value of the scenario property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the scenario property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getScenario().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTScenario } - * - * - */ - public List getScenario() { - if (scenario == null) { - scenario = new ArrayList(); - } - return this.scenario; - } - - /** - * Gets the value of the current property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCurrent() { - return current; - } - - /** - * Sets the value of the current property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCurrent(Long value) { - this.current = value; - } - - /** - * Gets the value of the show property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getShow() { - return show; - } - - /** - * Sets the value of the show property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setShow(Long value) { - this.show = value; - } - - /** - * Gets the value of the sqref property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sqref property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSqref().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSqref() { - if (sqref == null) { - sqref = new ArrayList(); - } - return this.sqref; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Scenarios complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Scenarios">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="scenario" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Scenario" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="current" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="show" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="sqref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Scenarios", propOrder = { + "scenario" +}) +public class CTScenarios implements Child +{ + + @XmlElement(required = true) + protected List scenario; + @XmlAttribute(name = "current") + @XmlSchemaType(name = "unsignedInt") + protected Long current; + @XmlAttribute(name = "show") + @XmlSchemaType(name = "unsignedInt") + protected Long show; + @XmlAttribute(name = "sqref") + protected List sqref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the scenario property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the scenario property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getScenario().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTScenario } + * + * + */ + public List getScenario() { + if (scenario == null) { + scenario = new ArrayList(); + } + return this.scenario; + } + + /** + * Gets the value of the current property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCurrent() { + return current; + } + + /** + * Sets the value of the current property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCurrent(Long value) { + this.current = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setShow(Long value) { + this.show = value; + } + + /** + * Gets the value of the sqref property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sqref property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSqref().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSqref() { + if (sqref == null) { + sqref = new ArrayList(); + } + return this.sqref; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSchema.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSchema.java index 8d7054047b..668d54325e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSchema.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSchema.java @@ -1,164 +1,218 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAnyElement; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Schema complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Schema">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <any/>
- *       </sequence>
- *       <attribute name="ID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="SchemaRef" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="Namespace" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Schema", propOrder = { - "any" -}) -public class CTSchema { - - @XmlAnyElement(lax = true) - protected Object any; - @XmlAttribute(name = "ID", required = true) - protected String id; - @XmlAttribute(name = "SchemaRef") - protected String schemaRef; - @XmlAttribute(name = "Namespace") - protected String namespace; - - /** - * Gets the value of the any property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getAny() { - return any; - } - - /** - * Sets the value of the any property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setAny(Object value) { - this.any = value; - } - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getID() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setID(String value) { - this.id = value; - } - - /** - * Gets the value of the schemaRef property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemaRef() { - return schemaRef; - } - - /** - * Sets the value of the schemaRef property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemaRef(String value) { - this.schemaRef = value; - } - - /** - * Gets the value of the namespace property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getNamespace() { - return namespace; - } - - /** - * Sets the value of the namespace property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setNamespace(String value) { - this.namespace = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Schema complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Schema">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <any/>
+ *       </sequence>
+ *       <attribute name="ID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="SchemaRef" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="Namespace" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="SchemaLanguage" type="{http://www.w3.org/2001/XMLSchema}token" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Schema", propOrder = { + "content" +}) +public class CTSchema implements Child +{ + + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + @XmlAttribute(name = "ID", required = true) + protected String id; + @XmlAttribute(name = "SchemaRef") + protected String schemaRef; + @XmlAttribute(name = "Namespace") + protected String namespace; + @XmlAttribute(name = "SchemaLanguage") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemaLanguage; + @XmlTransient + private Object parent; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Object } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the schemaRef property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemaRef() { + return schemaRef; + } + + /** + * Sets the value of the schemaRef property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemaRef(String value) { + this.schemaRef = value; + } + + /** + * Gets the value of the namespace property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNamespace() { + return namespace; + } + + /** + * Sets the value of the namespace property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNamespace(String value) { + this.namespace = value; + } + + /** + * Gets the value of the schemaLanguage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemaLanguage() { + return schemaLanguage; + } + + /** + * Sets the value of the schemaLanguage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemaLanguage(String value) { + this.schemaLanguage = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSelection.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSelection.java index 0fb7b308ea..a8732d4872 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSelection.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSelection.java @@ -1,176 +1,188 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Selection complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Selection">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Pane" default="topLeft" />
- *       <attribute name="activeCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="activeCellId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="sqref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" default="A1" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Selection") -public class CTSelection { - - @XmlAttribute - protected STPane pane; - @XmlAttribute - protected String activeCell; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long activeCellId; - @XmlAttribute - protected List sqref; - - /** - * Gets the value of the pane property. - * - * @return - * possible object is - * {@link STPane } - * - */ - public STPane getPane() { - if (pane == null) { - return STPane.TOP_LEFT; - } else { - return pane; - } - } - - /** - * Sets the value of the pane property. - * - * @param value - * allowed object is - * {@link STPane } - * - */ - public void setPane(STPane value) { - this.pane = value; - } - - /** - * Gets the value of the activeCell property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getActiveCell() { - return activeCell; - } - - /** - * Sets the value of the activeCell property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setActiveCell(String value) { - this.activeCell = value; - } - - /** - * Gets the value of the activeCellId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getActiveCellId() { - if (activeCellId == null) { - return 0L; - } else { - return activeCellId; - } - } - - /** - * Sets the value of the activeCellId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setActiveCellId(Long value) { - this.activeCellId = value; - } - - /** - * Gets the value of the sqref property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sqref property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSqref().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSqref() { - if (sqref == null) { - sqref = new ArrayList(); - } - return this.sqref; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Selection complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Selection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Pane" default="topLeft" />
+ *       <attribute name="activeCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="activeCellId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="sqref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" default="A1" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Selection") +public class CTSelection implements Child +{ + + @XmlAttribute(name = "pane") + protected STPane pane; + @XmlAttribute(name = "activeCell") + protected String activeCell; + @XmlAttribute(name = "activeCellId") + @XmlSchemaType(name = "unsignedInt") + protected Long activeCellId; + @XmlAttribute(name = "sqref") + protected List sqref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pane property. + * + * @return + * possible object is + * {@link STPane } + * + */ + public STPane getPane() { + if (pane == null) { + return STPane.TOP_LEFT; + } else { + return pane; + } + } + + /** + * Sets the value of the pane property. + * + * @param value + * allowed object is + * {@link STPane } + * + */ + public void setPane(STPane value) { + this.pane = value; + } + + /** + * Gets the value of the activeCell property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActiveCell() { + return activeCell; + } + + /** + * Sets the value of the activeCell property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActiveCell(String value) { + this.activeCell = value; + } + + /** + * Gets the value of the activeCellId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getActiveCellId() { + if (activeCellId == null) { + return 0L; + } else { + return activeCellId; + } + } + + /** + * Sets the value of the activeCellId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setActiveCellId(Long value) { + this.activeCellId = value; + } + + /** + * Gets the value of the sqref property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sqref property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSqref().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSqref() { + if (sqref == null) { + sqref = new ArrayList(); + } + return this.sqref; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormat.java b/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormat.java index 962e859824..d0b5a6c828 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormat.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormat.java @@ -1,105 +1,117 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ServerFormat complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ServerFormat">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="culture" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="format" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ServerFormat") -public class CTServerFormat { - - @XmlAttribute - protected String culture; - @XmlAttribute - protected String format; - - /** - * Gets the value of the culture property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCulture() { - return culture; - } - - /** - * Sets the value of the culture property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCulture(String value) { - this.culture = value; - } - - /** - * Gets the value of the format property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormat() { - return format; - } - - /** - * Sets the value of the format property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormat(String value) { - this.format = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ServerFormat complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ServerFormat">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="culture" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="format" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ServerFormat") +public class CTServerFormat implements Child +{ + + @XmlAttribute(name = "culture") + protected String culture; + @XmlAttribute(name = "format") + protected String format; + @XmlTransient + private Object parent; + + /** + * Gets the value of the culture property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCulture() { + return culture; + } + + /** + * Sets the value of the culture property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCulture(String value) { + this.culture = value; + } + + /** + * Gets the value of the format property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormat() { + return format; + } + + /** + * Sets the value of the format property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormat(String value) { + this.format = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormats.java b/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormats.java index 24da84540f..6535c6f5e2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormats.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTServerFormats.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_ServerFormats complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_ServerFormats">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="serverFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ServerFormat" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_ServerFormats", propOrder = { - "serverFormat" -}) -public class CTServerFormats { - - protected List serverFormat; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the serverFormat property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the serverFormat property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getServerFormat().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTServerFormat } - * - * - */ - public List getServerFormat() { - if (serverFormat == null) { - serverFormat = new ArrayList(); - } - return this.serverFormat; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_ServerFormats complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_ServerFormats">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="serverFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ServerFormat" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_ServerFormats", propOrder = { + "serverFormat" +}) +public class CTServerFormats implements Child +{ + + protected List serverFormat; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the serverFormat property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the serverFormat property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getServerFormat().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTServerFormat } + * + * + */ + public List getServerFormat() { + if (serverFormat == null) { + serverFormat = new ArrayList(); + } + return this.serverFormat; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSet.java index 6d22dfff20..23df8a57a7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSet.java @@ -1,252 +1,264 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Set complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Set">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="sortByTuple" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="maxRank" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="setDefinition" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sortType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SortType" default="none" />
- *       <attribute name="queryFailed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Set", propOrder = { - "tpls", - "sortByTuple" -}) -public class CTSet { - - protected List tpls; - protected CTTuples sortByTuple; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute(required = true) - protected int maxRank; - @XmlAttribute(required = true) - protected String setDefinition; - @XmlAttribute - protected STSortType sortType; - @XmlAttribute - protected Boolean queryFailed; - - /** - * Gets the value of the tpls property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tpls property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTpls().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTuples } - * - * - */ - public List getTpls() { - if (tpls == null) { - tpls = new ArrayList(); - } - return this.tpls; - } - - /** - * Gets the value of the sortByTuple property. - * - * @return - * possible object is - * {@link CTTuples } - * - */ - public CTTuples getSortByTuple() { - return sortByTuple; - } - - /** - * Sets the value of the sortByTuple property. - * - * @param value - * allowed object is - * {@link CTTuples } - * - */ - public void setSortByTuple(CTTuples value) { - this.sortByTuple = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the maxRank property. - * - */ - public int getMaxRank() { - return maxRank; - } - - /** - * Sets the value of the maxRank property. - * - */ - public void setMaxRank(int value) { - this.maxRank = value; - } - - /** - * Gets the value of the setDefinition property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSetDefinition() { - return setDefinition; - } - - /** - * Sets the value of the setDefinition property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSetDefinition(String value) { - this.setDefinition = value; - } - - /** - * Gets the value of the sortType property. - * - * @return - * possible object is - * {@link STSortType } - * - */ - public STSortType getSortType() { - if (sortType == null) { - return STSortType.NONE; - } else { - return sortType; - } - } - - /** - * Sets the value of the sortType property. - * - * @param value - * allowed object is - * {@link STSortType } - * - */ - public void setSortType(STSortType value) { - this.sortType = value; - } - - /** - * Gets the value of the queryFailed property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isQueryFailed() { - if (queryFailed == null) { - return false; - } else { - return queryFailed; - } - } - - /** - * Sets the value of the queryFailed property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setQueryFailed(Boolean value) { - this.queryFailed = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Set complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Set">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="sortByTuple" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="maxRank" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="setDefinition" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sortType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SortType" default="none" />
+ *       <attribute name="queryFailed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Set", propOrder = { + "tpls", + "sortByTuple" +}) +public class CTSet implements Child +{ + + protected List tpls; + protected CTTuples sortByTuple; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "maxRank", required = true) + protected int maxRank; + @XmlAttribute(name = "setDefinition", required = true) + protected String setDefinition; + @XmlAttribute(name = "sortType") + protected STSortType sortType; + @XmlAttribute(name = "queryFailed") + protected Boolean queryFailed; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tpls property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tpls property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTpls().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTuples } + * + * + */ + public List getTpls() { + if (tpls == null) { + tpls = new ArrayList(); + } + return this.tpls; + } + + /** + * Gets the value of the sortByTuple property. + * + * @return + * possible object is + * {@link CTTuples } + * + */ + public CTTuples getSortByTuple() { + return sortByTuple; + } + + /** + * Sets the value of the sortByTuple property. + * + * @param value + * allowed object is + * {@link CTTuples } + * + */ + public void setSortByTuple(CTTuples value) { + this.sortByTuple = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the maxRank property. + * + */ + public int getMaxRank() { + return maxRank; + } + + /** + * Sets the value of the maxRank property. + * + */ + public void setMaxRank(int value) { + this.maxRank = value; + } + + /** + * Gets the value of the setDefinition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSetDefinition() { + return setDefinition; + } + + /** + * Sets the value of the setDefinition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSetDefinition(String value) { + this.setDefinition = value; + } + + /** + * Gets the value of the sortType property. + * + * @return + * possible object is + * {@link STSortType } + * + */ + public STSortType getSortType() { + if (sortType == null) { + return STSortType.NONE; + } else { + return sortType; + } + } + + /** + * Sets the value of the sortType property. + * + * @param value + * allowed object is + * {@link STSortType } + * + */ + public void setSortType(STSortType value) { + this.sortType = value; + } + + /** + * Gets the value of the queryFailed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isQueryFailed() { + if (queryFailed == null) { + return false; + } else { + return queryFailed; + } + } + + /** + * Sets the value of the queryFailed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setQueryFailed(Boolean value) { + this.queryFailed = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSets.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSets.java index 51cce2d316..e71cb8d0fd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSets.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSets.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Sets complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Sets">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="set" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Set" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Sets", propOrder = { - "set" -}) -public class CTSets { - - @XmlElement(required = true) - protected List set; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the set property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the set property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSet().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSet } - * - * - */ - public List getSet() { - if (set == null) { - set = new ArrayList(); - } - return this.set; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Sets complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Sets">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="set" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Set" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Sets", propOrder = { + "set" +}) +public class CTSets implements Child +{ + + @XmlElement(required = true) + protected List set; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the set property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the set property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSet().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSet } + * + * + */ + public List getSet() { + if (set == null) { + set = new ArrayList(); + } + return this.set; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSharedItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSharedItems.java index cbd4254a30..5c4daf2b95 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSharedItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSharedItems.java @@ -1,527 +1,539 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for CT_SharedItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SharedItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded" minOccurs="0">
- *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
- *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
- *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Boolean"/>
- *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
- *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
- *         <element name="d" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateTime"/>
- *       </choice>
- *       <attribute name="containsSemiMixedTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="containsNonDate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="containsDate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="containsString" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="containsBlank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="containsMixedTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="containsNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="containsInteger" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="minValue" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="maxValue" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="minDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
- *       <attribute name="maxDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="longText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SharedItems", propOrder = { - "mOrNOrB" -}) -public class CTSharedItems { - - @XmlElements({ - @XmlElement(name = "s", type = CTString.class), - @XmlElement(name = "d", type = CTDateTime.class), - @XmlElement(name = "b", type = CTBoolean.class), - @XmlElement(name = "m", type = CTMissing.class), - @XmlElement(name = "e", type = CTError.class), - @XmlElement(name = "n", type = CTNumber.class) - }) - protected List mOrNOrB; - @XmlAttribute - protected Boolean containsSemiMixedTypes; - @XmlAttribute - protected Boolean containsNonDate; - @XmlAttribute - protected Boolean containsDate; - @XmlAttribute - protected Boolean containsString; - @XmlAttribute - protected Boolean containsBlank; - @XmlAttribute - protected Boolean containsMixedTypes; - @XmlAttribute - protected Boolean containsNumber; - @XmlAttribute - protected Boolean containsInteger; - @XmlAttribute - protected Double minValue; - @XmlAttribute - protected Double maxValue; - @XmlAttribute - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar minDate; - @XmlAttribute - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar maxDate; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - protected Boolean longText; - - /** - * Gets the value of the mOrNOrB property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mOrNOrB property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMOrNOrB().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTString } - * {@link CTDateTime } - * {@link CTBoolean } - * {@link CTMissing } - * {@link CTError } - * {@link CTNumber } - * - * - */ - public List getMOrNOrB() { - if (mOrNOrB == null) { - mOrNOrB = new ArrayList(); - } - return this.mOrNOrB; - } - - /** - * Gets the value of the containsSemiMixedTypes property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsSemiMixedTypes() { - if (containsSemiMixedTypes == null) { - return true; - } else { - return containsSemiMixedTypes; - } - } - - /** - * Sets the value of the containsSemiMixedTypes property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsSemiMixedTypes(Boolean value) { - this.containsSemiMixedTypes = value; - } - - /** - * Gets the value of the containsNonDate property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsNonDate() { - if (containsNonDate == null) { - return true; - } else { - return containsNonDate; - } - } - - /** - * Sets the value of the containsNonDate property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsNonDate(Boolean value) { - this.containsNonDate = value; - } - - /** - * Gets the value of the containsDate property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsDate() { - if (containsDate == null) { - return false; - } else { - return containsDate; - } - } - - /** - * Sets the value of the containsDate property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsDate(Boolean value) { - this.containsDate = value; - } - - /** - * Gets the value of the containsString property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsString() { - if (containsString == null) { - return true; - } else { - return containsString; - } - } - - /** - * Sets the value of the containsString property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsString(Boolean value) { - this.containsString = value; - } - - /** - * Gets the value of the containsBlank property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsBlank() { - if (containsBlank == null) { - return false; - } else { - return containsBlank; - } - } - - /** - * Sets the value of the containsBlank property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsBlank(Boolean value) { - this.containsBlank = value; - } - - /** - * Gets the value of the containsMixedTypes property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsMixedTypes() { - if (containsMixedTypes == null) { - return false; - } else { - return containsMixedTypes; - } - } - - /** - * Sets the value of the containsMixedTypes property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsMixedTypes(Boolean value) { - this.containsMixedTypes = value; - } - - /** - * Gets the value of the containsNumber property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsNumber() { - if (containsNumber == null) { - return false; - } else { - return containsNumber; - } - } - - /** - * Sets the value of the containsNumber property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsNumber(Boolean value) { - this.containsNumber = value; - } - - /** - * Gets the value of the containsInteger property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isContainsInteger() { - if (containsInteger == null) { - return false; - } else { - return containsInteger; - } - } - - /** - * Sets the value of the containsInteger property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setContainsInteger(Boolean value) { - this.containsInteger = value; - } - - /** - * Gets the value of the minValue property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getMinValue() { - return minValue; - } - - /** - * Sets the value of the minValue property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setMinValue(Double value) { - this.minValue = value; - } - - /** - * Gets the value of the maxValue property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getMaxValue() { - return maxValue; - } - - /** - * Sets the value of the maxValue property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setMaxValue(Double value) { - this.maxValue = value; - } - - /** - * Gets the value of the minDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getMinDate() { - return minDate; - } - - /** - * Sets the value of the minDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setMinDate(XMLGregorianCalendar value) { - this.minDate = value; - } - - /** - * Gets the value of the maxDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getMaxDate() { - return maxDate; - } - - /** - * Sets the value of the maxDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setMaxDate(XMLGregorianCalendar value) { - this.maxDate = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the longText property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLongText() { - if (longText == null) { - return false; - } else { - return longText; - } - } - - /** - * Sets the value of the longText property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLongText(Boolean value) { - this.longText = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SharedItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SharedItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
+ *         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
+ *         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Boolean"/>
+ *         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
+ *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
+ *         <element name="d" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateTime"/>
+ *       </choice>
+ *       <attribute name="containsSemiMixedTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="containsNonDate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="containsDate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="containsString" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="containsBlank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="containsMixedTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="containsNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="containsInteger" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="minValue" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="maxValue" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="minDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="maxDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="longText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SharedItems", propOrder = { + "mOrNOrB" +}) +public class CTSharedItems implements Child +{ + + @XmlElements({ + @XmlElement(name = "m", type = CTMissing.class), + @XmlElement(name = "n", type = CTNumber.class), + @XmlElement(name = "b", type = CTBoolean.class), + @XmlElement(name = "e", type = CTError.class), + @XmlElement(name = "s", type = CTString.class), + @XmlElement(name = "d", type = CTDateTime.class) + }) + protected List mOrNOrB; + @XmlAttribute(name = "containsSemiMixedTypes") + protected Boolean containsSemiMixedTypes; + @XmlAttribute(name = "containsNonDate") + protected Boolean containsNonDate; + @XmlAttribute(name = "containsDate") + protected Boolean containsDate; + @XmlAttribute(name = "containsString") + protected Boolean containsString; + @XmlAttribute(name = "containsBlank") + protected Boolean containsBlank; + @XmlAttribute(name = "containsMixedTypes") + protected Boolean containsMixedTypes; + @XmlAttribute(name = "containsNumber") + protected Boolean containsNumber; + @XmlAttribute(name = "containsInteger") + protected Boolean containsInteger; + @XmlAttribute(name = "minValue") + protected Double minValue; + @XmlAttribute(name = "maxValue") + protected Double maxValue; + @XmlAttribute(name = "minDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar minDate; + @XmlAttribute(name = "maxDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar maxDate; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "longText") + protected Boolean longText; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mOrNOrB property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mOrNOrB property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMOrNOrB().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTMissing } + * {@link CTNumber } + * {@link CTBoolean } + * {@link CTError } + * {@link CTString } + * {@link CTDateTime } + * + * + */ + public List getMOrNOrB() { + if (mOrNOrB == null) { + mOrNOrB = new ArrayList(); + } + return this.mOrNOrB; + } + + /** + * Gets the value of the containsSemiMixedTypes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsSemiMixedTypes() { + if (containsSemiMixedTypes == null) { + return true; + } else { + return containsSemiMixedTypes; + } + } + + /** + * Sets the value of the containsSemiMixedTypes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsSemiMixedTypes(Boolean value) { + this.containsSemiMixedTypes = value; + } + + /** + * Gets the value of the containsNonDate property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsNonDate() { + if (containsNonDate == null) { + return true; + } else { + return containsNonDate; + } + } + + /** + * Sets the value of the containsNonDate property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsNonDate(Boolean value) { + this.containsNonDate = value; + } + + /** + * Gets the value of the containsDate property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsDate() { + if (containsDate == null) { + return false; + } else { + return containsDate; + } + } + + /** + * Sets the value of the containsDate property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsDate(Boolean value) { + this.containsDate = value; + } + + /** + * Gets the value of the containsString property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsString() { + if (containsString == null) { + return true; + } else { + return containsString; + } + } + + /** + * Sets the value of the containsString property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsString(Boolean value) { + this.containsString = value; + } + + /** + * Gets the value of the containsBlank property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsBlank() { + if (containsBlank == null) { + return false; + } else { + return containsBlank; + } + } + + /** + * Sets the value of the containsBlank property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsBlank(Boolean value) { + this.containsBlank = value; + } + + /** + * Gets the value of the containsMixedTypes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsMixedTypes() { + if (containsMixedTypes == null) { + return false; + } else { + return containsMixedTypes; + } + } + + /** + * Sets the value of the containsMixedTypes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsMixedTypes(Boolean value) { + this.containsMixedTypes = value; + } + + /** + * Gets the value of the containsNumber property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsNumber() { + if (containsNumber == null) { + return false; + } else { + return containsNumber; + } + } + + /** + * Sets the value of the containsNumber property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsNumber(Boolean value) { + this.containsNumber = value; + } + + /** + * Gets the value of the containsInteger property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isContainsInteger() { + if (containsInteger == null) { + return false; + } else { + return containsInteger; + } + } + + /** + * Sets the value of the containsInteger property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setContainsInteger(Boolean value) { + this.containsInteger = value; + } + + /** + * Gets the value of the minValue property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMinValue() { + return minValue; + } + + /** + * Sets the value of the minValue property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMinValue(Double value) { + this.minValue = value; + } + + /** + * Gets the value of the maxValue property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxValue() { + return maxValue; + } + + /** + * Sets the value of the maxValue property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxValue(Double value) { + this.maxValue = value; + } + + /** + * Gets the value of the minDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getMinDate() { + return minDate; + } + + /** + * Sets the value of the minDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setMinDate(XMLGregorianCalendar value) { + this.minDate = value; + } + + /** + * Gets the value of the maxDate property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getMaxDate() { + return maxDate; + } + + /** + * Sets the value of the maxDate property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setMaxDate(XMLGregorianCalendar value) { + this.maxDate = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the longText property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLongText() { + if (longText == null) { + return false; + } else { + return longText; + } + } + + /** + * Sets the value of the longText property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLongText(Boolean value) { + this.longText = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSharedUser.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSharedUser.java index f204a70d6e..2f090958a3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSharedUser.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSharedUser.java @@ -1,187 +1,199 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import javax.xml.datatype.XMLGregorianCalendar; - - -/** - *

Java class for CT_SharedUser complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SharedUser">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
- *       <attribute name="dateTime" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SharedUser", propOrder = { - "extLst" -}) -public class CTSharedUser { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String guid; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - protected int id; - @XmlAttribute(required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar dateTime; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the guid property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGuid() { - return guid; - } - - /** - * Sets the value of the guid property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGuid(String value) { - this.guid = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the id property. - * - */ - public int getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(int value) { - this.id = value; - } - - /** - * Gets the value of the dateTime property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDateTime() { - return dateTime; - } - - /** - * Sets the value of the dateTime property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDateTime(XMLGregorianCalendar value) { - this.dateTime = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.datatype.XMLGregorianCalendar; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SharedUser complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SharedUser">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="dateTime" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SharedUser", propOrder = { + "extLst" +}) +public class CTSharedUser implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "guid", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String guid; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "id", required = true) + protected int id; + @XmlAttribute(name = "dateTime", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar dateTime; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the guid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGuid() { + return guid; + } + + /** + * Sets the value of the guid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGuid(String value) { + this.guid = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the id property. + * + */ + public int getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(int value) { + this.id = value; + } + + /** + * Gets the value of the dateTime property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getDateTime() { + return dateTime; + } + + /** + * Sets the value of the dateTime property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setDateTime(XMLGregorianCalendar value) { + this.dateTime = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetBackgroundPicture.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetBackgroundPicture.java index 1ad994051b..da233ba9d4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetBackgroundPicture.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetBackgroundPicture.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetBackgroundPicture complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetBackgroundPicture">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetBackgroundPicture") -public class CTSheetBackgroundPicture { - - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetBackgroundPicture complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetBackgroundPicture">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetBackgroundPicture") +public class CTSheetBackgroundPicture implements Child +{ + + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetCalcPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetCalcPr.java index d692b4561e..b79e3ee558 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetCalcPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetCalcPr.java @@ -1,82 +1,94 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetCalcPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetCalcPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="fullCalcOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetCalcPr") -public class CTSheetCalcPr { - - @XmlAttribute - protected Boolean fullCalcOnLoad; - - /** - * Gets the value of the fullCalcOnLoad property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFullCalcOnLoad() { - if (fullCalcOnLoad == null) { - return false; - } else { - return fullCalcOnLoad; - } - } - - /** - * Sets the value of the fullCalcOnLoad property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFullCalcOnLoad(Boolean value) { - this.fullCalcOnLoad = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetCalcPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetCalcPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="fullCalcOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetCalcPr") +public class CTSheetCalcPr implements Child +{ + + @XmlAttribute(name = "fullCalcOnLoad") + protected Boolean fullCalcOnLoad; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fullCalcOnLoad property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFullCalcOnLoad() { + if (fullCalcOnLoad == null) { + return false; + } else { + return fullCalcOnLoad; + } + } + + /** + * Sets the value of the fullCalcOnLoad property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFullCalcOnLoad(Boolean value) { + this.fullCalcOnLoad = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetDimension.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetDimension.java index 7a1f3e3533..98ef31fc85 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetDimension.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetDimension.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetDimension complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetDimension">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetDimension") -public class CTSheetDimension { - - @XmlAttribute(required = true) - protected String ref; - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetDimension complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetDimension">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetDimension") +public class CTSheetDimension implements Child +{ + + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetFormatPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetFormatPr.java index 66a4177880..7659dc8d10 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetFormatPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetFormatPr.java @@ -1,318 +1,330 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetFormatPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetFormatPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="baseColWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="8" />
- *       <attribute name="defaultColWidth" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="defaultRowHeight" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="customHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="zeroHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="thickTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="thickBottom" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="outlineLevelRow" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="outlineLevelCol" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetFormatPr") -public class CTSheetFormatPr { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long baseColWidth; - @XmlAttribute - protected Double defaultColWidth; - @XmlAttribute(required = true) - protected double defaultRowHeight; - @XmlAttribute - protected Boolean customHeight; - @XmlAttribute - protected Boolean zeroHeight; - @XmlAttribute - protected Boolean thickTop; - @XmlAttribute - protected Boolean thickBottom; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short outlineLevelRow; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short outlineLevelCol; - - /** - * Gets the value of the baseColWidth property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getBaseColWidth() { - if (baseColWidth == null) { - return 8L; - } else { - return baseColWidth; - } - } - - /** - * Sets the value of the baseColWidth property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setBaseColWidth(Long value) { - this.baseColWidth = value; - } - - /** - * Gets the value of the defaultColWidth property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getDefaultColWidth() { - return defaultColWidth; - } - - /** - * Sets the value of the defaultColWidth property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setDefaultColWidth(Double value) { - this.defaultColWidth = value; - } - - /** - * Gets the value of the defaultRowHeight property. - * - */ - public double getDefaultRowHeight() { - return defaultRowHeight; - } - - /** - * Sets the value of the defaultRowHeight property. - * - */ - public void setDefaultRowHeight(double value) { - this.defaultRowHeight = value; - } - - /** - * Gets the value of the customHeight property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCustomHeight() { - if (customHeight == null) { - return false; - } else { - return customHeight; - } - } - - /** - * Sets the value of the customHeight property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomHeight(Boolean value) { - this.customHeight = value; - } - - /** - * Gets the value of the zeroHeight property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isZeroHeight() { - if (zeroHeight == null) { - return false; - } else { - return zeroHeight; - } - } - - /** - * Sets the value of the zeroHeight property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setZeroHeight(Boolean value) { - this.zeroHeight = value; - } - - /** - * Gets the value of the thickTop property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isThickTop() { - if (thickTop == null) { - return false; - } else { - return thickTop; - } - } - - /** - * Sets the value of the thickTop property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setThickTop(Boolean value) { - this.thickTop = value; - } - - /** - * Gets the value of the thickBottom property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isThickBottom() { - if (thickBottom == null) { - return false; - } else { - return thickBottom; - } - } - - /** - * Sets the value of the thickBottom property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setThickBottom(Boolean value) { - this.thickBottom = value; - } - - /** - * Gets the value of the outlineLevelRow property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getOutlineLevelRow() { - if (outlineLevelRow == null) { - return ((short) 0); - } else { - return outlineLevelRow; - } - } - - /** - * Sets the value of the outlineLevelRow property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setOutlineLevelRow(Short value) { - this.outlineLevelRow = value; - } - - /** - * Gets the value of the outlineLevelCol property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getOutlineLevelCol() { - if (outlineLevelCol == null) { - return ((short) 0); - } else { - return outlineLevelCol; - } - } - - /** - * Sets the value of the outlineLevelCol property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setOutlineLevelCol(Short value) { - this.outlineLevelCol = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetFormatPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetFormatPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="baseColWidth" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="8" />
+ *       <attribute name="defaultColWidth" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="defaultRowHeight" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="customHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="zeroHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="thickTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="thickBottom" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="outlineLevelRow" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="outlineLevelCol" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetFormatPr") +public class CTSheetFormatPr implements Child +{ + + @XmlAttribute(name = "baseColWidth") + @XmlSchemaType(name = "unsignedInt") + protected Long baseColWidth; + @XmlAttribute(name = "defaultColWidth") + protected Double defaultColWidth; + @XmlAttribute(name = "defaultRowHeight", required = true) + protected double defaultRowHeight; + @XmlAttribute(name = "customHeight") + protected Boolean customHeight; + @XmlAttribute(name = "zeroHeight") + protected Boolean zeroHeight; + @XmlAttribute(name = "thickTop") + protected Boolean thickTop; + @XmlAttribute(name = "thickBottom") + protected Boolean thickBottom; + @XmlAttribute(name = "outlineLevelRow") + @XmlSchemaType(name = "unsignedByte") + protected Short outlineLevelRow; + @XmlAttribute(name = "outlineLevelCol") + @XmlSchemaType(name = "unsignedByte") + protected Short outlineLevelCol; + @XmlTransient + private Object parent; + + /** + * Gets the value of the baseColWidth property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getBaseColWidth() { + if (baseColWidth == null) { + return 8L; + } else { + return baseColWidth; + } + } + + /** + * Sets the value of the baseColWidth property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setBaseColWidth(Long value) { + this.baseColWidth = value; + } + + /** + * Gets the value of the defaultColWidth property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getDefaultColWidth() { + return defaultColWidth; + } + + /** + * Sets the value of the defaultColWidth property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setDefaultColWidth(Double value) { + this.defaultColWidth = value; + } + + /** + * Gets the value of the defaultRowHeight property. + * + */ + public double getDefaultRowHeight() { + return defaultRowHeight; + } + + /** + * Sets the value of the defaultRowHeight property. + * + */ + public void setDefaultRowHeight(double value) { + this.defaultRowHeight = value; + } + + /** + * Gets the value of the customHeight property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCustomHeight() { + if (customHeight == null) { + return false; + } else { + return customHeight; + } + } + + /** + * Sets the value of the customHeight property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomHeight(Boolean value) { + this.customHeight = value; + } + + /** + * Gets the value of the zeroHeight property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isZeroHeight() { + if (zeroHeight == null) { + return false; + } else { + return zeroHeight; + } + } + + /** + * Sets the value of the zeroHeight property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setZeroHeight(Boolean value) { + this.zeroHeight = value; + } + + /** + * Gets the value of the thickTop property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isThickTop() { + if (thickTop == null) { + return false; + } else { + return thickTop; + } + } + + /** + * Sets the value of the thickTop property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setThickTop(Boolean value) { + this.thickTop = value; + } + + /** + * Gets the value of the thickBottom property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isThickBottom() { + if (thickBottom == null) { + return false; + } else { + return thickBottom; + } + } + + /** + * Sets the value of the thickBottom property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setThickBottom(Boolean value) { + this.thickBottom = value; + } + + /** + * Gets the value of the outlineLevelRow property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getOutlineLevelRow() { + if (outlineLevelRow == null) { + return ((short) 0); + } else { + return outlineLevelRow; + } + } + + /** + * Sets the value of the outlineLevelRow property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setOutlineLevelRow(Short value) { + this.outlineLevelRow = value; + } + + /** + * Gets the value of the outlineLevelCol property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getOutlineLevelCol() { + if (outlineLevelCol == null) { + return ((short) 0); + } else { + return outlineLevelCol; + } + } + + /** + * Sets the value of the outlineLevelCol property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setOutlineLevelCol(Short value) { + this.outlineLevelCol = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetId.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetId.java index 6f5e3e6b26..7d805c7958 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetId.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetId.java @@ -1,72 +1,84 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetId complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetId">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetId") -public class CTSheetId { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long val; - - /** - * Gets the value of the val property. - * - */ - public long getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - */ - public void setVal(long value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetId complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetId">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetId") +public class CTSheetId implements Child +{ + + @XmlAttribute(name = "val", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + */ + public long getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + */ + public void setVal(long value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetIdMap.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetIdMap.java index 5d210ba2de..6fa174d3e5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetIdMap.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetIdMap.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetIdMap complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetIdMap">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetId" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetIdMap", propOrder = { - "sheetId" -}) -public class CTSheetIdMap { - - @XmlElement(required = true) - protected List sheetId; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the sheetId property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sheetId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSheetId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSheetId } - * - * - */ - public List getSheetId() { - if (sheetId == null) { - sheetId = new ArrayList(); - } - return this.sheetId; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetIdMap complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetIdMap">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetId" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetIdMap", propOrder = { + "sheetId" +}) +public class CTSheetIdMap implements Child +{ + + @XmlElement(required = true) + protected List sheetId; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetId property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sheetId property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSheetId().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSheetId } + * + * + */ + public List getSheetId() { + if (sheetId == null) { + sheetId = new ArrayList(); + } + return this.sheetId; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetPr.java index bd845af797..46b301d5d7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetPr.java @@ -1,406 +1,418 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tabColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
- *         <element name="outlinePr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OutlinePr" minOccurs="0"/>
- *         <element name="pageSetUpPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetUpPr" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="syncHorizontal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="syncVertical" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="syncRef" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="transitionEvaluation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="transitionEntry" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="codeName" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="filterMode" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="enableFormatConditionsCalculation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetPr", propOrder = { - "tabColor", - "outlinePr", - "pageSetUpPr" -}) -public class CTSheetPr { - - protected CTColor tabColor; - protected CTOutlinePr outlinePr; - protected CTPageSetUpPr pageSetUpPr; - @XmlAttribute - protected Boolean syncHorizontal; - @XmlAttribute - protected Boolean syncVertical; - @XmlAttribute - protected String syncRef; - @XmlAttribute - protected Boolean transitionEvaluation; - @XmlAttribute - protected Boolean transitionEntry; - @XmlAttribute - protected Boolean published; - @XmlAttribute - protected String codeName; - @XmlAttribute - protected Boolean filterMode; - @XmlAttribute - protected Boolean enableFormatConditionsCalculation; - - /** - * Gets the value of the tabColor property. - * - * @return - * possible object is - * {@link CTColor } - * - */ - public CTColor getTabColor() { - return tabColor; - } - - /** - * Sets the value of the tabColor property. - * - * @param value - * allowed object is - * {@link CTColor } - * - */ - public void setTabColor(CTColor value) { - this.tabColor = value; - } - - /** - * Gets the value of the outlinePr property. - * - * @return - * possible object is - * {@link CTOutlinePr } - * - */ - public CTOutlinePr getOutlinePr() { - return outlinePr; - } - - /** - * Sets the value of the outlinePr property. - * - * @param value - * allowed object is - * {@link CTOutlinePr } - * - */ - public void setOutlinePr(CTOutlinePr value) { - this.outlinePr = value; - } - - /** - * Gets the value of the pageSetUpPr property. - * - * @return - * possible object is - * {@link CTPageSetUpPr } - * - */ - public CTPageSetUpPr getPageSetUpPr() { - return pageSetUpPr; - } - - /** - * Sets the value of the pageSetUpPr property. - * - * @param value - * allowed object is - * {@link CTPageSetUpPr } - * - */ - public void setPageSetUpPr(CTPageSetUpPr value) { - this.pageSetUpPr = value; - } - - /** - * Gets the value of the syncHorizontal property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSyncHorizontal() { - if (syncHorizontal == null) { - return false; - } else { - return syncHorizontal; - } - } - - /** - * Sets the value of the syncHorizontal property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSyncHorizontal(Boolean value) { - this.syncHorizontal = value; - } - - /** - * Gets the value of the syncVertical property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSyncVertical() { - if (syncVertical == null) { - return false; - } else { - return syncVertical; - } - } - - /** - * Sets the value of the syncVertical property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSyncVertical(Boolean value) { - this.syncVertical = value; - } - - /** - * Gets the value of the syncRef property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSyncRef() { - return syncRef; - } - - /** - * Sets the value of the syncRef property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSyncRef(String value) { - this.syncRef = value; - } - - /** - * Gets the value of the transitionEvaluation property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTransitionEvaluation() { - if (transitionEvaluation == null) { - return false; - } else { - return transitionEvaluation; - } - } - - /** - * Sets the value of the transitionEvaluation property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTransitionEvaluation(Boolean value) { - this.transitionEvaluation = value; - } - - /** - * Gets the value of the transitionEntry property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTransitionEntry() { - if (transitionEntry == null) { - return false; - } else { - return transitionEntry; - } - } - - /** - * Sets the value of the transitionEntry property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTransitionEntry(Boolean value) { - this.transitionEntry = value; - } - - /** - * Gets the value of the published property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPublished() { - if (published == null) { - return true; - } else { - return published; - } - } - - /** - * Sets the value of the published property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPublished(Boolean value) { - this.published = value; - } - - /** - * Gets the value of the codeName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCodeName() { - return codeName; - } - - /** - * Sets the value of the codeName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCodeName(String value) { - this.codeName = value; - } - - /** - * Gets the value of the filterMode property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFilterMode() { - if (filterMode == null) { - return false; - } else { - return filterMode; - } - } - - /** - * Sets the value of the filterMode property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFilterMode(Boolean value) { - this.filterMode = value; - } - - /** - * Gets the value of the enableFormatConditionsCalculation property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEnableFormatConditionsCalculation() { - if (enableFormatConditionsCalculation == null) { - return true; - } else { - return enableFormatConditionsCalculation; - } - } - - /** - * Sets the value of the enableFormatConditionsCalculation property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEnableFormatConditionsCalculation(Boolean value) { - this.enableFormatConditionsCalculation = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tabColor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
+ *         <element name="outlinePr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OutlinePr" minOccurs="0"/>
+ *         <element name="pageSetUpPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetUpPr" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="syncHorizontal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="syncVertical" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="syncRef" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="transitionEvaluation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="transitionEntry" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="codeName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="filterMode" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="enableFormatConditionsCalculation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetPr", propOrder = { + "tabColor", + "outlinePr", + "pageSetUpPr" +}) +public class CTSheetPr implements Child +{ + + protected CTColor tabColor; + protected CTOutlinePr outlinePr; + protected CTPageSetUpPr pageSetUpPr; + @XmlAttribute(name = "syncHorizontal") + protected Boolean syncHorizontal; + @XmlAttribute(name = "syncVertical") + protected Boolean syncVertical; + @XmlAttribute(name = "syncRef") + protected String syncRef; + @XmlAttribute(name = "transitionEvaluation") + protected Boolean transitionEvaluation; + @XmlAttribute(name = "transitionEntry") + protected Boolean transitionEntry; + @XmlAttribute(name = "published") + protected Boolean published; + @XmlAttribute(name = "codeName") + protected String codeName; + @XmlAttribute(name = "filterMode") + protected Boolean filterMode; + @XmlAttribute(name = "enableFormatConditionsCalculation") + protected Boolean enableFormatConditionsCalculation; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tabColor property. + * + * @return + * possible object is + * {@link CTColor } + * + */ + public CTColor getTabColor() { + return tabColor; + } + + /** + * Sets the value of the tabColor property. + * + * @param value + * allowed object is + * {@link CTColor } + * + */ + public void setTabColor(CTColor value) { + this.tabColor = value; + } + + /** + * Gets the value of the outlinePr property. + * + * @return + * possible object is + * {@link CTOutlinePr } + * + */ + public CTOutlinePr getOutlinePr() { + return outlinePr; + } + + /** + * Sets the value of the outlinePr property. + * + * @param value + * allowed object is + * {@link CTOutlinePr } + * + */ + public void setOutlinePr(CTOutlinePr value) { + this.outlinePr = value; + } + + /** + * Gets the value of the pageSetUpPr property. + * + * @return + * possible object is + * {@link CTPageSetUpPr } + * + */ + public CTPageSetUpPr getPageSetUpPr() { + return pageSetUpPr; + } + + /** + * Sets the value of the pageSetUpPr property. + * + * @param value + * allowed object is + * {@link CTPageSetUpPr } + * + */ + public void setPageSetUpPr(CTPageSetUpPr value) { + this.pageSetUpPr = value; + } + + /** + * Gets the value of the syncHorizontal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSyncHorizontal() { + if (syncHorizontal == null) { + return false; + } else { + return syncHorizontal; + } + } + + /** + * Sets the value of the syncHorizontal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSyncHorizontal(Boolean value) { + this.syncHorizontal = value; + } + + /** + * Gets the value of the syncVertical property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSyncVertical() { + if (syncVertical == null) { + return false; + } else { + return syncVertical; + } + } + + /** + * Sets the value of the syncVertical property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSyncVertical(Boolean value) { + this.syncVertical = value; + } + + /** + * Gets the value of the syncRef property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSyncRef() { + return syncRef; + } + + /** + * Sets the value of the syncRef property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSyncRef(String value) { + this.syncRef = value; + } + + /** + * Gets the value of the transitionEvaluation property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTransitionEvaluation() { + if (transitionEvaluation == null) { + return false; + } else { + return transitionEvaluation; + } + } + + /** + * Sets the value of the transitionEvaluation property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTransitionEvaluation(Boolean value) { + this.transitionEvaluation = value; + } + + /** + * Gets the value of the transitionEntry property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTransitionEntry() { + if (transitionEntry == null) { + return false; + } else { + return transitionEntry; + } + } + + /** + * Sets the value of the transitionEntry property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTransitionEntry(Boolean value) { + this.transitionEntry = value; + } + + /** + * Gets the value of the published property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPublished() { + if (published == null) { + return true; + } else { + return published; + } + } + + /** + * Sets the value of the published property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPublished(Boolean value) { + this.published = value; + } + + /** + * Gets the value of the codeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCodeName() { + return codeName; + } + + /** + * Sets the value of the codeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCodeName(String value) { + this.codeName = value; + } + + /** + * Gets the value of the filterMode property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFilterMode() { + if (filterMode == null) { + return false; + } else { + return filterMode; + } + } + + /** + * Sets the value of the filterMode property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFilterMode(Boolean value) { + this.filterMode = value; + } + + /** + * Gets the value of the enableFormatConditionsCalculation property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEnableFormatConditionsCalculation() { + if (enableFormatConditionsCalculation == null) { + return true; + } else { + return enableFormatConditionsCalculation; + } + } + + /** + * Sets the value of the enableFormatConditionsCalculation property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnableFormatConditionsCalculation(Boolean value) { + this.enableFormatConditionsCalculation = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetProtection.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetProtection.java index bbfb45cc77..66718a8fed 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSheetProtection.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSheetProtection.java @@ -1,577 +1,695 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_SheetProtection complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetProtection">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="password" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
- *       <attribute name="sheet" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="objects" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="scenarios" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="formatCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="formatColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="formatRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="insertColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="insertRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="insertHyperlinks" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="deleteColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="deleteRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="selectLockedCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sort" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="autoFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="pivotTables" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="selectUnlockedCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetProtection") -public class CTSheetProtection { - - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] password; - @XmlAttribute - protected Boolean sheet; - @XmlAttribute - protected Boolean objects; - @XmlAttribute - protected Boolean scenarios; - @XmlAttribute - protected Boolean formatCells; - @XmlAttribute - protected Boolean formatColumns; - @XmlAttribute - protected Boolean formatRows; - @XmlAttribute - protected Boolean insertColumns; - @XmlAttribute - protected Boolean insertRows; - @XmlAttribute - protected Boolean insertHyperlinks; - @XmlAttribute - protected Boolean deleteColumns; - @XmlAttribute - protected Boolean deleteRows; - @XmlAttribute - protected Boolean selectLockedCells; - @XmlAttribute - protected Boolean sort; - @XmlAttribute - protected Boolean autoFilter; - @XmlAttribute - protected Boolean pivotTables; - @XmlAttribute - protected Boolean selectUnlockedCells; - - /** - * Gets the value of the password property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getPassword() { - return password; - } - - /** - * Sets the value of the password property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPassword(byte[] value) { - this.password = ((byte[]) value); - } - - /** - * Gets the value of the sheet property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSheet() { - if (sheet == null) { - return false; - } else { - return sheet; - } - } - - /** - * Sets the value of the sheet property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSheet(Boolean value) { - this.sheet = value; - } - - /** - * Gets the value of the objects property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isObjects() { - if (objects == null) { - return false; - } else { - return objects; - } - } - - /** - * Sets the value of the objects property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setObjects(Boolean value) { - this.objects = value; - } - - /** - * Gets the value of the scenarios property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isScenarios() { - if (scenarios == null) { - return false; - } else { - return scenarios; - } - } - - /** - * Sets the value of the scenarios property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setScenarios(Boolean value) { - this.scenarios = value; - } - - /** - * Gets the value of the formatCells property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFormatCells() { - if (formatCells == null) { - return true; - } else { - return formatCells; - } - } - - /** - * Sets the value of the formatCells property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFormatCells(Boolean value) { - this.formatCells = value; - } - - /** - * Gets the value of the formatColumns property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFormatColumns() { - if (formatColumns == null) { - return true; - } else { - return formatColumns; - } - } - - /** - * Sets the value of the formatColumns property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFormatColumns(Boolean value) { - this.formatColumns = value; - } - - /** - * Gets the value of the formatRows property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFormatRows() { - if (formatRows == null) { - return true; - } else { - return formatRows; - } - } - - /** - * Sets the value of the formatRows property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFormatRows(Boolean value) { - this.formatRows = value; - } - - /** - * Gets the value of the insertColumns property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInsertColumns() { - if (insertColumns == null) { - return true; - } else { - return insertColumns; - } - } - - /** - * Sets the value of the insertColumns property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInsertColumns(Boolean value) { - this.insertColumns = value; - } - - /** - * Gets the value of the insertRows property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInsertRows() { - if (insertRows == null) { - return true; - } else { - return insertRows; - } - } - - /** - * Sets the value of the insertRows property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInsertRows(Boolean value) { - this.insertRows = value; - } - - /** - * Gets the value of the insertHyperlinks property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInsertHyperlinks() { - if (insertHyperlinks == null) { - return true; - } else { - return insertHyperlinks; - } - } - - /** - * Sets the value of the insertHyperlinks property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInsertHyperlinks(Boolean value) { - this.insertHyperlinks = value; - } - - /** - * Gets the value of the deleteColumns property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDeleteColumns() { - if (deleteColumns == null) { - return true; - } else { - return deleteColumns; - } - } - - /** - * Sets the value of the deleteColumns property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDeleteColumns(Boolean value) { - this.deleteColumns = value; - } - - /** - * Gets the value of the deleteRows property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDeleteRows() { - if (deleteRows == null) { - return true; - } else { - return deleteRows; - } - } - - /** - * Sets the value of the deleteRows property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDeleteRows(Boolean value) { - this.deleteRows = value; - } - - /** - * Gets the value of the selectLockedCells property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSelectLockedCells() { - if (selectLockedCells == null) { - return false; - } else { - return selectLockedCells; - } - } - - /** - * Sets the value of the selectLockedCells property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSelectLockedCells(Boolean value) { - this.selectLockedCells = value; - } - - /** - * Gets the value of the sort property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSort() { - if (sort == null) { - return true; - } else { - return sort; - } - } - - /** - * Sets the value of the sort property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSort(Boolean value) { - this.sort = value; - } - - /** - * Gets the value of the autoFilter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoFilter() { - if (autoFilter == null) { - return true; - } else { - return autoFilter; - } - } - - /** - * Sets the value of the autoFilter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoFilter(Boolean value) { - this.autoFilter = value; - } - - /** - * Gets the value of the pivotTables property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPivotTables() { - if (pivotTables == null) { - return true; - } else { - return pivotTables; - } - } - - /** - * Sets the value of the pivotTables property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPivotTables(Boolean value) { - this.pivotTables = value; - } - - /** - * Gets the value of the selectUnlockedCells property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSelectUnlockedCells() { - if (selectUnlockedCells == null) { - return false; - } else { - return selectUnlockedCells; - } - } - - /** - * Sets the value of the selectUnlockedCells property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSelectUnlockedCells(Boolean value) { - this.selectUnlockedCells = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetProtection complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetProtection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="password" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
+ *       <attribute name="algorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="hashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="saltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="spinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="sheet" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="objects" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="scenarios" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="formatCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="formatColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="formatRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="insertColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="insertRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="insertHyperlinks" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="deleteColumns" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="deleteRows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="selectLockedCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sort" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="autoFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="pivotTables" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="selectUnlockedCells" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetProtection") +public class CTSheetProtection implements Child +{ + + @XmlAttribute(name = "password") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] password; + @XmlAttribute(name = "algorithmName") + protected String algorithmName; + @XmlAttribute(name = "hashValue") + protected byte[] hashValue; + @XmlAttribute(name = "saltValue") + protected byte[] saltValue; + @XmlAttribute(name = "spinCount") + @XmlSchemaType(name = "unsignedInt") + protected Long spinCount; + @XmlAttribute(name = "sheet") + protected Boolean sheet; + @XmlAttribute(name = "objects") + protected Boolean objects; + @XmlAttribute(name = "scenarios") + protected Boolean scenarios; + @XmlAttribute(name = "formatCells") + protected Boolean formatCells; + @XmlAttribute(name = "formatColumns") + protected Boolean formatColumns; + @XmlAttribute(name = "formatRows") + protected Boolean formatRows; + @XmlAttribute(name = "insertColumns") + protected Boolean insertColumns; + @XmlAttribute(name = "insertRows") + protected Boolean insertRows; + @XmlAttribute(name = "insertHyperlinks") + protected Boolean insertHyperlinks; + @XmlAttribute(name = "deleteColumns") + protected Boolean deleteColumns; + @XmlAttribute(name = "deleteRows") + protected Boolean deleteRows; + @XmlAttribute(name = "selectLockedCells") + protected Boolean selectLockedCells; + @XmlAttribute(name = "sort") + protected Boolean sort; + @XmlAttribute(name = "autoFilter") + protected Boolean autoFilter; + @XmlAttribute(name = "pivotTables") + protected Boolean pivotTables; + @XmlAttribute(name = "selectUnlockedCells") + protected Boolean selectUnlockedCells; + @XmlTransient + private Object parent; + + /** + * Gets the value of the password property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getPassword() { + return password; + } + + /** + * Sets the value of the password property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPassword(byte[] value) { + this.password = value; + } + + /** + * Gets the value of the algorithmName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlgorithmName() { + return algorithmName; + } + + /** + * Sets the value of the algorithmName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlgorithmName(String value) { + this.algorithmName = value; + } + + /** + * Gets the value of the hashValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getHashValue() { + return hashValue; + } + + /** + * Sets the value of the hashValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setHashValue(byte[] value) { + this.hashValue = value; + } + + /** + * Gets the value of the saltValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getSaltValue() { + return saltValue; + } + + /** + * Sets the value of the saltValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setSaltValue(byte[] value) { + this.saltValue = value; + } + + /** + * Gets the value of the spinCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSpinCount() { + return spinCount; + } + + /** + * Sets the value of the spinCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSpinCount(Long value) { + this.spinCount = value; + } + + /** + * Gets the value of the sheet property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSheet() { + if (sheet == null) { + return false; + } else { + return sheet; + } + } + + /** + * Sets the value of the sheet property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSheet(Boolean value) { + this.sheet = value; + } + + /** + * Gets the value of the objects property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isObjects() { + if (objects == null) { + return false; + } else { + return objects; + } + } + + /** + * Sets the value of the objects property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setObjects(Boolean value) { + this.objects = value; + } + + /** + * Gets the value of the scenarios property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isScenarios() { + if (scenarios == null) { + return false; + } else { + return scenarios; + } + } + + /** + * Sets the value of the scenarios property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setScenarios(Boolean value) { + this.scenarios = value; + } + + /** + * Gets the value of the formatCells property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFormatCells() { + if (formatCells == null) { + return true; + } else { + return formatCells; + } + } + + /** + * Sets the value of the formatCells property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFormatCells(Boolean value) { + this.formatCells = value; + } + + /** + * Gets the value of the formatColumns property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFormatColumns() { + if (formatColumns == null) { + return true; + } else { + return formatColumns; + } + } + + /** + * Sets the value of the formatColumns property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFormatColumns(Boolean value) { + this.formatColumns = value; + } + + /** + * Gets the value of the formatRows property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFormatRows() { + if (formatRows == null) { + return true; + } else { + return formatRows; + } + } + + /** + * Sets the value of the formatRows property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFormatRows(Boolean value) { + this.formatRows = value; + } + + /** + * Gets the value of the insertColumns property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInsertColumns() { + if (insertColumns == null) { + return true; + } else { + return insertColumns; + } + } + + /** + * Sets the value of the insertColumns property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInsertColumns(Boolean value) { + this.insertColumns = value; + } + + /** + * Gets the value of the insertRows property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInsertRows() { + if (insertRows == null) { + return true; + } else { + return insertRows; + } + } + + /** + * Sets the value of the insertRows property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInsertRows(Boolean value) { + this.insertRows = value; + } + + /** + * Gets the value of the insertHyperlinks property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInsertHyperlinks() { + if (insertHyperlinks == null) { + return true; + } else { + return insertHyperlinks; + } + } + + /** + * Sets the value of the insertHyperlinks property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInsertHyperlinks(Boolean value) { + this.insertHyperlinks = value; + } + + /** + * Gets the value of the deleteColumns property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDeleteColumns() { + if (deleteColumns == null) { + return true; + } else { + return deleteColumns; + } + } + + /** + * Sets the value of the deleteColumns property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDeleteColumns(Boolean value) { + this.deleteColumns = value; + } + + /** + * Gets the value of the deleteRows property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDeleteRows() { + if (deleteRows == null) { + return true; + } else { + return deleteRows; + } + } + + /** + * Sets the value of the deleteRows property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDeleteRows(Boolean value) { + this.deleteRows = value; + } + + /** + * Gets the value of the selectLockedCells property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSelectLockedCells() { + if (selectLockedCells == null) { + return false; + } else { + return selectLockedCells; + } + } + + /** + * Sets the value of the selectLockedCells property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSelectLockedCells(Boolean value) { + this.selectLockedCells = value; + } + + /** + * Gets the value of the sort property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSort() { + if (sort == null) { + return true; + } else { + return sort; + } + } + + /** + * Sets the value of the sort property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSort(Boolean value) { + this.sort = value; + } + + /** + * Gets the value of the autoFilter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoFilter() { + if (autoFilter == null) { + return true; + } else { + return autoFilter; + } + } + + /** + * Sets the value of the autoFilter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoFilter(Boolean value) { + this.autoFilter = value; + } + + /** + * Gets the value of the pivotTables property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPivotTables() { + if (pivotTables == null) { + return true; + } else { + return pivotTables; + } + } + + /** + * Sets the value of the pivotTables property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPivotTables(Boolean value) { + this.pivotTables = value; + } + + /** + * Gets the value of the selectUnlockedCells property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSelectUnlockedCells() { + if (selectUnlockedCells == null) { + return false; + } else { + return selectUnlockedCells; + } + } + + /** + * Sets the value of the selectUnlockedCells property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSelectUnlockedCells(Boolean value) { + this.selectUnlockedCells = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCell.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCell.java index 84c52630f3..f9470623a4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCell.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCell.java @@ -1,178 +1,190 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SingleXmlCell complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SingleXmlCell">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="xmlCellPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XmlCellPr"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="connectionId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SingleXmlCell", propOrder = { - "xmlCellPr", - "extLst" -}) -public class CTSingleXmlCell { - - @XmlElement(required = true) - protected CTXmlCellPr xmlCellPr; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute(required = true) - protected String r; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long connectionId; - - /** - * Gets the value of the xmlCellPr property. - * - * @return - * possible object is - * {@link CTXmlCellPr } - * - */ - public CTXmlCellPr getXmlCellPr() { - return xmlCellPr; - } - - /** - * Sets the value of the xmlCellPr property. - * - * @param value - * allowed object is - * {@link CTXmlCellPr } - * - */ - public void setXmlCellPr(CTXmlCellPr value) { - this.xmlCellPr = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - - /** - * Gets the value of the connectionId property. - * - */ - public long getConnectionId() { - return connectionId; - } - - /** - * Sets the value of the connectionId property. - * - */ - public void setConnectionId(long value) { - this.connectionId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SingleXmlCell complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SingleXmlCell">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="xmlCellPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XmlCellPr"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="connectionId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SingleXmlCell", propOrder = { + "xmlCellPr", + "extLst" +}) +public class CTSingleXmlCell implements Child +{ + + @XmlElement(required = true) + protected CTXmlCellPr xmlCellPr; + protected CTExtensionList extLst; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "r", required = true) + protected String r; + @XmlAttribute(name = "connectionId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long connectionId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the xmlCellPr property. + * + * @return + * possible object is + * {@link CTXmlCellPr } + * + */ + public CTXmlCellPr getXmlCellPr() { + return xmlCellPr; + } + + /** + * Sets the value of the xmlCellPr property. + * + * @param value + * allowed object is + * {@link CTXmlCellPr } + * + */ + public void setXmlCellPr(CTXmlCellPr value) { + this.xmlCellPr = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the value of the connectionId property. + * + */ + public long getConnectionId() { + return connectionId; + } + + /** + * Sets the value of the connectionId property. + * + */ + public void setConnectionId(long value) { + this.connectionId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCells.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCells.java index 548b0202be..89a3331727 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCells.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSingleXmlCells.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SingleXmlCells complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SingleXmlCells">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="singleXmlCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SingleXmlCell" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SingleXmlCells", propOrder = { - "singleXmlCell" -}) -public class CTSingleXmlCells { - - @XmlElement(required = true) - protected List singleXmlCell; - - /** - * Gets the value of the singleXmlCell property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the singleXmlCell property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSingleXmlCell().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSingleXmlCell } - * - * - */ - public List getSingleXmlCell() { - if (singleXmlCell == null) { - singleXmlCell = new ArrayList(); - } - return this.singleXmlCell; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SingleXmlCells complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SingleXmlCells">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="singleXmlCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SingleXmlCell" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SingleXmlCells", propOrder = { + "singleXmlCell" +}) +public class CTSingleXmlCells implements Child +{ + + @XmlElement(required = true) + protected List singleXmlCell; + @XmlTransient + private Object parent; + + /** + * Gets the value of the singleXmlCell property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the singleXmlCell property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSingleXmlCell().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSingleXmlCell } + * + * + */ + public List getSingleXmlCell() { + if (singleXmlCell == null) { + singleXmlCell = new ArrayList(); + } + return this.singleXmlCell; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagPr.java index 5f7a020dc1..a5e7c20db5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagPr.java @@ -1,113 +1,125 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SmartTagPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SmartTagPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="embed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="show" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SmartTagShow" default="all" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SmartTagPr") -public class CTSmartTagPr { - - @XmlAttribute - protected Boolean embed; - @XmlAttribute - protected STSmartTagShow show; - - /** - * Gets the value of the embed property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isEmbed() { - if (embed == null) { - return false; - } else { - return embed; - } - } - - /** - * Sets the value of the embed property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setEmbed(Boolean value) { - this.embed = value; - } - - /** - * Gets the value of the show property. - * - * @return - * possible object is - * {@link STSmartTagShow } - * - */ - public STSmartTagShow getShow() { - if (show == null) { - return STSmartTagShow.ALL; - } else { - return show; - } - } - - /** - * Sets the value of the show property. - * - * @param value - * allowed object is - * {@link STSmartTagShow } - * - */ - public void setShow(STSmartTagShow value) { - this.show = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SmartTagPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SmartTagPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="embed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="show" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SmartTagShow" default="all" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SmartTagPr") +public class CTSmartTagPr implements Child +{ + + @XmlAttribute(name = "embed") + protected Boolean embed; + @XmlAttribute(name = "show") + protected STSmartTagShow show; + @XmlTransient + private Object parent; + + /** + * Gets the value of the embed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEmbed() { + if (embed == null) { + return false; + } else { + return embed; + } + } + + /** + * Sets the value of the embed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEmbed(Boolean value) { + this.embed = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link STSmartTagShow } + * + */ + public STSmartTagShow getShow() { + if (show == null) { + return STSmartTagShow.ALL; + } else { + return show; + } + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link STSmartTagShow } + * + */ + public void setShow(STSmartTagShow value) { + this.show = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagType.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagType.java index 73a30c144b..94b532f815 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagType.java @@ -1,132 +1,144 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SmartTagType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SmartTagType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="namespaceUri" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="url" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SmartTagType") -public class CTSmartTagType { - - @XmlAttribute - protected String namespaceUri; - @XmlAttribute - protected String name; - @XmlAttribute - protected String url; - - /** - * Gets the value of the namespaceUri property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getNamespaceUri() { - return namespaceUri; - } - - /** - * Sets the value of the namespaceUri property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setNamespaceUri(String value) { - this.namespaceUri = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the url property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Sets the value of the url property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SmartTagType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SmartTagType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="namespaceUri" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="url" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SmartTagType") +public class CTSmartTagType implements Child +{ + + @XmlAttribute(name = "namespaceUri") + protected String namespaceUri; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "url") + protected String url; + @XmlTransient + private Object parent; + + /** + * Gets the value of the namespaceUri property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNamespaceUri() { + return namespaceUri; + } + + /** + * Sets the value of the namespaceUri property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNamespaceUri(String value) { + this.namespaceUri = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagTypes.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagTypes.java index a05c43c2d8..35e50a4f1e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagTypes.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTagTypes.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SmartTagTypes complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SmartTagTypes">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="smartTagType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTagType" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SmartTagTypes", propOrder = { - "smartTagType" -}) -public class CTSmartTagTypes { - - protected List smartTagType; - - /** - * Gets the value of the smartTagType property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the smartTagType property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSmartTagType().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSmartTagType } - * - * - */ - public List getSmartTagType() { - if (smartTagType == null) { - smartTagType = new ArrayList(); - } - return this.smartTagType; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SmartTagTypes complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SmartTagTypes">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="smartTagType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTagType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SmartTagTypes", propOrder = { + "smartTagType" +}) +public class CTSmartTagTypes implements Child +{ + + protected List smartTagType; + @XmlTransient + private Object parent; + + /** + * Gets the value of the smartTagType property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the smartTagType property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSmartTagType().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSmartTagType } + * + * + */ + public List getSmartTagType() { + if (smartTagType == null) { + smartTagType = new ArrayList(); + } + return this.smartTagType; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTags.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTags.java index b41b15bd19..ce5fa840d8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTags.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSmartTags.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SmartTags complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SmartTags">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="cellSmartTags" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellSmartTags" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SmartTags", propOrder = { - "cellSmartTags" -}) -public class CTSmartTags { - - @XmlElement(required = true) - protected List cellSmartTags; - - /** - * Gets the value of the cellSmartTags property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cellSmartTags property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCellSmartTags().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTCellSmartTags } - * - * - */ - public List getCellSmartTags() { - if (cellSmartTags == null) { - cellSmartTags = new ArrayList(); - } - return this.cellSmartTags; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SmartTags complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SmartTags">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="cellSmartTags" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellSmartTags" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SmartTags", propOrder = { + "cellSmartTags" +}) +public class CTSmartTags implements Child +{ + + @XmlElement(required = true) + protected List cellSmartTags; + @XmlTransient + private Object parent; + + /** + * Gets the value of the cellSmartTags property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cellSmartTags property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCellSmartTags().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTCellSmartTags } + * + * + */ + public List getCellSmartTags() { + if (cellSmartTags == null) { + cellSmartTags = new ArrayList(); + } + return this.cellSmartTags; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSortCondition.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSortCondition.java index 1baafd085c..cc70fa9fdc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSortCondition.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSortCondition.java @@ -1,254 +1,266 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SortCondition complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SortCondition">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="descending" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sortBy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SortBy" default="value" />
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="customList" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="iconSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_IconSetType" default="3Arrows" />
- *       <attribute name="iconId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SortCondition") -public class CTSortCondition { - - @XmlAttribute - protected Boolean descending; - @XmlAttribute - protected STSortBy sortBy; - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute - protected String customList; - @XmlAttribute - protected Long dxfId; - @XmlAttribute - protected String iconSet; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long iconId; - - /** - * Gets the value of the descending property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDescending() { - if (descending == null) { - return false; - } else { - return descending; - } - } - - /** - * Sets the value of the descending property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDescending(Boolean value) { - this.descending = value; - } - - /** - * Gets the value of the sortBy property. - * - * @return - * possible object is - * {@link STSortBy } - * - */ - public STSortBy getSortBy() { - if (sortBy == null) { - return STSortBy.VALUE; - } else { - return sortBy; - } - } - - /** - * Sets the value of the sortBy property. - * - * @param value - * allowed object is - * {@link STSortBy } - * - */ - public void setSortBy(STSortBy value) { - this.sortBy = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the customList property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCustomList() { - return customList; - } - - /** - * Sets the value of the customList property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCustomList(String value) { - this.customList = value; - } - - /** - * Gets the value of the dxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDxfId() { - return dxfId; - } - - /** - * Sets the value of the dxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDxfId(Long value) { - this.dxfId = value; - } - - /** - * Gets the value of the iconSet property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getIconSet() { - if (iconSet == null) { - return "3Arrows"; - } else { - return iconSet; - } - } - - /** - * Sets the value of the iconSet property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setIconSet(String value) { - this.iconSet = value; - } - - /** - * Gets the value of the iconId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIconId() { - return iconId; - } - - /** - * Sets the value of the iconId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIconId(Long value) { - this.iconId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SortCondition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SortCondition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="descending" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sortBy" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SortBy" default="value" />
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="customList" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="iconSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_IconSetType" default="3Arrows" />
+ *       <attribute name="iconId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SortCondition") +public class CTSortCondition implements Child +{ + + @XmlAttribute(name = "descending") + protected Boolean descending; + @XmlAttribute(name = "sortBy") + protected STSortBy sortBy; + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "customList") + protected String customList; + @XmlAttribute(name = "dxfId") + protected Long dxfId; + @XmlAttribute(name = "iconSet") + protected String iconSet; + @XmlAttribute(name = "iconId") + @XmlSchemaType(name = "unsignedInt") + protected Long iconId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the descending property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDescending() { + if (descending == null) { + return false; + } else { + return descending; + } + } + + /** + * Sets the value of the descending property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDescending(Boolean value) { + this.descending = value; + } + + /** + * Gets the value of the sortBy property. + * + * @return + * possible object is + * {@link STSortBy } + * + */ + public STSortBy getSortBy() { + if (sortBy == null) { + return STSortBy.VALUE; + } else { + return sortBy; + } + } + + /** + * Sets the value of the sortBy property. + * + * @param value + * allowed object is + * {@link STSortBy } + * + */ + public void setSortBy(STSortBy value) { + this.sortBy = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the customList property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCustomList() { + return customList; + } + + /** + * Sets the value of the customList property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCustomList(String value) { + this.customList = value; + } + + /** + * Gets the value of the dxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDxfId() { + return dxfId; + } + + /** + * Sets the value of the dxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDxfId(Long value) { + this.dxfId = value; + } + + /** + * Gets the value of the iconSet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIconSet() { + if (iconSet == null) { + return "3Arrows"; + } else { + return iconSet; + } + } + + /** + * Sets the value of the iconSet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIconSet(String value) { + this.iconSet = value; + } + + /** + * Gets the value of the iconId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIconId() { + return iconId; + } + + /** + * Sets the value of the iconId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIconId(Long value) { + this.iconId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSortState.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSortState.java index 6eee2011ac..75550f44e8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSortState.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSortState.java @@ -1,235 +1,247 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SortState complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SortState">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sortCondition" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortCondition" maxOccurs="64" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="columnSort" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="caseSensitive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sortMethod" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SortMethod" default="none" />
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SortState", propOrder = { - "sortCondition", - "extLst" -}) -public class CTSortState { - - protected List sortCondition; - protected CTExtensionList extLst; - @XmlAttribute - protected Boolean columnSort; - @XmlAttribute - protected Boolean caseSensitive; - @XmlAttribute - protected STSortMethod sortMethod; - @XmlAttribute(required = true) - protected String ref; - - /** - * Gets the value of the sortCondition property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sortCondition property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSortCondition().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSortCondition } - * - * - */ - public List getSortCondition() { - if (sortCondition == null) { - sortCondition = new ArrayList(); - } - return this.sortCondition; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the columnSort property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isColumnSort() { - if (columnSort == null) { - return false; - } else { - return columnSort; - } - } - - /** - * Sets the value of the columnSort property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setColumnSort(Boolean value) { - this.columnSort = value; - } - - /** - * Gets the value of the caseSensitive property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCaseSensitive() { - if (caseSensitive == null) { - return false; - } else { - return caseSensitive; - } - } - - /** - * Sets the value of the caseSensitive property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCaseSensitive(Boolean value) { - this.caseSensitive = value; - } - - /** - * Gets the value of the sortMethod property. - * - * @return - * possible object is - * {@link STSortMethod } - * - */ - public STSortMethod getSortMethod() { - if (sortMethod == null) { - return STSortMethod.NONE; - } else { - return sortMethod; - } - } - - /** - * Sets the value of the sortMethod property. - * - * @param value - * allowed object is - * {@link STSortMethod } - * - */ - public void setSortMethod(STSortMethod value) { - this.sortMethod = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SortState complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SortState">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sortCondition" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortCondition" maxOccurs="64" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="columnSort" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="caseSensitive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sortMethod" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SortMethod" default="none" />
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SortState", propOrder = { + "sortCondition", + "extLst" +}) +public class CTSortState implements Child +{ + + protected List sortCondition; + protected CTExtensionList extLst; + @XmlAttribute(name = "columnSort") + protected Boolean columnSort; + @XmlAttribute(name = "caseSensitive") + protected Boolean caseSensitive; + @XmlAttribute(name = "sortMethod") + protected STSortMethod sortMethod; + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sortCondition property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sortCondition property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSortCondition().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSortCondition } + * + * + */ + public List getSortCondition() { + if (sortCondition == null) { + sortCondition = new ArrayList(); + } + return this.sortCondition; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the columnSort property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isColumnSort() { + if (columnSort == null) { + return false; + } else { + return columnSort; + } + } + + /** + * Sets the value of the columnSort property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setColumnSort(Boolean value) { + this.columnSort = value; + } + + /** + * Gets the value of the caseSensitive property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCaseSensitive() { + if (caseSensitive == null) { + return false; + } else { + return caseSensitive; + } + } + + /** + * Sets the value of the caseSensitive property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCaseSensitive(Boolean value) { + this.caseSensitive = value; + } + + /** + * Gets the value of the sortMethod property. + * + * @return + * possible object is + * {@link STSortMethod } + * + */ + public STSortMethod getSortMethod() { + if (sortMethod == null) { + return STSortMethod.NONE; + } else { + return sortMethod; + } + } + + /** + * Sets the value of the sortMethod property. + * + * @param value + * allowed object is + * {@link STSortMethod } + * + */ + public void setSortMethod(STSortMethod value) { + this.sortMethod = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTSst.java b/src/xlsx4j/java/org/xlsx4j/sml/CTSst.java index 5ca113488e..91d0989d11 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTSst.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTSst.java @@ -1,174 +1,186 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Sst complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Sst">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="si" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="uniqueCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Sst", propOrder = { - "si", - "extLst" -}) -@XmlRootElement(name = "sst") -public class CTSst { - - protected List si; - protected CTExtensionList extLst; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long uniqueCount; - - /** - * Gets the value of the si property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the si property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSi().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTRst } - * - * - */ - public List getSi() { - if (si == null) { - si = new ArrayList(); - } - return this.si; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the uniqueCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getUniqueCount() { - return uniqueCount; - } - - /** - * Sets the value of the uniqueCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setUniqueCount(Long value) { - this.uniqueCount = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Sst complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Sst">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="si" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="uniqueCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Sst", propOrder = { + "si", + "extLst" +}) +@XmlRootElement(name = "sst") +public class CTSst implements Child +{ + + protected List si; + protected CTExtensionList extLst; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "uniqueCount") + @XmlSchemaType(name = "unsignedInt") + protected Long uniqueCount; + @XmlTransient + private Object parent; + + /** + * Gets the value of the si property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the si property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSi().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTRst } + * + * + */ + public List getSi() { + if (si == null) { + si = new ArrayList(); + } + return this.si; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the uniqueCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getUniqueCount() { + return uniqueCount; + } + + /** + * Sets the value of the uniqueCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setUniqueCount(Long value) { + this.uniqueCount = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTString.java b/src/xlsx4j/java/org/xlsx4j/sml/CTString.java index 9be53bc9cd..b6c7576acd 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTString.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTString.java @@ -1,467 +1,479 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_String complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_String">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="v" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
- *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_String", propOrder = { - "tpls", - "x" -}) -public class CTString { - - protected List tpls; - protected List x; - @XmlAttribute(required = true) - protected String v; - @XmlAttribute - protected Boolean u; - @XmlAttribute - protected Boolean f; - @XmlAttribute - protected String c; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cp; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long in; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] bc; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] fc; - @XmlAttribute - protected Boolean i; - @XmlAttribute - protected Boolean un; - @XmlAttribute - protected Boolean st; - @XmlAttribute - protected Boolean b; - - /** - * Gets the value of the tpls property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tpls property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTpls().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTuples } - * - * - */ - public List getTpls() { - if (tpls == null) { - tpls = new ArrayList(); - } - return this.tpls; - } - - /** - * Gets the value of the x property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the x property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTX } - * - * - */ - public List getX() { - if (x == null) { - x = new ArrayList(); - } - return this.x; - } - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getV() { - return v; - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setV(String value) { - this.v = value; - } - - /** - * Gets the value of the u property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isU() { - return u; - } - - /** - * Sets the value of the u property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setU(Boolean value) { - this.u = value; - } - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setF(Boolean value) { - this.f = value; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getC() { - return c; - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setC(String value) { - this.c = value; - } - - /** - * Gets the value of the cp property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCp() { - return cp; - } - - /** - * Sets the value of the cp property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCp(Long value) { - this.cp = value; - } - - /** - * Gets the value of the in property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getIn() { - return in; - } - - /** - * Sets the value of the in property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setIn(Long value) { - this.in = value; - } - - /** - * Gets the value of the bc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getBc() { - return bc; - } - - /** - * Sets the value of the bc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBc(byte[] value) { - this.bc = ((byte[]) value); - } - - /** - * Gets the value of the fc property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getFc() { - return fc; - } - - /** - * Sets the value of the fc property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFc(byte[] value) { - this.fc = ((byte[]) value); - } - - /** - * Gets the value of the i property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isI() { - if (i == null) { - return false; - } else { - return i; - } - } - - /** - * Sets the value of the i property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setI(Boolean value) { - this.i = value; - } - - /** - * Gets the value of the un property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isUn() { - if (un == null) { - return false; - } else { - return un; - } - } - - /** - * Sets the value of the un property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setUn(Boolean value) { - this.un = value; - } - - /** - * Gets the value of the st property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSt() { - if (st == null) { - return false; - } else { - return st; - } - } - - /** - * Sets the value of the st property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSt(Boolean value) { - this.st = value; - } - - /** - * Gets the value of the b property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isB() { - if (b == null) { - return false; - } else { - return b; - } - } - - /** - * Sets the value of the b property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setB(Boolean value) { - this.b = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_String complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_String">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="v" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="c" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
+ *       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_String", propOrder = { + "tpls", + "x" +}) +public class CTString implements Child +{ + + protected List tpls; + protected List x; + @XmlAttribute(name = "v", required = true) + protected String v; + @XmlAttribute(name = "u") + protected Boolean u; + @XmlAttribute(name = "f") + protected Boolean f; + @XmlAttribute(name = "c") + protected String c; + @XmlAttribute(name = "cp") + @XmlSchemaType(name = "unsignedInt") + protected Long cp; + @XmlAttribute(name = "in") + @XmlSchemaType(name = "unsignedInt") + protected Long in; + @XmlAttribute(name = "bc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] bc; + @XmlAttribute(name = "fc") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] fc; + @XmlAttribute(name = "i") + protected Boolean i; + @XmlAttribute(name = "un") + protected Boolean un; + @XmlAttribute(name = "st") + protected Boolean st; + @XmlAttribute(name = "b") + protected Boolean b; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tpls property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tpls property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTpls().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTuples } + * + * + */ + public List getTpls() { + if (tpls == null) { + tpls = new ArrayList(); + } + return this.tpls; + } + + /** + * Gets the value of the x property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the x property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTX } + * + * + */ + public List getX() { + if (x == null) { + x = new ArrayList(); + } + return this.x; + } + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getV() { + return v; + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setV(String value) { + this.v = value; + } + + /** + * Gets the value of the u property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isU() { + return u; + } + + /** + * Sets the value of the u property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setU(Boolean value) { + this.u = value; + } + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setF(Boolean value) { + this.f = value; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getC() { + return c; + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setC(String value) { + this.c = value; + } + + /** + * Gets the value of the cp property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCp() { + return cp; + } + + /** + * Sets the value of the cp property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCp(Long value) { + this.cp = value; + } + + /** + * Gets the value of the in property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIn() { + return in; + } + + /** + * Sets the value of the in property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIn(Long value) { + this.in = value; + } + + /** + * Gets the value of the bc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getBc() { + return bc; + } + + /** + * Sets the value of the bc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBc(byte[] value) { + this.bc = value; + } + + /** + * Gets the value of the fc property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getFc() { + return fc; + } + + /** + * Sets the value of the fc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFc(byte[] value) { + this.fc = value; + } + + /** + * Gets the value of the i property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isI() { + if (i == null) { + return false; + } else { + return i; + } + } + + /** + * Sets the value of the i property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setI(Boolean value) { + this.i = value; + } + + /** + * Gets the value of the un property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUn() { + if (un == null) { + return false; + } else { + return un; + } + } + + /** + * Sets the value of the un property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUn(Boolean value) { + this.un = value; + } + + /** + * Gets the value of the st property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSt() { + if (st == null) { + return false; + } else { + return st; + } + } + + /** + * Sets the value of the st property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSt(Boolean value) { + this.st = value; + } + + /** + * Gets the value of the b property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isB() { + if (b == null) { + return false; + } else { + return b; + } + } + + /** + * Sets the value of the b property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setB(Boolean value) { + this.b = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTStylesheet.java b/src/xlsx4j/java/org/xlsx4j/sml/CTStylesheet.java index 1b50700555..ecae949aca 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTStylesheet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTStylesheet.java @@ -1,352 +1,364 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Stylesheet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Stylesheet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="numFmts" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_NumFmts" minOccurs="0"/>
- *         <element name="fonts" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fonts" minOccurs="0"/>
- *         <element name="fills" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fills" minOccurs="0"/>
- *         <element name="borders" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Borders" minOccurs="0"/>
- *         <element name="cellStyleXfs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellStyleXfs" minOccurs="0"/>
- *         <element name="cellXfs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellXfs" minOccurs="0"/>
- *         <element name="cellStyles" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellStyles" minOccurs="0"/>
- *         <element name="dxfs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxfs" minOccurs="0"/>
- *         <element name="tableStyles" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyles" minOccurs="0"/>
- *         <element name="colors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Colors" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Stylesheet", propOrder = { - "numFmts", - "fonts", - "fills", - "borders", - "cellStyleXfs", - "cellXfs", - "cellStyles", - "dxfs", - "tableStyles", - "colors", - "extLst" -}) -@XmlRootElement(name = "styleSheet") -public class CTStylesheet { - - protected CTNumFmts numFmts; - protected CTFonts fonts; - protected CTFills fills; - protected CTBorders borders; - protected CTCellStyleXfs cellStyleXfs; - protected CTCellXfs cellXfs; - protected CTCellStyles cellStyles; - protected CTDxfs dxfs; - protected CTTableStyles tableStyles; - protected CTColors colors; - protected CTExtensionList extLst; - - /** - * Gets the value of the numFmts property. - * - * @return - * possible object is - * {@link CTNumFmts } - * - */ - public CTNumFmts getNumFmts() { - return numFmts; - } - - /** - * Sets the value of the numFmts property. - * - * @param value - * allowed object is - * {@link CTNumFmts } - * - */ - public void setNumFmts(CTNumFmts value) { - this.numFmts = value; - } - - /** - * Gets the value of the fonts property. - * - * @return - * possible object is - * {@link CTFonts } - * - */ - public CTFonts getFonts() { - return fonts; - } - - /** - * Sets the value of the fonts property. - * - * @param value - * allowed object is - * {@link CTFonts } - * - */ - public void setFonts(CTFonts value) { - this.fonts = value; - } - - /** - * Gets the value of the fills property. - * - * @return - * possible object is - * {@link CTFills } - * - */ - public CTFills getFills() { - return fills; - } - - /** - * Sets the value of the fills property. - * - * @param value - * allowed object is - * {@link CTFills } - * - */ - public void setFills(CTFills value) { - this.fills = value; - } - - /** - * Gets the value of the borders property. - * - * @return - * possible object is - * {@link CTBorders } - * - */ - public CTBorders getBorders() { - return borders; - } - - /** - * Sets the value of the borders property. - * - * @param value - * allowed object is - * {@link CTBorders } - * - */ - public void setBorders(CTBorders value) { - this.borders = value; - } - - /** - * Gets the value of the cellStyleXfs property. - * - * @return - * possible object is - * {@link CTCellStyleXfs } - * - */ - public CTCellStyleXfs getCellStyleXfs() { - return cellStyleXfs; - } - - /** - * Sets the value of the cellStyleXfs property. - * - * @param value - * allowed object is - * {@link CTCellStyleXfs } - * - */ - public void setCellStyleXfs(CTCellStyleXfs value) { - this.cellStyleXfs = value; - } - - /** - * Gets the value of the cellXfs property. - * - * @return - * possible object is - * {@link CTCellXfs } - * - */ - public CTCellXfs getCellXfs() { - return cellXfs; - } - - /** - * Sets the value of the cellXfs property. - * - * @param value - * allowed object is - * {@link CTCellXfs } - * - */ - public void setCellXfs(CTCellXfs value) { - this.cellXfs = value; - } - - /** - * Gets the value of the cellStyles property. - * - * @return - * possible object is - * {@link CTCellStyles } - * - */ - public CTCellStyles getCellStyles() { - return cellStyles; - } - - /** - * Sets the value of the cellStyles property. - * - * @param value - * allowed object is - * {@link CTCellStyles } - * - */ - public void setCellStyles(CTCellStyles value) { - this.cellStyles = value; - } - - /** - * Gets the value of the dxfs property. - * - * @return - * possible object is - * {@link CTDxfs } - * - */ - public CTDxfs getDxfs() { - return dxfs; - } - - /** - * Sets the value of the dxfs property. - * - * @param value - * allowed object is - * {@link CTDxfs } - * - */ - public void setDxfs(CTDxfs value) { - this.dxfs = value; - } - - /** - * Gets the value of the tableStyles property. - * - * @return - * possible object is - * {@link CTTableStyles } - * - */ - public CTTableStyles getTableStyles() { - return tableStyles; - } - - /** - * Sets the value of the tableStyles property. - * - * @param value - * allowed object is - * {@link CTTableStyles } - * - */ - public void setTableStyles(CTTableStyles value) { - this.tableStyles = value; - } - - /** - * Gets the value of the colors property. - * - * @return - * possible object is - * {@link CTColors } - * - */ - public CTColors getColors() { - return colors; - } - - /** - * Sets the value of the colors property. - * - * @param value - * allowed object is - * {@link CTColors } - * - */ - public void setColors(CTColors value) { - this.colors = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Stylesheet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Stylesheet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="numFmts" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_NumFmts" minOccurs="0"/>
+ *         <element name="fonts" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fonts" minOccurs="0"/>
+ *         <element name="fills" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Fills" minOccurs="0"/>
+ *         <element name="borders" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Borders" minOccurs="0"/>
+ *         <element name="cellStyleXfs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellStyleXfs" minOccurs="0"/>
+ *         <element name="cellXfs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellXfs" minOccurs="0"/>
+ *         <element name="cellStyles" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellStyles" minOccurs="0"/>
+ *         <element name="dxfs" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Dxfs" minOccurs="0"/>
+ *         <element name="tableStyles" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyles" minOccurs="0"/>
+ *         <element name="colors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Colors" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Stylesheet", propOrder = { + "numFmts", + "fonts", + "fills", + "borders", + "cellStyleXfs", + "cellXfs", + "cellStyles", + "dxfs", + "tableStyles", + "colors", + "extLst" +}) +@XmlRootElement(name = "styleSheet") +public class CTStylesheet implements Child +{ + + protected CTNumFmts numFmts; + protected CTFonts fonts; + protected CTFills fills; + protected CTBorders borders; + protected CTCellStyleXfs cellStyleXfs; + protected CTCellXfs cellXfs; + protected CTCellStyles cellStyles; + protected CTDxfs dxfs; + protected CTTableStyles tableStyles; + protected CTColors colors; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the numFmts property. + * + * @return + * possible object is + * {@link CTNumFmts } + * + */ + public CTNumFmts getNumFmts() { + return numFmts; + } + + /** + * Sets the value of the numFmts property. + * + * @param value + * allowed object is + * {@link CTNumFmts } + * + */ + public void setNumFmts(CTNumFmts value) { + this.numFmts = value; + } + + /** + * Gets the value of the fonts property. + * + * @return + * possible object is + * {@link CTFonts } + * + */ + public CTFonts getFonts() { + return fonts; + } + + /** + * Sets the value of the fonts property. + * + * @param value + * allowed object is + * {@link CTFonts } + * + */ + public void setFonts(CTFonts value) { + this.fonts = value; + } + + /** + * Gets the value of the fills property. + * + * @return + * possible object is + * {@link CTFills } + * + */ + public CTFills getFills() { + return fills; + } + + /** + * Sets the value of the fills property. + * + * @param value + * allowed object is + * {@link CTFills } + * + */ + public void setFills(CTFills value) { + this.fills = value; + } + + /** + * Gets the value of the borders property. + * + * @return + * possible object is + * {@link CTBorders } + * + */ + public CTBorders getBorders() { + return borders; + } + + /** + * Sets the value of the borders property. + * + * @param value + * allowed object is + * {@link CTBorders } + * + */ + public void setBorders(CTBorders value) { + this.borders = value; + } + + /** + * Gets the value of the cellStyleXfs property. + * + * @return + * possible object is + * {@link CTCellStyleXfs } + * + */ + public CTCellStyleXfs getCellStyleXfs() { + return cellStyleXfs; + } + + /** + * Sets the value of the cellStyleXfs property. + * + * @param value + * allowed object is + * {@link CTCellStyleXfs } + * + */ + public void setCellStyleXfs(CTCellStyleXfs value) { + this.cellStyleXfs = value; + } + + /** + * Gets the value of the cellXfs property. + * + * @return + * possible object is + * {@link CTCellXfs } + * + */ + public CTCellXfs getCellXfs() { + return cellXfs; + } + + /** + * Sets the value of the cellXfs property. + * + * @param value + * allowed object is + * {@link CTCellXfs } + * + */ + public void setCellXfs(CTCellXfs value) { + this.cellXfs = value; + } + + /** + * Gets the value of the cellStyles property. + * + * @return + * possible object is + * {@link CTCellStyles } + * + */ + public CTCellStyles getCellStyles() { + return cellStyles; + } + + /** + * Sets the value of the cellStyles property. + * + * @param value + * allowed object is + * {@link CTCellStyles } + * + */ + public void setCellStyles(CTCellStyles value) { + this.cellStyles = value; + } + + /** + * Gets the value of the dxfs property. + * + * @return + * possible object is + * {@link CTDxfs } + * + */ + public CTDxfs getDxfs() { + return dxfs; + } + + /** + * Sets the value of the dxfs property. + * + * @param value + * allowed object is + * {@link CTDxfs } + * + */ + public void setDxfs(CTDxfs value) { + this.dxfs = value; + } + + /** + * Gets the value of the tableStyles property. + * + * @return + * possible object is + * {@link CTTableStyles } + * + */ + public CTTableStyles getTableStyles() { + return tableStyles; + } + + /** + * Sets the value of the tableStyles property. + * + * @param value + * allowed object is + * {@link CTTableStyles } + * + */ + public void setTableStyles(CTTableStyles value) { + this.tableStyles = value; + } + + /** + * Gets the value of the colors property. + * + * @return + * possible object is + * {@link CTColors } + * + */ + public CTColors getColors() { + return colors; + } + + /** + * Sets the value of the colors property. + * + * @param value + * allowed object is + * {@link CTColors } + * + */ + public void setColors(CTColors value) { + this.colors = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTable.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTable.java index 988cf04ec5..cbd439845c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTable.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTable.java @@ -1,812 +1,824 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Table complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Table">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
- *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
- *         <element name="tableColumns" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableColumns"/>
- *         <element name="tableStyleInfo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyleInfo" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="displayName" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="comment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="tableType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TableType" default="worksheet" />
- *       <attribute name="headerRowCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="insertRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="insertRowShift" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="totalsRowCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="totalsRowShown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="headerRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="dataDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="totalsRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="headerRowBorderDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="tableBorderDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="totalsRowBorderDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="headerRowCellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="dataCellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="totalsRowCellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="connectionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Table", propOrder = { - "autoFilter", - "sortState", - "tableColumns", - "tableStyleInfo", - "extLst" -}) -@XmlRootElement(name = "table") -public class CTTable { - - protected CTAutoFilter autoFilter; - protected CTSortState sortState; - @XmlElement(required = true) - protected CTTableColumns tableColumns; - protected CTTableStyleInfo tableStyleInfo; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute - protected String name; - @XmlAttribute(required = true) - protected String displayName; - @XmlAttribute - protected String comment; - @XmlAttribute(required = true) - protected String ref; - @XmlAttribute - protected STTableType tableType; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long headerRowCount; - @XmlAttribute - protected Boolean insertRow; - @XmlAttribute - protected Boolean insertRowShift; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long totalsRowCount; - @XmlAttribute - protected Boolean totalsRowShown; - @XmlAttribute - protected Boolean published; - @XmlAttribute - protected Long headerRowDxfId; - @XmlAttribute - protected Long dataDxfId; - @XmlAttribute - protected Long totalsRowDxfId; - @XmlAttribute - protected Long headerRowBorderDxfId; - @XmlAttribute - protected Long tableBorderDxfId; - @XmlAttribute - protected Long totalsRowBorderDxfId; - @XmlAttribute - protected String headerRowCellStyle; - @XmlAttribute - protected String dataCellStyle; - @XmlAttribute - protected String totalsRowCellStyle; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long connectionId; - - /** - * Gets the value of the autoFilter property. - * - * @return - * possible object is - * {@link CTAutoFilter } - * - */ - public CTAutoFilter getAutoFilter() { - return autoFilter; - } - - /** - * Sets the value of the autoFilter property. - * - * @param value - * allowed object is - * {@link CTAutoFilter } - * - */ - public void setAutoFilter(CTAutoFilter value) { - this.autoFilter = value; - } - - /** - * Gets the value of the sortState property. - * - * @return - * possible object is - * {@link CTSortState } - * - */ - public CTSortState getSortState() { - return sortState; - } - - /** - * Sets the value of the sortState property. - * - * @param value - * allowed object is - * {@link CTSortState } - * - */ - public void setSortState(CTSortState value) { - this.sortState = value; - } - - /** - * Gets the value of the tableColumns property. - * - * @return - * possible object is - * {@link CTTableColumns } - * - */ - public CTTableColumns getTableColumns() { - return tableColumns; - } - - /** - * Sets the value of the tableColumns property. - * - * @param value - * allowed object is - * {@link CTTableColumns } - * - */ - public void setTableColumns(CTTableColumns value) { - this.tableColumns = value; - } - - /** - * Gets the value of the tableStyleInfo property. - * - * @return - * possible object is - * {@link CTTableStyleInfo } - * - */ - public CTTableStyleInfo getTableStyleInfo() { - return tableStyleInfo; - } - - /** - * Sets the value of the tableStyleInfo property. - * - * @param value - * allowed object is - * {@link CTTableStyleInfo } - * - */ - public void setTableStyleInfo(CTTableStyleInfo value) { - this.tableStyleInfo = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the displayName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the displayName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDisplayName(String value) { - this.displayName = value; - } - - /** - * Gets the value of the comment property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getComment() { - return comment; - } - - /** - * Sets the value of the comment property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setComment(String value) { - this.comment = value; - } - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the tableType property. - * - * @return - * possible object is - * {@link STTableType } - * - */ - public STTableType getTableType() { - if (tableType == null) { - return STTableType.WORKSHEET; - } else { - return tableType; - } - } - - /** - * Sets the value of the tableType property. - * - * @param value - * allowed object is - * {@link STTableType } - * - */ - public void setTableType(STTableType value) { - this.tableType = value; - } - - /** - * Gets the value of the headerRowCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getHeaderRowCount() { - if (headerRowCount == null) { - return 1L; - } else { - return headerRowCount; - } - } - - /** - * Sets the value of the headerRowCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setHeaderRowCount(Long value) { - this.headerRowCount = value; - } - - /** - * Gets the value of the insertRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInsertRow() { - if (insertRow == null) { - return false; - } else { - return insertRow; - } - } - - /** - * Sets the value of the insertRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInsertRow(Boolean value) { - this.insertRow = value; - } - - /** - * Gets the value of the insertRowShift property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isInsertRowShift() { - if (insertRowShift == null) { - return false; - } else { - return insertRowShift; - } - } - - /** - * Sets the value of the insertRowShift property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInsertRowShift(Boolean value) { - this.insertRowShift = value; - } - - /** - * Gets the value of the totalsRowCount property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getTotalsRowCount() { - if (totalsRowCount == null) { - return 0L; - } else { - return totalsRowCount; - } - } - - /** - * Sets the value of the totalsRowCount property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTotalsRowCount(Long value) { - this.totalsRowCount = value; - } - - /** - * Gets the value of the totalsRowShown property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTotalsRowShown() { - if (totalsRowShown == null) { - return true; - } else { - return totalsRowShown; - } - } - - /** - * Sets the value of the totalsRowShown property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTotalsRowShown(Boolean value) { - this.totalsRowShown = value; - } - - /** - * Gets the value of the published property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPublished() { - if (published == null) { - return false; - } else { - return published; - } - } - - /** - * Sets the value of the published property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPublished(Boolean value) { - this.published = value; - } - - /** - * Gets the value of the headerRowDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getHeaderRowDxfId() { - return headerRowDxfId; - } - - /** - * Sets the value of the headerRowDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setHeaderRowDxfId(Long value) { - this.headerRowDxfId = value; - } - - /** - * Gets the value of the dataDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDataDxfId() { - return dataDxfId; - } - - /** - * Sets the value of the dataDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDataDxfId(Long value) { - this.dataDxfId = value; - } - - /** - * Gets the value of the totalsRowDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getTotalsRowDxfId() { - return totalsRowDxfId; - } - - /** - * Sets the value of the totalsRowDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTotalsRowDxfId(Long value) { - this.totalsRowDxfId = value; - } - - /** - * Gets the value of the headerRowBorderDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getHeaderRowBorderDxfId() { - return headerRowBorderDxfId; - } - - /** - * Sets the value of the headerRowBorderDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setHeaderRowBorderDxfId(Long value) { - this.headerRowBorderDxfId = value; - } - - /** - * Gets the value of the tableBorderDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getTableBorderDxfId() { - return tableBorderDxfId; - } - - /** - * Sets the value of the tableBorderDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTableBorderDxfId(Long value) { - this.tableBorderDxfId = value; - } - - /** - * Gets the value of the totalsRowBorderDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getTotalsRowBorderDxfId() { - return totalsRowBorderDxfId; - } - - /** - * Sets the value of the totalsRowBorderDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTotalsRowBorderDxfId(Long value) { - this.totalsRowBorderDxfId = value; - } - - /** - * Gets the value of the headerRowCellStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHeaderRowCellStyle() { - return headerRowCellStyle; - } - - /** - * Sets the value of the headerRowCellStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHeaderRowCellStyle(String value) { - this.headerRowCellStyle = value; - } - - /** - * Gets the value of the dataCellStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataCellStyle() { - return dataCellStyle; - } - - /** - * Sets the value of the dataCellStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataCellStyle(String value) { - this.dataCellStyle = value; - } - - /** - * Gets the value of the totalsRowCellStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTotalsRowCellStyle() { - return totalsRowCellStyle; - } - - /** - * Sets the value of the totalsRowCellStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTotalsRowCellStyle(String value) { - this.totalsRowCellStyle = value; - } - - /** - * Gets the value of the connectionId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getConnectionId() { - return connectionId; - } - - /** - * Sets the value of the connectionId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setConnectionId(Long value) { - this.connectionId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Table complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Table">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
+ *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
+ *         <element name="tableColumns" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableColumns"/>
+ *         <element name="tableStyleInfo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyleInfo" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="displayName" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="comment" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="ref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="tableType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TableType" default="worksheet" />
+ *       <attribute name="headerRowCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="insertRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="insertRowShift" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="totalsRowCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="totalsRowShown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="published" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="headerRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="dataDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="totalsRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="headerRowBorderDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="tableBorderDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="totalsRowBorderDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="headerRowCellStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="dataCellStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="totalsRowCellStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="connectionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Table", propOrder = { + "autoFilter", + "sortState", + "tableColumns", + "tableStyleInfo", + "extLst" +}) +@XmlRootElement(name = "table") +public class CTTable implements Child +{ + + protected CTAutoFilter autoFilter; + protected CTSortState sortState; + @XmlElement(required = true) + protected CTTableColumns tableColumns; + protected CTTableStyleInfo tableStyleInfo; + protected CTExtensionList extLst; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "displayName", required = true) + protected String displayName; + @XmlAttribute(name = "comment") + protected String comment; + @XmlAttribute(name = "ref", required = true) + protected String ref; + @XmlAttribute(name = "tableType") + protected STTableType tableType; + @XmlAttribute(name = "headerRowCount") + @XmlSchemaType(name = "unsignedInt") + protected Long headerRowCount; + @XmlAttribute(name = "insertRow") + protected Boolean insertRow; + @XmlAttribute(name = "insertRowShift") + protected Boolean insertRowShift; + @XmlAttribute(name = "totalsRowCount") + @XmlSchemaType(name = "unsignedInt") + protected Long totalsRowCount; + @XmlAttribute(name = "totalsRowShown") + protected Boolean totalsRowShown; + @XmlAttribute(name = "published") + protected Boolean published; + @XmlAttribute(name = "headerRowDxfId") + protected Long headerRowDxfId; + @XmlAttribute(name = "dataDxfId") + protected Long dataDxfId; + @XmlAttribute(name = "totalsRowDxfId") + protected Long totalsRowDxfId; + @XmlAttribute(name = "headerRowBorderDxfId") + protected Long headerRowBorderDxfId; + @XmlAttribute(name = "tableBorderDxfId") + protected Long tableBorderDxfId; + @XmlAttribute(name = "totalsRowBorderDxfId") + protected Long totalsRowBorderDxfId; + @XmlAttribute(name = "headerRowCellStyle") + protected String headerRowCellStyle; + @XmlAttribute(name = "dataCellStyle") + protected String dataCellStyle; + @XmlAttribute(name = "totalsRowCellStyle") + protected String totalsRowCellStyle; + @XmlAttribute(name = "connectionId") + @XmlSchemaType(name = "unsignedInt") + protected Long connectionId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the autoFilter property. + * + * @return + * possible object is + * {@link CTAutoFilter } + * + */ + public CTAutoFilter getAutoFilter() { + return autoFilter; + } + + /** + * Sets the value of the autoFilter property. + * + * @param value + * allowed object is + * {@link CTAutoFilter } + * + */ + public void setAutoFilter(CTAutoFilter value) { + this.autoFilter = value; + } + + /** + * Gets the value of the sortState property. + * + * @return + * possible object is + * {@link CTSortState } + * + */ + public CTSortState getSortState() { + return sortState; + } + + /** + * Sets the value of the sortState property. + * + * @param value + * allowed object is + * {@link CTSortState } + * + */ + public void setSortState(CTSortState value) { + this.sortState = value; + } + + /** + * Gets the value of the tableColumns property. + * + * @return + * possible object is + * {@link CTTableColumns } + * + */ + public CTTableColumns getTableColumns() { + return tableColumns; + } + + /** + * Sets the value of the tableColumns property. + * + * @param value + * allowed object is + * {@link CTTableColumns } + * + */ + public void setTableColumns(CTTableColumns value) { + this.tableColumns = value; + } + + /** + * Gets the value of the tableStyleInfo property. + * + * @return + * possible object is + * {@link CTTableStyleInfo } + * + */ + public CTTableStyleInfo getTableStyleInfo() { + return tableStyleInfo; + } + + /** + * Sets the value of the tableStyleInfo property. + * + * @param value + * allowed object is + * {@link CTTableStyleInfo } + * + */ + public void setTableStyleInfo(CTTableStyleInfo value) { + this.tableStyleInfo = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the displayName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayName(String value) { + this.displayName = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the tableType property. + * + * @return + * possible object is + * {@link STTableType } + * + */ + public STTableType getTableType() { + if (tableType == null) { + return STTableType.WORKSHEET; + } else { + return tableType; + } + } + + /** + * Sets the value of the tableType property. + * + * @param value + * allowed object is + * {@link STTableType } + * + */ + public void setTableType(STTableType value) { + this.tableType = value; + } + + /** + * Gets the value of the headerRowCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getHeaderRowCount() { + if (headerRowCount == null) { + return 1L; + } else { + return headerRowCount; + } + } + + /** + * Sets the value of the headerRowCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setHeaderRowCount(Long value) { + this.headerRowCount = value; + } + + /** + * Gets the value of the insertRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInsertRow() { + if (insertRow == null) { + return false; + } else { + return insertRow; + } + } + + /** + * Sets the value of the insertRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInsertRow(Boolean value) { + this.insertRow = value; + } + + /** + * Gets the value of the insertRowShift property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isInsertRowShift() { + if (insertRowShift == null) { + return false; + } else { + return insertRowShift; + } + } + + /** + * Sets the value of the insertRowShift property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInsertRowShift(Boolean value) { + this.insertRowShift = value; + } + + /** + * Gets the value of the totalsRowCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getTotalsRowCount() { + if (totalsRowCount == null) { + return 0L; + } else { + return totalsRowCount; + } + } + + /** + * Sets the value of the totalsRowCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTotalsRowCount(Long value) { + this.totalsRowCount = value; + } + + /** + * Gets the value of the totalsRowShown property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTotalsRowShown() { + if (totalsRowShown == null) { + return true; + } else { + return totalsRowShown; + } + } + + /** + * Sets the value of the totalsRowShown property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTotalsRowShown(Boolean value) { + this.totalsRowShown = value; + } + + /** + * Gets the value of the published property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPublished() { + if (published == null) { + return false; + } else { + return published; + } + } + + /** + * Sets the value of the published property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPublished(Boolean value) { + this.published = value; + } + + /** + * Gets the value of the headerRowDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getHeaderRowDxfId() { + return headerRowDxfId; + } + + /** + * Sets the value of the headerRowDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setHeaderRowDxfId(Long value) { + this.headerRowDxfId = value; + } + + /** + * Gets the value of the dataDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDataDxfId() { + return dataDxfId; + } + + /** + * Sets the value of the dataDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDataDxfId(Long value) { + this.dataDxfId = value; + } + + /** + * Gets the value of the totalsRowDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTotalsRowDxfId() { + return totalsRowDxfId; + } + + /** + * Sets the value of the totalsRowDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTotalsRowDxfId(Long value) { + this.totalsRowDxfId = value; + } + + /** + * Gets the value of the headerRowBorderDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getHeaderRowBorderDxfId() { + return headerRowBorderDxfId; + } + + /** + * Sets the value of the headerRowBorderDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setHeaderRowBorderDxfId(Long value) { + this.headerRowBorderDxfId = value; + } + + /** + * Gets the value of the tableBorderDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTableBorderDxfId() { + return tableBorderDxfId; + } + + /** + * Sets the value of the tableBorderDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTableBorderDxfId(Long value) { + this.tableBorderDxfId = value; + } + + /** + * Gets the value of the totalsRowBorderDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTotalsRowBorderDxfId() { + return totalsRowBorderDxfId; + } + + /** + * Sets the value of the totalsRowBorderDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTotalsRowBorderDxfId(Long value) { + this.totalsRowBorderDxfId = value; + } + + /** + * Gets the value of the headerRowCellStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderRowCellStyle() { + return headerRowCellStyle; + } + + /** + * Sets the value of the headerRowCellStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderRowCellStyle(String value) { + this.headerRowCellStyle = value; + } + + /** + * Gets the value of the dataCellStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDataCellStyle() { + return dataCellStyle; + } + + /** + * Sets the value of the dataCellStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDataCellStyle(String value) { + this.dataCellStyle = value; + } + + /** + * Gets the value of the totalsRowCellStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTotalsRowCellStyle() { + return totalsRowCellStyle; + } + + /** + * Sets the value of the totalsRowCellStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTotalsRowCellStyle(String value) { + this.totalsRowCellStyle = value; + } + + /** + * Gets the value of the connectionId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getConnectionId() { + return connectionId; + } + + /** + * Sets the value of the connectionId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setConnectionId(Long value) { + this.connectionId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumn.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumn.java index 15bc1e495e..c85b79e2bc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumn.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumn.java @@ -1,485 +1,497 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableColumn complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableColumn">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="calculatedColumnFormula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableFormula" minOccurs="0"/>
- *         <element name="totalsRowFormula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableFormula" minOccurs="0"/>
- *         <element name="xmlColumnPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XmlColumnPr" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="uniqueName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="totalsRowFunction" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TotalsRowFunction" default="none" />
- *       <attribute name="totalsRowLabel" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="queryTableFieldId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="headerRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="dataDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="totalsRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *       <attribute name="headerRowCellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="dataCellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="totalsRowCellStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableColumn", propOrder = { - "calculatedColumnFormula", - "totalsRowFormula", - "xmlColumnPr", - "extLst" -}) -public class CTTableColumn { - - protected CTTableFormula calculatedColumnFormula; - protected CTTableFormula totalsRowFormula; - protected CTXmlColumnPr xmlColumnPr; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute - protected String uniqueName; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected STTotalsRowFunction totalsRowFunction; - @XmlAttribute - protected String totalsRowLabel; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long queryTableFieldId; - @XmlAttribute - protected Long headerRowDxfId; - @XmlAttribute - protected Long dataDxfId; - @XmlAttribute - protected Long totalsRowDxfId; - @XmlAttribute - protected String headerRowCellStyle; - @XmlAttribute - protected String dataCellStyle; - @XmlAttribute - protected String totalsRowCellStyle; - - /** - * Gets the value of the calculatedColumnFormula property. - * - * @return - * possible object is - * {@link CTTableFormula } - * - */ - public CTTableFormula getCalculatedColumnFormula() { - return calculatedColumnFormula; - } - - /** - * Sets the value of the calculatedColumnFormula property. - * - * @param value - * allowed object is - * {@link CTTableFormula } - * - */ - public void setCalculatedColumnFormula(CTTableFormula value) { - this.calculatedColumnFormula = value; - } - - /** - * Gets the value of the totalsRowFormula property. - * - * @return - * possible object is - * {@link CTTableFormula } - * - */ - public CTTableFormula getTotalsRowFormula() { - return totalsRowFormula; - } - - /** - * Sets the value of the totalsRowFormula property. - * - * @param value - * allowed object is - * {@link CTTableFormula } - * - */ - public void setTotalsRowFormula(CTTableFormula value) { - this.totalsRowFormula = value; - } - - /** - * Gets the value of the xmlColumnPr property. - * - * @return - * possible object is - * {@link CTXmlColumnPr } - * - */ - public CTXmlColumnPr getXmlColumnPr() { - return xmlColumnPr; - } - - /** - * Sets the value of the xmlColumnPr property. - * - * @param value - * allowed object is - * {@link CTXmlColumnPr } - * - */ - public void setXmlColumnPr(CTXmlColumnPr value) { - this.xmlColumnPr = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the totalsRowFunction property. - * - * @return - * possible object is - * {@link STTotalsRowFunction } - * - */ - public STTotalsRowFunction getTotalsRowFunction() { - if (totalsRowFunction == null) { - return STTotalsRowFunction.NONE; - } else { - return totalsRowFunction; - } - } - - /** - * Sets the value of the totalsRowFunction property. - * - * @param value - * allowed object is - * {@link STTotalsRowFunction } - * - */ - public void setTotalsRowFunction(STTotalsRowFunction value) { - this.totalsRowFunction = value; - } - - /** - * Gets the value of the totalsRowLabel property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTotalsRowLabel() { - return totalsRowLabel; - } - - /** - * Sets the value of the totalsRowLabel property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTotalsRowLabel(String value) { - this.totalsRowLabel = value; - } - - /** - * Gets the value of the queryTableFieldId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getQueryTableFieldId() { - return queryTableFieldId; - } - - /** - * Sets the value of the queryTableFieldId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setQueryTableFieldId(Long value) { - this.queryTableFieldId = value; - } - - /** - * Gets the value of the headerRowDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getHeaderRowDxfId() { - return headerRowDxfId; - } - - /** - * Sets the value of the headerRowDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setHeaderRowDxfId(Long value) { - this.headerRowDxfId = value; - } - - /** - * Gets the value of the dataDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDataDxfId() { - return dataDxfId; - } - - /** - * Sets the value of the dataDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDataDxfId(Long value) { - this.dataDxfId = value; - } - - /** - * Gets the value of the totalsRowDxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getTotalsRowDxfId() { - return totalsRowDxfId; - } - - /** - * Sets the value of the totalsRowDxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setTotalsRowDxfId(Long value) { - this.totalsRowDxfId = value; - } - - /** - * Gets the value of the headerRowCellStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHeaderRowCellStyle() { - return headerRowCellStyle; - } - - /** - * Sets the value of the headerRowCellStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHeaderRowCellStyle(String value) { - this.headerRowCellStyle = value; - } - - /** - * Gets the value of the dataCellStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataCellStyle() { - return dataCellStyle; - } - - /** - * Sets the value of the dataCellStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataCellStyle(String value) { - this.dataCellStyle = value; - } - - /** - * Gets the value of the totalsRowCellStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTotalsRowCellStyle() { - return totalsRowCellStyle; - } - - /** - * Sets the value of the totalsRowCellStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTotalsRowCellStyle(String value) { - this.totalsRowCellStyle = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableColumn complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableColumn">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="calculatedColumnFormula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableFormula" minOccurs="0"/>
+ *         <element name="totalsRowFormula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableFormula" minOccurs="0"/>
+ *         <element name="xmlColumnPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XmlColumnPr" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="uniqueName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="totalsRowFunction" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TotalsRowFunction" default="none" />
+ *       <attribute name="totalsRowLabel" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="queryTableFieldId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="headerRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="dataDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="totalsRowDxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *       <attribute name="headerRowCellStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="dataCellStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="totalsRowCellStyle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableColumn", propOrder = { + "calculatedColumnFormula", + "totalsRowFormula", + "xmlColumnPr", + "extLst" +}) +public class CTTableColumn implements Child +{ + + protected CTTableFormula calculatedColumnFormula; + protected CTTableFormula totalsRowFormula; + protected CTXmlColumnPr xmlColumnPr; + protected CTExtensionList extLst; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "uniqueName") + protected String uniqueName; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "totalsRowFunction") + protected STTotalsRowFunction totalsRowFunction; + @XmlAttribute(name = "totalsRowLabel") + protected String totalsRowLabel; + @XmlAttribute(name = "queryTableFieldId") + @XmlSchemaType(name = "unsignedInt") + protected Long queryTableFieldId; + @XmlAttribute(name = "headerRowDxfId") + protected Long headerRowDxfId; + @XmlAttribute(name = "dataDxfId") + protected Long dataDxfId; + @XmlAttribute(name = "totalsRowDxfId") + protected Long totalsRowDxfId; + @XmlAttribute(name = "headerRowCellStyle") + protected String headerRowCellStyle; + @XmlAttribute(name = "dataCellStyle") + protected String dataCellStyle; + @XmlAttribute(name = "totalsRowCellStyle") + protected String totalsRowCellStyle; + @XmlTransient + private Object parent; + + /** + * Gets the value of the calculatedColumnFormula property. + * + * @return + * possible object is + * {@link CTTableFormula } + * + */ + public CTTableFormula getCalculatedColumnFormula() { + return calculatedColumnFormula; + } + + /** + * Sets the value of the calculatedColumnFormula property. + * + * @param value + * allowed object is + * {@link CTTableFormula } + * + */ + public void setCalculatedColumnFormula(CTTableFormula value) { + this.calculatedColumnFormula = value; + } + + /** + * Gets the value of the totalsRowFormula property. + * + * @return + * possible object is + * {@link CTTableFormula } + * + */ + public CTTableFormula getTotalsRowFormula() { + return totalsRowFormula; + } + + /** + * Sets the value of the totalsRowFormula property. + * + * @param value + * allowed object is + * {@link CTTableFormula } + * + */ + public void setTotalsRowFormula(CTTableFormula value) { + this.totalsRowFormula = value; + } + + /** + * Gets the value of the xmlColumnPr property. + * + * @return + * possible object is + * {@link CTXmlColumnPr } + * + */ + public CTXmlColumnPr getXmlColumnPr() { + return xmlColumnPr; + } + + /** + * Sets the value of the xmlColumnPr property. + * + * @param value + * allowed object is + * {@link CTXmlColumnPr } + * + */ + public void setXmlColumnPr(CTXmlColumnPr value) { + this.xmlColumnPr = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the totalsRowFunction property. + * + * @return + * possible object is + * {@link STTotalsRowFunction } + * + */ + public STTotalsRowFunction getTotalsRowFunction() { + if (totalsRowFunction == null) { + return STTotalsRowFunction.NONE; + } else { + return totalsRowFunction; + } + } + + /** + * Sets the value of the totalsRowFunction property. + * + * @param value + * allowed object is + * {@link STTotalsRowFunction } + * + */ + public void setTotalsRowFunction(STTotalsRowFunction value) { + this.totalsRowFunction = value; + } + + /** + * Gets the value of the totalsRowLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTotalsRowLabel() { + return totalsRowLabel; + } + + /** + * Sets the value of the totalsRowLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTotalsRowLabel(String value) { + this.totalsRowLabel = value; + } + + /** + * Gets the value of the queryTableFieldId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getQueryTableFieldId() { + return queryTableFieldId; + } + + /** + * Sets the value of the queryTableFieldId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setQueryTableFieldId(Long value) { + this.queryTableFieldId = value; + } + + /** + * Gets the value of the headerRowDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getHeaderRowDxfId() { + return headerRowDxfId; + } + + /** + * Sets the value of the headerRowDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setHeaderRowDxfId(Long value) { + this.headerRowDxfId = value; + } + + /** + * Gets the value of the dataDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDataDxfId() { + return dataDxfId; + } + + /** + * Sets the value of the dataDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDataDxfId(Long value) { + this.dataDxfId = value; + } + + /** + * Gets the value of the totalsRowDxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTotalsRowDxfId() { + return totalsRowDxfId; + } + + /** + * Sets the value of the totalsRowDxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTotalsRowDxfId(Long value) { + this.totalsRowDxfId = value; + } + + /** + * Gets the value of the headerRowCellStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderRowCellStyle() { + return headerRowCellStyle; + } + + /** + * Sets the value of the headerRowCellStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderRowCellStyle(String value) { + this.headerRowCellStyle = value; + } + + /** + * Gets the value of the dataCellStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDataCellStyle() { + return dataCellStyle; + } + + /** + * Sets the value of the dataCellStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDataCellStyle(String value) { + this.dataCellStyle = value; + } + + /** + * Gets the value of the totalsRowCellStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTotalsRowCellStyle() { + return totalsRowCellStyle; + } + + /** + * Sets the value of the totalsRowCellStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTotalsRowCellStyle(String value) { + this.totalsRowCellStyle = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumns.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumns.java index 0efade3d86..f75429b3dc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumns.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableColumns.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableColumns complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableColumns">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tableColumn" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableColumn" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableColumns", propOrder = { - "tableColumn" -}) -public class CTTableColumns { - - @XmlElement(required = true) - protected List tableColumn; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the tableColumn property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tableColumn property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTableColumn().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTableColumn } - * - * - */ - public List getTableColumn() { - if (tableColumn == null) { - tableColumn = new ArrayList(); - } - return this.tableColumn; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableColumns complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableColumns">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tableColumn" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableColumn" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableColumns", propOrder = { + "tableColumn" +}) +public class CTTableColumns implements Child +{ + + @XmlElement(required = true) + protected List tableColumn; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tableColumn property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tableColumn property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTableColumn().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTableColumn } + * + * + */ + public List getTableColumn() { + if (tableColumn == null) { + tableColumn = new ArrayList(); + } + return this.tableColumn; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableFormula.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableFormula.java index 36ae3d4d47..32c67d3ab8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableFormula.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableFormula.java @@ -1,111 +1,123 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for CT_TableFormula complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableFormula">
- *   <simpleContent>
- *     <extension base="<http://schemas.openxmlformats.org/spreadsheetml/2006/main>ST_Formula">
- *       <attribute name="array" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableFormula", propOrder = { - "value" -}) -public class CTTableFormula { - - @XmlValue - protected String value; - @XmlAttribute - protected Boolean array; - - /** - * Formula - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } - - /** - * Gets the value of the array property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isArray() { - if (array == null) { - return false; - } else { - return array; - } - } - - /** - * Sets the value of the array property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setArray(Boolean value) { - this.array = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableFormula complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableFormula">
+ *   <simpleContent>
+ *     <extension base="<http://schemas.openxmlformats.org/spreadsheetml/2006/main>ST_Formula">
+ *       <attribute name="array" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableFormula", propOrder = { + "value" +}) +public class CTTableFormula implements Child +{ + + @XmlValue + protected String value; + @XmlAttribute(name = "array") + protected Boolean array; + @XmlTransient + private Object parent; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the array property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isArray() { + if (array == null) { + return false; + } else { + return array; + } + } + + /** + * Sets the value of the array property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setArray(Boolean value) { + this.array = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableMissing.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableMissing.java index fc752228e0..28e74ce412 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableMissing.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableMissing.java @@ -1,50 +1,62 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableMissing complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableMissing">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableMissing") -public class CTTableMissing { - - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableMissing complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableMissing">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableMissing") +public class CTTableMissing implements Child +{ + + @XmlTransient + private Object parent; + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTablePart.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTablePart.java index feba9dfa75..f24387517f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTablePart.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTablePart.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TablePart complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TablePart">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TablePart") -public class CTTablePart { - - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TablePart complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TablePart">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TablePart") +public class CTTablePart implements Child +{ + + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableParts.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableParts.java index cb45ec2fd5..03e1f06818 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableParts.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableParts.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableParts complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableParts">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tablePart" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TablePart" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableParts", propOrder = { - "tablePart" -}) -public class CTTableParts { - - protected List tablePart; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the tablePart property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tablePart property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTablePart().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTablePart } - * - * - */ - public List getTablePart() { - if (tablePart == null) { - tablePart = new ArrayList(); - } - return this.tablePart; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableParts complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableParts">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tablePart" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TablePart" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableParts", propOrder = { + "tablePart" +}) +public class CTTableParts implements Child +{ + + protected List tablePart; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tablePart property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tablePart property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTablePart().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTablePart } + * + * + */ + public List getTablePart() { + if (tablePart == null) { + tablePart = new ArrayList(); + } + return this.tablePart; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyle.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyle.java index 809ecd16d2..65b5fb4710 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyle.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyle.java @@ -1,206 +1,218 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableStyle complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableStyle">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tableStyleElement" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyleElement" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="pivot" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableStyle", propOrder = { - "tableStyleElement" -}) -public class CTTableStyle { - - protected List tableStyleElement; - @XmlAttribute(required = true) - protected String name; - @XmlAttribute - protected Boolean pivot; - @XmlAttribute - protected Boolean table; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the tableStyleElement property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tableStyleElement property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTableStyleElement().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTableStyleElement } - * - * - */ - public List getTableStyleElement() { - if (tableStyleElement == null) { - tableStyleElement = new ArrayList(); - } - return this.tableStyleElement; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the pivot property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPivot() { - if (pivot == null) { - return true; - } else { - return pivot; - } - } - - /** - * Sets the value of the pivot property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPivot(Boolean value) { - this.pivot = value; - } - - /** - * Gets the value of the table property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTable() { - if (table == null) { - return true; - } else { - return table; - } - } - - /** - * Sets the value of the table property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTable(Boolean value) { - this.table = value; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableStyle complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableStyle">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tableStyleElement" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyleElement" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="pivot" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableStyle", propOrder = { + "tableStyleElement" +}) +public class CTTableStyle implements Child +{ + + protected List tableStyleElement; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "pivot") + protected Boolean pivot; + @XmlAttribute(name = "table") + protected Boolean table; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tableStyleElement property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tableStyleElement property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTableStyleElement().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTableStyleElement } + * + * + */ + public List getTableStyleElement() { + if (tableStyleElement == null) { + tableStyleElement = new ArrayList(); + } + return this.tableStyleElement; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the pivot property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPivot() { + if (pivot == null) { + return true; + } else { + return pivot; + } + } + + /** + * Sets the value of the pivot property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPivot(Boolean value) { + this.pivot = value; + } + + /** + * Gets the value of the table property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTable() { + if (table == null) { + return true; + } else { + return table; + } + } + + /** + * Sets the value of the table property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTable(Boolean value) { + this.table = value; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleElement.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleElement.java index 44550cfcc8..07d9921b99 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleElement.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleElement.java @@ -1,138 +1,150 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableStyleElement complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableStyleElement">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TableStyleType" />
- *       <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableStyleElement") -public class CTTableStyleElement { - - @XmlAttribute(required = true) - protected STTableStyleType type; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long size; - @XmlAttribute - protected Long dxfId; - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STTableStyleType } - * - */ - public STTableStyleType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STTableStyleType } - * - */ - public void setType(STTableStyleType value) { - this.type = value; - } - - /** - * Gets the value of the size property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getSize() { - if (size == null) { - return 1L; - } else { - return size; - } - } - - /** - * Sets the value of the size property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setSize(Long value) { - this.size = value; - } - - /** - * Gets the value of the dxfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDxfId() { - return dxfId; - } - - /** - * Sets the value of the dxfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDxfId(Long value) { - this.dxfId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableStyleElement complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableStyleElement">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TableStyleType" />
+ *       <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableStyleElement") +public class CTTableStyleElement implements Child +{ + + @XmlAttribute(name = "type", required = true) + protected STTableStyleType type; + @XmlAttribute(name = "size") + @XmlSchemaType(name = "unsignedInt") + protected Long size; + @XmlAttribute(name = "dxfId") + protected Long dxfId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STTableStyleType } + * + */ + public STTableStyleType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STTableStyleType } + * + */ + public void setType(STTableStyleType value) { + this.type = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getSize() { + if (size == null) { + return 1L; + } else { + return size; + } + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSize(Long value) { + this.size = value; + } + + /** + * Gets the value of the dxfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDxfId() { + return dxfId; + } + + /** + * Sets the value of the dxfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDxfId(Long value) { + this.dxfId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleInfo.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleInfo.java index 697b818365..8122f96efb 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleInfo.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyleInfo.java @@ -1,186 +1,198 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableStyleInfo complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableStyleInfo">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="showFirstColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="showLastColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="showRowStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="showColumnStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableStyleInfo") -public class CTTableStyleInfo { - - @XmlAttribute - protected String name; - @XmlAttribute - protected Boolean showFirstColumn; - @XmlAttribute - protected Boolean showLastColumn; - @XmlAttribute - protected Boolean showRowStripes; - @XmlAttribute - protected Boolean showColumnStripes; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the showFirstColumn property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowFirstColumn() { - return showFirstColumn; - } - - /** - * Sets the value of the showFirstColumn property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowFirstColumn(Boolean value) { - this.showFirstColumn = value; - } - - /** - * Gets the value of the showLastColumn property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowLastColumn() { - return showLastColumn; - } - - /** - * Sets the value of the showLastColumn property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowLastColumn(Boolean value) { - this.showLastColumn = value; - } - - /** - * Gets the value of the showRowStripes property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowRowStripes() { - return showRowStripes; - } - - /** - * Sets the value of the showRowStripes property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowRowStripes(Boolean value) { - this.showRowStripes = value; - } - - /** - * Gets the value of the showColumnStripes property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isShowColumnStripes() { - return showColumnStripes; - } - - /** - * Sets the value of the showColumnStripes property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowColumnStripes(Boolean value) { - this.showColumnStripes = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableStyleInfo complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableStyleInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="showFirstColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="showLastColumn" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="showRowStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="showColumnStripes" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableStyleInfo") +public class CTTableStyleInfo implements Child +{ + + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "showFirstColumn") + protected Boolean showFirstColumn; + @XmlAttribute(name = "showLastColumn") + protected Boolean showLastColumn; + @XmlAttribute(name = "showRowStripes") + protected Boolean showRowStripes; + @XmlAttribute(name = "showColumnStripes") + protected Boolean showColumnStripes; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the showFirstColumn property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowFirstColumn() { + return showFirstColumn; + } + + /** + * Sets the value of the showFirstColumn property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowFirstColumn(Boolean value) { + this.showFirstColumn = value; + } + + /** + * Gets the value of the showLastColumn property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowLastColumn() { + return showLastColumn; + } + + /** + * Sets the value of the showLastColumn property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowLastColumn(Boolean value) { + this.showLastColumn = value; + } + + /** + * Gets the value of the showRowStripes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowRowStripes() { + return showRowStripes; + } + + /** + * Sets the value of the showRowStripes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowRowStripes(Boolean value) { + this.showRowStripes = value; + } + + /** + * Gets the value of the showColumnStripes property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowColumnStripes() { + return showColumnStripes; + } + + /** + * Sets the value of the showColumnStripes property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowColumnStripes(Boolean value) { + this.showColumnStripes = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyles.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyles.java index e80f89efaa..4620054ed5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyles.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTableStyles.java @@ -1,171 +1,183 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TableStyles complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TableStyles">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tableStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyle" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="defaultTableStyle" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="defaultPivotStyle" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TableStyles", propOrder = { - "tableStyle" -}) -public class CTTableStyles { - - protected List tableStyle; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - @XmlAttribute - protected String defaultTableStyle; - @XmlAttribute - protected String defaultPivotStyle; - - /** - * Gets the value of the tableStyle property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tableStyle property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTableStyle().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTableStyle } - * - * - */ - public List getTableStyle() { - if (tableStyle == null) { - tableStyle = new ArrayList(); - } - return this.tableStyle; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - - /** - * Gets the value of the defaultTableStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDefaultTableStyle() { - return defaultTableStyle; - } - - /** - * Sets the value of the defaultTableStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDefaultTableStyle(String value) { - this.defaultTableStyle = value; - } - - /** - * Gets the value of the defaultPivotStyle property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDefaultPivotStyle() { - return defaultPivotStyle; - } - - /** - * Sets the value of the defaultPivotStyle property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDefaultPivotStyle(String value) { - this.defaultPivotStyle = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TableStyles complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TableStyles">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tableStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableStyle" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="defaultTableStyle" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="defaultPivotStyle" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TableStyles", propOrder = { + "tableStyle" +}) +public class CTTableStyles implements Child +{ + + protected List tableStyle; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlAttribute(name = "defaultTableStyle") + protected String defaultTableStyle; + @XmlAttribute(name = "defaultPivotStyle") + protected String defaultPivotStyle; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tableStyle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tableStyle property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTableStyle().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTableStyle } + * + * + */ + public List getTableStyle() { + if (tableStyle == null) { + tableStyle = new ArrayList(); + } + return this.tableStyle; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the value of the defaultTableStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDefaultTableStyle() { + return defaultTableStyle; + } + + /** + * Sets the value of the defaultTableStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDefaultTableStyle(String value) { + this.defaultTableStyle = value; + } + + /** + * Gets the value of the defaultPivotStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDefaultPivotStyle() { + return defaultPivotStyle; + } + + /** + * Sets the value of the defaultPivotStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDefaultPivotStyle(String value) { + this.defaultPivotStyle = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTables.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTables.java index 26185be012..b0546e6392 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTables.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTables.java @@ -1,128 +1,140 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElements; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Tables complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Tables">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableMissing"/>
- *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XStringElement"/>
- *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index"/>
- *       </choice>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Tables", propOrder = { - "mOrSOrX" -}) -public class CTTables { - - @XmlElements({ - @XmlElement(name = "s", type = CTXStringElement.class), - @XmlElement(name = "x", type = CTIndex.class), - @XmlElement(name = "m", type = CTTableMissing.class) - }) - protected List mOrSOrX; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the mOrSOrX property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the mOrSOrX property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMOrSOrX().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTXStringElement } - * {@link CTIndex } - * {@link CTTableMissing } - * - * - */ - public List getMOrSOrX() { - if (mOrSOrX == null) { - mOrSOrX = new ArrayList(); - } - return this.mOrSOrX; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Tables complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Tables">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableMissing"/>
+ *         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XStringElement"/>
+ *         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index"/>
+ *       </choice>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Tables", propOrder = { + "mOrSOrX" +}) +public class CTTables implements Child +{ + + @XmlElements({ + @XmlElement(name = "m", type = CTTableMissing.class), + @XmlElement(name = "s", type = CTXStringElement.class), + @XmlElement(name = "x", type = CTIndex.class) + }) + protected List mOrSOrX; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the mOrSOrX property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mOrSOrX property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMOrSOrX().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTableMissing } + * {@link CTXStringElement } + * {@link CTIndex } + * + * + */ + public List getMOrSOrX() { + if (mOrSOrX == null) { + mOrSOrX = new ArrayList(); + } + return this.mOrSOrX; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTextField.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTextField.java index 3dbcfa2d6a..ec7d031608 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTextField.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTextField.java @@ -1,115 +1,127 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TextField complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TextField">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ExternalConnectionType" default="general" />
- *       <attribute name="position" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TextField") -public class CTTextField { - - @XmlAttribute - protected STExternalConnectionType type; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long position; - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STExternalConnectionType } - * - */ - public STExternalConnectionType getType() { - if (type == null) { - return STExternalConnectionType.GENERAL; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STExternalConnectionType } - * - */ - public void setType(STExternalConnectionType value) { - this.type = value; - } - - /** - * Gets the value of the position property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getPosition() { - if (position == null) { - return 0L; - } else { - return position; - } - } - - /** - * Sets the value of the position property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setPosition(Long value) { - this.position = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TextField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TextField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ExternalConnectionType" default="general" />
+ *       <attribute name="position" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TextField") +public class CTTextField implements Child +{ + + @XmlAttribute(name = "type") + protected STExternalConnectionType type; + @XmlAttribute(name = "position") + @XmlSchemaType(name = "unsignedInt") + protected Long position; + @XmlTransient + private Object parent; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STExternalConnectionType } + * + */ + public STExternalConnectionType getType() { + if (type == null) { + return STExternalConnectionType.GENERAL; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STExternalConnectionType } + * + */ + public void setType(STExternalConnectionType value) { + this.type = value; + } + + /** + * Gets the value of the position property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getPosition() { + if (position == null) { + return 0L; + } else { + return position; + } + } + + /** + * Sets the value of the position property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPosition(Long value) { + this.position = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTextFields.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTextFields.java index 2830d563d8..6cf118adc6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTextFields.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTextFields.java @@ -1,123 +1,135 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TextFields complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TextFields">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="textField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextField" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TextFields", propOrder = { - "textField" -}) -public class CTTextFields { - - @XmlElement(required = true) - protected List textField; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the textField property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the textField property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTextField().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTextField } - * - * - */ - public List getTextField() { - if (textField == null) { - textField = new ArrayList(); - } - return this.textField; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCount() { - if (count == null) { - return 1L; - } else { - return count; - } - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TextFields complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TextFields">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="textField" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextField" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TextFields", propOrder = { + "textField" +}) +public class CTTextFields implements Child +{ + + @XmlElement(required = true) + protected List textField; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the textField property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the textField property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTextField().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTextField } + * + * + */ + public List getTextField() { + if (textField == null) { + textField = new ArrayList(); + } + return this.textField; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCount() { + if (count == null) { + return 1L; + } else { + return count; + } + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTextPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTextPr.java index 892affe038..ed38400884 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTextPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTextPr.java @@ -1,545 +1,584 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TextPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TextPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="textFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextFields" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="prompt" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="fileType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FileType" default="win" />
- *       <attribute name="codePage" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1252" />
- *       <attribute name="firstRow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
- *       <attribute name="sourceFile" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" default="" />
- *       <attribute name="delimited" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="decimal" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" default="." />
- *       <attribute name="thousands" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" default="," />
- *       <attribute name="tab" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="space" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="comma" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="semicolon" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="consecutive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="qualifier" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Qualifier" default="doubleQuote" />
- *       <attribute name="delimiter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TextPr", propOrder = { - "textFields" -}) -public class CTTextPr { - - protected CTTextFields textFields; - @XmlAttribute - protected Boolean prompt; - @XmlAttribute - protected STFileType fileType; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long codePage; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long firstRow; - @XmlAttribute - protected String sourceFile; - @XmlAttribute - protected Boolean delimited; - @XmlAttribute - protected String decimal; - @XmlAttribute - protected String thousands; - @XmlAttribute - protected Boolean tab; - @XmlAttribute - protected Boolean space; - @XmlAttribute - protected Boolean comma; - @XmlAttribute - protected Boolean semicolon; - @XmlAttribute - protected Boolean consecutive; - @XmlAttribute - protected STQualifier qualifier; - @XmlAttribute - protected String delimiter; - - /** - * Gets the value of the textFields property. - * - * @return - * possible object is - * {@link CTTextFields } - * - */ - public CTTextFields getTextFields() { - return textFields; - } - - /** - * Sets the value of the textFields property. - * - * @param value - * allowed object is - * {@link CTTextFields } - * - */ - public void setTextFields(CTTextFields value) { - this.textFields = value; - } - - /** - * Gets the value of the prompt property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPrompt() { - if (prompt == null) { - return true; - } else { - return prompt; - } - } - - /** - * Sets the value of the prompt property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPrompt(Boolean value) { - this.prompt = value; - } - - /** - * Gets the value of the fileType property. - * - * @return - * possible object is - * {@link STFileType } - * - */ - public STFileType getFileType() { - if (fileType == null) { - return STFileType.WIN; - } else { - return fileType; - } - } - - /** - * Sets the value of the fileType property. - * - * @param value - * allowed object is - * {@link STFileType } - * - */ - public void setFileType(STFileType value) { - this.fileType = value; - } - - /** - * Gets the value of the codePage property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCodePage() { - if (codePage == null) { - return 1252L; - } else { - return codePage; - } - } - - /** - * Sets the value of the codePage property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCodePage(Long value) { - this.codePage = value; - } - - /** - * Gets the value of the firstRow property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getFirstRow() { - if (firstRow == null) { - return 1L; - } else { - return firstRow; - } - } - - /** - * Sets the value of the firstRow property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFirstRow(Long value) { - this.firstRow = value; - } - - /** - * Gets the value of the sourceFile property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSourceFile() { - if (sourceFile == null) { - return ""; - } else { - return sourceFile; - } - } - - /** - * Sets the value of the sourceFile property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSourceFile(String value) { - this.sourceFile = value; - } - - /** - * Gets the value of the delimited property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDelimited() { - if (delimited == null) { - return true; - } else { - return delimited; - } - } - - /** - * Sets the value of the delimited property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDelimited(Boolean value) { - this.delimited = value; - } - - /** - * Gets the value of the decimal property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDecimal() { - if (decimal == null) { - return "."; - } else { - return decimal; - } - } - - /** - * Sets the value of the decimal property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDecimal(String value) { - this.decimal = value; - } - - /** - * Gets the value of the thousands property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getThousands() { - if (thousands == null) { - return ","; - } else { - return thousands; - } - } - - /** - * Sets the value of the thousands property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setThousands(String value) { - this.thousands = value; - } - - /** - * Gets the value of the tab property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTab() { - if (tab == null) { - return true; - } else { - return tab; - } - } - - /** - * Sets the value of the tab property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTab(Boolean value) { - this.tab = value; - } - - /** - * Gets the value of the space property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSpace() { - if (space == null) { - return false; - } else { - return space; - } - } - - /** - * Sets the value of the space property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSpace(Boolean value) { - this.space = value; - } - - /** - * Gets the value of the comma property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isComma() { - if (comma == null) { - return false; - } else { - return comma; - } - } - - /** - * Sets the value of the comma property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setComma(Boolean value) { - this.comma = value; - } - - /** - * Gets the value of the semicolon property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSemicolon() { - if (semicolon == null) { - return false; - } else { - return semicolon; - } - } - - /** - * Sets the value of the semicolon property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSemicolon(Boolean value) { - this.semicolon = value; - } - - /** - * Gets the value of the consecutive property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isConsecutive() { - if (consecutive == null) { - return false; - } else { - return consecutive; - } - } - - /** - * Sets the value of the consecutive property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setConsecutive(Boolean value) { - this.consecutive = value; - } - - /** - * Gets the value of the qualifier property. - * - * @return - * possible object is - * {@link STQualifier } - * - */ - public STQualifier getQualifier() { - if (qualifier == null) { - return STQualifier.DOUBLE_QUOTE; - } else { - return qualifier; - } - } - - /** - * Sets the value of the qualifier property. - * - * @param value - * allowed object is - * {@link STQualifier } - * - */ - public void setQualifier(STQualifier value) { - this.qualifier = value; - } - - /** - * Gets the value of the delimiter property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDelimiter() { - return delimiter; - } - - /** - * Sets the value of the delimiter property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDelimiter(String value) { - this.delimiter = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TextPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TextPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="textFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextFields" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="prompt" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="fileType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FileType" default="win" />
+ *       <attribute name="codePage" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1252" />
+ *       <attribute name="characterSet" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="firstRow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
+ *       <attribute name="sourceFile" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="" />
+ *       <attribute name="delimited" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="decimal" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="." />
+ *       <attribute name="thousands" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="," />
+ *       <attribute name="tab" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="space" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="comma" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="semicolon" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="consecutive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="qualifier" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Qualifier" default="doubleQuote" />
+ *       <attribute name="delimiter" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TextPr", propOrder = { + "textFields" +}) +public class CTTextPr implements Child +{ + + protected CTTextFields textFields; + @XmlAttribute(name = "prompt") + protected Boolean prompt; + @XmlAttribute(name = "fileType") + protected STFileType fileType; + @XmlAttribute(name = "codePage") + @XmlSchemaType(name = "unsignedInt") + protected Long codePage; + @XmlAttribute(name = "characterSet") + protected String characterSet; + @XmlAttribute(name = "firstRow") + @XmlSchemaType(name = "unsignedInt") + protected Long firstRow; + @XmlAttribute(name = "sourceFile") + protected String sourceFile; + @XmlAttribute(name = "delimited") + protected Boolean delimited; + @XmlAttribute(name = "decimal") + protected String decimal; + @XmlAttribute(name = "thousands") + protected String thousands; + @XmlAttribute(name = "tab") + protected Boolean tab; + @XmlAttribute(name = "space") + protected Boolean space; + @XmlAttribute(name = "comma") + protected Boolean comma; + @XmlAttribute(name = "semicolon") + protected Boolean semicolon; + @XmlAttribute(name = "consecutive") + protected Boolean consecutive; + @XmlAttribute(name = "qualifier") + protected STQualifier qualifier; + @XmlAttribute(name = "delimiter") + protected String delimiter; + @XmlTransient + private Object parent; + + /** + * Gets the value of the textFields property. + * + * @return + * possible object is + * {@link CTTextFields } + * + */ + public CTTextFields getTextFields() { + return textFields; + } + + /** + * Sets the value of the textFields property. + * + * @param value + * allowed object is + * {@link CTTextFields } + * + */ + public void setTextFields(CTTextFields value) { + this.textFields = value; + } + + /** + * Gets the value of the prompt property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPrompt() { + if (prompt == null) { + return true; + } else { + return prompt; + } + } + + /** + * Sets the value of the prompt property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPrompt(Boolean value) { + this.prompt = value; + } + + /** + * Gets the value of the fileType property. + * + * @return + * possible object is + * {@link STFileType } + * + */ + public STFileType getFileType() { + if (fileType == null) { + return STFileType.WIN; + } else { + return fileType; + } + } + + /** + * Sets the value of the fileType property. + * + * @param value + * allowed object is + * {@link STFileType } + * + */ + public void setFileType(STFileType value) { + this.fileType = value; + } + + /** + * Gets the value of the codePage property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCodePage() { + if (codePage == null) { + return 1252L; + } else { + return codePage; + } + } + + /** + * Sets the value of the codePage property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCodePage(Long value) { + this.codePage = value; + } + + /** + * Gets the value of the characterSet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCharacterSet() { + return characterSet; + } + + /** + * Sets the value of the characterSet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCharacterSet(String value) { + this.characterSet = value; + } + + /** + * Gets the value of the firstRow property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getFirstRow() { + if (firstRow == null) { + return 1L; + } else { + return firstRow; + } + } + + /** + * Sets the value of the firstRow property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFirstRow(Long value) { + this.firstRow = value; + } + + /** + * Gets the value of the sourceFile property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceFile() { + if (sourceFile == null) { + return ""; + } else { + return sourceFile; + } + } + + /** + * Sets the value of the sourceFile property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceFile(String value) { + this.sourceFile = value; + } + + /** + * Gets the value of the delimited property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDelimited() { + if (delimited == null) { + return true; + } else { + return delimited; + } + } + + /** + * Sets the value of the delimited property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDelimited(Boolean value) { + this.delimited = value; + } + + /** + * Gets the value of the decimal property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDecimal() { + if (decimal == null) { + return "."; + } else { + return decimal; + } + } + + /** + * Sets the value of the decimal property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDecimal(String value) { + this.decimal = value; + } + + /** + * Gets the value of the thousands property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getThousands() { + if (thousands == null) { + return ","; + } else { + return thousands; + } + } + + /** + * Sets the value of the thousands property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setThousands(String value) { + this.thousands = value; + } + + /** + * Gets the value of the tab property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTab() { + if (tab == null) { + return true; + } else { + return tab; + } + } + + /** + * Sets the value of the tab property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTab(Boolean value) { + this.tab = value; + } + + /** + * Gets the value of the space property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSpace() { + if (space == null) { + return false; + } else { + return space; + } + } + + /** + * Sets the value of the space property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSpace(Boolean value) { + this.space = value; + } + + /** + * Gets the value of the comma property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isComma() { + if (comma == null) { + return false; + } else { + return comma; + } + } + + /** + * Sets the value of the comma property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setComma(Boolean value) { + this.comma = value; + } + + /** + * Gets the value of the semicolon property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSemicolon() { + if (semicolon == null) { + return false; + } else { + return semicolon; + } + } + + /** + * Sets the value of the semicolon property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSemicolon(Boolean value) { + this.semicolon = value; + } + + /** + * Gets the value of the consecutive property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isConsecutive() { + if (consecutive == null) { + return false; + } else { + return consecutive; + } + } + + /** + * Sets the value of the consecutive property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setConsecutive(Boolean value) { + this.consecutive = value; + } + + /** + * Gets the value of the qualifier property. + * + * @return + * possible object is + * {@link STQualifier } + * + */ + public STQualifier getQualifier() { + if (qualifier == null) { + return STQualifier.DOUBLE_QUOTE; + } else { + return qualifier; + } + } + + /** + * Sets the value of the qualifier property. + * + * @param value + * allowed object is + * {@link STQualifier } + * + */ + public void setQualifier(STQualifier value) { + this.qualifier = value; + } + + /** + * Gets the value of the delimiter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDelimiter() { + return delimiter; + } + + /** + * Sets the value of the delimiter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDelimiter(String value) { + this.delimiter = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTop10.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTop10.java index f25e6c6856..a0d0ac3a4e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTop10.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTop10.java @@ -1,159 +1,171 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Top10 complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Top10">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="top" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="percent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="filterVal" type="{http://www.w3.org/2001/XMLSchema}double" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Top10") -public class CTTop10 { - - @XmlAttribute - protected Boolean top; - @XmlAttribute - protected Boolean percent; - @XmlAttribute(required = true) - protected double val; - @XmlAttribute - protected Double filterVal; - - /** - * Gets the value of the top property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTop() { - if (top == null) { - return true; - } else { - return top; - } - } - - /** - * Sets the value of the top property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTop(Boolean value) { - this.top = value; - } - - /** - * Gets the value of the percent property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPercent() { - if (percent == null) { - return false; - } else { - return percent; - } - } - - /** - * Sets the value of the percent property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPercent(Boolean value) { - this.percent = value; - } - - /** - * Gets the value of the val property. - * - */ - public double getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - */ - public void setVal(double value) { - this.val = value; - } - - /** - * Gets the value of the filterVal property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getFilterVal() { - return filterVal; - } - - /** - * Sets the value of the filterVal property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setFilterVal(Double value) { - this.filterVal = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Top10 complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Top10">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="top" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="percent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="val" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="filterVal" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Top10") +public class CTTop10 implements Child +{ + + @XmlAttribute(name = "top") + protected Boolean top; + @XmlAttribute(name = "percent") + protected Boolean percent; + @XmlAttribute(name = "val", required = true) + protected double val; + @XmlAttribute(name = "filterVal") + protected Double filterVal; + @XmlTransient + private Object parent; + + /** + * Gets the value of the top property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTop() { + if (top == null) { + return true; + } else { + return top; + } + } + + /** + * Sets the value of the top property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTop(Boolean value) { + this.top = value; + } + + /** + * Gets the value of the percent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPercent() { + if (percent == null) { + return false; + } else { + return percent; + } + } + + /** + * Sets the value of the percent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPercent(Boolean value) { + this.percent = value; + } + + /** + * Gets the value of the val property. + * + */ + public double getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + */ + public void setVal(double value) { + this.val = value; + } + + /** + * Gets the value of the filterVal property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getFilterVal() { + return filterVal; + } + + /** + * Sets the value of the filterVal property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setFilterVal(Double value) { + this.filterVal = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTuple.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTuple.java index d9c06c3222..00594d6b74 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTuple.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTuple.java @@ -1,128 +1,140 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Tuple complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Tuple">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="fld" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="hier" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="item" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Tuple") -public class CTTuple { - - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long fld; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long hier; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long item; - - /** - * Gets the value of the fld property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getFld() { - return fld; - } - - /** - * Sets the value of the fld property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFld(Long value) { - this.fld = value; - } - - /** - * Gets the value of the hier property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getHier() { - return hier; - } - - /** - * Sets the value of the hier property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setHier(Long value) { - this.hier = value; - } - - /** - * Gets the value of the item property. - * - */ - public long getItem() { - return item; - } - - /** - * Sets the value of the item property. - * - */ - public void setItem(long value) { - this.item = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Tuple complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Tuple">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="fld" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="hier" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="item" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Tuple") +public class CTTuple implements Child +{ + + @XmlAttribute(name = "fld") + @XmlSchemaType(name = "unsignedInt") + protected Long fld; + @XmlAttribute(name = "hier") + @XmlSchemaType(name = "unsignedInt") + protected Long hier; + @XmlAttribute(name = "item", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long item; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fld property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFld() { + return fld; + } + + /** + * Sets the value of the fld property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFld(Long value) { + this.fld = value; + } + + /** + * Gets the value of the hier property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getHier() { + return hier; + } + + /** + * Sets the value of the hier property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setHier(Long value) { + this.hier = value; + } + + /** + * Gets the value of the item property. + * + */ + public long getItem() { + return item; + } + + /** + * Sets the value of the item property. + * + */ + public void setItem(long value) { + this.item = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTupleCache.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTupleCache.java index 2673a77d5d..761cb420c4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTupleCache.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTupleCache.java @@ -1,188 +1,200 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_TupleCache complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_TupleCache">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="entries" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDSDTCEntries" minOccurs="0"/>
- *         <element name="sets" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Sets" minOccurs="0"/>
- *         <element name="queryCache" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryCache" minOccurs="0"/>
- *         <element name="serverFormats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ServerFormats" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_TupleCache", propOrder = { - "entries", - "sets", - "queryCache", - "serverFormats", - "extLst" -}) -public class CTTupleCache { - - protected CTPCDSDTCEntries entries; - protected CTSets sets; - protected CTQueryCache queryCache; - protected CTServerFormats serverFormats; - protected CTExtensionList extLst; - - /** - * Gets the value of the entries property. - * - * @return - * possible object is - * {@link CTPCDSDTCEntries } - * - */ - public CTPCDSDTCEntries getEntries() { - return entries; - } - - /** - * Sets the value of the entries property. - * - * @param value - * allowed object is - * {@link CTPCDSDTCEntries } - * - */ - public void setEntries(CTPCDSDTCEntries value) { - this.entries = value; - } - - /** - * Gets the value of the sets property. - * - * @return - * possible object is - * {@link CTSets } - * - */ - public CTSets getSets() { - return sets; - } - - /** - * Sets the value of the sets property. - * - * @param value - * allowed object is - * {@link CTSets } - * - */ - public void setSets(CTSets value) { - this.sets = value; - } - - /** - * Gets the value of the queryCache property. - * - * @return - * possible object is - * {@link CTQueryCache } - * - */ - public CTQueryCache getQueryCache() { - return queryCache; - } - - /** - * Sets the value of the queryCache property. - * - * @param value - * allowed object is - * {@link CTQueryCache } - * - */ - public void setQueryCache(CTQueryCache value) { - this.queryCache = value; - } - - /** - * Gets the value of the serverFormats property. - * - * @return - * possible object is - * {@link CTServerFormats } - * - */ - public CTServerFormats getServerFormats() { - return serverFormats; - } - - /** - * Sets the value of the serverFormats property. - * - * @param value - * allowed object is - * {@link CTServerFormats } - * - */ - public void setServerFormats(CTServerFormats value) { - this.serverFormats = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_TupleCache complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_TupleCache">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="entries" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PCDSDTCEntries" minOccurs="0"/>
+ *         <element name="sets" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Sets" minOccurs="0"/>
+ *         <element name="queryCache" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_QueryCache" minOccurs="0"/>
+ *         <element name="serverFormats" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ServerFormats" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_TupleCache", propOrder = { + "entries", + "sets", + "queryCache", + "serverFormats", + "extLst" +}) +public class CTTupleCache implements Child +{ + + protected CTPCDSDTCEntries entries; + protected CTSets sets; + protected CTQueryCache queryCache; + protected CTServerFormats serverFormats; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the entries property. + * + * @return + * possible object is + * {@link CTPCDSDTCEntries } + * + */ + public CTPCDSDTCEntries getEntries() { + return entries; + } + + /** + * Sets the value of the entries property. + * + * @param value + * allowed object is + * {@link CTPCDSDTCEntries } + * + */ + public void setEntries(CTPCDSDTCEntries value) { + this.entries = value; + } + + /** + * Gets the value of the sets property. + * + * @return + * possible object is + * {@link CTSets } + * + */ + public CTSets getSets() { + return sets; + } + + /** + * Sets the value of the sets property. + * + * @param value + * allowed object is + * {@link CTSets } + * + */ + public void setSets(CTSets value) { + this.sets = value; + } + + /** + * Gets the value of the queryCache property. + * + * @return + * possible object is + * {@link CTQueryCache } + * + */ + public CTQueryCache getQueryCache() { + return queryCache; + } + + /** + * Sets the value of the queryCache property. + * + * @param value + * allowed object is + * {@link CTQueryCache } + * + */ + public void setQueryCache(CTQueryCache value) { + this.queryCache = value; + } + + /** + * Gets the value of the serverFormats property. + * + * @return + * possible object is + * {@link CTServerFormats } + * + */ + public CTServerFormats getServerFormats() { + return serverFormats; + } + + /** + * Sets the value of the serverFormats property. + * + * @param value + * allowed object is + * {@link CTServerFormats } + * + */ + public void setServerFormats(CTServerFormats value) { + this.serverFormats = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTTuples.java b/src/xlsx4j/java/org/xlsx4j/sml/CTTuples.java index 266e2cdd3d..465a324ad4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTTuples.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTTuples.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Tuples complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Tuples">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tpl" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuple" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Tuples", propOrder = { - "tpl" -}) -public class CTTuples { - - @XmlElement(required = true) - protected List tpl; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long c; - - /** - * Gets the value of the tpl property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tpl property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTpl().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTTuple } - * - * - */ - public List getTpl() { - if (tpl == null) { - tpl = new ArrayList(); - } - return this.tpl; - } - - /** - * Gets the value of the c property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getC() { - return c; - } - - /** - * Sets the value of the c property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setC(Long value) { - this.c = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Tuples complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Tuples">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tpl" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuple" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Tuples", propOrder = { + "tpl" +}) +public class CTTuples implements Child +{ + + @XmlElement(required = true) + protected List tpl; + @XmlAttribute(name = "c") + @XmlSchemaType(name = "unsignedInt") + protected Long c; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tpl property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tpl property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTpl().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTTuple } + * + * + */ + public List getTpl() { + if (tpl == null) { + tpl = new ArrayList(); + } + return this.tpl; + } + + /** + * Gets the value of the c property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getC() { + return c; + } + + /** + * Sets the value of the c property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setC(Long value) { + this.c = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTUnderlineProperty.java b/src/xlsx4j/java/org/xlsx4j/sml/CTUnderlineProperty.java index c523002aea..90354c7ba9 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTUnderlineProperty.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTUnderlineProperty.java @@ -1,82 +1,94 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_UnderlineProperty complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_UnderlineProperty">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnderlineValues" default="single" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_UnderlineProperty") -public class CTUnderlineProperty { - - @XmlAttribute - protected STUnderlineValues val; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link STUnderlineValues } - * - */ - public STUnderlineValues getVal() { - if (val == null) { - return STUnderlineValues.SINGLE; - } else { - return val; - } - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link STUnderlineValues } - * - */ - public void setVal(STUnderlineValues value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_UnderlineProperty complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_UnderlineProperty">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnderlineValues" default="single" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_UnderlineProperty") +public class CTUnderlineProperty implements Child +{ + + @XmlAttribute(name = "val") + protected STUnderlineValues val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link STUnderlineValues } + * + */ + public STUnderlineValues getVal() { + if (val == null) { + return STUnderlineValues.SINGLE; + } else { + return val; + } + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link STUnderlineValues } + * + */ + public void setVal(STUnderlineValues value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTUndoInfo.java b/src/xlsx4j/java/org/xlsx4j/sml/CTUndoInfo.java index 6ce69a3a5b..5053be51b7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTUndoInfo.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTUndoInfo.java @@ -1,363 +1,375 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_UndoInfo complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_UndoInfo">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="index" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="exp" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FormulaExpression" />
- *       <attribute name="ref3D" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="array" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="v" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="nf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="cs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="dr" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RefA" />
- *       <attribute name="dn" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="sId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_UndoInfo") -public class CTUndoInfo { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long index; - @XmlAttribute(required = true) - protected STFormulaExpression exp; - @XmlAttribute - protected Boolean ref3D; - @XmlAttribute - protected Boolean array; - @XmlAttribute - protected Boolean v; - @XmlAttribute - protected Boolean nf; - @XmlAttribute - protected Boolean cs; - @XmlAttribute(required = true) - protected String dr; - @XmlAttribute - protected String dn; - @XmlAttribute - protected String r; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long sId; - - /** - * Gets the value of the index property. - * - */ - public long getIndex() { - return index; - } - - /** - * Sets the value of the index property. - * - */ - public void setIndex(long value) { - this.index = value; - } - - /** - * Gets the value of the exp property. - * - * @return - * possible object is - * {@link STFormulaExpression } - * - */ - public STFormulaExpression getExp() { - return exp; - } - - /** - * Sets the value of the exp property. - * - * @param value - * allowed object is - * {@link STFormulaExpression } - * - */ - public void setExp(STFormulaExpression value) { - this.exp = value; - } - - /** - * Gets the value of the ref3D property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRef3D() { - if (ref3D == null) { - return false; - } else { - return ref3D; - } - } - - /** - * Sets the value of the ref3D property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRef3D(Boolean value) { - this.ref3D = value; - } - - /** - * Gets the value of the array property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isArray() { - if (array == null) { - return false; - } else { - return array; - } - } - - /** - * Sets the value of the array property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setArray(Boolean value) { - this.array = value; - } - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isV() { - if (v == null) { - return false; - } else { - return v; - } - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setV(Boolean value) { - this.v = value; - } - - /** - * Gets the value of the nf property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isNf() { - if (nf == null) { - return false; - } else { - return nf; - } - } - - /** - * Sets the value of the nf property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setNf(Boolean value) { - this.nf = value; - } - - /** - * Gets the value of the cs property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCs() { - if (cs == null) { - return false; - } else { - return cs; - } - } - - /** - * Sets the value of the cs property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCs(Boolean value) { - this.cs = value; - } - - /** - * Gets the value of the dr property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDr() { - return dr; - } - - /** - * Sets the value of the dr property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDr(String value) { - this.dr = value; - } - - /** - * Gets the value of the dn property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDn() { - return dn; - } - - /** - * Sets the value of the dn property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDn(String value) { - this.dn = value; - } - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - - /** - * Gets the value of the sId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getSId() { - return sId; - } - - /** - * Sets the value of the sId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setSId(Long value) { - this.sId = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_UndoInfo complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_UndoInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="index" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="exp" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FormulaExpression" />
+ *       <attribute name="ref3D" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="array" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="v" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="nf" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="cs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="dr" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_RefA" />
+ *       <attribute name="dn" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="sId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_UndoInfo") +public class CTUndoInfo implements Child +{ + + @XmlAttribute(name = "index", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long index; + @XmlAttribute(name = "exp", required = true) + protected STFormulaExpression exp; + @XmlAttribute(name = "ref3D") + protected Boolean ref3D; + @XmlAttribute(name = "array") + protected Boolean array; + @XmlAttribute(name = "v") + protected Boolean v; + @XmlAttribute(name = "nf") + protected Boolean nf; + @XmlAttribute(name = "cs") + protected Boolean cs; + @XmlAttribute(name = "dr", required = true) + protected String dr; + @XmlAttribute(name = "dn") + protected String dn; + @XmlAttribute(name = "r") + protected String r; + @XmlAttribute(name = "sId") + @XmlSchemaType(name = "unsignedInt") + protected Long sId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the index property. + * + */ + public long getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + */ + public void setIndex(long value) { + this.index = value; + } + + /** + * Gets the value of the exp property. + * + * @return + * possible object is + * {@link STFormulaExpression } + * + */ + public STFormulaExpression getExp() { + return exp; + } + + /** + * Sets the value of the exp property. + * + * @param value + * allowed object is + * {@link STFormulaExpression } + * + */ + public void setExp(STFormulaExpression value) { + this.exp = value; + } + + /** + * Gets the value of the ref3D property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRef3D() { + if (ref3D == null) { + return false; + } else { + return ref3D; + } + } + + /** + * Sets the value of the ref3D property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRef3D(Boolean value) { + this.ref3D = value; + } + + /** + * Gets the value of the array property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isArray() { + if (array == null) { + return false; + } else { + return array; + } + } + + /** + * Sets the value of the array property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setArray(Boolean value) { + this.array = value; + } + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isV() { + if (v == null) { + return false; + } else { + return v; + } + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setV(Boolean value) { + this.v = value; + } + + /** + * Gets the value of the nf property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isNf() { + if (nf == null) { + return false; + } else { + return nf; + } + } + + /** + * Sets the value of the nf property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNf(Boolean value) { + this.nf = value; + } + + /** + * Gets the value of the cs property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCs() { + if (cs == null) { + return false; + } else { + return cs; + } + } + + /** + * Sets the value of the cs property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCs(Boolean value) { + this.cs = value; + } + + /** + * Gets the value of the dr property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDr() { + return dr; + } + + /** + * Sets the value of the dr property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDr(String value) { + this.dr = value; + } + + /** + * Gets the value of the dn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDn() { + return dn; + } + + /** + * Sets the value of the dn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDn(String value) { + this.dn = value; + } + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the value of the sId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSId() { + return sId; + } + + /** + * Sets the value of the sId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSId(Long value) { + this.sId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTUsers.java b/src/xlsx4j/java/org/xlsx4j/sml/CTUsers.java index 47a67839b9..845e768f8a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTUsers.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTUsers.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Users complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Users">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="userInfo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SharedUser" maxOccurs="256" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Users", propOrder = { - "userInfo" -}) -public class CTUsers { - - protected List userInfo; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the userInfo property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the userInfo property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUserInfo().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSharedUser } - * - * - */ - public List getUserInfo() { - if (userInfo == null) { - userInfo = new ArrayList(); - } - return this.userInfo; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Users complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Users">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="userInfo" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SharedUser" maxOccurs="256" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Users", propOrder = { + "userInfo" +}) +public class CTUsers implements Child +{ + + protected List userInfo; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the userInfo property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the userInfo property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getUserInfo().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSharedUser } + * + * + */ + public List getUserInfo() { + if (userInfo == null) { + userInfo = new ArrayList(); + } + return this.userInfo; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTVerticalAlignFontProperty.java b/src/xlsx4j/java/org/xlsx4j/sml/CTVerticalAlignFontProperty.java index f8f510eebe..238627dde0 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTVerticalAlignFontProperty.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTVerticalAlignFontProperty.java @@ -1,78 +1,91 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_VerticalAlignFontProperty complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_VerticalAlignFontProperty">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_VerticalAlignRun" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_VerticalAlignFontProperty") -public class CTVerticalAlignFontProperty { - - @XmlAttribute(required = true) - protected STVerticalAlignRun val; - - /** - * Gets the value of the val property. - * - * @return - * possible object is - * {@link STVerticalAlignRun } - * - */ - public STVerticalAlignRun getVal() { - return val; - } - - /** - * Sets the value of the val property. - * - * @param value - * allowed object is - * {@link STVerticalAlignRun } - * - */ - public void setVal(STVerticalAlignRun value) { - this.val = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.docx4j.sharedtypes.STVerticalAlignRun; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_VerticalAlignFontProperty complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_VerticalAlignFontProperty">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_VerticalAlignRun" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_VerticalAlignFontProperty") +public class CTVerticalAlignFontProperty implements Child +{ + + @XmlAttribute(name = "val", required = true) + protected STVerticalAlignRun val; + @XmlTransient + private Object parent; + + /** + * Gets the value of the val property. + * + * @return + * possible object is + * {@link STVerticalAlignRun } + * + */ + public STVerticalAlignRun getVal() { + return val; + } + + /** + * Sets the value of the val property. + * + * @param value + * allowed object is + * {@link STVerticalAlignRun } + * + */ + public void setVal(STVerticalAlignRun value) { + this.val = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTVolMain.java b/src/xlsx4j/java/org/xlsx4j/sml/CTVolMain.java index 5a7f51c448..8c6b82e1b6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTVolMain.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTVolMain.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_VolMain complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_VolMain">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tp" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolTopic" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="first" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_VolMain", propOrder = { - "tp" -}) -public class CTVolMain { - - @XmlElement(required = true) - protected List tp; - @XmlAttribute(required = true) - protected String first; - - /** - * Gets the value of the tp property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tp property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTp().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTVolTopic } - * - * - */ - public List getTp() { - if (tp == null) { - tp = new ArrayList(); - } - return this.tp; - } - - /** - * Gets the value of the first property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFirst() { - return first; - } - - /** - * Sets the value of the first property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFirst(String value) { - this.first = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_VolMain complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_VolMain">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tp" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolTopic" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="first" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_VolMain", propOrder = { + "tp" +}) +public class CTVolMain implements Child +{ + + @XmlElement(required = true) + protected List tp; + @XmlAttribute(name = "first", required = true) + protected String first; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tp property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tp property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTp().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTVolTopic } + * + * + */ + public List getTp() { + if (tp == null) { + tp = new ArrayList(); + } + return this.tp; + } + + /** + * Gets the value of the first property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirst() { + return first; + } + + /** + * Sets the value of the first property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirst(String value) { + this.first = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopic.java b/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopic.java index e3d0db80a2..efa059b02d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopic.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopic.java @@ -1,181 +1,193 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_VolTopic complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_VolTopic">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="v" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring"/>
- *         <element name="stp" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="tr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolTopicRef" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_VolValueType" default="n" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_VolTopic", propOrder = { - "v", - "stp", - "tr" -}) -public class CTVolTopic { - - @XmlElement(required = true) - protected String v; - protected List stp; - @XmlElement(required = true) - protected List tr; - @XmlAttribute - protected STVolValueType t; - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getV() { - return v; - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setV(String value) { - this.v = value; - } - - /** - * Gets the value of the stp property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the stp property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getStp().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getStp() { - if (stp == null) { - stp = new ArrayList(); - } - return this.stp; - } - - /** - * Gets the value of the tr property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the tr property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTr().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTVolTopicRef } - * - * - */ - public List getTr() { - if (tr == null) { - tr = new ArrayList(); - } - return this.tr; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link STVolValueType } - * - */ - public STVolValueType getT() { - if (t == null) { - return STVolValueType.N; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link STVolValueType } - * - */ - public void setT(STVolValueType value) { - this.t = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_VolTopic complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_VolTopic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="v" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring"/>
+ *         <element name="stp" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="tr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolTopicRef" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_VolValueType" default="n" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_VolTopic", propOrder = { + "v", + "stp", + "tr" +}) +public class CTVolTopic implements Child +{ + + @XmlElement(required = true) + protected String v; + protected List stp; + @XmlElement(required = true) + protected List tr; + @XmlAttribute(name = "t") + protected STVolValueType t; + @XmlTransient + private Object parent; + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getV() { + return v; + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setV(String value) { + this.v = value; + } + + /** + * Gets the value of the stp property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the stp property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getStp().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getStp() { + if (stp == null) { + stp = new ArrayList(); + } + return this.stp; + } + + /** + * Gets the value of the tr property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tr property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTr().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTVolTopicRef } + * + * + */ + public List getTr() { + if (tr == null) { + tr = new ArrayList(); + } + return this.tr; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link STVolValueType } + * + */ + public STVolValueType getT() { + if (t == null) { + return STVolValueType.N; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link STVolValueType } + * + */ + public void setT(STVolValueType value) { + this.t = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopicRef.java b/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopicRef.java index 0989ea92d2..2907457c8e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopicRef.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTVolTopicRef.java @@ -1,99 +1,111 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_VolTopicRef complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_VolTopicRef">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="s" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_VolTopicRef") -public class CTVolTopicRef { - - @XmlAttribute(required = true) - protected String r; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long s; - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - - /** - * Gets the value of the s property. - * - */ - public long getS() { - return s; - } - - /** - * Sets the value of the s property. - * - */ - public void setS(long value) { - this.s = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_VolTopicRef complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_VolTopicRef">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="r" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="s" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_VolTopicRef") +public class CTVolTopicRef implements Child +{ + + @XmlAttribute(name = "r", required = true) + protected String r; + @XmlAttribute(name = "s", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long s; + @XmlTransient + private Object parent; + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the value of the s property. + * + */ + public long getS() { + return s; + } + + /** + * Sets the value of the s property. + * + */ + public void setS(long value) { + this.s = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTVolType.java b/src/xlsx4j/java/org/xlsx4j/sml/CTVolType.java index 3ca5b10f3d..e0dd0e2a0d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTVolType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTVolType.java @@ -1,117 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_VolType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_VolType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="main" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolMain" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_VolDepType" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_VolType", propOrder = { - "main" -}) -public class CTVolType { - - @XmlElement(required = true) - protected List main; - @XmlAttribute(required = true) - protected STVolDepType type; - - /** - * Gets the value of the main property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the main property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMain().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTVolMain } - * - * - */ - public List getMain() { - if (main == null) { - main = new ArrayList(); - } - return this.main; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link STVolDepType } - * - */ - public STVolDepType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link STVolDepType } - * - */ - public void setType(STVolDepType value) { - this.type = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_VolType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_VolType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="main" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolMain" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="type" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_VolDepType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_VolType", propOrder = { + "main" +}) +public class CTVolType implements Child +{ + + @XmlElement(required = true) + protected List main; + @XmlAttribute(name = "type", required = true) + protected STVolDepType type; + @XmlTransient + private Object parent; + + /** + * Gets the value of the main property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the main property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMain().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTVolMain } + * + * + */ + public List getMain() { + if (main == null) { + main = new ArrayList(); + } + return this.main; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link STVolDepType } + * + */ + public STVolDepType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link STVolDepType } + * + */ + public void setType(STVolDepType value) { + this.type = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTVolTypes.java b/src/xlsx4j/java/org/xlsx4j/sml/CTVolTypes.java index 2ab64c7375..05d17c3c84 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTVolTypes.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTVolTypes.java @@ -1,116 +1,128 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_VolTypes complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_VolTypes">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="volType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolType" maxOccurs="unbounded"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_VolTypes", propOrder = { - "volType", - "extLst" -}) -public class CTVolTypes { - - @XmlElement(required = true) - protected List volType; - protected CTExtensionList extLst; - - /** - * Gets the value of the volType property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the volType property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getVolType().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTVolType } - * - * - */ - public List getVolType() { - if (volType == null) { - volType = new ArrayList(); - } - return this.volType; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_VolTypes complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_VolTypes">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="volType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VolType" maxOccurs="unbounded"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_VolTypes", propOrder = { + "volType", + "extLst" +}) +public class CTVolTypes implements Child +{ + + @XmlElement(required = true) + protected List volType; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the volType property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the volType property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getVolType().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTVolType } + * + * + */ + public List getVolType() { + if (volType == null) { + volType = new ArrayList(); + } + return this.volType; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPr.java index 678430327e..270e22568d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPr.java @@ -1,472 +1,484 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WebPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WebPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="tables" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tables" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="xml" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="sourceData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="parsePre" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="consecutive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="firstRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="xl97" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="textDates" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="xl2000" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="url" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="post" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="htmlTables" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="htmlFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_HtmlFmt" default="none" />
- *       <attribute name="editPage" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WebPr", propOrder = { - "tables" -}) -public class CTWebPr { - - protected CTTables tables; - @XmlAttribute - protected Boolean xml; - @XmlAttribute - protected Boolean sourceData; - @XmlAttribute - protected Boolean parsePre; - @XmlAttribute - protected Boolean consecutive; - @XmlAttribute - protected Boolean firstRow; - @XmlAttribute - protected Boolean xl97; - @XmlAttribute - protected Boolean textDates; - @XmlAttribute - protected Boolean xl2000; - @XmlAttribute - protected String url; - @XmlAttribute - protected String post; - @XmlAttribute - protected Boolean htmlTables; - @XmlAttribute - protected STHtmlFmt htmlFormat; - @XmlAttribute - protected String editPage; - - /** - * Gets the value of the tables property. - * - * @return - * possible object is - * {@link CTTables } - * - */ - public CTTables getTables() { - return tables; - } - - /** - * Sets the value of the tables property. - * - * @param value - * allowed object is - * {@link CTTables } - * - */ - public void setTables(CTTables value) { - this.tables = value; - } - - /** - * Gets the value of the xml property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isXml() { - if (xml == null) { - return false; - } else { - return xml; - } - } - - /** - * Sets the value of the xml property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setXml(Boolean value) { - this.xml = value; - } - - /** - * Gets the value of the sourceData property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSourceData() { - if (sourceData == null) { - return false; - } else { - return sourceData; - } - } - - /** - * Sets the value of the sourceData property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSourceData(Boolean value) { - this.sourceData = value; - } - - /** - * Gets the value of the parsePre property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isParsePre() { - if (parsePre == null) { - return false; - } else { - return parsePre; - } - } - - /** - * Sets the value of the parsePre property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setParsePre(Boolean value) { - this.parsePre = value; - } - - /** - * Gets the value of the consecutive property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isConsecutive() { - if (consecutive == null) { - return false; - } else { - return consecutive; - } - } - - /** - * Sets the value of the consecutive property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setConsecutive(Boolean value) { - this.consecutive = value; - } - - /** - * Gets the value of the firstRow property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFirstRow() { - if (firstRow == null) { - return false; - } else { - return firstRow; - } - } - - /** - * Sets the value of the firstRow property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFirstRow(Boolean value) { - this.firstRow = value; - } - - /** - * Gets the value of the xl97 property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isXl97() { - if (xl97 == null) { - return false; - } else { - return xl97; - } - } - - /** - * Sets the value of the xl97 property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setXl97(Boolean value) { - this.xl97 = value; - } - - /** - * Gets the value of the textDates property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTextDates() { - if (textDates == null) { - return false; - } else { - return textDates; - } - } - - /** - * Sets the value of the textDates property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTextDates(Boolean value) { - this.textDates = value; - } - - /** - * Gets the value of the xl2000 property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isXl2000() { - if (xl2000 == null) { - return false; - } else { - return xl2000; - } - } - - /** - * Sets the value of the xl2000 property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setXl2000(Boolean value) { - this.xl2000 = value; - } - - /** - * Gets the value of the url property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUrl() { - return url; - } - - /** - * Sets the value of the url property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUrl(String value) { - this.url = value; - } - - /** - * Gets the value of the post property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPost() { - return post; - } - - /** - * Sets the value of the post property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPost(String value) { - this.post = value; - } - - /** - * Gets the value of the htmlTables property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHtmlTables() { - if (htmlTables == null) { - return false; - } else { - return htmlTables; - } - } - - /** - * Sets the value of the htmlTables property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHtmlTables(Boolean value) { - this.htmlTables = value; - } - - /** - * Gets the value of the htmlFormat property. - * - * @return - * possible object is - * {@link STHtmlFmt } - * - */ - public STHtmlFmt getHtmlFormat() { - if (htmlFormat == null) { - return STHtmlFmt.NONE; - } else { - return htmlFormat; - } - } - - /** - * Sets the value of the htmlFormat property. - * - * @param value - * allowed object is - * {@link STHtmlFmt } - * - */ - public void setHtmlFormat(STHtmlFmt value) { - this.htmlFormat = value; - } - - /** - * Gets the value of the editPage property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEditPage() { - return editPage; - } - - /** - * Sets the value of the editPage property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEditPage(String value) { - this.editPage = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WebPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WebPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tables" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tables" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="xml" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="sourceData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="parsePre" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="consecutive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="firstRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="xl97" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="textDates" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="xl2000" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="url" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="post" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="htmlTables" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="htmlFormat" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_HtmlFmt" default="none" />
+ *       <attribute name="editPage" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WebPr", propOrder = { + "tables" +}) +public class CTWebPr implements Child +{ + + protected CTTables tables; + @XmlAttribute(name = "xml") + protected Boolean xml; + @XmlAttribute(name = "sourceData") + protected Boolean sourceData; + @XmlAttribute(name = "parsePre") + protected Boolean parsePre; + @XmlAttribute(name = "consecutive") + protected Boolean consecutive; + @XmlAttribute(name = "firstRow") + protected Boolean firstRow; + @XmlAttribute(name = "xl97") + protected Boolean xl97; + @XmlAttribute(name = "textDates") + protected Boolean textDates; + @XmlAttribute(name = "xl2000") + protected Boolean xl2000; + @XmlAttribute(name = "url") + protected String url; + @XmlAttribute(name = "post") + protected String post; + @XmlAttribute(name = "htmlTables") + protected Boolean htmlTables; + @XmlAttribute(name = "htmlFormat") + protected STHtmlFmt htmlFormat; + @XmlAttribute(name = "editPage") + protected String editPage; + @XmlTransient + private Object parent; + + /** + * Gets the value of the tables property. + * + * @return + * possible object is + * {@link CTTables } + * + */ + public CTTables getTables() { + return tables; + } + + /** + * Sets the value of the tables property. + * + * @param value + * allowed object is + * {@link CTTables } + * + */ + public void setTables(CTTables value) { + this.tables = value; + } + + /** + * Gets the value of the xml property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isXml() { + if (xml == null) { + return false; + } else { + return xml; + } + } + + /** + * Sets the value of the xml property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setXml(Boolean value) { + this.xml = value; + } + + /** + * Gets the value of the sourceData property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSourceData() { + if (sourceData == null) { + return false; + } else { + return sourceData; + } + } + + /** + * Sets the value of the sourceData property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSourceData(Boolean value) { + this.sourceData = value; + } + + /** + * Gets the value of the parsePre property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isParsePre() { + if (parsePre == null) { + return false; + } else { + return parsePre; + } + } + + /** + * Sets the value of the parsePre property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setParsePre(Boolean value) { + this.parsePre = value; + } + + /** + * Gets the value of the consecutive property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isConsecutive() { + if (consecutive == null) { + return false; + } else { + return consecutive; + } + } + + /** + * Sets the value of the consecutive property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setConsecutive(Boolean value) { + this.consecutive = value; + } + + /** + * Gets the value of the firstRow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFirstRow() { + if (firstRow == null) { + return false; + } else { + return firstRow; + } + } + + /** + * Sets the value of the firstRow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFirstRow(Boolean value) { + this.firstRow = value; + } + + /** + * Gets the value of the xl97 property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isXl97() { + if (xl97 == null) { + return false; + } else { + return xl97; + } + } + + /** + * Sets the value of the xl97 property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setXl97(Boolean value) { + this.xl97 = value; + } + + /** + * Gets the value of the textDates property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTextDates() { + if (textDates == null) { + return false; + } else { + return textDates; + } + } + + /** + * Sets the value of the textDates property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTextDates(Boolean value) { + this.textDates = value; + } + + /** + * Gets the value of the xl2000 property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isXl2000() { + if (xl2000 == null) { + return false; + } else { + return xl2000; + } + } + + /** + * Sets the value of the xl2000 property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setXl2000(Boolean value) { + this.xl2000 = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the post property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPost() { + return post; + } + + /** + * Sets the value of the post property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPost(String value) { + this.post = value; + } + + /** + * Gets the value of the htmlTables property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHtmlTables() { + if (htmlTables == null) { + return false; + } else { + return htmlTables; + } + } + + /** + * Sets the value of the htmlTables property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHtmlTables(Boolean value) { + this.htmlTables = value; + } + + /** + * Gets the value of the htmlFormat property. + * + * @return + * possible object is + * {@link STHtmlFmt } + * + */ + public STHtmlFmt getHtmlFormat() { + if (htmlFormat == null) { + return STHtmlFmt.NONE; + } else { + return htmlFormat; + } + } + + /** + * Sets the value of the htmlFormat property. + * + * @param value + * allowed object is + * {@link STHtmlFmt } + * + */ + public void setHtmlFormat(STHtmlFmt value) { + this.htmlFormat = value; + } + + /** + * Gets the value of the editPage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEditPage() { + return editPage; + } + + /** + * Sets the value of the editPage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEditPage(String value) { + this.editPage = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItem.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItem.java index 14fc2e10d6..4f7f695e61 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItem.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItem.java @@ -1,265 +1,277 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WebPublishItem complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WebPublishItem">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="divId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sourceType" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_WebSourceType" />
- *       <attribute name="sourceRef" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="sourceObject" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="destinationFile" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="title" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="autoRepublish" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WebPublishItem") -public class CTWebPublishItem { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute(required = true) - protected String divId; - @XmlAttribute(required = true) - protected STWebSourceType sourceType; - @XmlAttribute - protected String sourceRef; - @XmlAttribute - protected String sourceObject; - @XmlAttribute(required = true) - protected String destinationFile; - @XmlAttribute - protected String title; - @XmlAttribute - protected Boolean autoRepublish; - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the divId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDivId() { - return divId; - } - - /** - * Sets the value of the divId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDivId(String value) { - this.divId = value; - } - - /** - * Gets the value of the sourceType property. - * - * @return - * possible object is - * {@link STWebSourceType } - * - */ - public STWebSourceType getSourceType() { - return sourceType; - } - - /** - * Sets the value of the sourceType property. - * - * @param value - * allowed object is - * {@link STWebSourceType } - * - */ - public void setSourceType(STWebSourceType value) { - this.sourceType = value; - } - - /** - * Gets the value of the sourceRef property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSourceRef() { - return sourceRef; - } - - /** - * Sets the value of the sourceRef property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSourceRef(String value) { - this.sourceRef = value; - } - - /** - * Gets the value of the sourceObject property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSourceObject() { - return sourceObject; - } - - /** - * Sets the value of the sourceObject property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSourceObject(String value) { - this.sourceObject = value; - } - - /** - * Gets the value of the destinationFile property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDestinationFile() { - return destinationFile; - } - - /** - * Sets the value of the destinationFile property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDestinationFile(String value) { - this.destinationFile = value; - } - - /** - * Gets the value of the title property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTitle() { - return title; - } - - /** - * Sets the value of the title property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTitle(String value) { - this.title = value; - } - - /** - * Gets the value of the autoRepublish property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoRepublish() { - if (autoRepublish == null) { - return false; - } else { - return autoRepublish; - } - } - - /** - * Sets the value of the autoRepublish property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoRepublish(Boolean value) { - this.autoRepublish = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WebPublishItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WebPublishItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="divId" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sourceType" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_WebSourceType" />
+ *       <attribute name="sourceRef" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="sourceObject" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="destinationFile" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="title" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="autoRepublish" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WebPublishItem") +public class CTWebPublishItem implements Child +{ + + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "divId", required = true) + protected String divId; + @XmlAttribute(name = "sourceType", required = true) + protected STWebSourceType sourceType; + @XmlAttribute(name = "sourceRef") + protected String sourceRef; + @XmlAttribute(name = "sourceObject") + protected String sourceObject; + @XmlAttribute(name = "destinationFile", required = true) + protected String destinationFile; + @XmlAttribute(name = "title") + protected String title; + @XmlAttribute(name = "autoRepublish") + protected Boolean autoRepublish; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the divId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDivId() { + return divId; + } + + /** + * Sets the value of the divId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDivId(String value) { + this.divId = value; + } + + /** + * Gets the value of the sourceType property. + * + * @return + * possible object is + * {@link STWebSourceType } + * + */ + public STWebSourceType getSourceType() { + return sourceType; + } + + /** + * Sets the value of the sourceType property. + * + * @param value + * allowed object is + * {@link STWebSourceType } + * + */ + public void setSourceType(STWebSourceType value) { + this.sourceType = value; + } + + /** + * Gets the value of the sourceRef property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceRef() { + return sourceRef; + } + + /** + * Sets the value of the sourceRef property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceRef(String value) { + this.sourceRef = value; + } + + /** + * Gets the value of the sourceObject property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceObject() { + return sourceObject; + } + + /** + * Sets the value of the sourceObject property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceObject(String value) { + this.sourceObject = value; + } + + /** + * Gets the value of the destinationFile property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationFile() { + return destinationFile; + } + + /** + * Sets the value of the destinationFile property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationFile(String value) { + this.destinationFile = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the autoRepublish property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoRepublish() { + if (autoRepublish == null) { + return false; + } else { + return autoRepublish; + } + } + + /** + * Sets the value of the autoRepublish property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoRepublish(Boolean value) { + this.autoRepublish = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItems.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItems.java index 97b39f666d..a01d1a9562 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItems.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishItems.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WebPublishItems complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WebPublishItems">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="webPublishItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishItem" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WebPublishItems", propOrder = { - "webPublishItem" -}) -public class CTWebPublishItems { - - @XmlElement(required = true) - protected List webPublishItem; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the webPublishItem property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the webPublishItem property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getWebPublishItem().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTWebPublishItem } - * - * - */ - public List getWebPublishItem() { - if (webPublishItem == null) { - webPublishItem = new ArrayList(); - } - return this.webPublishItem; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WebPublishItems complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WebPublishItems">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="webPublishItem" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishItem" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WebPublishItems", propOrder = { + "webPublishItem" +}) +public class CTWebPublishItems implements Child +{ + + @XmlElement(required = true) + protected List webPublishItem; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the webPublishItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the webPublishItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getWebPublishItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTWebPublishItem } + * + * + */ + public List getWebPublishItem() { + if (webPublishItem == null) { + webPublishItem = new ArrayList(); + } + return this.webPublishItem; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObject.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObject.java index dfe8d11f6a..76e50bcd18 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObject.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObject.java @@ -1,211 +1,223 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WebPublishObject complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WebPublishObject">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="divId" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sourceObject" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="destinationFile" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="title" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="autoRepublish" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WebPublishObject") -public class CTWebPublishObject { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute(required = true) - protected String divId; - @XmlAttribute - protected String sourceObject; - @XmlAttribute(required = true) - protected String destinationFile; - @XmlAttribute - protected String title; - @XmlAttribute - protected Boolean autoRepublish; - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the divId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDivId() { - return divId; - } - - /** - * Sets the value of the divId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDivId(String value) { - this.divId = value; - } - - /** - * Gets the value of the sourceObject property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSourceObject() { - return sourceObject; - } - - /** - * Sets the value of the sourceObject property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSourceObject(String value) { - this.sourceObject = value; - } - - /** - * Gets the value of the destinationFile property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDestinationFile() { - return destinationFile; - } - - /** - * Sets the value of the destinationFile property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDestinationFile(String value) { - this.destinationFile = value; - } - - /** - * Gets the value of the title property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTitle() { - return title; - } - - /** - * Sets the value of the title property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTitle(String value) { - this.title = value; - } - - /** - * Gets the value of the autoRepublish property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoRepublish() { - if (autoRepublish == null) { - return false; - } else { - return autoRepublish; - } - } - - /** - * Sets the value of the autoRepublish property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoRepublish(Boolean value) { - this.autoRepublish = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WebPublishObject complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WebPublishObject">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="divId" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sourceObject" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="destinationFile" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="title" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="autoRepublish" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WebPublishObject") +public class CTWebPublishObject implements Child +{ + + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "divId", required = true) + protected String divId; + @XmlAttribute(name = "sourceObject") + protected String sourceObject; + @XmlAttribute(name = "destinationFile", required = true) + protected String destinationFile; + @XmlAttribute(name = "title") + protected String title; + @XmlAttribute(name = "autoRepublish") + protected Boolean autoRepublish; + @XmlTransient + private Object parent; + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the divId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDivId() { + return divId; + } + + /** + * Sets the value of the divId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDivId(String value) { + this.divId = value; + } + + /** + * Gets the value of the sourceObject property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceObject() { + return sourceObject; + } + + /** + * Sets the value of the sourceObject property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceObject(String value) { + this.sourceObject = value; + } + + /** + * Gets the value of the destinationFile property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationFile() { + return destinationFile; + } + + /** + * Sets the value of the destinationFile property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationFile(String value) { + this.destinationFile = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the autoRepublish property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoRepublish() { + if (autoRepublish == null) { + return false; + } else { + return autoRepublish; + } + } + + /** + * Sets the value of the autoRepublish property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoRepublish(Boolean value) { + this.autoRepublish = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObjects.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObjects.java index b79ca896af..27b8fa6a85 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObjects.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishObjects.java @@ -1,119 +1,131 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WebPublishObjects complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WebPublishObjects">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="webPublishObject" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishObject" maxOccurs="unbounded"/>
- *       </sequence>
- *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WebPublishObjects", propOrder = { - "webPublishObject" -}) -public class CTWebPublishObjects { - - @XmlElement(required = true) - protected List webPublishObject; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long count; - - /** - * Gets the value of the webPublishObject property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the webPublishObject property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getWebPublishObject().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTWebPublishObject } - * - * - */ - public List getWebPublishObject() { - if (webPublishObject == null) { - webPublishObject = new ArrayList(); - } - return this.webPublishObject; - } - - /** - * Gets the value of the count property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCount() { - return count; - } - - /** - * Sets the value of the count property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCount(Long value) { - this.count = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WebPublishObjects complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WebPublishObjects">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="webPublishObject" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishObject" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WebPublishObjects", propOrder = { + "webPublishObject" +}) +public class CTWebPublishObjects implements Child +{ + + @XmlElement(required = true) + protected List webPublishObject; + @XmlAttribute(name = "count") + @XmlSchemaType(name = "unsignedInt") + protected Long count; + @XmlTransient + private Object parent; + + /** + * Gets the value of the webPublishObject property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the webPublishObject property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getWebPublishObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTWebPublishObject } + * + * + */ + public List getWebPublishObject() { + if (webPublishObject == null) { + webPublishObject = new ArrayList(); + } + return this.webPublishObject; + } + + /** + * Gets the value of the count property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCount() { + return count; + } + + /** + * Sets the value of the count property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCount(Long value) { + this.count = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishing.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishing.java index 29c07718ca..9e40092a58 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishing.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWebPublishing.java @@ -1,298 +1,337 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WebPublishing complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WebPublishing">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="css" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="thicket" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="longFileNames" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="vml" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="allowPng" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="targetScreenSize" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TargetScreenSize" default="800x600" />
- *       <attribute name="dpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="96" />
- *       <attribute name="codePage" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WebPublishing") -public class CTWebPublishing { - - @XmlAttribute - protected Boolean css; - @XmlAttribute - protected Boolean thicket; - @XmlAttribute - protected Boolean longFileNames; - @XmlAttribute - protected Boolean vml; - @XmlAttribute - protected Boolean allowPng; - @XmlAttribute - protected String targetScreenSize; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long dpi; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long codePage; - - /** - * Gets the value of the css property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCss() { - if (css == null) { - return true; - } else { - return css; - } - } - - /** - * Sets the value of the css property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCss(Boolean value) { - this.css = value; - } - - /** - * Gets the value of the thicket property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isThicket() { - if (thicket == null) { - return true; - } else { - return thicket; - } - } - - /** - * Sets the value of the thicket property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setThicket(Boolean value) { - this.thicket = value; - } - - /** - * Gets the value of the longFileNames property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLongFileNames() { - if (longFileNames == null) { - return true; - } else { - return longFileNames; - } - } - - /** - * Sets the value of the longFileNames property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLongFileNames(Boolean value) { - this.longFileNames = value; - } - - /** - * Gets the value of the vml property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isVml() { - if (vml == null) { - return false; - } else { - return vml; - } - } - - /** - * Sets the value of the vml property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setVml(Boolean value) { - this.vml = value; - } - - /** - * Gets the value of the allowPng property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAllowPng() { - if (allowPng == null) { - return false; - } else { - return allowPng; - } - } - - /** - * Sets the value of the allowPng property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAllowPng(Boolean value) { - this.allowPng = value; - } - - /** - * Gets the value of the targetScreenSize property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTargetScreenSize() { - if (targetScreenSize == null) { - return "800x600"; - } else { - return targetScreenSize; - } - } - - /** - * Sets the value of the targetScreenSize property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTargetScreenSize(String value) { - this.targetScreenSize = value; - } - - /** - * Gets the value of the dpi property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getDpi() { - if (dpi == null) { - return 96L; - } else { - return dpi; - } - } - - /** - * Sets the value of the dpi property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDpi(Long value) { - this.dpi = value; - } - - /** - * Gets the value of the codePage property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getCodePage() { - return codePage; - } - - /** - * Sets the value of the codePage property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCodePage(Long value) { - this.codePage = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WebPublishing complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WebPublishing">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="css" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="thicket" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="longFileNames" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="vml" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="allowPng" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="targetScreenSize" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TargetScreenSize" default="800x600" />
+ *       <attribute name="dpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="96" />
+ *       <attribute name="codePage" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="characterSet" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WebPublishing") +public class CTWebPublishing implements Child +{ + + @XmlAttribute(name = "css") + protected Boolean css; + @XmlAttribute(name = "thicket") + protected Boolean thicket; + @XmlAttribute(name = "longFileNames") + protected Boolean longFileNames; + @XmlAttribute(name = "vml") + protected Boolean vml; + @XmlAttribute(name = "allowPng") + protected Boolean allowPng; + @XmlAttribute(name = "targetScreenSize") + protected String targetScreenSize; + @XmlAttribute(name = "dpi") + @XmlSchemaType(name = "unsignedInt") + protected Long dpi; + @XmlAttribute(name = "codePage") + @XmlSchemaType(name = "unsignedInt") + protected Long codePage; + @XmlAttribute(name = "characterSet") + protected String characterSet; + @XmlTransient + private Object parent; + + /** + * Gets the value of the css property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCss() { + if (css == null) { + return true; + } else { + return css; + } + } + + /** + * Sets the value of the css property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCss(Boolean value) { + this.css = value; + } + + /** + * Gets the value of the thicket property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isThicket() { + if (thicket == null) { + return true; + } else { + return thicket; + } + } + + /** + * Sets the value of the thicket property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setThicket(Boolean value) { + this.thicket = value; + } + + /** + * Gets the value of the longFileNames property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLongFileNames() { + if (longFileNames == null) { + return true; + } else { + return longFileNames; + } + } + + /** + * Sets the value of the longFileNames property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLongFileNames(Boolean value) { + this.longFileNames = value; + } + + /** + * Gets the value of the vml property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isVml() { + if (vml == null) { + return false; + } else { + return vml; + } + } + + /** + * Sets the value of the vml property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setVml(Boolean value) { + this.vml = value; + } + + /** + * Gets the value of the allowPng property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAllowPng() { + if (allowPng == null) { + return false; + } else { + return allowPng; + } + } + + /** + * Sets the value of the allowPng property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAllowPng(Boolean value) { + this.allowPng = value; + } + + /** + * Gets the value of the targetScreenSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTargetScreenSize() { + if (targetScreenSize == null) { + return "800x600"; + } else { + return targetScreenSize; + } + } + + /** + * Sets the value of the targetScreenSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTargetScreenSize(String value) { + this.targetScreenSize = value; + } + + /** + * Gets the value of the dpi property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getDpi() { + if (dpi == null) { + return 96L; + } else { + return dpi; + } + } + + /** + * Sets the value of the dpi property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDpi(Long value) { + this.dpi = value; + } + + /** + * Gets the value of the codePage property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getCodePage() { + return codePage; + } + + /** + * Sets the value of the codePage property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCodePage(Long value) { + this.codePage = value; + } + + /** + * Gets the value of the characterSet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCharacterSet() { + return characterSet; + } + + /** + * Sets the value of the characterSet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCharacterSet(String value) { + this.characterSet = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWorkbookProtection.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWorkbookProtection.java index 638500ff6b..1d5736f722 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWorkbookProtection.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWorkbookProtection.java @@ -1,202 +1,479 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.HexBinaryAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_WorkbookProtection complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WorkbookProtection">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="workbookPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
- *       <attribute name="revisionsPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
- *       <attribute name="lockStructure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="lockWindows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="lockRevision" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WorkbookProtection") -public class CTWorkbookProtection { - - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] workbookPassword; - @XmlAttribute - @XmlJavaTypeAdapter(HexBinaryAdapter.class) - protected byte[] revisionsPassword; - @XmlAttribute - protected Boolean lockStructure; - @XmlAttribute - protected Boolean lockWindows; - @XmlAttribute - protected Boolean lockRevision; - - /** - * Gets the value of the workbookPassword property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getWorkbookPassword() { - return workbookPassword; - } - - /** - * Sets the value of the workbookPassword property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setWorkbookPassword(byte[] value) { - this.workbookPassword = ((byte[]) value); - } - - /** - * Gets the value of the revisionsPassword property. - * - * @return - * possible object is - * {@link String } - * - */ - public byte[] getRevisionsPassword() { - return revisionsPassword; - } - - /** - * Sets the value of the revisionsPassword property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRevisionsPassword(byte[] value) { - this.revisionsPassword = ((byte[]) value); - } - - /** - * Gets the value of the lockStructure property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLockStructure() { - if (lockStructure == null) { - return false; - } else { - return lockStructure; - } - } - - /** - * Sets the value of the lockStructure property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLockStructure(Boolean value) { - this.lockStructure = value; - } - - /** - * Gets the value of the lockWindows property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLockWindows() { - if (lockWindows == null) { - return false; - } else { - return lockWindows; - } - } - - /** - * Sets the value of the lockWindows property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLockWindows(Boolean value) { - this.lockWindows = value; - } - - /** - * Gets the value of the lockRevision property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isLockRevision() { - if (lockRevision == null) { - return false; - } else { - return lockRevision; - } - } - - /** - * Sets the value of the lockRevision property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setLockRevision(Boolean value) { - this.lockRevision = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.HexBinaryAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WorkbookProtection complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WorkbookProtection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="workbookPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
+ *       <attribute name="workbookPasswordCharacterSet" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="revisionsPassword" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedShortHex" />
+ *       <attribute name="revisionsPasswordCharacterSet" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="lockStructure" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="lockWindows" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="lockRevision" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="revisionsAlgorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="revisionsHashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="revisionsSaltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="revisionsSpinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="workbookAlgorithmName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="workbookHashValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="workbookSaltValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary" />
+ *       <attribute name="workbookSpinCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WorkbookProtection") +public class CTWorkbookProtection implements Child +{ + + @XmlAttribute(name = "workbookPassword") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] workbookPassword; + @XmlAttribute(name = "workbookPasswordCharacterSet") + protected String workbookPasswordCharacterSet; + @XmlAttribute(name = "revisionsPassword") + @XmlJavaTypeAdapter(HexBinaryAdapter.class) + protected byte[] revisionsPassword; + @XmlAttribute(name = "revisionsPasswordCharacterSet") + protected String revisionsPasswordCharacterSet; + @XmlAttribute(name = "lockStructure") + protected Boolean lockStructure; + @XmlAttribute(name = "lockWindows") + protected Boolean lockWindows; + @XmlAttribute(name = "lockRevision") + protected Boolean lockRevision; + @XmlAttribute(name = "revisionsAlgorithmName") + protected String revisionsAlgorithmName; + @XmlAttribute(name = "revisionsHashValue") + protected byte[] revisionsHashValue; + @XmlAttribute(name = "revisionsSaltValue") + protected byte[] revisionsSaltValue; + @XmlAttribute(name = "revisionsSpinCount") + @XmlSchemaType(name = "unsignedInt") + protected Long revisionsSpinCount; + @XmlAttribute(name = "workbookAlgorithmName") + protected String workbookAlgorithmName; + @XmlAttribute(name = "workbookHashValue") + protected byte[] workbookHashValue; + @XmlAttribute(name = "workbookSaltValue") + protected byte[] workbookSaltValue; + @XmlAttribute(name = "workbookSpinCount") + @XmlSchemaType(name = "unsignedInt") + protected Long workbookSpinCount; + @XmlTransient + private Object parent; + + /** + * Gets the value of the workbookPassword property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getWorkbookPassword() { + return workbookPassword; + } + + /** + * Sets the value of the workbookPassword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWorkbookPassword(byte[] value) { + this.workbookPassword = value; + } + + /** + * Gets the value of the workbookPasswordCharacterSet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWorkbookPasswordCharacterSet() { + return workbookPasswordCharacterSet; + } + + /** + * Sets the value of the workbookPasswordCharacterSet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWorkbookPasswordCharacterSet(String value) { + this.workbookPasswordCharacterSet = value; + } + + /** + * Gets the value of the revisionsPassword property. + * + * @return + * possible object is + * {@link String } + * + */ + public byte[] getRevisionsPassword() { + return revisionsPassword; + } + + /** + * Sets the value of the revisionsPassword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRevisionsPassword(byte[] value) { + this.revisionsPassword = value; + } + + /** + * Gets the value of the revisionsPasswordCharacterSet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRevisionsPasswordCharacterSet() { + return revisionsPasswordCharacterSet; + } + + /** + * Sets the value of the revisionsPasswordCharacterSet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRevisionsPasswordCharacterSet(String value) { + this.revisionsPasswordCharacterSet = value; + } + + /** + * Gets the value of the lockStructure property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLockStructure() { + if (lockStructure == null) { + return false; + } else { + return lockStructure; + } + } + + /** + * Sets the value of the lockStructure property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLockStructure(Boolean value) { + this.lockStructure = value; + } + + /** + * Gets the value of the lockWindows property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLockWindows() { + if (lockWindows == null) { + return false; + } else { + return lockWindows; + } + } + + /** + * Sets the value of the lockWindows property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLockWindows(Boolean value) { + this.lockWindows = value; + } + + /** + * Gets the value of the lockRevision property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLockRevision() { + if (lockRevision == null) { + return false; + } else { + return lockRevision; + } + } + + /** + * Sets the value of the lockRevision property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLockRevision(Boolean value) { + this.lockRevision = value; + } + + /** + * Gets the value of the revisionsAlgorithmName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRevisionsAlgorithmName() { + return revisionsAlgorithmName; + } + + /** + * Sets the value of the revisionsAlgorithmName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRevisionsAlgorithmName(String value) { + this.revisionsAlgorithmName = value; + } + + /** + * Gets the value of the revisionsHashValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getRevisionsHashValue() { + return revisionsHashValue; + } + + /** + * Sets the value of the revisionsHashValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setRevisionsHashValue(byte[] value) { + this.revisionsHashValue = value; + } + + /** + * Gets the value of the revisionsSaltValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getRevisionsSaltValue() { + return revisionsSaltValue; + } + + /** + * Sets the value of the revisionsSaltValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setRevisionsSaltValue(byte[] value) { + this.revisionsSaltValue = value; + } + + /** + * Gets the value of the revisionsSpinCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getRevisionsSpinCount() { + return revisionsSpinCount; + } + + /** + * Sets the value of the revisionsSpinCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setRevisionsSpinCount(Long value) { + this.revisionsSpinCount = value; + } + + /** + * Gets the value of the workbookAlgorithmName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWorkbookAlgorithmName() { + return workbookAlgorithmName; + } + + /** + * Sets the value of the workbookAlgorithmName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWorkbookAlgorithmName(String value) { + this.workbookAlgorithmName = value; + } + + /** + * Gets the value of the workbookHashValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getWorkbookHashValue() { + return workbookHashValue; + } + + /** + * Sets the value of the workbookHashValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setWorkbookHashValue(byte[] value) { + this.workbookHashValue = value; + } + + /** + * Gets the value of the workbookSaltValue property. + * + * @return + * possible object is + * byte[] + */ + public byte[] getWorkbookSaltValue() { + return workbookSaltValue; + } + + /** + * Sets the value of the workbookSaltValue property. + * + * @param value + * allowed object is + * byte[] + */ + public void setWorkbookSaltValue(byte[] value) { + this.workbookSaltValue = value; + } + + /** + * Gets the value of the workbookSpinCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getWorkbookSpinCount() { + return workbookSpinCount; + } + + /** + * Sets the value of the workbookSpinCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setWorkbookSpinCount(Long value) { + this.workbookSpinCount = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTWorksheetSource.java b/src/xlsx4j/java/org/xlsx4j/sml/CTWorksheetSource.java index 31f88ef5b1..9614b7150d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTWorksheetSource.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTWorksheetSource.java @@ -1,159 +1,171 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WorksheetSource complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WorksheetSource">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
- *       <attribute name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sheet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WorksheetSource") -public class CTWorksheetSource { - - @XmlAttribute - protected String ref; - @XmlAttribute - protected String name; - @XmlAttribute - protected String sheet; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") - protected String id; - - /** - * Gets the value of the ref property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRef() { - return ref; - } - - /** - * Sets the value of the ref property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRef(String value) { - this.ref = value; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the sheet property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSheet() { - return sheet; - } - - /** - * Sets the value of the sheet property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSheet(String value) { - this.sheet = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WorksheetSource complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WorksheetSource">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="ref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
+ *       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sheet" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WorksheetSource") +public class CTWorksheetSource implements Child +{ + + @XmlAttribute(name = "ref") + protected String ref; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "sheet") + protected String sheet; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships") + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the ref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRef() { + return ref; + } + + /** + * Sets the value of the ref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRef(String value) { + this.ref = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the sheet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSheet() { + return sheet; + } + + /** + * Sets the value of the sheet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSheet(String value) { + this.sheet = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTX.java b/src/xlsx4j/java/org/xlsx4j/sml/CTX.java index fd6fd6ce43..0bf040119d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTX.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTX.java @@ -1,82 +1,94 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_X complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_X">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="v" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_X") -public class CTX { - - @XmlAttribute - protected Integer v; - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public int getV() { - if (v == null) { - return 0; - } else { - return v; - } - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setV(Integer value) { - this.v = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_X complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_X">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="v" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_X") +public class CTX implements Child +{ + + @XmlAttribute(name = "v") + protected Integer v; + @XmlTransient + private Object parent; + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getV() { + if (v == null) { + return 0; + } else { + return v; + } + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setV(Integer value) { + this.v = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTXStringElement.java b/src/xlsx4j/java/org/xlsx4j/sml/CTXStringElement.java index f747fc7492..7f53ac42b8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTXStringElement.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTXStringElement.java @@ -1,78 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_XStringElement complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_XStringElement">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="v" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_XStringElement") -public class CTXStringElement { - - @XmlAttribute(required = true) - protected String v; - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getV() { - return v; - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setV(String value) { - this.v = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_XStringElement complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_XStringElement">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="v" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_XStringElement") +public class CTXStringElement implements Child +{ + + @XmlAttribute(name = "v", required = true) + protected String v; + @XmlTransient + private Object parent; + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getV() { + return v; + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setV(String value) { + this.v = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTXf.java b/src/xlsx4j/java/org/xlsx4j/sml/CTXf.java index 7dee924018..d9a502782b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTXf.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTXf.java @@ -1,494 +1,506 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Xf complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Xf">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellAlignment" minOccurs="0"/>
- *         <element name="protection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellProtection" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
- *       <attribute name="fontId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontId" />
- *       <attribute name="fillId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FillId" />
- *       <attribute name="borderId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_BorderId" />
- *       <attribute name="xfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellStyleXfId" />
- *       <attribute name="quotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="pivotButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="applyNumberFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="applyFont" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="applyFill" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="applyBorder" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="applyAlignment" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *       <attribute name="applyProtection" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Xf", propOrder = { - "alignment", - "protection", - "extLst" -}) -public class CTXf { - - protected CTCellAlignment alignment; - protected CTCellProtection protection; - protected CTExtensionList extLst; - @XmlAttribute - protected Long numFmtId; - @XmlAttribute - protected Long fontId; - @XmlAttribute - protected Long fillId; - @XmlAttribute - protected Long borderId; - @XmlAttribute - protected Long xfId; - @XmlAttribute - protected Boolean quotePrefix; - @XmlAttribute - protected Boolean pivotButton; - @XmlAttribute - protected Boolean applyNumberFormat; - @XmlAttribute - protected Boolean applyFont; - @XmlAttribute - protected Boolean applyFill; - @XmlAttribute - protected Boolean applyBorder; - @XmlAttribute - protected Boolean applyAlignment; - @XmlAttribute - protected Boolean applyProtection; - - /** - * Gets the value of the alignment property. - * - * @return - * possible object is - * {@link CTCellAlignment } - * - */ - public CTCellAlignment getAlignment() { - return alignment; - } - - /** - * Sets the value of the alignment property. - * - * @param value - * allowed object is - * {@link CTCellAlignment } - * - */ - public void setAlignment(CTCellAlignment value) { - this.alignment = value; - } - - /** - * Gets the value of the protection property. - * - * @return - * possible object is - * {@link CTCellProtection } - * - */ - public CTCellProtection getProtection() { - return protection; - } - - /** - * Sets the value of the protection property. - * - * @param value - * allowed object is - * {@link CTCellProtection } - * - */ - public void setProtection(CTCellProtection value) { - this.protection = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the numFmtId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getNumFmtId() { - return numFmtId; - } - - /** - * Sets the value of the numFmtId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setNumFmtId(Long value) { - this.numFmtId = value; - } - - /** - * Gets the value of the fontId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getFontId() { - return fontId; - } - - /** - * Sets the value of the fontId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFontId(Long value) { - this.fontId = value; - } - - /** - * Gets the value of the fillId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getFillId() { - return fillId; - } - - /** - * Sets the value of the fillId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setFillId(Long value) { - this.fillId = value; - } - - /** - * Gets the value of the borderId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getBorderId() { - return borderId; - } - - /** - * Sets the value of the borderId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setBorderId(Long value) { - this.borderId = value; - } - - /** - * Gets the value of the xfId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getXfId() { - return xfId; - } - - /** - * Sets the value of the xfId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setXfId(Long value) { - this.xfId = value; - } - - /** - * Gets the value of the quotePrefix property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isQuotePrefix() { - if (quotePrefix == null) { - return false; - } else { - return quotePrefix; - } - } - - /** - * Sets the value of the quotePrefix property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setQuotePrefix(Boolean value) { - this.quotePrefix = value; - } - - /** - * Gets the value of the pivotButton property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPivotButton() { - if (pivotButton == null) { - return false; - } else { - return pivotButton; - } - } - - /** - * Sets the value of the pivotButton property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPivotButton(Boolean value) { - this.pivotButton = value; - } - - /** - * Gets the value of the applyNumberFormat property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyNumberFormat() { - return applyNumberFormat; - } - - /** - * Sets the value of the applyNumberFormat property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyNumberFormat(Boolean value) { - this.applyNumberFormat = value; - } - - /** - * Gets the value of the applyFont property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyFont() { - return applyFont; - } - - /** - * Sets the value of the applyFont property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyFont(Boolean value) { - this.applyFont = value; - } - - /** - * Gets the value of the applyFill property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyFill() { - return applyFill; - } - - /** - * Sets the value of the applyFill property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyFill(Boolean value) { - this.applyFill = value; - } - - /** - * Gets the value of the applyBorder property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyBorder() { - return applyBorder; - } - - /** - * Sets the value of the applyBorder property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyBorder(Boolean value) { - this.applyBorder = value; - } - - /** - * Gets the value of the applyAlignment property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyAlignment() { - return applyAlignment; - } - - /** - * Sets the value of the applyAlignment property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyAlignment(Boolean value) { - this.applyAlignment = value; - } - - /** - * Gets the value of the applyProtection property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isApplyProtection() { - return applyProtection; - } - - /** - * Sets the value of the applyProtection property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setApplyProtection(Boolean value) { - this.applyProtection = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Xf complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Xf">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellAlignment" minOccurs="0"/>
+ *         <element name="protection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellProtection" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
+ *       <attribute name="fontId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontId" />
+ *       <attribute name="fillId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FillId" />
+ *       <attribute name="borderId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_BorderId" />
+ *       <attribute name="xfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellStyleXfId" />
+ *       <attribute name="quotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="pivotButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="applyNumberFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="applyFont" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="applyFill" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="applyBorder" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="applyAlignment" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="applyProtection" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Xf", propOrder = { + "alignment", + "protection", + "extLst" +}) +public class CTXf implements Child +{ + + protected CTCellAlignment alignment; + protected CTCellProtection protection; + protected CTExtensionList extLst; + @XmlAttribute(name = "numFmtId") + protected Long numFmtId; + @XmlAttribute(name = "fontId") + protected Long fontId; + @XmlAttribute(name = "fillId") + protected Long fillId; + @XmlAttribute(name = "borderId") + protected Long borderId; + @XmlAttribute(name = "xfId") + protected Long xfId; + @XmlAttribute(name = "quotePrefix") + protected Boolean quotePrefix; + @XmlAttribute(name = "pivotButton") + protected Boolean pivotButton; + @XmlAttribute(name = "applyNumberFormat") + protected Boolean applyNumberFormat; + @XmlAttribute(name = "applyFont") + protected Boolean applyFont; + @XmlAttribute(name = "applyFill") + protected Boolean applyFill; + @XmlAttribute(name = "applyBorder") + protected Boolean applyBorder; + @XmlAttribute(name = "applyAlignment") + protected Boolean applyAlignment; + @XmlAttribute(name = "applyProtection") + protected Boolean applyProtection; + @XmlTransient + private Object parent; + + /** + * Gets the value of the alignment property. + * + * @return + * possible object is + * {@link CTCellAlignment } + * + */ + public CTCellAlignment getAlignment() { + return alignment; + } + + /** + * Sets the value of the alignment property. + * + * @param value + * allowed object is + * {@link CTCellAlignment } + * + */ + public void setAlignment(CTCellAlignment value) { + this.alignment = value; + } + + /** + * Gets the value of the protection property. + * + * @return + * possible object is + * {@link CTCellProtection } + * + */ + public CTCellProtection getProtection() { + return protection; + } + + /** + * Sets the value of the protection property. + * + * @param value + * allowed object is + * {@link CTCellProtection } + * + */ + public void setProtection(CTCellProtection value) { + this.protection = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the numFmtId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getNumFmtId() { + return numFmtId; + } + + /** + * Sets the value of the numFmtId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setNumFmtId(Long value) { + this.numFmtId = value; + } + + /** + * Gets the value of the fontId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFontId() { + return fontId; + } + + /** + * Sets the value of the fontId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFontId(Long value) { + this.fontId = value; + } + + /** + * Gets the value of the fillId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFillId() { + return fillId; + } + + /** + * Sets the value of the fillId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFillId(Long value) { + this.fillId = value; + } + + /** + * Gets the value of the borderId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getBorderId() { + return borderId; + } + + /** + * Sets the value of the borderId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setBorderId(Long value) { + this.borderId = value; + } + + /** + * Gets the value of the xfId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getXfId() { + return xfId; + } + + /** + * Sets the value of the xfId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setXfId(Long value) { + this.xfId = value; + } + + /** + * Gets the value of the quotePrefix property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isQuotePrefix() { + if (quotePrefix == null) { + return false; + } else { + return quotePrefix; + } + } + + /** + * Sets the value of the quotePrefix property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setQuotePrefix(Boolean value) { + this.quotePrefix = value; + } + + /** + * Gets the value of the pivotButton property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPivotButton() { + if (pivotButton == null) { + return false; + } else { + return pivotButton; + } + } + + /** + * Sets the value of the pivotButton property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPivotButton(Boolean value) { + this.pivotButton = value; + } + + /** + * Gets the value of the applyNumberFormat property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyNumberFormat() { + return applyNumberFormat; + } + + /** + * Sets the value of the applyNumberFormat property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyNumberFormat(Boolean value) { + this.applyNumberFormat = value; + } + + /** + * Gets the value of the applyFont property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyFont() { + return applyFont; + } + + /** + * Sets the value of the applyFont property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyFont(Boolean value) { + this.applyFont = value; + } + + /** + * Gets the value of the applyFill property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyFill() { + return applyFill; + } + + /** + * Sets the value of the applyFill property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyFill(Boolean value) { + this.applyFill = value; + } + + /** + * Gets the value of the applyBorder property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyBorder() { + return applyBorder; + } + + /** + * Sets the value of the applyBorder property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyBorder(Boolean value) { + this.applyBorder = value; + } + + /** + * Gets the value of the applyAlignment property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyAlignment() { + return applyAlignment; + } + + /** + * Sets the value of the applyAlignment property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyAlignment(Boolean value) { + this.applyAlignment = value; + } + + /** + * Gets the value of the applyProtection property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isApplyProtection() { + return applyProtection; + } + + /** + * Sets the value of the applyProtection property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setApplyProtection(Boolean value) { + this.applyProtection = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTXmlCellPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTXmlCellPr.java index 9e3d252702..9fb7bbc5cf 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTXmlCellPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTXmlCellPr.java @@ -1,158 +1,170 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_XmlCellPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_XmlCellPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="xmlPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XmlPr"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="uniqueName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_XmlCellPr", propOrder = { - "xmlPr", - "extLst" -}) -public class CTXmlCellPr { - - @XmlElement(required = true) - protected CTXmlPr xmlPr; - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long id; - @XmlAttribute - protected String uniqueName; - - /** - * Gets the value of the xmlPr property. - * - * @return - * possible object is - * {@link CTXmlPr } - * - */ - public CTXmlPr getXmlPr() { - return xmlPr; - } - - /** - * Sets the value of the xmlPr property. - * - * @param value - * allowed object is - * {@link CTXmlPr } - * - */ - public void setXmlPr(CTXmlPr value) { - this.xmlPr = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the id property. - * - */ - public long getId() { - return id; - } - - /** - * Sets the value of the id property. - * - */ - public void setId(long value) { - this.id = value; - } - - /** - * Gets the value of the uniqueName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUniqueName() { - return uniqueName; - } - - /** - * Sets the value of the uniqueName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUniqueName(String value) { - this.uniqueName = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_XmlCellPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_XmlCellPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="xmlPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_XmlPr"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="uniqueName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_XmlCellPr", propOrder = { + "xmlPr", + "extLst" +}) +public class CTXmlCellPr implements Child +{ + + @XmlElement(required = true) + protected CTXmlPr xmlPr; + protected CTExtensionList extLst; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long id; + @XmlAttribute(name = "uniqueName") + protected String uniqueName; + @XmlTransient + private Object parent; + + /** + * Gets the value of the xmlPr property. + * + * @return + * possible object is + * {@link CTXmlPr } + * + */ + public CTXmlPr getXmlPr() { + return xmlPr; + } + + /** + * Sets the value of the xmlPr property. + * + * @param value + * allowed object is + * {@link CTXmlPr } + * + */ + public void setXmlPr(CTXmlPr value) { + this.xmlPr = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the uniqueName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUniqueName() { + return uniqueName; + } + + /** + * Sets the value of the uniqueName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUniqueName(String value) { + this.uniqueName = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTXmlColumnPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTXmlColumnPr.java index 771ee83b7e..d4c5045282 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTXmlColumnPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTXmlColumnPr.java @@ -1,187 +1,199 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_XmlColumnPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_XmlColumnPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="mapId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="xpath" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="denormalized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="xmlDataType" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_XmlDataType" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_XmlColumnPr", propOrder = { - "extLst" -}) -public class CTXmlColumnPr { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long mapId; - @XmlAttribute(required = true) - protected String xpath; - @XmlAttribute - protected Boolean denormalized; - @XmlAttribute(required = true) - protected STXmlDataType xmlDataType; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the mapId property. - * - */ - public long getMapId() { - return mapId; - } - - /** - * Sets the value of the mapId property. - * - */ - public void setMapId(long value) { - this.mapId = value; - } - - /** - * Gets the value of the xpath property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getXpath() { - return xpath; - } - - /** - * Sets the value of the xpath property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setXpath(String value) { - this.xpath = value; - } - - /** - * Gets the value of the denormalized property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDenormalized() { - if (denormalized == null) { - return false; - } else { - return denormalized; - } - } - - /** - * Sets the value of the denormalized property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDenormalized(Boolean value) { - this.denormalized = value; - } - - /** - * Gets the value of the xmlDataType property. - * - * @return - * possible object is - * {@link STXmlDataType } - * - */ - public STXmlDataType getXmlDataType() { - return xmlDataType; - } - - /** - * Sets the value of the xmlDataType property. - * - * @param value - * allowed object is - * {@link STXmlDataType } - * - */ - public void setXmlDataType(STXmlDataType value) { - this.xmlDataType = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_XmlColumnPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_XmlColumnPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="mapId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="xpath" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="denormalized" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="xmlDataType" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_XmlDataType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_XmlColumnPr", propOrder = { + "extLst" +}) +public class CTXmlColumnPr implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "mapId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long mapId; + @XmlAttribute(name = "xpath", required = true) + protected String xpath; + @XmlAttribute(name = "denormalized") + protected Boolean denormalized; + @XmlAttribute(name = "xmlDataType", required = true) + protected String xmlDataType; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the mapId property. + * + */ + public long getMapId() { + return mapId; + } + + /** + * Sets the value of the mapId property. + * + */ + public void setMapId(long value) { + this.mapId = value; + } + + /** + * Gets the value of the xpath property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXpath() { + return xpath; + } + + /** + * Sets the value of the xpath property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXpath(String value) { + this.xpath = value; + } + + /** + * Gets the value of the denormalized property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDenormalized() { + if (denormalized == null) { + return false; + } else { + return denormalized; + } + } + + /** + * Sets the value of the denormalized property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDenormalized(Boolean value) { + this.denormalized = value; + } + + /** + * Gets the value of the xmlDataType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXmlDataType() { + return xmlDataType; + } + + /** + * Sets the value of the xmlDataType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXmlDataType(String value) { + this.xmlDataType = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTXmlPr.java b/src/xlsx4j/java/org/xlsx4j/sml/CTXmlPr.java index 9518755bfd..49324ff6ca 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/CTXmlPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTXmlPr.java @@ -1,156 +1,168 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_XmlPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_XmlPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="mapId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="xpath" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="xmlDataType" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_XmlDataType" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_XmlPr", propOrder = { - "extLst" -}) -public class CTXmlPr { - - protected CTExtensionList extLst; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long mapId; - @XmlAttribute(required = true) - protected String xpath; - @XmlAttribute(required = true) - protected STXmlDataType xmlDataType; - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the mapId property. - * - */ - public long getMapId() { - return mapId; - } - - /** - * Sets the value of the mapId property. - * - */ - public void setMapId(long value) { - this.mapId = value; - } - - /** - * Gets the value of the xpath property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getXpath() { - return xpath; - } - - /** - * Sets the value of the xpath property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setXpath(String value) { - this.xpath = value; - } - - /** - * Gets the value of the xmlDataType property. - * - * @return - * possible object is - * {@link STXmlDataType } - * - */ - public STXmlDataType getXmlDataType() { - return xmlDataType; - } - - /** - * Sets the value of the xmlDataType property. - * - * @param value - * allowed object is - * {@link STXmlDataType } - * - */ - public void setXmlDataType(STXmlDataType value) { - this.xmlDataType = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_XmlPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_XmlPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="mapId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="xpath" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="xmlDataType" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_XmlDataType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_XmlPr", propOrder = { + "extLst" +}) +public class CTXmlPr implements Child +{ + + protected CTExtensionList extLst; + @XmlAttribute(name = "mapId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long mapId; + @XmlAttribute(name = "xpath", required = true) + protected String xpath; + @XmlAttribute(name = "xmlDataType", required = true) + protected String xmlDataType; + @XmlTransient + private Object parent; + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the mapId property. + * + */ + public long getMapId() { + return mapId; + } + + /** + * Sets the value of the mapId property. + * + */ + public void setMapId(long value) { + this.mapId = value; + } + + /** + * Gets the value of the xpath property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXpath() { + return xpath; + } + + /** + * Sets the value of the xpath property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXpath(String value) { + this.xpath = value; + } + + /** + * Gets the value of the xmlDataType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXmlDataType() { + return xmlDataType; + } + + /** + * Sets the value of the xmlDataType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXmlDataType(String value) { + this.xmlDataType = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/CTXstringWhitespace.java b/src/xlsx4j/java/org/xlsx4j/sml/CTXstringWhitespace.java new file mode 100644 index 0000000000..33aecc9d4f --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/CTXstringWhitespace.java @@ -0,0 +1,125 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + * Escaped String + * + *

Java class for CT_Xstring_Whitespace complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Xstring_Whitespace">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute ref="{http://www.w3.org/XML/1998/namespace}space"/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Xstring_Whitespace", propOrder = { + "value" +}) +public class CTXstringWhitespace implements Child +{ + + @XmlValue + protected String value; + @XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String space; + @XmlTransient + private Object parent; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Content Contains Significant + * Whitespace + * + * @return + * possible object is + * {@link String } + * + */ + public String getSpace() { + return space; + } + + /** + * Sets the value of the space property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSpace(String value) { + this.space = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Cell.java b/src/xlsx4j/java/org/xlsx4j/sml/Cell.java index 1dce927a40..6f5504eac3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Cell.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Cell.java @@ -1,348 +1,360 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Cell complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Cell">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="f" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellFormula" minOccurs="0"/>
- *         <element name="v" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" minOccurs="0"/>
- *         <element name="is" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellType" default="n" />
- *       <attribute name="cm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="vm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Cell", propOrder = { - "f", - "v", - "is", - "extLst" -}) -public class Cell { - - protected CTCellFormula f; - protected String v; - protected CTRst is; - protected CTExtensionList extLst; - @XmlAttribute - protected String r; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long s; - @XmlAttribute - protected STCellType t; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long cm; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long vm; - @XmlAttribute - protected Boolean ph; - - /** - * Gets the value of the f property. - * - * @return - * possible object is - * {@link CTCellFormula } - * - */ - public CTCellFormula getF() { - return f; - } - - /** - * Sets the value of the f property. - * - * @param value - * allowed object is - * {@link CTCellFormula } - * - */ - public void setF(CTCellFormula value) { - this.f = value; - } - - /** - * Gets the value of the v property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getV() { - return v; - } - - /** - * Sets the value of the v property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setV(String value) { - this.v = value; - } - - /** - * Gets the value of the is property. - * - * @return - * possible object is - * {@link CTRst } - * - */ - public CTRst getIs() { - return is; - } - - /** - * Sets the value of the is property. - * - * @param value - * allowed object is - * {@link CTRst } - * - */ - public void setIs(CTRst value) { - this.is = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setR(String value) { - this.r = value; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getS() { - if (s == null) { - return 0L; - } else { - return s; - } - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setS(Long value) { - this.s = value; - } - - /** - * Gets the value of the t property. - * - * @return - * possible object is - * {@link STCellType } - * - */ - public STCellType getT() { - if (t == null) { - return STCellType.N; - } else { - return t; - } - } - - /** - * Sets the value of the t property. - * - * @param value - * allowed object is - * {@link STCellType } - * - */ - public void setT(STCellType value) { - this.t = value; - } - - /** - * Gets the value of the cm property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getCm() { - if (cm == null) { - return 0L; - } else { - return cm; - } - } - - /** - * Sets the value of the cm property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setCm(Long value) { - this.cm = value; - } - - /** - * Gets the value of the vm property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getVm() { - if (vm == null) { - return 0L; - } else { - return vm; - } - } - - /** - * Sets the value of the vm property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setVm(Long value) { - this.vm = value; - } - - /** - * Gets the value of the ph property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPh() { - if (ph == null) { - return false; - } else { - return ph; - } - } - - /** - * Sets the value of the ph property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPh(Boolean value) { - this.ph = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Cell complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Cell">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="f" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellFormula" minOccurs="0"/>
+ *         <element name="v" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
+ *         <element name="is" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellType" default="n" />
+ *       <attribute name="cm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="vm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Cell", propOrder = { + "f", + "v", + "is", + "extLst" +}) +public class Cell implements Child +{ + + protected CTCellFormula f; + protected String v; + protected CTRst is; + protected CTExtensionList extLst; + @XmlAttribute(name = "r") + protected String r; + @XmlAttribute(name = "s") + @XmlSchemaType(name = "unsignedInt") + protected Long s; + @XmlAttribute(name = "t") + protected STCellType t; + @XmlAttribute(name = "cm") + @XmlSchemaType(name = "unsignedInt") + protected Long cm; + @XmlAttribute(name = "vm") + @XmlSchemaType(name = "unsignedInt") + protected Long vm; + @XmlAttribute(name = "ph") + protected Boolean ph; + @XmlTransient + private Object parent; + + /** + * Gets the value of the f property. + * + * @return + * possible object is + * {@link CTCellFormula } + * + */ + public CTCellFormula getF() { + return f; + } + + /** + * Sets the value of the f property. + * + * @param value + * allowed object is + * {@link CTCellFormula } + * + */ + public void setF(CTCellFormula value) { + this.f = value; + } + + /** + * Gets the value of the v property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getV() { + return v; + } + + /** + * Sets the value of the v property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setV(String value) { + this.v = value; + } + + /** + * Gets the value of the is property. + * + * @return + * possible object is + * {@link CTRst } + * + */ + public CTRst getIs() { + return is; + } + + /** + * Sets the value of the is property. + * + * @param value + * allowed object is + * {@link CTRst } + * + */ + public void setIs(CTRst value) { + this.is = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setR(String value) { + this.r = value; + } + + /** + * Gets the value of the s property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getS() { + if (s == null) { + return 0L; + } else { + return s; + } + } + + /** + * Sets the value of the s property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setS(Long value) { + this.s = value; + } + + /** + * Gets the value of the t property. + * + * @return + * possible object is + * {@link STCellType } + * + */ + public STCellType getT() { + if (t == null) { + return STCellType.N; + } else { + return t; + } + } + + /** + * Sets the value of the t property. + * + * @param value + * allowed object is + * {@link STCellType } + * + */ + public void setT(STCellType value) { + this.t = value; + } + + /** + * Gets the value of the cm property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getCm() { + if (cm == null) { + return 0L; + } else { + return cm; + } + } + + /** + * Sets the value of the cm property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setCm(Long value) { + this.cm = value; + } + + /** + * Gets the value of the vm property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getVm() { + if (vm == null) { + return 0L; + } else { + return vm; + } + } + + /** + * Sets the value of the vm property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setVm(Long value) { + this.vm = value; + } + + /** + * Gets the value of the ph property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPh() { + if (ph == null) { + return false; + } else { + return ph; + } + } + + /** + * Sets the value of the ph property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPh(Boolean value) { + this.ph = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Col.java b/src/xlsx4j/java/org/xlsx4j/sml/Col.java index 6dc78c6d4a..59604a90a7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Col.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Col.java @@ -1,338 +1,350 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Col complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Col">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="min" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="max" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="bestFit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="customWidth" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="phonetic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="outlineLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="collapsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Col") -public class Col { - - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long min; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long max; - @XmlAttribute - protected Double width; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long style; - @XmlAttribute - protected Boolean hidden; - @XmlAttribute - protected Boolean bestFit; - @XmlAttribute - protected Boolean customWidth; - @XmlAttribute - protected Boolean phonetic; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short outlineLevel; - @XmlAttribute - protected Boolean collapsed; - - /** - * Gets the value of the min property. - * - */ - public long getMin() { - return min; - } - - /** - * Sets the value of the min property. - * - */ - public void setMin(long value) { - this.min = value; - } - - /** - * Gets the value of the max property. - * - */ - public long getMax() { - return max; - } - - /** - * Sets the value of the max property. - * - */ - public void setMax(long value) { - this.max = value; - } - - /** - * Gets the value of the width property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getWidth() { - return width; - } - - /** - * Sets the value of the width property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setWidth(Double value) { - this.width = value; - } - - /** - * Gets the value of the style property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getStyle() { - if (style == null) { - return 0L; - } else { - return style; - } - } - - /** - * Sets the value of the style property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setStyle(Long value) { - this.style = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHidden() { - if (hidden == null) { - return false; - } else { - return hidden; - } - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - - /** - * Gets the value of the bestFit property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBestFit() { - if (bestFit == null) { - return false; - } else { - return bestFit; - } - } - - /** - * Sets the value of the bestFit property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBestFit(Boolean value) { - this.bestFit = value; - } - - /** - * Gets the value of the customWidth property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCustomWidth() { - if (customWidth == null) { - return false; - } else { - return customWidth; - } - } - - /** - * Sets the value of the customWidth property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomWidth(Boolean value) { - this.customWidth = value; - } - - /** - * Gets the value of the phonetic property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPhonetic() { - if (phonetic == null) { - return false; - } else { - return phonetic; - } - } - - /** - * Sets the value of the phonetic property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPhonetic(Boolean value) { - this.phonetic = value; - } - - /** - * Gets the value of the outlineLevel property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getOutlineLevel() { - if (outlineLevel == null) { - return ((short) 0); - } else { - return outlineLevel; - } - } - - /** - * Sets the value of the outlineLevel property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setOutlineLevel(Short value) { - this.outlineLevel = value; - } - - /** - * Gets the value of the collapsed property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCollapsed() { - if (collapsed == null) { - return false; - } else { - return collapsed; - } - } - - /** - * Sets the value of the collapsed property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCollapsed(Boolean value) { - this.collapsed = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Col complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Col">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="min" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="max" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="style" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="bestFit" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="customWidth" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="phonetic" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="outlineLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="collapsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Col") +public class Col implements Child +{ + + @XmlAttribute(name = "min", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long min; + @XmlAttribute(name = "max", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long max; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "style") + @XmlSchemaType(name = "unsignedInt") + protected Long style; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlAttribute(name = "bestFit") + protected Boolean bestFit; + @XmlAttribute(name = "customWidth") + protected Boolean customWidth; + @XmlAttribute(name = "phonetic") + protected Boolean phonetic; + @XmlAttribute(name = "outlineLevel") + @XmlSchemaType(name = "unsignedByte") + protected Short outlineLevel; + @XmlAttribute(name = "collapsed") + protected Boolean collapsed; + @XmlTransient + private Object parent; + + /** + * Gets the value of the min property. + * + */ + public long getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + */ + public void setMin(long value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + */ + public long getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + */ + public void setMax(long value) { + this.max = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the style property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getStyle() { + if (style == null) { + return 0L; + } else { + return style; + } + } + + /** + * Sets the value of the style property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setStyle(Long value) { + this.style = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHidden() { + if (hidden == null) { + return false; + } else { + return hidden; + } + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the value of the bestFit property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBestFit() { + if (bestFit == null) { + return false; + } else { + return bestFit; + } + } + + /** + * Sets the value of the bestFit property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBestFit(Boolean value) { + this.bestFit = value; + } + + /** + * Gets the value of the customWidth property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCustomWidth() { + if (customWidth == null) { + return false; + } else { + return customWidth; + } + } + + /** + * Sets the value of the customWidth property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomWidth(Boolean value) { + this.customWidth = value; + } + + /** + * Gets the value of the phonetic property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPhonetic() { + if (phonetic == null) { + return false; + } else { + return phonetic; + } + } + + /** + * Sets the value of the phonetic property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPhonetic(Boolean value) { + this.phonetic = value; + } + + /** + * Gets the value of the outlineLevel property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getOutlineLevel() { + if (outlineLevel == null) { + return ((short) 0); + } else { + return outlineLevel; + } + } + + /** + * Sets the value of the outlineLevel property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setOutlineLevel(Short value) { + this.outlineLevel = value; + } + + /** + * Gets the value of the collapsed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCollapsed() { + if (collapsed == null) { + return false; + } else { + return collapsed; + } + } + + /** + * Sets the value of the collapsed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCollapsed(Boolean value) { + this.collapsed = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Cols.java b/src/xlsx4j/java/org/xlsx4j/sml/Cols.java index 0294d56487..126befd93f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Cols.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Cols.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Cols complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Cols">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="col" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Col" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Cols", propOrder = { - "col" -}) -public class Cols { - - @XmlElement(required = true) - protected List col; - - /** - * Gets the value of the col property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the col property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCol().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Col } - * - * - */ - public List getCol() { - if (col == null) { - col = new ArrayList(); - } - return this.col; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Cols complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Cols">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="col" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Col" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Cols", propOrder = { + "col" +}) +public class Cols implements Child +{ + + @XmlElement(required = true) + protected List col; + @XmlTransient + private Object parent; + + /** + * Gets the value of the col property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the col property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCol().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Col } + * + * + */ + public List getCol() { + if (col == null) { + col = new ArrayList(); + } + return this.col; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/DefinedNames.java b/src/xlsx4j/java/org/xlsx4j/sml/DefinedNames.java index 605fe55b9e..b95abe9b96 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/DefinedNames.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/DefinedNames.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_DefinedNames complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_DefinedNames">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="definedName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DefinedName" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_DefinedNames", propOrder = { - "definedName" -}) -public class DefinedNames { - - protected List definedName; - - /** - * Gets the value of the definedName property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the definedName property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDefinedName().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTDefinedName } - * - * - */ - public List getDefinedName() { - if (definedName == null) { - definedName = new ArrayList(); - } - return this.definedName; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_DefinedNames complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_DefinedNames">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="definedName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DefinedName" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_DefinedNames", propOrder = { + "definedName" +}) +public class DefinedNames implements Child +{ + + protected List definedName; + @XmlTransient + private Object parent; + + /** + * Gets the value of the definedName property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the definedName property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDefinedName().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTDefinedName } + * + * + */ + public List getDefinedName() { + if (definedName == null) { + definedName = new ArrayList(); + } + return this.definedName; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Dialogsheet.java b/src/xlsx4j/java/org/xlsx4j/sml/Dialogsheet.java index 527fa47464..820bc8a57f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Dialogsheet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Dialogsheet.java @@ -1,431 +1,497 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Dialogsheet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Dialogsheet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetPr" minOccurs="0"/>
- *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetViews" minOccurs="0"/>
- *         <element name="sheetFormatPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetFormatPr" minOccurs="0"/>
- *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetProtection" minOccurs="0"/>
- *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetViews" minOccurs="0"/>
- *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
- *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
- *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
- *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
- *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing" minOccurs="0"/>
- *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="oleObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObjects" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Dialogsheet", propOrder = { - "sheetPr", - "sheetViews", - "sheetFormatPr", - "sheetProtection", - "customSheetViews", - "printOptions", - "pageMargins", - "pageSetup", - "headerFooter", - "drawing", - "legacyDrawing", - "legacyDrawingHF", - "oleObjects", - "extLst" -}) -public class Dialogsheet { - - protected CTSheetPr sheetPr; - protected SheetViews sheetViews; - protected CTSheetFormatPr sheetFormatPr; - protected CTSheetProtection sheetProtection; - protected CTCustomSheetViews customSheetViews; - protected CTPrintOptions printOptions; - protected CTPageMargins pageMargins; - protected CTPageSetup pageSetup; - protected CTHeaderFooter headerFooter; - protected CTDrawing drawing; - protected CTLegacyDrawing legacyDrawing; - protected CTLegacyDrawing legacyDrawingHF; - protected CTOleObjects oleObjects; - protected CTExtensionList extLst; - - /** - * Gets the value of the sheetPr property. - * - * @return - * possible object is - * {@link CTSheetPr } - * - */ - public CTSheetPr getSheetPr() { - return sheetPr; - } - - /** - * Sets the value of the sheetPr property. - * - * @param value - * allowed object is - * {@link CTSheetPr } - * - */ - public void setSheetPr(CTSheetPr value) { - this.sheetPr = value; - } - - /** - * Gets the value of the sheetViews property. - * - * @return - * possible object is - * {@link SheetViews } - * - */ - public SheetViews getSheetViews() { - return sheetViews; - } - - /** - * Sets the value of the sheetViews property. - * - * @param value - * allowed object is - * {@link SheetViews } - * - */ - public void setSheetViews(SheetViews value) { - this.sheetViews = value; - } - - /** - * Gets the value of the sheetFormatPr property. - * - * @return - * possible object is - * {@link CTSheetFormatPr } - * - */ - public CTSheetFormatPr getSheetFormatPr() { - return sheetFormatPr; - } - - /** - * Sets the value of the sheetFormatPr property. - * - * @param value - * allowed object is - * {@link CTSheetFormatPr } - * - */ - public void setSheetFormatPr(CTSheetFormatPr value) { - this.sheetFormatPr = value; - } - - /** - * Gets the value of the sheetProtection property. - * - * @return - * possible object is - * {@link CTSheetProtection } - * - */ - public CTSheetProtection getSheetProtection() { - return sheetProtection; - } - - /** - * Sets the value of the sheetProtection property. - * - * @param value - * allowed object is - * {@link CTSheetProtection } - * - */ - public void setSheetProtection(CTSheetProtection value) { - this.sheetProtection = value; - } - - /** - * Gets the value of the customSheetViews property. - * - * @return - * possible object is - * {@link CTCustomSheetViews } - * - */ - public CTCustomSheetViews getCustomSheetViews() { - return customSheetViews; - } - - /** - * Sets the value of the customSheetViews property. - * - * @param value - * allowed object is - * {@link CTCustomSheetViews } - * - */ - public void setCustomSheetViews(CTCustomSheetViews value) { - this.customSheetViews = value; - } - - /** - * Gets the value of the printOptions property. - * - * @return - * possible object is - * {@link CTPrintOptions } - * - */ - public CTPrintOptions getPrintOptions() { - return printOptions; - } - - /** - * Sets the value of the printOptions property. - * - * @param value - * allowed object is - * {@link CTPrintOptions } - * - */ - public void setPrintOptions(CTPrintOptions value) { - this.printOptions = value; - } - - /** - * Gets the value of the pageMargins property. - * - * @return - * possible object is - * {@link CTPageMargins } - * - */ - public CTPageMargins getPageMargins() { - return pageMargins; - } - - /** - * Sets the value of the pageMargins property. - * - * @param value - * allowed object is - * {@link CTPageMargins } - * - */ - public void setPageMargins(CTPageMargins value) { - this.pageMargins = value; - } - - /** - * Gets the value of the pageSetup property. - * - * @return - * possible object is - * {@link CTPageSetup } - * - */ - public CTPageSetup getPageSetup() { - return pageSetup; - } - - /** - * Sets the value of the pageSetup property. - * - * @param value - * allowed object is - * {@link CTPageSetup } - * - */ - public void setPageSetup(CTPageSetup value) { - this.pageSetup = value; - } - - /** - * Gets the value of the headerFooter property. - * - * @return - * possible object is - * {@link CTHeaderFooter } - * - */ - public CTHeaderFooter getHeaderFooter() { - return headerFooter; - } - - /** - * Sets the value of the headerFooter property. - * - * @param value - * allowed object is - * {@link CTHeaderFooter } - * - */ - public void setHeaderFooter(CTHeaderFooter value) { - this.headerFooter = value; - } - - /** - * Gets the value of the drawing property. - * - * @return - * possible object is - * {@link CTDrawing } - * - */ - public CTDrawing getDrawing() { - return drawing; - } - - /** - * Sets the value of the drawing property. - * - * @param value - * allowed object is - * {@link CTDrawing } - * - */ - public void setDrawing(CTDrawing value) { - this.drawing = value; - } - - /** - * Gets the value of the legacyDrawing property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawing() { - return legacyDrawing; - } - - /** - * Sets the value of the legacyDrawing property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawing(CTLegacyDrawing value) { - this.legacyDrawing = value; - } - - /** - * Gets the value of the legacyDrawingHF property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawingHF() { - return legacyDrawingHF; - } - - /** - * Sets the value of the legacyDrawingHF property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawingHF(CTLegacyDrawing value) { - this.legacyDrawingHF = value; - } - - /** - * Gets the value of the oleObjects property. - * - * @return - * possible object is - * {@link CTOleObjects } - * - */ - public CTOleObjects getOleObjects() { - return oleObjects; - } - - /** - * Sets the value of the oleObjects property. - * - * @param value - * allowed object is - * {@link CTOleObjects } - * - */ - public void setOleObjects(CTOleObjects value) { - this.oleObjects = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Dialogsheet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Dialogsheet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetPr" minOccurs="0"/>
+ *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetViews" minOccurs="0"/>
+ *         <element name="sheetFormatPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetFormatPr" minOccurs="0"/>
+ *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetProtection" minOccurs="0"/>
+ *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetViews" minOccurs="0"/>
+ *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
+ *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
+ *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
+ *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
+ *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing" minOccurs="0"/>
+ *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="drawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DrawingHF" minOccurs="0"/>
+ *         <element name="oleObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObjects" minOccurs="0"/>
+ *         <element name="controls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Controls" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Dialogsheet", propOrder = { + "sheetPr", + "sheetViews", + "sheetFormatPr", + "sheetProtection", + "customSheetViews", + "printOptions", + "pageMargins", + "pageSetup", + "headerFooter", + "drawing", + "legacyDrawing", + "legacyDrawingHF", + "drawingHF", + "oleObjects", + "controls", + "extLst" +}) +public class Dialogsheet implements Child +{ + + protected CTSheetPr sheetPr; + protected SheetViews sheetViews; + protected CTSheetFormatPr sheetFormatPr; + protected CTSheetProtection sheetProtection; + protected CTCustomSheetViews customSheetViews; + protected CTPrintOptions printOptions; + protected CTPageMargins pageMargins; + protected CTPageSetup pageSetup; + protected CTHeaderFooter headerFooter; + protected CTDrawing drawing; + protected CTLegacyDrawing legacyDrawing; + protected CTLegacyDrawing legacyDrawingHF; + protected CTDrawingHF drawingHF; + protected CTOleObjects oleObjects; + protected CTControls controls; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetPr property. + * + * @return + * possible object is + * {@link CTSheetPr } + * + */ + public CTSheetPr getSheetPr() { + return sheetPr; + } + + /** + * Sets the value of the sheetPr property. + * + * @param value + * allowed object is + * {@link CTSheetPr } + * + */ + public void setSheetPr(CTSheetPr value) { + this.sheetPr = value; + } + + /** + * Gets the value of the sheetViews property. + * + * @return + * possible object is + * {@link SheetViews } + * + */ + public SheetViews getSheetViews() { + return sheetViews; + } + + /** + * Sets the value of the sheetViews property. + * + * @param value + * allowed object is + * {@link SheetViews } + * + */ + public void setSheetViews(SheetViews value) { + this.sheetViews = value; + } + + /** + * Gets the value of the sheetFormatPr property. + * + * @return + * possible object is + * {@link CTSheetFormatPr } + * + */ + public CTSheetFormatPr getSheetFormatPr() { + return sheetFormatPr; + } + + /** + * Sets the value of the sheetFormatPr property. + * + * @param value + * allowed object is + * {@link CTSheetFormatPr } + * + */ + public void setSheetFormatPr(CTSheetFormatPr value) { + this.sheetFormatPr = value; + } + + /** + * Gets the value of the sheetProtection property. + * + * @return + * possible object is + * {@link CTSheetProtection } + * + */ + public CTSheetProtection getSheetProtection() { + return sheetProtection; + } + + /** + * Sets the value of the sheetProtection property. + * + * @param value + * allowed object is + * {@link CTSheetProtection } + * + */ + public void setSheetProtection(CTSheetProtection value) { + this.sheetProtection = value; + } + + /** + * Gets the value of the customSheetViews property. + * + * @return + * possible object is + * {@link CTCustomSheetViews } + * + */ + public CTCustomSheetViews getCustomSheetViews() { + return customSheetViews; + } + + /** + * Sets the value of the customSheetViews property. + * + * @param value + * allowed object is + * {@link CTCustomSheetViews } + * + */ + public void setCustomSheetViews(CTCustomSheetViews value) { + this.customSheetViews = value; + } + + /** + * Gets the value of the printOptions property. + * + * @return + * possible object is + * {@link CTPrintOptions } + * + */ + public CTPrintOptions getPrintOptions() { + return printOptions; + } + + /** + * Sets the value of the printOptions property. + * + * @param value + * allowed object is + * {@link CTPrintOptions } + * + */ + public void setPrintOptions(CTPrintOptions value) { + this.printOptions = value; + } + + /** + * Gets the value of the pageMargins property. + * + * @return + * possible object is + * {@link CTPageMargins } + * + */ + public CTPageMargins getPageMargins() { + return pageMargins; + } + + /** + * Sets the value of the pageMargins property. + * + * @param value + * allowed object is + * {@link CTPageMargins } + * + */ + public void setPageMargins(CTPageMargins value) { + this.pageMargins = value; + } + + /** + * Gets the value of the pageSetup property. + * + * @return + * possible object is + * {@link CTPageSetup } + * + */ + public CTPageSetup getPageSetup() { + return pageSetup; + } + + /** + * Sets the value of the pageSetup property. + * + * @param value + * allowed object is + * {@link CTPageSetup } + * + */ + public void setPageSetup(CTPageSetup value) { + this.pageSetup = value; + } + + /** + * Gets the value of the headerFooter property. + * + * @return + * possible object is + * {@link CTHeaderFooter } + * + */ + public CTHeaderFooter getHeaderFooter() { + return headerFooter; + } + + /** + * Sets the value of the headerFooter property. + * + * @param value + * allowed object is + * {@link CTHeaderFooter } + * + */ + public void setHeaderFooter(CTHeaderFooter value) { + this.headerFooter = value; + } + + /** + * Gets the value of the drawing property. + * + * @return + * possible object is + * {@link CTDrawing } + * + */ + public CTDrawing getDrawing() { + return drawing; + } + + /** + * Sets the value of the drawing property. + * + * @param value + * allowed object is + * {@link CTDrawing } + * + */ + public void setDrawing(CTDrawing value) { + this.drawing = value; + } + + /** + * Gets the value of the legacyDrawing property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawing() { + return legacyDrawing; + } + + /** + * Sets the value of the legacyDrawing property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawing(CTLegacyDrawing value) { + this.legacyDrawing = value; + } + + /** + * Gets the value of the legacyDrawingHF property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawingHF() { + return legacyDrawingHF; + } + + /** + * Sets the value of the legacyDrawingHF property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawingHF(CTLegacyDrawing value) { + this.legacyDrawingHF = value; + } + + /** + * Gets the value of the drawingHF property. + * + * @return + * possible object is + * {@link CTDrawingHF } + * + */ + public CTDrawingHF getDrawingHF() { + return drawingHF; + } + + /** + * Sets the value of the drawingHF property. + * + * @param value + * allowed object is + * {@link CTDrawingHF } + * + */ + public void setDrawingHF(CTDrawingHF value) { + this.drawingHF = value; + } + + /** + * Gets the value of the oleObjects property. + * + * @return + * possible object is + * {@link CTOleObjects } + * + */ + public CTOleObjects getOleObjects() { + return oleObjects; + } + + /** + * Sets the value of the oleObjects property. + * + * @param value + * allowed object is + * {@link CTOleObjects } + * + */ + public void setOleObjects(CTOleObjects value) { + this.oleObjects = value; + } + + /** + * Gets the value of the controls property. + * + * @return + * possible object is + * {@link CTControls } + * + */ + public CTControls getControls() { + return controls; + } + + /** + * Sets the value of the controls property. + * + * @param value + * allowed object is + * {@link CTControls } + * + */ + public void setControls(CTControls value) { + this.controls = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/FileVersion.java b/src/xlsx4j/java/org/xlsx4j/sml/FileVersion.java index 58e0fa342a..71fd9ff32f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/FileVersion.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/FileVersion.java @@ -1,189 +1,201 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - - -/** - *

Java class for CT_FileVersion complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_FileVersion">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="appName" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="lastEdited" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="lowestEdited" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="rupBuild" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="codeName" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Guid" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_FileVersion") -public class FileVersion { - - @XmlAttribute - protected String appName; - @XmlAttribute - protected String lastEdited; - @XmlAttribute - protected String lowestEdited; - @XmlAttribute - protected String rupBuild; - @XmlAttribute - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String codeName; - - /** - * Gets the value of the appName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAppName() { - return appName; - } - - /** - * Sets the value of the appName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAppName(String value) { - this.appName = value; - } - - /** - * Gets the value of the lastEdited property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLastEdited() { - return lastEdited; - } - - /** - * Sets the value of the lastEdited property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLastEdited(String value) { - this.lastEdited = value; - } - - /** - * Gets the value of the lowestEdited property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLowestEdited() { - return lowestEdited; - } - - /** - * Sets the value of the lowestEdited property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLowestEdited(String value) { - this.lowestEdited = value; - } - - /** - * Gets the value of the rupBuild property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRupBuild() { - return rupBuild; - } - - /** - * Sets the value of the rupBuild property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRupBuild(String value) { - this.rupBuild = value; - } - - /** - * Gets the value of the codeName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCodeName() { - return codeName; - } - - /** - * Sets the value of the codeName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCodeName(String value) { - this.codeName = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_FileVersion complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_FileVersion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="appName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="lastEdited" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="lowestEdited" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="rupBuild" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="codeName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_FileVersion") +public class FileVersion implements Child +{ + + @XmlAttribute(name = "appName") + protected String appName; + @XmlAttribute(name = "lastEdited") + protected String lastEdited; + @XmlAttribute(name = "lowestEdited") + protected String lowestEdited; + @XmlAttribute(name = "rupBuild") + protected String rupBuild; + @XmlAttribute(name = "codeName") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String codeName; + @XmlTransient + private Object parent; + + /** + * Gets the value of the appName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAppName() { + return appName; + } + + /** + * Sets the value of the appName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAppName(String value) { + this.appName = value; + } + + /** + * Gets the value of the lastEdited property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastEdited() { + return lastEdited; + } + + /** + * Sets the value of the lastEdited property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastEdited(String value) { + this.lastEdited = value; + } + + /** + * Gets the value of the lowestEdited property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLowestEdited() { + return lowestEdited; + } + + /** + * Sets the value of the lowestEdited property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLowestEdited(String value) { + this.lowestEdited = value; + } + + /** + * Gets the value of the rupBuild property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRupBuild() { + return rupBuild; + } + + /** + * Sets the value of the rupBuild property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRupBuild(String value) { + this.rupBuild = value; + } + + /** + * Gets the value of the codeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCodeName() { + return codeName; + } + + /** + * Sets the value of the codeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCodeName(String value) { + this.codeName = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Macrosheet.java b/src/xlsx4j/java/org/xlsx4j/sml/Macrosheet.java index 81cbd6f105..fc42c9e9db 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Macrosheet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Macrosheet.java @@ -1,769 +1,808 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Macrosheet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Macrosheet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetPr" minOccurs="0"/>
- *         <element name="dimension" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetDimension" minOccurs="0"/>
- *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetViews" minOccurs="0"/>
- *         <element name="sheetFormatPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetFormatPr" minOccurs="0"/>
- *         <element name="cols" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cols" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="sheetData" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetData"/>
- *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetProtection" minOccurs="0"/>
- *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
- *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
- *         <element name="dataConsolidate" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataConsolidate" minOccurs="0"/>
- *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetViews" minOccurs="0"/>
- *         <element name="phoneticPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticPr" minOccurs="0"/>
- *         <element name="conditionalFormatting" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormatting" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
- *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
- *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
- *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
- *         <element name="rowBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
- *         <element name="colBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
- *         <element name="customProperties" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomProperties" minOccurs="0"/>
- *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing" minOccurs="0"/>
- *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="picture" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetBackgroundPicture" minOccurs="0"/>
- *         <element name="oleObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObjects" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Macrosheet", propOrder = { - "sheetPr", - "dimension", - "sheetViews", - "sheetFormatPr", - "cols", - "sheetData", - "sheetProtection", - "autoFilter", - "sortState", - "dataConsolidate", - "customSheetViews", - "phoneticPr", - "conditionalFormatting", - "printOptions", - "pageMargins", - "pageSetup", - "headerFooter", - "rowBreaks", - "colBreaks", - "customProperties", - "drawing", - "legacyDrawing", - "legacyDrawingHF", - "picture", - "oleObjects", - "extLst" -}) -public class Macrosheet { - - protected CTSheetPr sheetPr; - protected CTSheetDimension dimension; - protected SheetViews sheetViews; - protected CTSheetFormatPr sheetFormatPr; - protected List cols; - @XmlElement(required = true) - protected SheetData sheetData; - protected CTSheetProtection sheetProtection; - protected CTAutoFilter autoFilter; - protected CTSortState sortState; - protected CTDataConsolidate dataConsolidate; - protected CTCustomSheetViews customSheetViews; - protected CTPhoneticPr phoneticPr; - protected List conditionalFormatting; - protected CTPrintOptions printOptions; - protected CTPageMargins pageMargins; - protected CTPageSetup pageSetup; - protected CTHeaderFooter headerFooter; - protected CTPageBreak rowBreaks; - protected CTPageBreak colBreaks; - protected CTCustomProperties customProperties; - protected CTDrawing drawing; - protected CTLegacyDrawing legacyDrawing; - protected CTLegacyDrawing legacyDrawingHF; - protected CTSheetBackgroundPicture picture; - protected CTOleObjects oleObjects; - protected CTExtensionList extLst; - - /** - * Gets the value of the sheetPr property. - * - * @return - * possible object is - * {@link CTSheetPr } - * - */ - public CTSheetPr getSheetPr() { - return sheetPr; - } - - /** - * Sets the value of the sheetPr property. - * - * @param value - * allowed object is - * {@link CTSheetPr } - * - */ - public void setSheetPr(CTSheetPr value) { - this.sheetPr = value; - } - - /** - * Gets the value of the dimension property. - * - * @return - * possible object is - * {@link CTSheetDimension } - * - */ - public CTSheetDimension getDimension() { - return dimension; - } - - /** - * Sets the value of the dimension property. - * - * @param value - * allowed object is - * {@link CTSheetDimension } - * - */ - public void setDimension(CTSheetDimension value) { - this.dimension = value; - } - - /** - * Gets the value of the sheetViews property. - * - * @return - * possible object is - * {@link SheetViews } - * - */ - public SheetViews getSheetViews() { - return sheetViews; - } - - /** - * Sets the value of the sheetViews property. - * - * @param value - * allowed object is - * {@link SheetViews } - * - */ - public void setSheetViews(SheetViews value) { - this.sheetViews = value; - } - - /** - * Gets the value of the sheetFormatPr property. - * - * @return - * possible object is - * {@link CTSheetFormatPr } - * - */ - public CTSheetFormatPr getSheetFormatPr() { - return sheetFormatPr; - } - - /** - * Sets the value of the sheetFormatPr property. - * - * @param value - * allowed object is - * {@link CTSheetFormatPr } - * - */ - public void setSheetFormatPr(CTSheetFormatPr value) { - this.sheetFormatPr = value; - } - - /** - * Gets the value of the cols property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cols property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCols().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Cols } - * - * - */ - public List getCols() { - if (cols == null) { - cols = new ArrayList(); - } - return this.cols; - } - - /** - * Gets the value of the sheetData property. - * - * @return - * possible object is - * {@link SheetData } - * - */ - public SheetData getSheetData() { - return sheetData; - } - - /** - * Sets the value of the sheetData property. - * - * @param value - * allowed object is - * {@link SheetData } - * - */ - public void setSheetData(SheetData value) { - this.sheetData = value; - } - - /** - * Gets the value of the sheetProtection property. - * - * @return - * possible object is - * {@link CTSheetProtection } - * - */ - public CTSheetProtection getSheetProtection() { - return sheetProtection; - } - - /** - * Sets the value of the sheetProtection property. - * - * @param value - * allowed object is - * {@link CTSheetProtection } - * - */ - public void setSheetProtection(CTSheetProtection value) { - this.sheetProtection = value; - } - - /** - * Gets the value of the autoFilter property. - * - * @return - * possible object is - * {@link CTAutoFilter } - * - */ - public CTAutoFilter getAutoFilter() { - return autoFilter; - } - - /** - * Sets the value of the autoFilter property. - * - * @param value - * allowed object is - * {@link CTAutoFilter } - * - */ - public void setAutoFilter(CTAutoFilter value) { - this.autoFilter = value; - } - - /** - * Gets the value of the sortState property. - * - * @return - * possible object is - * {@link CTSortState } - * - */ - public CTSortState getSortState() { - return sortState; - } - - /** - * Sets the value of the sortState property. - * - * @param value - * allowed object is - * {@link CTSortState } - * - */ - public void setSortState(CTSortState value) { - this.sortState = value; - } - - /** - * Gets the value of the dataConsolidate property. - * - * @return - * possible object is - * {@link CTDataConsolidate } - * - */ - public CTDataConsolidate getDataConsolidate() { - return dataConsolidate; - } - - /** - * Sets the value of the dataConsolidate property. - * - * @param value - * allowed object is - * {@link CTDataConsolidate } - * - */ - public void setDataConsolidate(CTDataConsolidate value) { - this.dataConsolidate = value; - } - - /** - * Gets the value of the customSheetViews property. - * - * @return - * possible object is - * {@link CTCustomSheetViews } - * - */ - public CTCustomSheetViews getCustomSheetViews() { - return customSheetViews; - } - - /** - * Sets the value of the customSheetViews property. - * - * @param value - * allowed object is - * {@link CTCustomSheetViews } - * - */ - public void setCustomSheetViews(CTCustomSheetViews value) { - this.customSheetViews = value; - } - - /** - * Gets the value of the phoneticPr property. - * - * @return - * possible object is - * {@link CTPhoneticPr } - * - */ - public CTPhoneticPr getPhoneticPr() { - return phoneticPr; - } - - /** - * Sets the value of the phoneticPr property. - * - * @param value - * allowed object is - * {@link CTPhoneticPr } - * - */ - public void setPhoneticPr(CTPhoneticPr value) { - this.phoneticPr = value; - } - - /** - * Gets the value of the conditionalFormatting property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the conditionalFormatting property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getConditionalFormatting().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTConditionalFormatting } - * - * - */ - public List getConditionalFormatting() { - if (conditionalFormatting == null) { - conditionalFormatting = new ArrayList(); - } - return this.conditionalFormatting; - } - - /** - * Gets the value of the printOptions property. - * - * @return - * possible object is - * {@link CTPrintOptions } - * - */ - public CTPrintOptions getPrintOptions() { - return printOptions; - } - - /** - * Sets the value of the printOptions property. - * - * @param value - * allowed object is - * {@link CTPrintOptions } - * - */ - public void setPrintOptions(CTPrintOptions value) { - this.printOptions = value; - } - - /** - * Gets the value of the pageMargins property. - * - * @return - * possible object is - * {@link CTPageMargins } - * - */ - public CTPageMargins getPageMargins() { - return pageMargins; - } - - /** - * Sets the value of the pageMargins property. - * - * @param value - * allowed object is - * {@link CTPageMargins } - * - */ - public void setPageMargins(CTPageMargins value) { - this.pageMargins = value; - } - - /** - * Gets the value of the pageSetup property. - * - * @return - * possible object is - * {@link CTPageSetup } - * - */ - public CTPageSetup getPageSetup() { - return pageSetup; - } - - /** - * Sets the value of the pageSetup property. - * - * @param value - * allowed object is - * {@link CTPageSetup } - * - */ - public void setPageSetup(CTPageSetup value) { - this.pageSetup = value; - } - - /** - * Gets the value of the headerFooter property. - * - * @return - * possible object is - * {@link CTHeaderFooter } - * - */ - public CTHeaderFooter getHeaderFooter() { - return headerFooter; - } - - /** - * Sets the value of the headerFooter property. - * - * @param value - * allowed object is - * {@link CTHeaderFooter } - * - */ - public void setHeaderFooter(CTHeaderFooter value) { - this.headerFooter = value; - } - - /** - * Gets the value of the rowBreaks property. - * - * @return - * possible object is - * {@link CTPageBreak } - * - */ - public CTPageBreak getRowBreaks() { - return rowBreaks; - } - - /** - * Sets the value of the rowBreaks property. - * - * @param value - * allowed object is - * {@link CTPageBreak } - * - */ - public void setRowBreaks(CTPageBreak value) { - this.rowBreaks = value; - } - - /** - * Gets the value of the colBreaks property. - * - * @return - * possible object is - * {@link CTPageBreak } - * - */ - public CTPageBreak getColBreaks() { - return colBreaks; - } - - /** - * Sets the value of the colBreaks property. - * - * @param value - * allowed object is - * {@link CTPageBreak } - * - */ - public void setColBreaks(CTPageBreak value) { - this.colBreaks = value; - } - - /** - * Gets the value of the customProperties property. - * - * @return - * possible object is - * {@link CTCustomProperties } - * - */ - public CTCustomProperties getCustomProperties() { - return customProperties; - } - - /** - * Sets the value of the customProperties property. - * - * @param value - * allowed object is - * {@link CTCustomProperties } - * - */ - public void setCustomProperties(CTCustomProperties value) { - this.customProperties = value; - } - - /** - * Gets the value of the drawing property. - * - * @return - * possible object is - * {@link CTDrawing } - * - */ - public CTDrawing getDrawing() { - return drawing; - } - - /** - * Sets the value of the drawing property. - * - * @param value - * allowed object is - * {@link CTDrawing } - * - */ - public void setDrawing(CTDrawing value) { - this.drawing = value; - } - - /** - * Gets the value of the legacyDrawing property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawing() { - return legacyDrawing; - } - - /** - * Sets the value of the legacyDrawing property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawing(CTLegacyDrawing value) { - this.legacyDrawing = value; - } - - /** - * Gets the value of the legacyDrawingHF property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawingHF() { - return legacyDrawingHF; - } - - /** - * Sets the value of the legacyDrawingHF property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawingHF(CTLegacyDrawing value) { - this.legacyDrawingHF = value; - } - - /** - * Gets the value of the picture property. - * - * @return - * possible object is - * {@link CTSheetBackgroundPicture } - * - */ - public CTSheetBackgroundPicture getPicture() { - return picture; - } - - /** - * Sets the value of the picture property. - * - * @param value - * allowed object is - * {@link CTSheetBackgroundPicture } - * - */ - public void setPicture(CTSheetBackgroundPicture value) { - this.picture = value; - } - - /** - * Gets the value of the oleObjects property. - * - * @return - * possible object is - * {@link CTOleObjects } - * - */ - public CTOleObjects getOleObjects() { - return oleObjects; - } - - /** - * Sets the value of the oleObjects property. - * - * @param value - * allowed object is - * {@link CTOleObjects } - * - */ - public void setOleObjects(CTOleObjects value) { - this.oleObjects = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Macrosheet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Macrosheet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetPr" minOccurs="0"/>
+ *         <element name="dimension" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetDimension" minOccurs="0"/>
+ *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetViews" minOccurs="0"/>
+ *         <element name="sheetFormatPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetFormatPr" minOccurs="0"/>
+ *         <element name="cols" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cols" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="sheetData" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetData"/>
+ *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetProtection" minOccurs="0"/>
+ *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
+ *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
+ *         <element name="dataConsolidate" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataConsolidate" minOccurs="0"/>
+ *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetViews" minOccurs="0"/>
+ *         <element name="phoneticPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticPr" minOccurs="0"/>
+ *         <element name="conditionalFormatting" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormatting" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
+ *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
+ *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
+ *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
+ *         <element name="rowBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
+ *         <element name="colBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
+ *         <element name="customProperties" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomProperties" minOccurs="0"/>
+ *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing" minOccurs="0"/>
+ *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="drawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DrawingHF" minOccurs="0"/>
+ *         <element name="picture" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetBackgroundPicture" minOccurs="0"/>
+ *         <element name="oleObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObjects" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Macrosheet", propOrder = { + "sheetPr", + "dimension", + "sheetViews", + "sheetFormatPr", + "cols", + "sheetData", + "sheetProtection", + "autoFilter", + "sortState", + "dataConsolidate", + "customSheetViews", + "phoneticPr", + "conditionalFormatting", + "printOptions", + "pageMargins", + "pageSetup", + "headerFooter", + "rowBreaks", + "colBreaks", + "customProperties", + "drawing", + "legacyDrawing", + "legacyDrawingHF", + "drawingHF", + "picture", + "oleObjects", + "extLst" +}) +public class Macrosheet implements Child +{ + + protected CTSheetPr sheetPr; + protected CTSheetDimension dimension; + protected SheetViews sheetViews; + protected CTSheetFormatPr sheetFormatPr; + protected List cols; + @XmlElement(required = true) + protected SheetData sheetData; + protected CTSheetProtection sheetProtection; + protected CTAutoFilter autoFilter; + protected CTSortState sortState; + protected CTDataConsolidate dataConsolidate; + protected CTCustomSheetViews customSheetViews; + protected CTPhoneticPr phoneticPr; + protected List conditionalFormatting; + protected CTPrintOptions printOptions; + protected CTPageMargins pageMargins; + protected CTPageSetup pageSetup; + protected CTHeaderFooter headerFooter; + protected CTPageBreak rowBreaks; + protected CTPageBreak colBreaks; + protected CTCustomProperties customProperties; + protected CTDrawing drawing; + protected CTLegacyDrawing legacyDrawing; + protected CTLegacyDrawing legacyDrawingHF; + protected CTDrawingHF drawingHF; + protected CTSheetBackgroundPicture picture; + protected CTOleObjects oleObjects; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetPr property. + * + * @return + * possible object is + * {@link CTSheetPr } + * + */ + public CTSheetPr getSheetPr() { + return sheetPr; + } + + /** + * Sets the value of the sheetPr property. + * + * @param value + * allowed object is + * {@link CTSheetPr } + * + */ + public void setSheetPr(CTSheetPr value) { + this.sheetPr = value; + } + + /** + * Gets the value of the dimension property. + * + * @return + * possible object is + * {@link CTSheetDimension } + * + */ + public CTSheetDimension getDimension() { + return dimension; + } + + /** + * Sets the value of the dimension property. + * + * @param value + * allowed object is + * {@link CTSheetDimension } + * + */ + public void setDimension(CTSheetDimension value) { + this.dimension = value; + } + + /** + * Gets the value of the sheetViews property. + * + * @return + * possible object is + * {@link SheetViews } + * + */ + public SheetViews getSheetViews() { + return sheetViews; + } + + /** + * Sets the value of the sheetViews property. + * + * @param value + * allowed object is + * {@link SheetViews } + * + */ + public void setSheetViews(SheetViews value) { + this.sheetViews = value; + } + + /** + * Gets the value of the sheetFormatPr property. + * + * @return + * possible object is + * {@link CTSheetFormatPr } + * + */ + public CTSheetFormatPr getSheetFormatPr() { + return sheetFormatPr; + } + + /** + * Sets the value of the sheetFormatPr property. + * + * @param value + * allowed object is + * {@link CTSheetFormatPr } + * + */ + public void setSheetFormatPr(CTSheetFormatPr value) { + this.sheetFormatPr = value; + } + + /** + * Gets the value of the cols property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cols property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCols().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Cols } + * + * + */ + public List getCols() { + if (cols == null) { + cols = new ArrayList(); + } + return this.cols; + } + + /** + * Gets the value of the sheetData property. + * + * @return + * possible object is + * {@link SheetData } + * + */ + public SheetData getSheetData() { + return sheetData; + } + + /** + * Sets the value of the sheetData property. + * + * @param value + * allowed object is + * {@link SheetData } + * + */ + public void setSheetData(SheetData value) { + this.sheetData = value; + } + + /** + * Gets the value of the sheetProtection property. + * + * @return + * possible object is + * {@link CTSheetProtection } + * + */ + public CTSheetProtection getSheetProtection() { + return sheetProtection; + } + + /** + * Sets the value of the sheetProtection property. + * + * @param value + * allowed object is + * {@link CTSheetProtection } + * + */ + public void setSheetProtection(CTSheetProtection value) { + this.sheetProtection = value; + } + + /** + * Gets the value of the autoFilter property. + * + * @return + * possible object is + * {@link CTAutoFilter } + * + */ + public CTAutoFilter getAutoFilter() { + return autoFilter; + } + + /** + * Sets the value of the autoFilter property. + * + * @param value + * allowed object is + * {@link CTAutoFilter } + * + */ + public void setAutoFilter(CTAutoFilter value) { + this.autoFilter = value; + } + + /** + * Gets the value of the sortState property. + * + * @return + * possible object is + * {@link CTSortState } + * + */ + public CTSortState getSortState() { + return sortState; + } + + /** + * Sets the value of the sortState property. + * + * @param value + * allowed object is + * {@link CTSortState } + * + */ + public void setSortState(CTSortState value) { + this.sortState = value; + } + + /** + * Gets the value of the dataConsolidate property. + * + * @return + * possible object is + * {@link CTDataConsolidate } + * + */ + public CTDataConsolidate getDataConsolidate() { + return dataConsolidate; + } + + /** + * Sets the value of the dataConsolidate property. + * + * @param value + * allowed object is + * {@link CTDataConsolidate } + * + */ + public void setDataConsolidate(CTDataConsolidate value) { + this.dataConsolidate = value; + } + + /** + * Gets the value of the customSheetViews property. + * + * @return + * possible object is + * {@link CTCustomSheetViews } + * + */ + public CTCustomSheetViews getCustomSheetViews() { + return customSheetViews; + } + + /** + * Sets the value of the customSheetViews property. + * + * @param value + * allowed object is + * {@link CTCustomSheetViews } + * + */ + public void setCustomSheetViews(CTCustomSheetViews value) { + this.customSheetViews = value; + } + + /** + * Gets the value of the phoneticPr property. + * + * @return + * possible object is + * {@link CTPhoneticPr } + * + */ + public CTPhoneticPr getPhoneticPr() { + return phoneticPr; + } + + /** + * Sets the value of the phoneticPr property. + * + * @param value + * allowed object is + * {@link CTPhoneticPr } + * + */ + public void setPhoneticPr(CTPhoneticPr value) { + this.phoneticPr = value; + } + + /** + * Gets the value of the conditionalFormatting property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the conditionalFormatting property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getConditionalFormatting().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTConditionalFormatting } + * + * + */ + public List getConditionalFormatting() { + if (conditionalFormatting == null) { + conditionalFormatting = new ArrayList(); + } + return this.conditionalFormatting; + } + + /** + * Gets the value of the printOptions property. + * + * @return + * possible object is + * {@link CTPrintOptions } + * + */ + public CTPrintOptions getPrintOptions() { + return printOptions; + } + + /** + * Sets the value of the printOptions property. + * + * @param value + * allowed object is + * {@link CTPrintOptions } + * + */ + public void setPrintOptions(CTPrintOptions value) { + this.printOptions = value; + } + + /** + * Gets the value of the pageMargins property. + * + * @return + * possible object is + * {@link CTPageMargins } + * + */ + public CTPageMargins getPageMargins() { + return pageMargins; + } + + /** + * Sets the value of the pageMargins property. + * + * @param value + * allowed object is + * {@link CTPageMargins } + * + */ + public void setPageMargins(CTPageMargins value) { + this.pageMargins = value; + } + + /** + * Gets the value of the pageSetup property. + * + * @return + * possible object is + * {@link CTPageSetup } + * + */ + public CTPageSetup getPageSetup() { + return pageSetup; + } + + /** + * Sets the value of the pageSetup property. + * + * @param value + * allowed object is + * {@link CTPageSetup } + * + */ + public void setPageSetup(CTPageSetup value) { + this.pageSetup = value; + } + + /** + * Gets the value of the headerFooter property. + * + * @return + * possible object is + * {@link CTHeaderFooter } + * + */ + public CTHeaderFooter getHeaderFooter() { + return headerFooter; + } + + /** + * Sets the value of the headerFooter property. + * + * @param value + * allowed object is + * {@link CTHeaderFooter } + * + */ + public void setHeaderFooter(CTHeaderFooter value) { + this.headerFooter = value; + } + + /** + * Gets the value of the rowBreaks property. + * + * @return + * possible object is + * {@link CTPageBreak } + * + */ + public CTPageBreak getRowBreaks() { + return rowBreaks; + } + + /** + * Sets the value of the rowBreaks property. + * + * @param value + * allowed object is + * {@link CTPageBreak } + * + */ + public void setRowBreaks(CTPageBreak value) { + this.rowBreaks = value; + } + + /** + * Gets the value of the colBreaks property. + * + * @return + * possible object is + * {@link CTPageBreak } + * + */ + public CTPageBreak getColBreaks() { + return colBreaks; + } + + /** + * Sets the value of the colBreaks property. + * + * @param value + * allowed object is + * {@link CTPageBreak } + * + */ + public void setColBreaks(CTPageBreak value) { + this.colBreaks = value; + } + + /** + * Gets the value of the customProperties property. + * + * @return + * possible object is + * {@link CTCustomProperties } + * + */ + public CTCustomProperties getCustomProperties() { + return customProperties; + } + + /** + * Sets the value of the customProperties property. + * + * @param value + * allowed object is + * {@link CTCustomProperties } + * + */ + public void setCustomProperties(CTCustomProperties value) { + this.customProperties = value; + } + + /** + * Gets the value of the drawing property. + * + * @return + * possible object is + * {@link CTDrawing } + * + */ + public CTDrawing getDrawing() { + return drawing; + } + + /** + * Sets the value of the drawing property. + * + * @param value + * allowed object is + * {@link CTDrawing } + * + */ + public void setDrawing(CTDrawing value) { + this.drawing = value; + } + + /** + * Gets the value of the legacyDrawing property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawing() { + return legacyDrawing; + } + + /** + * Sets the value of the legacyDrawing property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawing(CTLegacyDrawing value) { + this.legacyDrawing = value; + } + + /** + * Gets the value of the legacyDrawingHF property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawingHF() { + return legacyDrawingHF; + } + + /** + * Sets the value of the legacyDrawingHF property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawingHF(CTLegacyDrawing value) { + this.legacyDrawingHF = value; + } + + /** + * Gets the value of the drawingHF property. + * + * @return + * possible object is + * {@link CTDrawingHF } + * + */ + public CTDrawingHF getDrawingHF() { + return drawingHF; + } + + /** + * Sets the value of the drawingHF property. + * + * @param value + * allowed object is + * {@link CTDrawingHF } + * + */ + public void setDrawingHF(CTDrawingHF value) { + this.drawingHF = value; + } + + /** + * Gets the value of the picture property. + * + * @return + * possible object is + * {@link CTSheetBackgroundPicture } + * + */ + public CTSheetBackgroundPicture getPicture() { + return picture; + } + + /** + * Sets the value of the picture property. + * + * @param value + * allowed object is + * {@link CTSheetBackgroundPicture } + * + */ + public void setPicture(CTSheetBackgroundPicture value) { + this.picture = value; + } + + /** + * Gets the value of the oleObjects property. + * + * @return + * possible object is + * {@link CTOleObjects } + * + */ + public CTOleObjects getOleObjects() { + return oleObjects; + } + + /** + * Sets the value of the oleObjects property. + * + * @param value + * allowed object is + * {@link CTOleObjects } + * + */ + public void setOleObjects(CTOleObjects value) { + this.oleObjects = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/ObjectFactory.java b/src/xlsx4j/java/org/xlsx4j/sml/ObjectFactory.java index 998c02599f..70c3419f21 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/ObjectFactory.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/ObjectFactory.java @@ -1,3449 +1,3485 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the org.xlsx4j.sml package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _Connections_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "connections"); - private final static QName _Metadata_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "metadata"); - private final static QName _ExternalLink_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "externalLink"); - private final static QName _Comments_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "comments"); - private final static QName _SingleXmlCells_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "singleXmlCells"); - private final static QName _Revisions_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "revisions"); - private final static QName _Sst_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "sst"); - private final static QName _StyleSheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "styleSheet"); - private final static QName _Chartsheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "chartsheet"); - private final static QName _Workbook_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "workbook"); - private final static QName _Table_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "table"); - private final static QName _PivotCacheRecords_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "pivotCacheRecords"); - private final static QName _Worksheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "worksheet"); - private final static QName _Dialogsheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "dialogsheet"); - private final static QName _PivotCacheDefinition_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "pivotCacheDefinition"); - private final static QName _VolTypes_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "volTypes"); - private final static QName _MapInfo_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "MapInfo"); - private final static QName _QueryTable_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "queryTable"); - private final static QName _Users_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "users"); - private final static QName _CalcChain_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "calcChain"); - private final static QName _Headers_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "headers"); - private final static QName _PivotTableDefinition_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "pivotTableDefinition"); - private final static QName _CTFontSz_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "sz"); - private final static QName _CTFontCondense_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "condense"); - private final static QName _CTFontStrike_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "strike"); - private final static QName _CTFontU_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "u"); - private final static QName _CTFontVertAlign_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "vertAlign"); - private final static QName _CTFontName_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "name"); - private final static QName _CTFontShadow_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "shadow"); - private final static QName _CTFontFamily_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "family"); - private final static QName _CTFontColor_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "color"); - private final static QName _CTFontScheme_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "scheme"); - private final static QName _CTFontCharset_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "charset"); - private final static QName _CTFontI_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "i"); - private final static QName _CTFontOutline_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "outline"); - private final static QName _CTFontExtend_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "extend"); - private final static QName _CTFontB_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "b"); - private final static QName _CTRPrEltRFont_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "rFont"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.xlsx4j.sml - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link CTWebPublishItem } - * - */ - public CTWebPublishItem createCTWebPublishItem() { - return new CTWebPublishItem(); - } - - /** - * Create an instance of {@link Sheets } - * - */ - public Sheets createSheets() { - return new Sheets(); - } - - /** - * Create an instance of {@link CTTables } - * - */ - public CTTables createCTTables() { - return new CTTables(); - } - - /** - * Create an instance of {@link CTTextField } - * - */ - public CTTextField createCTTextField() { - return new CTTextField(); - } - - /** - * Create an instance of {@link CTCustomFilter } - * - */ - public CTCustomFilter createCTCustomFilter() { - return new CTCustomFilter(); - } - - /** - * Create an instance of {@link CTRecord } - * - */ - public CTRecord createCTRecord() { - return new CTRecord(); - } - - /** - * Create an instance of {@link CTQueryTable } - * - */ - public CTQueryTable createCTQueryTable() { - return new CTQueryTable(); - } - - /** - * Create an instance of {@link CTIconSet } - * - */ - public CTIconSet createCTIconSet() { - return new CTIconSet(); - } - - /** - * Create an instance of {@link Col } - * - */ - public Col createCol() { - return new Col(); - } - - /** - * Create an instance of {@link CTFilters } - * - */ - public CTFilters createCTFilters() { - return new CTFilters(); - } - - /** - * Create an instance of {@link CTFontName } - * - */ - public CTFontName createCTFontName() { - return new CTFontName(); - } - - /** - * Create an instance of {@link CTItem } - * - */ - public CTItem createCTItem() { - return new CTItem(); - } - - /** - * Create an instance of {@link CTComments } - * - */ - public CTComments createCTComments() { - return new CTComments(); - } - - /** - * Create an instance of {@link CTPivotFields } - * - */ - public CTPivotFields createCTPivotFields() { - return new CTPivotFields(); - } - - /** - * Create an instance of {@link CTWebPublishObjects } - * - */ - public CTWebPublishObjects createCTWebPublishObjects() { - return new CTWebPublishObjects(); - } - - /** - * Create an instance of {@link Row } - * - */ - public Row createRow() { - return new Row(); - } - - /** - * Create an instance of {@link CTConnection } - * - */ - public CTConnection createCTConnection() { - return new CTConnection(); - } - - /** - * Create an instance of {@link CTMdxSet } - * - */ - public CTMdxSet createCTMdxSet() { - return new CTMdxSet(); - } - - /** - * Create an instance of {@link CTChartsheetView } - * - */ - public CTChartsheetView createCTChartsheetView() { - return new CTChartsheetView(); - } - - /** - * Create an instance of {@link CTFunctionGroup } - * - */ - public CTFunctionGroup createCTFunctionGroup() { - return new CTFunctionGroup(); - } - - /** - * Create an instance of {@link CTFont } - * - */ - public CTFont createCTFont() { - return new CTFont(); - } - - /** - * Create an instance of {@link CTCalculatedItem } - * - */ - public CTCalculatedItem createCTCalculatedItem() { - return new CTCalculatedItem(); - } - - /** - * Create an instance of {@link CTCalcPr } - * - */ - public CTCalcPr createCTCalcPr() { - return new CTCalcPr(); - } - - /** - * Create an instance of {@link CTCacheHierarchy } - * - */ - public CTCacheHierarchy createCTCacheHierarchy() { - return new CTCacheHierarchy(); - } - - /** - * Create an instance of {@link CTFill } - * - */ - public CTFill createCTFill() { - return new CTFill(); - } - - /** - * Create an instance of {@link CTDdeValue } - * - */ - public CTDdeValue createCTDdeValue() { - return new CTDdeValue(); - } - - /** - * Create an instance of {@link CTPivotFilter } - * - */ - public CTPivotFilter createCTPivotFilter() { - return new CTPivotFilter(); - } - - /** - * Create an instance of {@link CTPane } - * - */ - public CTPane createCTPane() { - return new CTPane(); - } - - /** - * Create an instance of {@link CTMembers } - * - */ - public CTMembers createCTMembers() { - return new CTMembers(); - } - - /** - * Create an instance of {@link CTConditionalFormatting } - * - */ - public CTConditionalFormatting createCTConditionalFormatting() { - return new CTConditionalFormatting(); - } - - /** - * Create an instance of {@link CTPatternFill } - * - */ - public CTPatternFill createCTPatternFill() { - return new CTPatternFill(); - } - - /** - * Create an instance of {@link CTTuple } - * - */ - public CTTuple createCTTuple() { - return new CTTuple(); - } - - /** - * Create an instance of {@link CTCacheSource } - * - */ - public CTCacheSource createCTCacheSource() { - return new CTCacheSource(); - } - - /** - * Create an instance of {@link CTVerticalAlignFontProperty } - * - */ - public CTVerticalAlignFontProperty createCTVerticalAlignFontProperty() { - return new CTVerticalAlignFontProperty(); - } - - /** - * Create an instance of {@link CTPivotField } - * - */ - public CTPivotField createCTPivotField() { - return new CTPivotField(); - } - - /** - * Create an instance of {@link CTBorder } - * - */ - public CTBorder createCTBorder() { - return new CTBorder(); - } - - /** - * Create an instance of {@link CTHierarchyUsage } - * - */ - public CTHierarchyUsage createCTHierarchyUsage() { - return new CTHierarchyUsage(); - } - - /** - * Create an instance of {@link CTWebPublishObject } - * - */ - public CTWebPublishObject createCTWebPublishObject() { - return new CTWebPublishObject(); - } - - /** - * Create an instance of {@link CTCellStyleXfs } - * - */ - public CTCellStyleXfs createCTCellStyleXfs() { - return new CTCellStyleXfs(); - } - - /** - * Create an instance of {@link CTCacheHierarchies } - * - */ - public CTCacheHierarchies createCTCacheHierarchies() { - return new CTCacheHierarchies(); - } - - /** - * Create an instance of {@link CTSortState } - * - */ - public CTSortState createCTSortState() { - return new CTSortState(); - } - - /** - * Create an instance of {@link CTDataFields } - * - */ - public CTDataFields createCTDataFields() { - return new CTDataFields(); - } - - /** - * Create an instance of {@link CTSmartTagPr } - * - */ - public CTSmartTagPr createCTSmartTagPr() { - return new CTSmartTagPr(); - } - - /** - * Create an instance of {@link CTChartsheetProtection } - * - */ - public CTChartsheetProtection createCTChartsheetProtection() { - return new CTChartsheetProtection(); - } - - /** - * Create an instance of {@link CTCsPageSetup } - * - */ - public CTCsPageSetup createCTCsPageSetup() { - return new CTCsPageSetup(); - } - - /** - * Create an instance of {@link CTCustomWorkbookViews } - * - */ - public CTCustomWorkbookViews createCTCustomWorkbookViews() { - return new CTCustomWorkbookViews(); - } - - /** - * Create an instance of {@link CTMeasureGroup } - * - */ - public CTMeasureGroup createCTMeasureGroup() { - return new CTMeasureGroup(); - } - - /** - * Create an instance of {@link CTQueryCache } - * - */ - public CTQueryCache createCTQueryCache() { - return new CTQueryCache(); - } - - /** - * Create an instance of {@link CTPageField } - * - */ - public CTPageField createCTPageField() { - return new CTPageField(); - } - - /** - * Create an instance of {@link CTPhoneticPr } - * - */ - public CTPhoneticPr createCTPhoneticPr() { - return new CTPhoneticPr(); - } - - /** - * Create an instance of {@link CTCellSmartTagPr } - * - */ - public CTCellSmartTagPr createCTCellSmartTagPr() { - return new CTCellSmartTagPr(); - } - - /** - * Create an instance of {@link Cols } - * - */ - public Cols createCols() { - return new Cols(); - } - - /** - * Create an instance of {@link CTCellXfs } - * - */ - public CTCellXfs createCTCellXfs() { - return new CTCellXfs(); - } - - /** - * Create an instance of {@link CTSheetBackgroundPicture } - * - */ - public CTSheetBackgroundPicture createCTSheetBackgroundPicture() { - return new CTSheetBackgroundPicture(); - } - - /** - * Create an instance of {@link CTField } - * - */ - public CTField createCTField() { - return new CTField(); - } - - /** - * Create an instance of {@link CTMember } - * - */ - public CTMember createCTMember() { - return new CTMember(); - } - - /** - * Create an instance of {@link CTCalculatedMembers } - * - */ - public CTCalculatedMembers createCTCalculatedMembers() { - return new CTCalculatedMembers(); - } - - /** - * Create an instance of {@link CTRPrElt } - * - */ - public CTRPrElt createCTRPrElt() { - return new CTRPrElt(); - } - - /** - * Create an instance of {@link CTColItems } - * - */ - public CTColItems createCTColItems() { - return new CTColItems(); - } - - /** - * Create an instance of {@link CTDimensions } - * - */ - public CTDimensions createCTDimensions() { - return new CTDimensions(); - } - - /** - * Create an instance of {@link CTDataRef } - * - */ - public CTDataRef createCTDataRef() { - return new CTDataRef(); - } - - /** - * Create an instance of {@link CTOlapPr } - * - */ - public CTOlapPr createCTOlapPr() { - return new CTOlapPr(); - } - - /** - * Create an instance of {@link CTRevisionCustomView } - * - */ - public CTRevisionCustomView createCTRevisionCustomView() { - return new CTRevisionCustomView(); - } - - /** - * Create an instance of {@link CTXmlCellPr } - * - */ - public CTXmlCellPr createCTXmlCellPr() { - return new CTXmlCellPr(); - } - - /** - * Create an instance of {@link CTCustomChartsheetViews } - * - */ - public CTCustomChartsheetViews createCTCustomChartsheetViews() { - return new CTCustomChartsheetViews(); - } - - /** - * Create an instance of {@link CTGradientFill } - * - */ - public CTGradientFill createCTGradientFill() { - return new CTGradientFill(); - } - - /** - * Create an instance of {@link CTSingleXmlCell } - * - */ - public CTSingleXmlCell createCTSingleXmlCell() { - return new CTSingleXmlCell(); - } - - /** - * Create an instance of {@link CTWebPr } - * - */ - public CTWebPr createCTWebPr() { - return new CTWebPr(); - } - - /** - * Create an instance of {@link CTPivotTableStyle } - * - */ - public CTPivotTableStyle createCTPivotTableStyle() { - return new CTPivotTableStyle(); - } - - /** - * Create an instance of {@link CTRevisionInsertSheet } - * - */ - public CTRevisionInsertSheet createCTRevisionInsertSheet() { - return new CTRevisionInsertSheet(); - } - - /** - * Create an instance of {@link CTPivotCacheDefinition } - * - */ - public CTPivotCacheDefinition createCTPivotCacheDefinition() { - return new CTPivotCacheDefinition(); - } - - /** - * Create an instance of {@link CTAutoFilter } - * - */ - public CTAutoFilter createCTAutoFilter() { - return new CTAutoFilter(); - } - - /** - * Create an instance of {@link CTMetadataRecord } - * - */ - public CTMetadataRecord createCTMetadataRecord() { - return new CTMetadataRecord(); - } - - /** - * Create an instance of {@link CTXmlColumnPr } - * - */ - public CTXmlColumnPr createCTXmlColumnPr() { - return new CTXmlColumnPr(); - } - - /** - * Create an instance of {@link CTBorderPr } - * - */ - public CTBorderPr createCTBorderPr() { - return new CTBorderPr(); - } - - /** - * Create an instance of {@link CTTableStyle } - * - */ - public CTTableStyle createCTTableStyle() { - return new CTTableStyle(); - } - - /** - * Create an instance of {@link CTCalculatedItems } - * - */ - public CTCalculatedItems createCTCalculatedItems() { - return new CTCalculatedItems(); - } - - /** - * Create an instance of {@link CTMRUColors } - * - */ - public CTMRUColors createCTMRUColors() { - return new CTMRUColors(); - } - - /** - * Create an instance of {@link WorkbookPr } - * - */ - public WorkbookPr createWorkbookPr() { - return new WorkbookPr(); - } - - /** - * Create an instance of {@link CTExternalSheetData } - * - */ - public CTExternalSheetData createCTExternalSheetData() { - return new CTExternalSheetData(); - } - - /** - * Create an instance of {@link CTCalculatedMember } - * - */ - public CTCalculatedMember createCTCalculatedMember() { - return new CTCalculatedMember(); - } - - /** - * Create an instance of {@link CTCacheFields } - * - */ - public CTCacheFields createCTCacheFields() { - return new CTCacheFields(); - } - - /** - * Create an instance of {@link CTOleLink } - * - */ - public CTOleLink createCTOleLink() { - return new CTOleLink(); - } - - /** - * Create an instance of {@link CTNumFmt } - * - */ - public CTNumFmt createCTNumFmt() { - return new CTNumFmt(); - } - - /** - * Create an instance of {@link FileVersion } - * - */ - public FileVersion createFileVersion() { - return new FileVersion(); - } - - /** - * Create an instance of {@link CTPivotTableDefinition } - * - */ - public CTPivotTableDefinition createCTPivotTableDefinition() { - return new CTPivotTableDefinition(); - } - - /** - * Create an instance of {@link CTSheetId } - * - */ - public CTSheetId createCTSheetId() { - return new CTSheetId(); - } - - /** - * Create an instance of {@link CTRevisionConflict } - * - */ - public CTRevisionConflict createCTRevisionConflict() { - return new CTRevisionConflict(); - } - - /** - * Create an instance of {@link CTQueryTableFields } - * - */ - public CTQueryTableFields createCTQueryTableFields() { - return new CTQueryTableFields(); - } - - /** - * Create an instance of {@link Workbook } - * - */ - public Workbook createWorkbook() { - return new Workbook(); - } - - /** - * Create an instance of {@link CTXmlPr } - * - */ - public CTXmlPr createCTXmlPr() { - return new CTXmlPr(); - } - - /** - * Create an instance of {@link CTVolTypes } - * - */ - public CTVolTypes createCTVolTypes() { - return new CTVolTypes(); - } - - /** - * Create an instance of {@link CTSheetProtection } - * - */ - public CTSheetProtection createCTSheetProtection() { - return new CTSheetProtection(); - } - - /** - * Create an instance of {@link CTDataBar } - * - */ - public CTDataBar createCTDataBar() { - return new CTDataBar(); - } - - /** - * Create an instance of {@link CTExtensionList } - * - */ - public CTExtensionList createCTExtensionList() { - return new CTExtensionList(); - } - - /** - * Create an instance of {@link CTScenario } - * - */ - public CTScenario createCTScenario() { - return new CTScenario(); - } - - /** - * Create an instance of {@link CTRevisionAutoFormatting } - * - */ - public CTRevisionAutoFormatting createCTRevisionAutoFormatting() { - return new CTRevisionAutoFormatting(); - } - - /** - * Create an instance of {@link CTControl } - * - */ - public CTControl createCTControl() { - return new CTControl(); - } - - /** - * Create an instance of {@link CTCellWatches } - * - */ - public CTCellWatches createCTCellWatches() { - return new CTCellWatches(); - } - - /** - * Create an instance of {@link CTRevisionCellChange } - * - */ - public CTRevisionCellChange createCTRevisionCellChange() { - return new CTRevisionCellChange(); - } - - /** - * Create an instance of {@link CTSheetPr } - * - */ - public CTSheetPr createCTSheetPr() { - return new CTSheetPr(); - } - - /** - * Create an instance of {@link CTFills } - * - */ - public CTFills createCTFills() { - return new CTFills(); - } - - /** - * Create an instance of {@link CTCfvo } - * - */ - public CTCfvo createCTCfvo() { - return new CTCfvo(); - } - - /** - * Create an instance of {@link CTX } - * - */ - public CTX createCTX() { - return new CTX(); - } - - /** - * Create an instance of {@link CTProtectedRange } - * - */ - public CTProtectedRange createCTProtectedRange() { - return new CTProtectedRange(); - } - - /** - * Create an instance of {@link CTRowHierarchiesUsage } - * - */ - public CTRowHierarchiesUsage createCTRowHierarchiesUsage() { - return new CTRowHierarchiesUsage(); - } - - /** - * Create an instance of {@link CTServerFormats } - * - */ - public CTServerFormats createCTServerFormats() { - return new CTServerFormats(); - } - - /** - * Create an instance of {@link CTDataRefs } - * - */ - public CTDataRefs createCTDataRefs() { - return new CTDataRefs(); - } - - /** - * Create an instance of {@link CTExternalRow } - * - */ - public CTExternalRow createCTExternalRow() { - return new CTExternalRow(); - } - - /** - * Create an instance of {@link CTScenarios } - * - */ - public CTScenarios createCTScenarios() { - return new CTScenarios(); - } - - /** - * Create an instance of {@link CTMap } - * - */ - public CTMap createCTMap() { - return new CTMap(); - } - - /** - * Create an instance of {@link CTFileRecoveryPr } - * - */ - public CTFileRecoveryPr createCTFileRecoveryPr() { - return new CTFileRecoveryPr(); - } - - /** - * Create an instance of {@link CTItems } - * - */ - public CTItems createCTItems() { - return new CTItems(); - } - - /** - * Create an instance of {@link CTDxfs } - * - */ - public CTDxfs createCTDxfs() { - return new CTDxfs(); - } - - /** - * Create an instance of {@link CTOleObject } - * - */ - public CTOleObject createCTOleObject() { - return new CTOleObject(); - } - - /** - * Create an instance of {@link CTIndexedColors } - * - */ - public CTIndexedColors createCTIndexedColors() { - return new CTIndexedColors(); - } - - /** - * Create an instance of {@link CTCommentList } - * - */ - public CTCommentList createCTCommentList() { - return new CTCommentList(); - } - - /** - * Create an instance of {@link CTFontSize } - * - */ - public CTFontSize createCTFontSize() { - return new CTFontSize(); - } - - /** - * Create an instance of {@link CTFormats } - * - */ - public CTFormats createCTFormats() { - return new CTFormats(); - } - - /** - * Create an instance of {@link CTCustomFilters } - * - */ - public CTCustomFilters createCTCustomFilters() { - return new CTCustomFilters(); - } - - /** - * Create an instance of {@link CTSheetIdMap } - * - */ - public CTSheetIdMap createCTSheetIdMap() { - return new CTSheetIdMap(); - } - - /** - * Create an instance of {@link CTPivotAreaReference } - * - */ - public CTPivotAreaReference createCTPivotAreaReference() { - return new CTPivotAreaReference(); - } - - /** - * Create an instance of {@link CTPCDKPIs } - * - */ - public CTPCDKPIs createCTPCDKPIs() { - return new CTPCDKPIs(); - } - - /** - * Create an instance of {@link CTRangePr } - * - */ - public CTRangePr createCTRangePr() { - return new CTRangePr(); - } - - /** - * Create an instance of {@link CTRst } - * - */ - public CTRst createCTRst() { - return new CTRst(); - } - - /** - * Create an instance of {@link CTFormat } - * - */ - public CTFormat createCTFormat() { - return new CTFormat(); - } - - /** - * Create an instance of {@link CTTableFormula } - * - */ - public CTTableFormula createCTTableFormula() { - return new CTTableFormula(); - } - - /** - * Create an instance of {@link CTDdeValues } - * - */ - public CTDdeValues createCTDdeValues() { - return new CTDdeValues(); - } - - /** - * Create an instance of {@link CTColorFilter } - * - */ - public CTColorFilter createCTColorFilter() { - return new CTColorFilter(); - } - - /** - * Create an instance of {@link CTIndex } - * - */ - public CTIndex createCTIndex() { - return new CTIndex(); - } - - /** - * Create an instance of {@link BookViews } - * - */ - public BookViews createBookViews() { - return new BookViews(); - } - - /** - * Create an instance of {@link CTPivotFilters } - * - */ - public CTPivotFilters createCTPivotFilters() { - return new CTPivotFilters(); - } - - /** - * Create an instance of {@link CTColor } - * - */ - public CTColor createCTColor() { - return new CTColor(); - } - - /** - * Create an instance of {@link CTConsolidation } - * - */ - public CTConsolidation createCTConsolidation() { - return new CTConsolidation(); - } - - /** - * Create an instance of {@link CTCustomWorkbookView } - * - */ - public CTCustomWorkbookView createCTCustomWorkbookView() { - return new CTCustomWorkbookView(); - } - - /** - * Create an instance of {@link CTCellProtection } - * - */ - public CTCellProtection createCTCellProtection() { - return new CTCellProtection(); - } - - /** - * Create an instance of {@link CTCfRule } - * - */ - public CTCfRule createCTCfRule() { - return new CTCfRule(); - } - - /** - * Create an instance of {@link CTPageSetup } - * - */ - public CTPageSetup createCTPageSetup() { - return new CTPageSetup(); - } - - /** - * Create an instance of {@link CTExternalSheetNames } - * - */ - public CTExternalSheetNames createCTExternalSheetNames() { - return new CTExternalSheetNames(); - } - - /** - * Create an instance of {@link CTAutoSortScope } - * - */ - public CTAutoSortScope createCTAutoSortScope() { - return new CTAutoSortScope(); - } - - /** - * Create an instance of {@link CTTable } - * - */ - public CTTable createCTTable() { - return new CTTable(); - } - - /** - * Create an instance of {@link CTConditionalFormats } - * - */ - public CTConditionalFormats createCTConditionalFormats() { - return new CTConditionalFormats(); - } - - /** - * Create an instance of {@link CTPages } - * - */ - public CTPages createCTPages() { - return new CTPages(); - } - - /** - * Create an instance of {@link CTDdeItem } - * - */ - public CTDdeItem createCTDdeItem() { - return new CTDdeItem(); - } - - /** - * Create an instance of {@link CTSelection } - * - */ - public CTSelection createCTSelection() { - return new CTSelection(); - } - - /** - * Create an instance of {@link CTGradientStop } - * - */ - public CTGradientStop createCTGradientStop() { - return new CTGradientStop(); - } - - /** - * Create an instance of {@link CTMdxKPI } - * - */ - public CTMdxKPI createCTMdxKPI() { - return new CTMdxKPI(); - } - - /** - * Create an instance of {@link CTCustomChartsheetView } - * - */ - public CTCustomChartsheetView createCTCustomChartsheetView() { - return new CTCustomChartsheetView(); - } - - /** - * Create an instance of {@link CTExternalBook } - * - */ - public CTExternalBook createCTExternalBook() { - return new CTExternalBook(); - } - - /** - * Create an instance of {@link CTGroupItems } - * - */ - public CTGroupItems createCTGroupItems() { - return new CTGroupItems(); - } - - /** - * Create an instance of {@link CTGroupLevel } - * - */ - public CTGroupLevel createCTGroupLevel() { - return new CTGroupLevel(); - } - - /** - * Create an instance of {@link CTMetadataBlocks } - * - */ - public CTMetadataBlocks createCTMetadataBlocks() { - return new CTMetadataBlocks(); - } - - /** - * Create an instance of {@link CTRevisionQueryTableField } - * - */ - public CTRevisionQueryTableField createCTRevisionQueryTableField() { - return new CTRevisionQueryTableField(); - } - - /** - * Create an instance of {@link CTCustomSheetViews } - * - */ - public CTCustomSheetViews createCTCustomSheetViews() { - return new CTCustomSheetViews(); - } - - /** - * Create an instance of {@link CTRevisionComment } - * - */ - public CTRevisionComment createCTRevisionComment() { - return new CTRevisionComment(); - } - - /** - * Create an instance of {@link CTChartsheet } - * - */ - public CTChartsheet createCTChartsheet() { - return new CTChartsheet(); - } - - /** - * Create an instance of {@link CTPivotCacheRecords } - * - */ - public CTPivotCacheRecords createCTPivotCacheRecords() { - return new CTPivotCacheRecords(); - } - - /** - * Create an instance of {@link CTPivotCache } - * - */ - public CTPivotCache createCTPivotCache() { - return new CTPivotCache(); - } - - /** - * Create an instance of {@link CTFilter } - * - */ - public CTFilter createCTFilter() { - return new CTFilter(); - } - - /** - * Create an instance of {@link CTTextFields } - * - */ - public CTTextFields createCTTextFields() { - return new CTTextFields(); - } - - /** - * Create an instance of {@link CTSmartTagTypes } - * - */ - public CTSmartTagTypes createCTSmartTagTypes() { - return new CTSmartTagTypes(); - } - - /** - * Create an instance of {@link CTTableMissing } - * - */ - public CTTableMissing createCTTableMissing() { - return new CTTableMissing(); - } - - /** - * Create an instance of {@link CTBreak } - * - */ - public CTBreak createCTBreak() { - return new CTBreak(); - } - - /** - * Create an instance of {@link CTWorksheetSource } - * - */ - public CTWorksheetSource createCTWorksheetSource() { - return new CTWorksheetSource(); - } - - /** - * Create an instance of {@link CTComment } - * - */ - public CTComment createCTComment() { - return new CTComment(); - } - - /** - * Create an instance of {@link CTInputCells } - * - */ - public CTInputCells createCTInputCells() { - return new CTInputCells(); - } - - /** - * Create an instance of {@link CTMapInfo } - * - */ - public CTMapInfo createCTMapInfo() { - return new CTMapInfo(); - } - - /** - * Create an instance of {@link CTQueryTableRefresh } - * - */ - public CTQueryTableRefresh createCTQueryTableRefresh() { - return new CTQueryTableRefresh(); - } - - /** - * Create an instance of {@link CTDataBinding } - * - */ - public CTDataBinding createCTDataBinding() { - return new CTDataBinding(); - } - - /** - * Create an instance of {@link CTRevisionHeader } - * - */ - public CTRevisionHeader createCTRevisionHeader() { - return new CTRevisionHeader(); - } - - /** - * Create an instance of {@link CTPrintOptions } - * - */ - public CTPrintOptions createCTPrintOptions() { - return new CTPrintOptions(); - } - - /** - * Create an instance of {@link CTMetadata } - * - */ - public CTMetadata createCTMetadata() { - return new CTMetadata(); - } - - /** - * Create an instance of {@link CTCalcChain } - * - */ - public CTCalcChain createCTCalcChain() { - return new CTCalcChain(); - } - - /** - * Create an instance of {@link CTParameters } - * - */ - public CTParameters createCTParameters() { - return new CTParameters(); - } - - /** - * Create an instance of {@link CTVolTopicRef } - * - */ - public CTVolTopicRef createCTVolTopicRef() { - return new CTVolTopicRef(); - } - - /** - * Create an instance of {@link CTRangeSet } - * - */ - public CTRangeSet createCTRangeSet() { - return new CTRangeSet(); - } - - /** - * Create an instance of {@link CTHyperlinks } - * - */ - public CTHyperlinks createCTHyperlinks() { - return new CTHyperlinks(); - } - - /** - * Create an instance of {@link CTOleSize } - * - */ - public CTOleSize createCTOleSize() { - return new CTOleSize(); - } - - /** - * Create an instance of {@link CTWorkbookProtection } - * - */ - public CTWorkbookProtection createCTWorkbookProtection() { - return new CTWorkbookProtection(); - } - - /** - * Create an instance of {@link CTMdxTuple } - * - */ - public CTMdxTuple createCTMdxTuple() { - return new CTMdxTuple(); - } - - /** - * Create an instance of {@link CTColHierarchiesUsage } - * - */ - public CTColHierarchiesUsage createCTColHierarchiesUsage() { - return new CTColHierarchiesUsage(); - } - - /** - * Create an instance of {@link CTOleObjects } - * - */ - public CTOleObjects createCTOleObjects() { - return new CTOleObjects(); - } - - /** - * Create an instance of {@link CTDrawing } - * - */ - public CTDrawing createCTDrawing() { - return new CTDrawing(); - } - - /** - * Create an instance of {@link CTSets } - * - */ - public CTSets createCTSets() { - return new CTSets(); - } - - /** - * Create an instance of {@link CTTupleCache } - * - */ - public CTTupleCache createCTTupleCache() { - return new CTTupleCache(); - } - - /** - * Create an instance of {@link CTCellStyle } - * - */ - public CTCellStyle createCTCellStyle() { - return new CTCellStyle(); - } - - /** - * Create an instance of {@link CTIconFilter } - * - */ - public CTIconFilter createCTIconFilter() { - return new CTIconFilter(); - } - - /** - * Create an instance of {@link CTExternalSheetName } - * - */ - public CTExternalSheetName createCTExternalSheetName() { - return new CTExternalSheetName(); - } - - /** - * Create an instance of {@link CTSharedUser } - * - */ - public CTSharedUser createCTSharedUser() { - return new CTSharedUser(); - } - - /** - * Create an instance of {@link CTExternalLink } - * - */ - public CTExternalLink createCTExternalLink() { - return new CTExternalLink(); - } - - /** - * Create an instance of {@link CTFutureMetadata } - * - */ - public CTFutureMetadata createCTFutureMetadata() { - return new CTFutureMetadata(); - } - - /** - * Create an instance of {@link CTBookView } - * - */ - public CTBookView createCTBookView() { - return new CTBookView(); - } - - /** - * Create an instance of {@link CTChartFormat } - * - */ - public CTChartFormat createCTChartFormat() { - return new CTChartFormat(); - } - - /** - * Create an instance of {@link CTRevisionHeaders } - * - */ - public CTRevisionHeaders createCTRevisionHeaders() { - return new CTRevisionHeaders(); - } - - /** - * Create an instance of {@link CTMemberProperty } - * - */ - public CTMemberProperty createCTMemberProperty() { - return new CTMemberProperty(); - } - - /** - * Create an instance of {@link CTCustomProperties } - * - */ - public CTCustomProperties createCTCustomProperties() { - return new CTCustomProperties(); - } - - /** - * Create an instance of {@link CTStylesheet } - * - */ - public CTStylesheet createCTStylesheet() { - return new CTStylesheet(); - } - - /** - * Create an instance of {@link CTMeasureGroups } - * - */ - public CTMeasureGroups createCTMeasureGroups() { - return new CTMeasureGroups(); - } - - /** - * Create an instance of {@link DefinedNames } - * - */ - public DefinedNames createDefinedNames() { - return new DefinedNames(); - } - - /** - * Create an instance of {@link CTExternalSheetDataSet } - * - */ - public CTExternalSheetDataSet createCTExternalSheetDataSet() { - return new CTExternalSheetDataSet(); - } - - /** - * Create an instance of {@link CTDynamicFilter } - * - */ - public CTDynamicFilter createCTDynamicFilter() { - return new CTDynamicFilter(); - } - - /** - * Create an instance of {@link CTRElt } - * - */ - public CTRElt createCTRElt() { - return new CTRElt(); - } - - /** - * Create an instance of {@link CTBorders } - * - */ - public CTBorders createCTBorders() { - return new CTBorders(); - } - - /** - * Create an instance of {@link Cell } - * - */ - public Cell createCell() { - return new Cell(); - } - - /** - * Create an instance of {@link CTQueryTableDeletedFields } - * - */ - public CTQueryTableDeletedFields createCTQueryTableDeletedFields() { - return new CTQueryTableDeletedFields(); - } - - /** - * Create an instance of {@link CTColors } - * - */ - public CTColors createCTColors() { - return new CTColors(); - } - - /** - * Create an instance of {@link CTMergeCell } - * - */ - public CTMergeCell createCTMergeCell() { - return new CTMergeCell(); - } - - /** - * Create an instance of {@link CTGroupMembers } - * - */ - public CTGroupMembers createCTGroupMembers() { - return new CTGroupMembers(); - } - - /** - * Create an instance of {@link SheetViews } - * - */ - public SheetViews createSheetViews() { - return new SheetViews(); - } - - /** - * Create an instance of {@link CTNumber } - * - */ - public CTNumber createCTNumber() { - return new CTNumber(); - } - - /** - * Create an instance of {@link CTChartsheetViews } - * - */ - public CTChartsheetViews createCTChartsheetViews() { - return new CTChartsheetViews(); - } - - /** - * Create an instance of {@link CTCellAlignment } - * - */ - public CTCellAlignment createCTCellAlignment() { - return new CTCellAlignment(); - } - - /** - * Create an instance of {@link CTMetadataBlock } - * - */ - public CTMetadataBlock createCTMetadataBlock() { - return new CTMetadataBlock(); - } - - /** - * Create an instance of {@link CTIgnoredErrors } - * - */ - public CTIgnoredErrors createCTIgnoredErrors() { - return new CTIgnoredErrors(); - } - - /** - * Create an instance of {@link CTPageBreak } - * - */ - public CTPageBreak createCTPageBreak() { - return new CTPageBreak(); - } - - /** - * Create an instance of {@link CTPivotHierarchies } - * - */ - public CTPivotHierarchies createCTPivotHierarchies() { - return new CTPivotHierarchies(); - } - - /** - * Create an instance of {@link CTSharedItems } - * - */ - public CTSharedItems createCTSharedItems() { - return new CTSharedItems(); - } - - /** - * Create an instance of {@link Worksheet } - * - */ - public Worksheet createWorksheet() { - return new Worksheet(); - } - - /** - * Create an instance of {@link CTTableStyleElement } - * - */ - public CTTableStyleElement createCTTableStyleElement() { - return new CTTableStyleElement(); - } - - /** - * Create an instance of {@link CTChartFormats } - * - */ - public CTChartFormats createCTChartFormats() { - return new CTChartFormats(); - } - - /** - * Create an instance of {@link CTError } - * - */ - public CTError createCTError() { - return new CTError(); - } - - /** - * Create an instance of {@link CTPivotAreaReferences } - * - */ - public CTPivotAreaReferences createCTPivotAreaReferences() { - return new CTPivotAreaReferences(); - } - - /** - * Create an instance of {@link CTWebPublishItems } - * - */ - public CTWebPublishItems createCTWebPublishItems() { - return new CTWebPublishItems(); - } - - /** - * Create an instance of {@link CTTableStyles } - * - */ - public CTTableStyles createCTTableStyles() { - return new CTTableStyles(); - } - - /** - * Create an instance of {@link CTExternalDefinedNames } - * - */ - public CTExternalDefinedNames createCTExternalDefinedNames() { - return new CTExternalDefinedNames(); - } - - /** - * Create an instance of {@link CTTuples } - * - */ - public CTTuples createCTTuples() { - return new CTTuples(); - } - - /** - * Create an instance of {@link CTAuthors } - * - */ - public CTAuthors createCTAuthors() { - return new CTAuthors(); - } - - /** - * Create an instance of {@link CTDataField } - * - */ - public CTDataField createCTDataField() { - return new CTDataField(); - } - - /** - * Create an instance of {@link CTRangeSets } - * - */ - public CTRangeSets createCTRangeSets() { - return new CTRangeSets(); - } - - /** - * Create an instance of {@link CTTableStyleInfo } - * - */ - public CTTableStyleInfo createCTTableStyleInfo() { - return new CTTableStyleInfo(); - } - - /** - * Create an instance of {@link CTCalcCell } - * - */ - public CTCalcCell createCTCalcCell() { - return new CTCalcCell(); - } - - /** - * Create an instance of {@link CTFieldUsage } - * - */ - public CTFieldUsage createCTFieldUsage() { - return new CTFieldUsage(); - } - - /** - * Create an instance of {@link CTFilterColumn } - * - */ - public CTFilterColumn createCTFilterColumn() { - return new CTFilterColumn(); - } - - /** - * Create an instance of {@link CTTableColumn } - * - */ - public CTTableColumn createCTTableColumn() { - return new CTTableColumn(); - } - - /** - * Create an instance of {@link CTPivotCaches } - * - */ - public CTPivotCaches createCTPivotCaches() { - return new CTPivotCaches(); - } - - /** - * Create an instance of {@link CTDateGroupItem } - * - */ - public CTDateGroupItem createCTDateGroupItem() { - return new CTDateGroupItem(); - } - - /** - * Create an instance of {@link CTMetadataStringIndex } - * - */ - public CTMetadataStringIndex createCTMetadataStringIndex() { - return new CTMetadataStringIndex(); - } - - /** - * Create an instance of {@link CTSmartTagType } - * - */ - public CTSmartTagType createCTSmartTagType() { - return new CTSmartTagType(); - } - - /** - * Create an instance of {@link CTSortCondition } - * - */ - public CTSortCondition createCTSortCondition() { - return new CTSortCondition(); - } - - /** - * Create an instance of {@link CTRowFields } - * - */ - public CTRowFields createCTRowFields() { - return new CTRowFields(); - } - - /** - * Create an instance of {@link CTDbPr } - * - */ - public CTDbPr createCTDbPr() { - return new CTDbPr(); - } - - /** - * Create an instance of {@link CTBoolean } - * - */ - public CTBoolean createCTBoolean() { - return new CTBoolean(); - } - - /** - * Create an instance of {@link CTDiscretePr } - * - */ - public CTDiscretePr createCTDiscretePr() { - return new CTDiscretePr(); - } - - /** - * Create an instance of {@link CTMemberProperties } - * - */ - public CTMemberProperties createCTMemberProperties() { - return new CTMemberProperties(); - } - - /** - * Create an instance of {@link CTVolMain } - * - */ - public CTVolMain createCTVolMain() { - return new CTVolMain(); - } - - /** - * Create an instance of {@link CTCellWatch } - * - */ - public CTCellWatch createCTCellWatch() { - return new CTCellWatch(); - } - - /** - * Create an instance of {@link CTMergeCells } - * - */ - public CTMergeCells createCTMergeCells() { - return new CTMergeCells(); - } - - /** - * Create an instance of {@link CTFontScheme } - * - */ - public CTFontScheme createCTFontScheme() { - return new CTFontScheme(); - } - - /** - * Create an instance of {@link CTRevisionSheetRename } - * - */ - public CTRevisionSheetRename createCTRevisionSheetRename() { - return new CTRevisionSheetRename(); - } - - /** - * Create an instance of {@link CTRevisionMove } - * - */ - public CTRevisionMove createCTRevisionMove() { - return new CTRevisionMove(); - } - - /** - * Create an instance of {@link CTCellSmartTag } - * - */ - public CTCellSmartTag createCTCellSmartTag() { - return new CTCellSmartTag(); - } - - /** - * Create an instance of {@link SheetData } - * - */ - public SheetData createSheetData() { - return new SheetData(); - } - - /** - * Create an instance of {@link CTTableParts } - * - */ - public CTTableParts createCTTableParts() { - return new CTTableParts(); - } - - /** - * Create an instance of {@link CTDateTime } - * - */ - public CTDateTime createCTDateTime() { - return new CTDateTime(); - } - - /** - * Create an instance of {@link CTExternalCell } - * - */ - public CTExternalCell createCTExternalCell() { - return new CTExternalCell(); - } - - /** - * Create an instance of {@link CTFieldsUsage } - * - */ - public CTFieldsUsage createCTFieldsUsage() { - return new CTFieldsUsage(); - } - - /** - * Create an instance of {@link CTPivotArea } - * - */ - public CTPivotArea createCTPivotArea() { - return new CTPivotArea(); - } - - /** - * Create an instance of {@link CTLevelGroup } - * - */ - public CTLevelGroup createCTLevelGroup() { - return new CTLevelGroup(); - } - - /** - * Create an instance of {@link CTConnections } - * - */ - public CTConnections createCTConnections() { - return new CTConnections(); - } - - /** - * Create an instance of {@link CTQueryTableField } - * - */ - public CTQueryTableField createCTQueryTableField() { - return new CTQueryTableField(); - } - - /** - * Create an instance of {@link CTMeasureDimensionMap } - * - */ - public CTMeasureDimensionMap createCTMeasureDimensionMap() { - return new CTMeasureDimensionMap(); - } - - /** - * Create an instance of {@link CTPageMargins } - * - */ - public CTPageMargins createCTPageMargins() { - return new CTPageMargins(); - } - - /** - * Create an instance of {@link CTI } - * - */ - public CTI createCTI() { - return new CTI(); - } - - /** - * Create an instance of {@link CTReviewedRevisions } - * - */ - public CTReviewedRevisions createCTReviewedRevisions() { - return new CTReviewedRevisions(); - } - - /** - * Create an instance of {@link CTFonts } - * - */ - public CTFonts createCTFonts() { - return new CTFonts(); - } - - /** - * Create an instance of {@link CTLocation } - * - */ - public CTLocation createCTLocation() { - return new CTLocation(); - } - - /** - * Create an instance of {@link CTCustomSheetView } - * - */ - public CTCustomSheetView createCTCustomSheetView() { - return new CTCustomSheetView(); - } - - /** - * Create an instance of {@link CTTop10 } - * - */ - public CTTop10 createCTTop10() { - return new CTTop10(); - } - - /** - * Create an instance of {@link CTSchema } - * - */ - public CTSchema createCTSchema() { - return new CTSchema(); - } - - /** - * Create an instance of {@link CTMetadataTypes } - * - */ - public CTMetadataTypes createCTMetadataTypes() { - return new CTMetadataTypes(); - } - - /** - * Create an instance of {@link CTMeasureDimensionMaps } - * - */ - public CTMeasureDimensionMaps createCTMeasureDimensionMaps() { - return new CTMeasureDimensionMaps(); - } - - /** - * Create an instance of {@link CTUsers } - * - */ - public CTUsers createCTUsers() { - return new CTUsers(); - } - - /** - * Create an instance of {@link CTTextPr } - * - */ - public CTTextPr createCTTextPr() { - return new CTTextPr(); - } - - /** - * Create an instance of {@link CTServerFormat } - * - */ - public CTServerFormat createCTServerFormat() { - return new CTServerFormat(); - } - - /** - * Create an instance of {@link CTPageSetUpPr } - * - */ - public CTPageSetUpPr createCTPageSetUpPr() { - return new CTPageSetUpPr(); - } - - /** - * Create an instance of {@link CTDataValidations } - * - */ - public CTDataValidations createCTDataValidations() { - return new CTDataValidations(); - } - - /** - * Create an instance of {@link CTSingleXmlCells } - * - */ - public CTSingleXmlCells createCTSingleXmlCells() { - return new CTSingleXmlCells(); - } - - /** - * Create an instance of {@link CTPCDKPI } - * - */ - public CTPCDKPI createCTPCDKPI() { - return new CTPCDKPI(); - } - - /** - * Create an instance of {@link CTMissing } - * - */ - public CTMissing createCTMissing() { - return new CTMissing(); - } - - /** - * Create an instance of {@link CTSheetDimension } - * - */ - public CTSheetDimension createCTSheetDimension() { - return new CTSheetDimension(); - } - - /** - * Create an instance of {@link CTQuery } - * - */ - public CTQuery createCTQuery() { - return new CTQuery(); - } - - /** - * Create an instance of {@link CTFieldGroup } - * - */ - public CTFieldGroup createCTFieldGroup() { - return new CTFieldGroup(); - } - - /** - * Create an instance of {@link CTDdeLink } - * - */ - public CTDdeLink createCTDdeLink() { - return new CTDdeLink(); - } - - /** - * Create an instance of {@link CTDdeItems } - * - */ - public CTDdeItems createCTDdeItems() { - return new CTDdeItems(); - } - - /** - * Create an instance of {@link Sheet } - * - */ - public Sheet createSheet() { - return new Sheet(); - } - - /** - * Create an instance of {@link CTFunctionGroups } - * - */ - public CTFunctionGroups createCTFunctionGroups() { - return new CTFunctionGroups(); - } - - /** - * Create an instance of {@link CTPageItem } - * - */ - public CTPageItem createCTPageItem() { - return new CTPageItem(); - } - - /** - * Create an instance of {@link CTGroupLevels } - * - */ - public CTGroupLevels createCTGroupLevels() { - return new CTGroupLevels(); - } - - /** - * Create an instance of {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing createCTLegacyDrawing() { - return new CTLegacyDrawing(); - } - - /** - * Create an instance of {@link CTSst } - * - */ - public CTSst createCTSst() { - return new CTSst(); - } - - /** - * Create an instance of {@link CTExternalReference } - * - */ - public CTExternalReference createCTExternalReference() { - return new CTExternalReference(); - } - - /** - * Create an instance of {@link CTPageFields } - * - */ - public CTPageFields createCTPageFields() { - return new CTPageFields(); - } - - /** - * Create an instance of {@link CTReviewed } - * - */ - public CTReviewed createCTReviewed() { - return new CTReviewed(); - } - - /** - * Create an instance of {@link Dialogsheet } - * - */ - public Dialogsheet createDialogsheet() { - return new Dialogsheet(); - } - - /** - * Create an instance of {@link CTExtension } - * - */ - public CTExtension createCTExtension() { - return new CTExtension(); - } - - /** - * Create an instance of {@link CTOutlinePr } - * - */ - public CTOutlinePr createCTOutlinePr() { - return new CTOutlinePr(); - } - - /** - * Create an instance of {@link CTConditionalFormat } - * - */ - public CTConditionalFormat createCTConditionalFormat() { - return new CTConditionalFormat(); - } - - /** - * Create an instance of {@link CTUnderlineProperty } - * - */ - public CTUnderlineProperty createCTUnderlineProperty() { - return new CTUnderlineProperty(); - } - - /** - * Create an instance of {@link CTPhoneticRun } - * - */ - public CTPhoneticRun createCTPhoneticRun() { - return new CTPhoneticRun(); - } - - /** - * Create an instance of {@link CTDataConsolidate } - * - */ - public CTDataConsolidate createCTDataConsolidate() { - return new CTDataConsolidate(); - } - - /** - * Create an instance of {@link CTPivotHierarchy } - * - */ - public CTPivotHierarchy createCTPivotHierarchy() { - return new CTPivotHierarchy(); - } - - /** - * Create an instance of {@link CTMdxMetadata } - * - */ - public CTMdxMetadata createCTMdxMetadata() { - return new CTMdxMetadata(); - } - - /** - * Create an instance of {@link CTHyperlink } - * - */ - public CTHyperlink createCTHyperlink() { - return new CTHyperlink(); - } - - /** - * Create an instance of {@link CTParameter } - * - */ - public CTParameter createCTParameter() { - return new CTParameter(); - } - - /** - * Create an instance of {@link CTCacheField } - * - */ - public CTCacheField createCTCacheField() { - return new CTCacheField(); - } - - /** - * Create an instance of {@link SheetView } - * - */ - public SheetView createSheetView() { - return new SheetView(); - } - - /** - * Create an instance of {@link CTUndoInfo } - * - */ - public CTUndoInfo createCTUndoInfo() { - return new CTUndoInfo(); - } - - /** - * Create an instance of {@link CTMdxMemeberProp } - * - */ - public CTMdxMemeberProp createCTMdxMemeberProp() { - return new CTMdxMemeberProp(); - } - - /** - * Create an instance of {@link CTSheetCalcPr } - * - */ - public CTSheetCalcPr createCTSheetCalcPr() { - return new CTSheetCalcPr(); - } - - /** - * Create an instance of {@link CTVolType } - * - */ - public CTVolType createCTVolType() { - return new CTVolType(); - } - - /** - * Create an instance of {@link CTCellFormula } - * - */ - public CTCellFormula createCTCellFormula() { - return new CTCellFormula(); - } - - /** - * Create an instance of {@link CTColorScale } - * - */ - public CTColorScale createCTColorScale() { - return new CTColorScale(); - } - - /** - * Create an instance of {@link CTPivotDimension } - * - */ - public CTPivotDimension createCTPivotDimension() { - return new CTPivotDimension(); - } - - /** - * Create an instance of {@link CTRowItems } - * - */ - public CTRowItems createCTRowItems() { - return new CTRowItems(); - } - - /** - * Create an instance of {@link CTExternalReferences } - * - */ - public CTExternalReferences createCTExternalReferences() { - return new CTExternalReferences(); - } - - /** - * Create an instance of {@link CTRevisions } - * - */ - public CTRevisions createCTRevisions() { - return new CTRevisions(); - } - - /** - * Create an instance of {@link CTExternalDefinedName } - * - */ - public CTExternalDefinedName createCTExternalDefinedName() { - return new CTExternalDefinedName(); - } - - /** - * Create an instance of {@link CTCellSmartTags } - * - */ - public CTCellSmartTags createCTCellSmartTags() { - return new CTCellSmartTags(); - } - - /** - * Create an instance of {@link CTDataValidation } - * - */ - public CTDataValidation createCTDataValidation() { - return new CTDataValidation(); - } - - /** - * Create an instance of {@link CTMdx } - * - */ - public CTMdx createCTMdx() { - return new CTMdx(); - } - - /** - * Create an instance of {@link CTGroups } - * - */ - public CTGroups createCTGroups() { - return new CTGroups(); - } - - /** - * Create an instance of {@link CTFileSharing } - * - */ - public CTFileSharing createCTFileSharing() { - return new CTFileSharing(); - } - - /** - * Create an instance of {@link CTDxf } - * - */ - public CTDxf createCTDxf() { - return new CTDxf(); - } - - /** - * Create an instance of {@link CTHeaderFooter } - * - */ - public CTHeaderFooter createCTHeaderFooter() { - return new CTHeaderFooter(); - } - - /** - * Create an instance of {@link CTMetadataType } - * - */ - public CTMetadataType createCTMetadataType() { - return new CTMetadataType(); - } - - /** - * Create an instance of {@link CTWebPublishing } - * - */ - public CTWebPublishing createCTWebPublishing() { - return new CTWebPublishing(); - } - - /** - * Create an instance of {@link CTOleItem } - * - */ - public CTOleItem createCTOleItem() { - return new CTOleItem(); - } - - /** - * Create an instance of {@link CTMetadataStrings } - * - */ - public CTMetadataStrings createCTMetadataStrings() { - return new CTMetadataStrings(); - } - - /** - * Create an instance of {@link CTTableColumns } - * - */ - public CTTableColumns createCTTableColumns() { - return new CTTableColumns(); - } - - /** - * Create an instance of {@link CTPCDSDTCEntries } - * - */ - public CTPCDSDTCEntries createCTPCDSDTCEntries() { - return new CTPCDSDTCEntries(); - } - - /** - * Create an instance of {@link CTIntProperty } - * - */ - public CTIntProperty createCTIntProperty() { - return new CTIntProperty(); - } - - /** - * Create an instance of {@link CTFutureMetadataBlock } - * - */ - public CTFutureMetadataBlock createCTFutureMetadataBlock() { - return new CTFutureMetadataBlock(); - } - - /** - * Create an instance of {@link CTPivotAreas } - * - */ - public CTPivotAreas createCTPivotAreas() { - return new CTPivotAreas(); - } - - /** - * Create an instance of {@link CTSet } - * - */ - public CTSet createCTSet() { - return new CTSet(); - } - - /** - * Create an instance of {@link CTChartsheetPr } - * - */ - public CTChartsheetPr createCTChartsheetPr() { - return new CTChartsheetPr(); - } - - /** - * Create an instance of {@link CTCustomProperty } - * - */ - public CTCustomProperty createCTCustomProperty() { - return new CTCustomProperty(); - } - - /** - * Create an instance of {@link CTRgbColor } - * - */ - public CTRgbColor createCTRgbColor() { - return new CTRgbColor(); - } - - /** - * Create an instance of {@link CTSheetFormatPr } - * - */ - public CTSheetFormatPr createCTSheetFormatPr() { - return new CTSheetFormatPr(); - } - - /** - * Create an instance of {@link CTNumFmts } - * - */ - public CTNumFmts createCTNumFmts() { - return new CTNumFmts(); - } - - /** - * Create an instance of {@link CTControls } - * - */ - public CTControls createCTControls() { - return new CTControls(); - } - - /** - * Create an instance of {@link CTColFields } - * - */ - public CTColFields createCTColFields() { - return new CTColFields(); - } - - /** - * Create an instance of {@link CTTablePart } - * - */ - public CTTablePart createCTTablePart() { - return new CTTablePart(); - } - - /** - * Create an instance of {@link CTOleItems } - * - */ - public CTOleItems createCTOleItems() { - return new CTOleItems(); - } - - /** - * Create an instance of {@link CTDeletedField } - * - */ - public CTDeletedField createCTDeletedField() { - return new CTDeletedField(); - } - - /** - * Create an instance of {@link CTBooleanProperty } - * - */ - public CTBooleanProperty createCTBooleanProperty() { - return new CTBooleanProperty(); - } - - /** - * Create an instance of {@link CTRevisionFormatting } - * - */ - public CTRevisionFormatting createCTRevisionFormatting() { - return new CTRevisionFormatting(); - } - - /** - * Create an instance of {@link CTString } - * - */ - public CTString createCTString() { - return new CTString(); - } - - /** - * Create an instance of {@link CTRevisionRowColumn } - * - */ - public CTRevisionRowColumn createCTRevisionRowColumn() { - return new CTRevisionRowColumn(); - } - - /** - * Create an instance of {@link CTCellStyles } - * - */ - public CTCellStyles createCTCellStyles() { - return new CTCellStyles(); - } - - /** - * Create an instance of {@link CTVolTopic } - * - */ - public CTVolTopic createCTVolTopic() { - return new CTVolTopic(); - } - - /** - * Create an instance of {@link CTIgnoredError } - * - */ - public CTIgnoredError createCTIgnoredError() { - return new CTIgnoredError(); - } - - /** - * Create an instance of {@link CTXStringElement } - * - */ - public CTXStringElement createCTXStringElement() { - return new CTXStringElement(); - } - - /** - * Create an instance of {@link CTSmartTags } - * - */ - public CTSmartTags createCTSmartTags() { - return new CTSmartTags(); - } - - /** - * Create an instance of {@link CTPCDSCPage } - * - */ - public CTPCDSCPage createCTPCDSCPage() { - return new CTPCDSCPage(); - } - - /** - * Create an instance of {@link CTDefinedName } - * - */ - public CTDefinedName createCTDefinedName() { - return new CTDefinedName(); - } - - /** - * Create an instance of {@link CTGroupMember } - * - */ - public CTGroupMember createCTGroupMember() { - return new CTGroupMember(); - } - - /** - * Create an instance of {@link Macrosheet } - * - */ - public Macrosheet createMacrosheet() { - return new Macrosheet(); - } - - /** - * Create an instance of {@link CTProtectedRanges } - * - */ - public CTProtectedRanges createCTProtectedRanges() { - return new CTProtectedRanges(); - } - - /** - * Create an instance of {@link CTPivotSelection } - * - */ - public CTPivotSelection createCTPivotSelection() { - return new CTPivotSelection(); - } - - /** - * Create an instance of {@link CTRevisionDefinedName } - * - */ - public CTRevisionDefinedName createCTRevisionDefinedName() { - return new CTRevisionDefinedName(); - } - - /** - * Create an instance of {@link CTXf } - * - */ - public CTXf createCTXf() { - return new CTXf(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTConnections }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "connections") - public JAXBElement createConnections(CTConnections value) { - return new JAXBElement(_Connections_QNAME, CTConnections.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTMetadata }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "metadata") - public JAXBElement createMetadata(CTMetadata value) { - return new JAXBElement(_Metadata_QNAME, CTMetadata.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTExternalLink }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "externalLink") - public JAXBElement createExternalLink(CTExternalLink value) { - return new JAXBElement(_ExternalLink_QNAME, CTExternalLink.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTComments }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "comments") - public JAXBElement createComments(CTComments value) { - return new JAXBElement(_Comments_QNAME, CTComments.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTSingleXmlCells }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "singleXmlCells") - public JAXBElement createSingleXmlCells(CTSingleXmlCells value) { - return new JAXBElement(_SingleXmlCells_QNAME, CTSingleXmlCells.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTRevisions }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "revisions") - public JAXBElement createRevisions(CTRevisions value) { - return new JAXBElement(_Revisions_QNAME, CTRevisions.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTSst }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "sst") - public JAXBElement createSst(CTSst value) { - return new JAXBElement(_Sst_QNAME, CTSst.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTStylesheet }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "styleSheet") - public JAXBElement createStyleSheet(CTStylesheet value) { - return new JAXBElement(_StyleSheet_QNAME, CTStylesheet.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTChartsheet }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "chartsheet") - public JAXBElement createChartsheet(CTChartsheet value) { - return new JAXBElement(_Chartsheet_QNAME, CTChartsheet.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Workbook }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "workbook") - public JAXBElement createWorkbook(Workbook value) { - return new JAXBElement(_Workbook_QNAME, Workbook.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTTable }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "table") - public JAXBElement createTable(CTTable value) { - return new JAXBElement(_Table_QNAME, CTTable.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTPivotCacheRecords }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "pivotCacheRecords") - public JAXBElement createPivotCacheRecords(CTPivotCacheRecords value) { - return new JAXBElement(_PivotCacheRecords_QNAME, CTPivotCacheRecords.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Worksheet }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "worksheet") - public JAXBElement createWorksheet(Worksheet value) { - return new JAXBElement(_Worksheet_QNAME, Worksheet.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Dialogsheet }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "dialogsheet") - public JAXBElement createDialogsheet(Dialogsheet value) { - return new JAXBElement(_Dialogsheet_QNAME, Dialogsheet.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTPivotCacheDefinition }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "pivotCacheDefinition") - public JAXBElement createPivotCacheDefinition(CTPivotCacheDefinition value) { - return new JAXBElement(_PivotCacheDefinition_QNAME, CTPivotCacheDefinition.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTVolTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "volTypes") - public JAXBElement createVolTypes(CTVolTypes value) { - return new JAXBElement(_VolTypes_QNAME, CTVolTypes.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTMapInfo }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "MapInfo") - public JAXBElement createMapInfo(CTMapInfo value) { - return new JAXBElement(_MapInfo_QNAME, CTMapInfo.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTQueryTable }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "queryTable") - public JAXBElement createQueryTable(CTQueryTable value) { - return new JAXBElement(_QueryTable_QNAME, CTQueryTable.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTUsers }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "users") - public JAXBElement createUsers(CTUsers value) { - return new JAXBElement(_Users_QNAME, CTUsers.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTCalcChain }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "calcChain") - public JAXBElement createCalcChain(CTCalcChain value) { - return new JAXBElement(_CalcChain_QNAME, CTCalcChain.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTRevisionHeaders }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "headers") - public JAXBElement createHeaders(CTRevisionHeaders value) { - return new JAXBElement(_Headers_QNAME, CTRevisionHeaders.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTPivotTableDefinition }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "pivotTableDefinition") - public JAXBElement createPivotTableDefinition(CTPivotTableDefinition value) { - return new JAXBElement(_PivotTableDefinition_QNAME, CTPivotTableDefinition.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTFontSize }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "sz", scope = CTFont.class) - public JAXBElement createCTFontSz(CTFontSize value) { - return new JAXBElement(_CTFontSz_QNAME, CTFontSize.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "condense", scope = CTFont.class) - public JAXBElement createCTFontCondense(CTBooleanProperty value) { - return new JAXBElement(_CTFontCondense_QNAME, CTBooleanProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "strike", scope = CTFont.class) - public JAXBElement createCTFontStrike(CTBooleanProperty value) { - return new JAXBElement(_CTFontStrike_QNAME, CTBooleanProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "u", scope = CTFont.class) - public JAXBElement createCTFontU(CTUnderlineProperty value) { - return new JAXBElement(_CTFontU_QNAME, CTUnderlineProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "vertAlign", scope = CTFont.class) - public JAXBElement createCTFontVertAlign(CTVerticalAlignFontProperty value) { - return new JAXBElement(_CTFontVertAlign_QNAME, CTVerticalAlignFontProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTFontName }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "name", scope = CTFont.class) - public JAXBElement createCTFontName(CTFontName value) { - return new JAXBElement(_CTFontName_QNAME, CTFontName.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "shadow", scope = CTFont.class) - public JAXBElement createCTFontShadow(CTBooleanProperty value) { - return new JAXBElement(_CTFontShadow_QNAME, CTBooleanProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "family", scope = CTFont.class) - public JAXBElement createCTFontFamily(CTIntProperty value) { - return new JAXBElement(_CTFontFamily_QNAME, CTIntProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTColor }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "color", scope = CTFont.class) - public JAXBElement createCTFontColor(CTColor value) { - return new JAXBElement(_CTFontColor_QNAME, CTColor.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "scheme", scope = CTFont.class) - public JAXBElement createCTFontScheme(CTFontScheme value) { - return new JAXBElement(_CTFontScheme_QNAME, CTFontScheme.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "charset", scope = CTFont.class) - public JAXBElement createCTFontCharset(CTIntProperty value) { - return new JAXBElement(_CTFontCharset_QNAME, CTIntProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "i", scope = CTFont.class) - public JAXBElement createCTFontI(CTBooleanProperty value) { - return new JAXBElement(_CTFontI_QNAME, CTBooleanProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "outline", scope = CTFont.class) - public JAXBElement createCTFontOutline(CTBooleanProperty value) { - return new JAXBElement(_CTFontOutline_QNAME, CTBooleanProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "extend", scope = CTFont.class) - public JAXBElement createCTFontExtend(CTBooleanProperty value) { - return new JAXBElement(_CTFontExtend_QNAME, CTBooleanProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "b", scope = CTFont.class) - public JAXBElement createCTFontB(CTBooleanProperty value) { - return new JAXBElement(_CTFontB_QNAME, CTBooleanProperty.class, CTFont.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "condense", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltCondense(CTBooleanProperty value) { - return new JAXBElement(_CTFontCondense_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTFontSize }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "sz", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltSz(CTFontSize value) { - return new JAXBElement(_CTFontSz_QNAME, CTFontSize.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "u", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltU(CTUnderlineProperty value) { - return new JAXBElement(_CTFontU_QNAME, CTUnderlineProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "strike", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltStrike(CTBooleanProperty value) { - return new JAXBElement(_CTFontStrike_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "vertAlign", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltVertAlign(CTVerticalAlignFontProperty value) { - return new JAXBElement(_CTFontVertAlign_QNAME, CTVerticalAlignFontProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "family", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltFamily(CTIntProperty value) { - return new JAXBElement(_CTFontFamily_QNAME, CTIntProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "shadow", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltShadow(CTBooleanProperty value) { - return new JAXBElement(_CTFontShadow_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTColor }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "color", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltColor(CTColor value) { - return new JAXBElement(_CTFontColor_QNAME, CTColor.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "scheme", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltScheme(CTFontScheme value) { - return new JAXBElement(_CTFontScheme_QNAME, CTFontScheme.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "charset", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltCharset(CTIntProperty value) { - return new JAXBElement(_CTFontCharset_QNAME, CTIntProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "i", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltI(CTBooleanProperty value) { - return new JAXBElement(_CTFontI_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "outline", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltOutline(CTBooleanProperty value) { - return new JAXBElement(_CTFontOutline_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "extend", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltExtend(CTBooleanProperty value) { - return new JAXBElement(_CTFontExtend_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTFontName }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "rFont", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltRFont(CTFontName value) { - return new JAXBElement(_CTRPrEltRFont_QNAME, CTFontName.class, CTRPrElt.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "b", scope = CTRPrElt.class) - public JAXBElement createCTRPrEltB(CTBooleanProperty value) { - return new JAXBElement(_CTFontB_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.xlsx4j.sml package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _Chartsheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "chartsheet"); + private final static QName _VolTypes_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "volTypes"); + private final static QName _MapInfo_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "MapInfo"); + private final static QName _Comments_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "comments"); + private final static QName _Revisions_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "revisions"); + private final static QName _PivotCacheRecords_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "pivotCacheRecords"); + private final static QName _Dialogsheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "dialogsheet"); + private final static QName _PivotCacheDefinition_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "pivotCacheDefinition"); + private final static QName _QueryTable_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "queryTable"); + private final static QName _CalcChain_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "calcChain"); + private final static QName _PivotTableDefinition_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "pivotTableDefinition"); + private final static QName _Connections_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "connections"); + private final static QName _Metadata_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "metadata"); + private final static QName _Sst_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "sst"); + private final static QName _Workbook_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "workbook"); + private final static QName _Users_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "users"); + private final static QName _Headers_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "headers"); + private final static QName _ExternalLink_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "externalLink"); + private final static QName _SingleXmlCells_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "singleXmlCells"); + private final static QName _StyleSheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "styleSheet"); + private final static QName _Table_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "table"); + private final static QName _Worksheet_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "worksheet"); + private final static QName _CTFontCondense_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "condense"); + private final static QName _CTFontSz_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "sz"); + private final static QName _CTFontStrike_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "strike"); + private final static QName _CTFontU_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "u"); + private final static QName _CTFontVertAlign_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "vertAlign"); + private final static QName _CTFontName_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "name"); + private final static QName _CTFontFamily_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "family"); + private final static QName _CTFontShadow_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "shadow"); + private final static QName _CTFontColor_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "color"); + private final static QName _CTFontScheme_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "scheme"); + private final static QName _CTFontCharset_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "charset"); + private final static QName _CTFontI_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "i"); + private final static QName _CTFontOutline_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "outline"); + private final static QName _CTFontExtend_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "extend"); + private final static QName _CTFontB_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "b"); + private final static QName _CTRPrEltRFont_QNAME = new QName("http://schemas.openxmlformats.org/spreadsheetml/2006/main", "rFont"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.xlsx4j.sml + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link CTRevisionHeaders } + * + */ + public CTRevisionHeaders createCTRevisionHeaders() { + return new CTRevisionHeaders(); + } + + /** + * Create an instance of {@link CTCalcChain } + * + */ + public CTCalcChain createCTCalcChain() { + return new CTCalcChain(); + } + + /** + * Create an instance of {@link CTUsers } + * + */ + public CTUsers createCTUsers() { + return new CTUsers(); + } + + /** + * Create an instance of {@link CTQueryTable } + * + */ + public CTQueryTable createCTQueryTable() { + return new CTQueryTable(); + } + + /** + * Create an instance of {@link CTPivotTableDefinition } + * + */ + public CTPivotTableDefinition createCTPivotTableDefinition() { + return new CTPivotTableDefinition(); + } + + /** + * Create an instance of {@link Worksheet } + * + */ + public Worksheet createWorksheet() { + return new Worksheet(); + } + + /** + * Create an instance of {@link CTPivotCacheRecords } + * + */ + public CTPivotCacheRecords createCTPivotCacheRecords() { + return new CTPivotCacheRecords(); + } + + /** + * Create an instance of {@link CTTable } + * + */ + public CTTable createCTTable() { + return new CTTable(); + } + + /** + * Create an instance of {@link CTVolTypes } + * + */ + public CTVolTypes createCTVolTypes() { + return new CTVolTypes(); + } + + /** + * Create an instance of {@link CTMapInfo } + * + */ + public CTMapInfo createCTMapInfo() { + return new CTMapInfo(); + } + + /** + * Create an instance of {@link Dialogsheet } + * + */ + public Dialogsheet createDialogsheet() { + return new Dialogsheet(); + } + + /** + * Create an instance of {@link CTPivotCacheDefinition } + * + */ + public CTPivotCacheDefinition createCTPivotCacheDefinition() { + return new CTPivotCacheDefinition(); + } + + /** + * Create an instance of {@link CTStylesheet } + * + */ + public CTStylesheet createCTStylesheet() { + return new CTStylesheet(); + } + + /** + * Create an instance of {@link CTSst } + * + */ + public CTSst createCTSst() { + return new CTSst(); + } + + /** + * Create an instance of {@link Workbook } + * + */ + public Workbook createWorkbook() { + return new Workbook(); + } + + /** + * Create an instance of {@link CTChartsheet } + * + */ + public CTChartsheet createCTChartsheet() { + return new CTChartsheet(); + } + + /** + * Create an instance of {@link CTConnections } + * + */ + public CTConnections createCTConnections() { + return new CTConnections(); + } + + /** + * Create an instance of {@link CTRevisions } + * + */ + public CTRevisions createCTRevisions() { + return new CTRevisions(); + } + + /** + * Create an instance of {@link CTSingleXmlCells } + * + */ + public CTSingleXmlCells createCTSingleXmlCells() { + return new CTSingleXmlCells(); + } + + /** + * Create an instance of {@link CTComments } + * + */ + public CTComments createCTComments() { + return new CTComments(); + } + + /** + * Create an instance of {@link CTExternalLink } + * + */ + public CTExternalLink createCTExternalLink() { + return new CTExternalLink(); + } + + /** + * Create an instance of {@link CTMetadata } + * + */ + public CTMetadata createCTMetadata() { + return new CTMetadata(); + } + + /** + * Create an instance of {@link CTTextPr } + * + */ + public CTTextPr createCTTextPr() { + return new CTTextPr(); + } + + /** + * Create an instance of {@link CTPageSetup } + * + */ + public CTPageSetup createCTPageSetup() { + return new CTPageSetup(); + } + + /** + * Create an instance of {@link CTSheetFormatPr } + * + */ + public CTSheetFormatPr createCTSheetFormatPr() { + return new CTSheetFormatPr(); + } + + /** + * Create an instance of {@link CTCustomSheetViews } + * + */ + public CTCustomSheetViews createCTCustomSheetViews() { + return new CTCustomSheetViews(); + } + + /** + * Create an instance of {@link CTTableStyleInfo } + * + */ + public CTTableStyleInfo createCTTableStyleInfo() { + return new CTTableStyleInfo(); + } + + /** + * Create an instance of {@link Row } + * + */ + public Row createRow() { + return new Row(); + } + + /** + * Create an instance of {@link CTGradientStop } + * + */ + public CTGradientStop createCTGradientStop() { + return new CTGradientStop(); + } + + /** + * Create an instance of {@link CTExternalDefinedName } + * + */ + public CTExternalDefinedName createCTExternalDefinedName() { + return new CTExternalDefinedName(); + } + + /** + * Create an instance of {@link CTInputCells } + * + */ + public CTInputCells createCTInputCells() { + return new CTInputCells(); + } + + /** + * Create an instance of {@link CTChartsheetProtection } + * + */ + public CTChartsheetProtection createCTChartsheetProtection() { + return new CTChartsheetProtection(); + } + + /** + * Create an instance of {@link CTMeasureGroup } + * + */ + public CTMeasureGroup createCTMeasureGroup() { + return new CTMeasureGroup(); + } + + /** + * Create an instance of {@link CTFieldUsage } + * + */ + public CTFieldUsage createCTFieldUsage() { + return new CTFieldUsage(); + } + + /** + * Create an instance of {@link CTObjectPr } + * + */ + public CTObjectPr createCTObjectPr() { + return new CTObjectPr(); + } + + /** + * Create an instance of {@link CTItems } + * + */ + public CTItems createCTItems() { + return new CTItems(); + } + + /** + * Create an instance of {@link CTMdxKPI } + * + */ + public CTMdxKPI createCTMdxKPI() { + return new CTMdxKPI(); + } + + /** + * Create an instance of {@link CTPivotCache } + * + */ + public CTPivotCache createCTPivotCache() { + return new CTPivotCache(); + } + + /** + * Create an instance of {@link CTFutureMetadataBlock } + * + */ + public CTFutureMetadataBlock createCTFutureMetadataBlock() { + return new CTFutureMetadataBlock(); + } + + /** + * Create an instance of {@link CTExternalReference } + * + */ + public CTExternalReference createCTExternalReference() { + return new CTExternalReference(); + } + + /** + * Create an instance of {@link CTTableColumn } + * + */ + public CTTableColumn createCTTableColumn() { + return new CTTableColumn(); + } + + /** + * Create an instance of {@link CTDataBinding } + * + */ + public CTDataBinding createCTDataBinding() { + return new CTDataBinding(); + } + + /** + * Create an instance of {@link CTDdeValues } + * + */ + public CTDdeValues createCTDdeValues() { + return new CTDdeValues(); + } + + /** + * Create an instance of {@link CTTextField } + * + */ + public CTTextField createCTTextField() { + return new CTTextField(); + } + + /** + * Create an instance of {@link CTCellXfs } + * + */ + public CTCellXfs createCTCellXfs() { + return new CTCellXfs(); + } + + /** + * Create an instance of {@link CTPageMargins } + * + */ + public CTPageMargins createCTPageMargins() { + return new CTPageMargins(); + } + + /** + * Create an instance of {@link CTSingleXmlCell } + * + */ + public CTSingleXmlCell createCTSingleXmlCell() { + return new CTSingleXmlCell(); + } + + /** + * Create an instance of {@link CTFutureMetadata } + * + */ + public CTFutureMetadata createCTFutureMetadata() { + return new CTFutureMetadata(); + } + + /** + * Create an instance of {@link CTMdxMetadata } + * + */ + public CTMdxMetadata createCTMdxMetadata() { + return new CTMdxMetadata(); + } + + /** + * Create an instance of {@link CTCustomChartsheetView } + * + */ + public CTCustomChartsheetView createCTCustomChartsheetView() { + return new CTCustomChartsheetView(); + } + + /** + * Create an instance of {@link CTVolTopicRef } + * + */ + public CTVolTopicRef createCTVolTopicRef() { + return new CTVolTopicRef(); + } + + /** + * Create an instance of {@link CTOutlinePr } + * + */ + public CTOutlinePr createCTOutlinePr() { + return new CTOutlinePr(); + } + + /** + * Create an instance of {@link CTCommentPr } + * + */ + public CTCommentPr createCTCommentPr() { + return new CTCommentPr(); + } + + /** + * Create an instance of {@link CTFilterColumn } + * + */ + public CTFilterColumn createCTFilterColumn() { + return new CTFilterColumn(); + } + + /** + * Create an instance of {@link CTXmlPr } + * + */ + public CTXmlPr createCTXmlPr() { + return new CTXmlPr(); + } + + /** + * Create an instance of {@link CTExternalCell } + * + */ + public CTExternalCell createCTExternalCell() { + return new CTExternalCell(); + } + + /** + * Create an instance of {@link CTExtensionList } + * + */ + public CTExtensionList createCTExtensionList() { + return new CTExtensionList(); + } + + /** + * Create an instance of {@link CTDataBar } + * + */ + public CTDataBar createCTDataBar() { + return new CTDataBar(); + } + + /** + * Create an instance of {@link CTCustomChartsheetViews } + * + */ + public CTCustomChartsheetViews createCTCustomChartsheetViews() { + return new CTCustomChartsheetViews(); + } + + /** + * Create an instance of {@link CTOleSize } + * + */ + public CTOleSize createCTOleSize() { + return new CTOleSize(); + } + + /** + * Create an instance of {@link CTConditionalFormatting } + * + */ + public CTConditionalFormatting createCTConditionalFormatting() { + return new CTConditionalFormatting(); + } + + /** + * Create an instance of {@link CTNumFmts } + * + */ + public CTNumFmts createCTNumFmts() { + return new CTNumFmts(); + } + + /** + * Create an instance of {@link CTPivotTableStyle } + * + */ + public CTPivotTableStyle createCTPivotTableStyle() { + return new CTPivotTableStyle(); + } + + /** + * Create an instance of {@link CTDataValidation } + * + */ + public CTDataValidation createCTDataValidation() { + return new CTDataValidation(); + } + + /** + * Create an instance of {@link CTMdxMemeberProp } + * + */ + public CTMdxMemeberProp createCTMdxMemeberProp() { + return new CTMdxMemeberProp(); + } + + /** + * Create an instance of {@link CTCacheField } + * + */ + public CTCacheField createCTCacheField() { + return new CTCacheField(); + } + + /** + * Create an instance of {@link CTBooleanProperty } + * + */ + public CTBooleanProperty createCTBooleanProperty() { + return new CTBooleanProperty(); + } + + /** + * Create an instance of {@link CTPhoneticPr } + * + */ + public CTPhoneticPr createCTPhoneticPr() { + return new CTPhoneticPr(); + } + + /** + * Create an instance of {@link CTColFields } + * + */ + public CTColFields createCTColFields() { + return new CTColFields(); + } + + /** + * Create an instance of {@link CTPivotAreaReference } + * + */ + public CTPivotAreaReference createCTPivotAreaReference() { + return new CTPivotAreaReference(); + } + + /** + * Create an instance of {@link CTFieldsUsage } + * + */ + public CTFieldsUsage createCTFieldsUsage() { + return new CTFieldsUsage(); + } + + /** + * Create an instance of {@link CTCsPageSetup } + * + */ + public CTCsPageSetup createCTCsPageSetup() { + return new CTCsPageSetup(); + } + + /** + * Create an instance of {@link CTLevelGroup } + * + */ + public CTLevelGroup createCTLevelGroup() { + return new CTLevelGroup(); + } + + /** + * Create an instance of {@link CTCustomWorkbookView } + * + */ + public CTCustomWorkbookView createCTCustomWorkbookView() { + return new CTCustomWorkbookView(); + } + + /** + * Create an instance of {@link CTMergeCell } + * + */ + public CTMergeCell createCTMergeCell() { + return new CTMergeCell(); + } + + /** + * Create an instance of {@link CTWebPublishObject } + * + */ + public CTWebPublishObject createCTWebPublishObject() { + return new CTWebPublishObject(); + } + + /** + * Create an instance of {@link CTHeaderFooter } + * + */ + public CTHeaderFooter createCTHeaderFooter() { + return new CTHeaderFooter(); + } + + /** + * Create an instance of {@link CTCellStyle } + * + */ + public CTCellStyle createCTCellStyle() { + return new CTCellStyle(); + } + + /** + * Create an instance of {@link CTXf } + * + */ + public CTXf createCTXf() { + return new CTXf(); + } + + /** + * Create an instance of {@link CTDeletedField } + * + */ + public CTDeletedField createCTDeletedField() { + return new CTDeletedField(); + } + + /** + * Create an instance of {@link CTServerFormat } + * + */ + public CTServerFormat createCTServerFormat() { + return new CTServerFormat(); + } + + /** + * Create an instance of {@link CTWebPublishItems } + * + */ + public CTWebPublishItems createCTWebPublishItems() { + return new CTWebPublishItems(); + } + + /** + * Create an instance of {@link CTExternalBook } + * + */ + public CTExternalBook createCTExternalBook() { + return new CTExternalBook(); + } + + /** + * Create an instance of {@link CTLocation } + * + */ + public CTLocation createCTLocation() { + return new CTLocation(); + } + + /** + * Create an instance of {@link CTExtension } + * + */ + public CTExtension createCTExtension() { + return new CTExtension(); + } + + /** + * Create an instance of {@link CTCustomProperties } + * + */ + public CTCustomProperties createCTCustomProperties() { + return new CTCustomProperties(); + } + + /** + * Create an instance of {@link CTTablePart } + * + */ + public CTTablePart createCTTablePart() { + return new CTTablePart(); + } + + /** + * Create an instance of {@link CTWebPublishObjects } + * + */ + public CTWebPublishObjects createCTWebPublishObjects() { + return new CTWebPublishObjects(); + } + + /** + * Create an instance of {@link CTOleItem } + * + */ + public CTOleItem createCTOleItem() { + return new CTOleItem(); + } + + /** + * Create an instance of {@link CTPivotHierarchy } + * + */ + public CTPivotHierarchy createCTPivotHierarchy() { + return new CTPivotHierarchy(); + } + + /** + * Create an instance of {@link CTParameter } + * + */ + public CTParameter createCTParameter() { + return new CTParameter(); + } + + /** + * Create an instance of {@link CTTupleCache } + * + */ + public CTTupleCache createCTTupleCache() { + return new CTTupleCache(); + } + + /** + * Create an instance of {@link CTCellSmartTags } + * + */ + public CTCellSmartTags createCTCellSmartTags() { + return new CTCellSmartTags(); + } + + /** + * Create an instance of {@link CTFieldGroup } + * + */ + public CTFieldGroup createCTFieldGroup() { + return new CTFieldGroup(); + } + + /** + * Create an instance of {@link CTChartsheetPr } + * + */ + public CTChartsheetPr createCTChartsheetPr() { + return new CTChartsheetPr(); + } + + /** + * Create an instance of {@link CTSheetProtection } + * + */ + public CTSheetProtection createCTSheetProtection() { + return new CTSheetProtection(); + } + + /** + * Create an instance of {@link CTSheetIdMap } + * + */ + public CTSheetIdMap createCTSheetIdMap() { + return new CTSheetIdMap(); + } + + /** + * Create an instance of {@link CTWebPr } + * + */ + public CTWebPr createCTWebPr() { + return new CTWebPr(); + } + + /** + * Create an instance of {@link CTPrintOptions } + * + */ + public CTPrintOptions createCTPrintOptions() { + return new CTPrintOptions(); + } + + /** + * Create an instance of {@link CTMetadataRecord } + * + */ + public CTMetadataRecord createCTMetadataRecord() { + return new CTMetadataRecord(); + } + + /** + * Create an instance of {@link CTControl } + * + */ + public CTControl createCTControl() { + return new CTControl(); + } + + /** + * Create an instance of {@link CTRevisionHeader } + * + */ + public CTRevisionHeader createCTRevisionHeader() { + return new CTRevisionHeader(); + } + + /** + * Create an instance of {@link CTTableStyles } + * + */ + public CTTableStyles createCTTableStyles() { + return new CTTableStyles(); + } + + /** + * Create an instance of {@link CTSheetPr } + * + */ + public CTSheetPr createCTSheetPr() { + return new CTSheetPr(); + } + + /** + * Create an instance of {@link CTProtectedRanges } + * + */ + public CTProtectedRanges createCTProtectedRanges() { + return new CTProtectedRanges(); + } + + /** + * Create an instance of {@link CTQueryTableDeletedFields } + * + */ + public CTQueryTableDeletedFields createCTQueryTableDeletedFields() { + return new CTQueryTableDeletedFields(); + } + + /** + * Create an instance of {@link CTBoolean } + * + */ + public CTBoolean createCTBoolean() { + return new CTBoolean(); + } + + /** + * Create an instance of {@link CTMemberProperty } + * + */ + public CTMemberProperty createCTMemberProperty() { + return new CTMemberProperty(); + } + + /** + * Create an instance of {@link CTDimensions } + * + */ + public CTDimensions createCTDimensions() { + return new CTDimensions(); + } + + /** + * Create an instance of {@link CTOleObjects } + * + */ + public CTOleObjects createCTOleObjects() { + return new CTOleObjects(); + } + + /** + * Create an instance of {@link CTMembers } + * + */ + public CTMembers createCTMembers() { + return new CTMembers(); + } + + /** + * Create an instance of {@link CTIndexedColors } + * + */ + public CTIndexedColors createCTIndexedColors() { + return new CTIndexedColors(); + } + + /** + * Create an instance of {@link CTCustomWorkbookViews } + * + */ + public CTCustomWorkbookViews createCTCustomWorkbookViews() { + return new CTCustomWorkbookViews(); + } + + /** + * Create an instance of {@link CTRevisionRowColumn } + * + */ + public CTRevisionRowColumn createCTRevisionRowColumn() { + return new CTRevisionRowColumn(); + } + + /** + * Create an instance of {@link CTFileRecoveryPr } + * + */ + public CTFileRecoveryPr createCTFileRecoveryPr() { + return new CTFileRecoveryPr(); + } + + /** + * Create an instance of {@link CTMdxSet } + * + */ + public CTMdxSet createCTMdxSet() { + return new CTMdxSet(); + } + + /** + * Create an instance of {@link CTOleItems } + * + */ + public CTOleItems createCTOleItems() { + return new CTOleItems(); + } + + /** + * Create an instance of {@link WorkbookPr } + * + */ + public WorkbookPr createWorkbookPr() { + return new WorkbookPr(); + } + + /** + * Create an instance of {@link CTPivotAreaReferences } + * + */ + public CTPivotAreaReferences createCTPivotAreaReferences() { + return new CTPivotAreaReferences(); + } + + /** + * Create an instance of {@link CTCellSmartTagPr } + * + */ + public CTCellSmartTagPr createCTCellSmartTagPr() { + return new CTCellSmartTagPr(); + } + + /** + * Create an instance of {@link CTAutoSortScope } + * + */ + public CTAutoSortScope createCTAutoSortScope() { + return new CTAutoSortScope(); + } + + /** + * Create an instance of {@link CTPageFields } + * + */ + public CTPageFields createCTPageFields() { + return new CTPageFields(); + } + + /** + * Create an instance of {@link CTRevisionConflict } + * + */ + public CTRevisionConflict createCTRevisionConflict() { + return new CTRevisionConflict(); + } + + /** + * Create an instance of {@link CTPivotFilter } + * + */ + public CTPivotFilter createCTPivotFilter() { + return new CTPivotFilter(); + } + + /** + * Create an instance of {@link CTCacheFields } + * + */ + public CTCacheFields createCTCacheFields() { + return new CTCacheFields(); + } + + /** + * Create an instance of {@link CTNumber } + * + */ + public CTNumber createCTNumber() { + return new CTNumber(); + } + + /** + * Create an instance of {@link CTQueryTableField } + * + */ + public CTQueryTableField createCTQueryTableField() { + return new CTQueryTableField(); + } + + /** + * Create an instance of {@link CTUnderlineProperty } + * + */ + public CTUnderlineProperty createCTUnderlineProperty() { + return new CTUnderlineProperty(); + } + + /** + * Create an instance of {@link CTXstringWhitespace } + * + */ + public CTXstringWhitespace createCTXstringWhitespace() { + return new CTXstringWhitespace(); + } + + /** + * Create an instance of {@link CTIconSet } + * + */ + public CTIconSet createCTIconSet() { + return new CTIconSet(); + } + + /** + * Create an instance of {@link CTFileSharing } + * + */ + public CTFileSharing createCTFileSharing() { + return new CTFileSharing(); + } + + /** + * Create an instance of {@link CTCustomFilter } + * + */ + public CTCustomFilter createCTCustomFilter() { + return new CTCustomFilter(); + } + + /** + * Create an instance of {@link CTCfRule } + * + */ + public CTCfRule createCTCfRule() { + return new CTCfRule(); + } + + /** + * Create an instance of {@link CTDdeValue } + * + */ + public CTDdeValue createCTDdeValue() { + return new CTDdeValue(); + } + + /** + * Create an instance of {@link CTSmartTags } + * + */ + public CTSmartTags createCTSmartTags() { + return new CTSmartTags(); + } + + /** + * Create an instance of {@link CTBookView } + * + */ + public CTBookView createCTBookView() { + return new CTBookView(); + } + + /** + * Create an instance of {@link CTCellStyleXfs } + * + */ + public CTCellStyleXfs createCTCellStyleXfs() { + return new CTCellStyleXfs(); + } + + /** + * Create an instance of {@link CTRevisionAutoFormatting } + * + */ + public CTRevisionAutoFormatting createCTRevisionAutoFormatting() { + return new CTRevisionAutoFormatting(); + } + + /** + * Create an instance of {@link CTDrawingHF } + * + */ + public CTDrawingHF createCTDrawingHF() { + return new CTDrawingHF(); + } + + /** + * Create an instance of {@link CTX } + * + */ + public CTX createCTX() { + return new CTX(); + } + + /** + * Create an instance of {@link CTMetadataType } + * + */ + public CTMetadataType createCTMetadataType() { + return new CTMetadataType(); + } + + /** + * Create an instance of {@link CTBreak } + * + */ + public CTBreak createCTBreak() { + return new CTBreak(); + } + + /** + * Create an instance of {@link CTMap } + * + */ + public CTMap createCTMap() { + return new CTMap(); + } + + /** + * Create an instance of {@link CTMeasureDimensionMap } + * + */ + public CTMeasureDimensionMap createCTMeasureDimensionMap() { + return new CTMeasureDimensionMap(); + } + + /** + * Create an instance of {@link CTObjectAnchor } + * + */ + public CTObjectAnchor createCTObjectAnchor() { + return new CTObjectAnchor(); + } + + /** + * Create an instance of {@link CTCustomSheetView } + * + */ + public CTCustomSheetView createCTCustomSheetView() { + return new CTCustomSheetView(); + } + + /** + * Create an instance of {@link CTHierarchyUsage } + * + */ + public CTHierarchyUsage createCTHierarchyUsage() { + return new CTHierarchyUsage(); + } + + /** + * Create an instance of {@link SheetViews } + * + */ + public SheetViews createSheetViews() { + return new SheetViews(); + } + + /** + * Create an instance of {@link CTExternalDefinedNames } + * + */ + public CTExternalDefinedNames createCTExternalDefinedNames() { + return new CTExternalDefinedNames(); + } + + /** + * Create an instance of {@link CTQueryTableRefresh } + * + */ + public CTQueryTableRefresh createCTQueryTableRefresh() { + return new CTQueryTableRefresh(); + } + + /** + * Create an instance of {@link CTConditionalFormats } + * + */ + public CTConditionalFormats createCTConditionalFormats() { + return new CTConditionalFormats(); + } + + /** + * Create an instance of {@link CTTuples } + * + */ + public CTTuples createCTTuples() { + return new CTTuples(); + } + + /** + * Create an instance of {@link CTWorkbookProtection } + * + */ + public CTWorkbookProtection createCTWorkbookProtection() { + return new CTWorkbookProtection(); + } + + /** + * Create an instance of {@link CTItem } + * + */ + public CTItem createCTItem() { + return new CTItem(); + } + + /** + * Create an instance of {@link CTParameters } + * + */ + public CTParameters createCTParameters() { + return new CTParameters(); + } + + /** + * Create an instance of {@link CTRst } + * + */ + public CTRst createCTRst() { + return new CTRst(); + } + + /** + * Create an instance of {@link CTChartFormat } + * + */ + public CTChartFormat createCTChartFormat() { + return new CTChartFormat(); + } + + /** + * Create an instance of {@link CTCustomFilters } + * + */ + public CTCustomFilters createCTCustomFilters() { + return new CTCustomFilters(); + } + + /** + * Create an instance of {@link CTChartsheetView } + * + */ + public CTChartsheetView createCTChartsheetView() { + return new CTChartsheetView(); + } + + /** + * Create an instance of {@link CTPages } + * + */ + public CTPages createCTPages() { + return new CTPages(); + } + + /** + * Create an instance of {@link CTCacheHierarchies } + * + */ + public CTCacheHierarchies createCTCacheHierarchies() { + return new CTCacheHierarchies(); + } + + /** + * Create an instance of {@link CTPatternFill } + * + */ + public CTPatternFill createCTPatternFill() { + return new CTPatternFill(); + } + + /** + * Create an instance of {@link CTColorScale } + * + */ + public CTColorScale createCTColorScale() { + return new CTColorScale(); + } + + /** + * Create an instance of {@link CTDynamicFilter } + * + */ + public CTDynamicFilter createCTDynamicFilter() { + return new CTDynamicFilter(); + } + + /** + * Create an instance of {@link CTConditionalFormat } + * + */ + public CTConditionalFormat createCTConditionalFormat() { + return new CTConditionalFormat(); + } + + /** + * Create an instance of {@link CTDdeItems } + * + */ + public CTDdeItems createCTDdeItems() { + return new CTDdeItems(); + } + + /** + * Create an instance of {@link CTColorFilter } + * + */ + public CTColorFilter createCTColorFilter() { + return new CTColorFilter(); + } + + /** + * Create an instance of {@link CTCellStyles } + * + */ + public CTCellStyles createCTCellStyles() { + return new CTCellStyles(); + } + + /** + * Create an instance of {@link CTField } + * + */ + public CTField createCTField() { + return new CTField(); + } + + /** + * Create an instance of {@link CTXStringElement } + * + */ + public CTXStringElement createCTXStringElement() { + return new CTXStringElement(); + } + + /** + * Create an instance of {@link CTAutoFilter } + * + */ + public CTAutoFilter createCTAutoFilter() { + return new CTAutoFilter(); + } + + /** + * Create an instance of {@link CTPageItem } + * + */ + public CTPageItem createCTPageItem() { + return new CTPageItem(); + } + + /** + * Create an instance of {@link CTVolMain } + * + */ + public CTVolMain createCTVolMain() { + return new CTVolMain(); + } + + /** + * Create an instance of {@link FileVersion } + * + */ + public FileVersion createFileVersion() { + return new FileVersion(); + } + + /** + * Create an instance of {@link CTTableFormula } + * + */ + public CTTableFormula createCTTableFormula() { + return new CTTableFormula(); + } + + /** + * Create an instance of {@link CTBorderPr } + * + */ + public CTBorderPr createCTBorderPr() { + return new CTBorderPr(); + } + + /** + * Create an instance of {@link CTColors } + * + */ + public CTColors createCTColors() { + return new CTColors(); + } + + /** + * Create an instance of {@link CTCacheHierarchy } + * + */ + public CTCacheHierarchy createCTCacheHierarchy() { + return new CTCacheHierarchy(); + } + + /** + * Create an instance of {@link CTQueryTableFields } + * + */ + public CTQueryTableFields createCTQueryTableFields() { + return new CTQueryTableFields(); + } + + /** + * Create an instance of {@link CTPCDSCPage } + * + */ + public CTPCDSCPage createCTPCDSCPage() { + return new CTPCDSCPage(); + } + + /** + * Create an instance of {@link CTMetadataStringIndex } + * + */ + public CTMetadataStringIndex createCTMetadataStringIndex() { + return new CTMetadataStringIndex(); + } + + /** + * Create an instance of {@link CTOleLink } + * + */ + public CTOleLink createCTOleLink() { + return new CTOleLink(); + } + + /** + * Create an instance of {@link CTFontScheme } + * + */ + public CTFontScheme createCTFontScheme() { + return new CTFontScheme(); + } + + /** + * Create an instance of {@link CTSheetId } + * + */ + public CTSheetId createCTSheetId() { + return new CTSheetId(); + } + + /** + * Create an instance of {@link CTMdx } + * + */ + public CTMdx createCTMdx() { + return new CTMdx(); + } + + /** + * Create an instance of {@link CTHyperlink } + * + */ + public CTHyperlink createCTHyperlink() { + return new CTHyperlink(); + } + + /** + * Create an instance of {@link CTFunctionGroup } + * + */ + public CTFunctionGroup createCTFunctionGroup() { + return new CTFunctionGroup(); + } + + /** + * Create an instance of {@link CTFontFamily } + * + */ + public CTFontFamily createCTFontFamily() { + return new CTFontFamily(); + } + + /** + * Create an instance of {@link CTAuthors } + * + */ + public CTAuthors createCTAuthors() { + return new CTAuthors(); + } + + /** + * Create an instance of {@link CTServerFormats } + * + */ + public CTServerFormats createCTServerFormats() { + return new CTServerFormats(); + } + + /** + * Create an instance of {@link CTPivotDimension } + * + */ + public CTPivotDimension createCTPivotDimension() { + return new CTPivotDimension(); + } + + /** + * Create an instance of {@link CTFontSize } + * + */ + public CTFontSize createCTFontSize() { + return new CTFontSize(); + } + + /** + * Create an instance of {@link CTGroups } + * + */ + public CTGroups createCTGroups() { + return new CTGroups(); + } + + /** + * Create an instance of {@link CTScenario } + * + */ + public CTScenario createCTScenario() { + return new CTScenario(); + } + + /** + * Create an instance of {@link CTBorder } + * + */ + public CTBorder createCTBorder() { + return new CTBorder(); + } + + /** + * Create an instance of {@link CTDdeItem } + * + */ + public CTDdeItem createCTDdeItem() { + return new CTDdeItem(); + } + + /** + * Create an instance of {@link CTRevisionSheetRename } + * + */ + public CTRevisionSheetRename createCTRevisionSheetRename() { + return new CTRevisionSheetRename(); + } + + /** + * Create an instance of {@link CTExternalSheetDataSet } + * + */ + public CTExternalSheetDataSet createCTExternalSheetDataSet() { + return new CTExternalSheetDataSet(); + } + + /** + * Create an instance of {@link CTColItems } + * + */ + public CTColItems createCTColItems() { + return new CTColItems(); + } + + /** + * Create an instance of {@link CTChartsheetViews } + * + */ + public CTChartsheetViews createCTChartsheetViews() { + return new CTChartsheetViews(); + } + + /** + * Create an instance of {@link CTIgnoredErrors } + * + */ + public CTIgnoredErrors createCTIgnoredErrors() { + return new CTIgnoredErrors(); + } + + /** + * Create an instance of {@link BookViews } + * + */ + public BookViews createBookViews() { + return new BookViews(); + } + + /** + * Create an instance of {@link CTGroupMembers } + * + */ + public CTGroupMembers createCTGroupMembers() { + return new CTGroupMembers(); + } + + /** + * Create an instance of {@link CTFills } + * + */ + public CTFills createCTFills() { + return new CTFills(); + } + + /** + * Create an instance of {@link CTConnection } + * + */ + public CTConnection createCTConnection() { + return new CTConnection(); + } + + /** + * Create an instance of {@link CTRevisionFormatting } + * + */ + public CTRevisionFormatting createCTRevisionFormatting() { + return new CTRevisionFormatting(); + } + + /** + * Create an instance of {@link CTFilter } + * + */ + public CTFilter createCTFilter() { + return new CTFilter(); + } + + /** + * Create an instance of {@link CTSortCondition } + * + */ + public CTSortCondition createCTSortCondition() { + return new CTSortCondition(); + } + + /** + * Create an instance of {@link CTOlapPr } + * + */ + public CTOlapPr createCTOlapPr() { + return new CTOlapPr(); + } + + /** + * Create an instance of {@link CTSheetBackgroundPicture } + * + */ + public CTSheetBackgroundPicture createCTSheetBackgroundPicture() { + return new CTSheetBackgroundPicture(); + } + + /** + * Create an instance of {@link CTDateGroupItem } + * + */ + public CTDateGroupItem createCTDateGroupItem() { + return new CTDateGroupItem(); + } + + /** + * Create an instance of {@link CTFonts } + * + */ + public CTFonts createCTFonts() { + return new CTFonts(); + } + + /** + * Create an instance of {@link CTXmlCellPr } + * + */ + public CTXmlCellPr createCTXmlCellPr() { + return new CTXmlCellPr(); + } + + /** + * Create an instance of {@link Cell } + * + */ + public Cell createCell() { + return new Cell(); + } + + /** + * Create an instance of {@link CTControls } + * + */ + public CTControls createCTControls() { + return new CTControls(); + } + + /** + * Create an instance of {@link CTCalcPr } + * + */ + public CTCalcPr createCTCalcPr() { + return new CTCalcPr(); + } + + /** + * Create an instance of {@link CTGroupMember } + * + */ + public CTGroupMember createCTGroupMember() { + return new CTGroupMember(); + } + + /** + * Create an instance of {@link CTError } + * + */ + public CTError createCTError() { + return new CTError(); + } + + /** + * Create an instance of {@link CTScenarios } + * + */ + public CTScenarios createCTScenarios() { + return new CTScenarios(); + } + + /** + * Create an instance of {@link CTPivotField } + * + */ + public CTPivotField createCTPivotField() { + return new CTPivotField(); + } + + /** + * Create an instance of {@link CTCellFormula } + * + */ + public CTCellFormula createCTCellFormula() { + return new CTCellFormula(); + } + + /** + * Create an instance of {@link CTPivotArea } + * + */ + public CTPivotArea createCTPivotArea() { + return new CTPivotArea(); + } + + /** + * Create an instance of {@link CTCalculatedMembers } + * + */ + public CTCalculatedMembers createCTCalculatedMembers() { + return new CTCalculatedMembers(); + } + + /** + * Create an instance of {@link CTQueryCache } + * + */ + public CTQueryCache createCTQueryCache() { + return new CTQueryCache(); + } + + /** + * Create an instance of {@link CTSharedUser } + * + */ + public CTSharedUser createCTSharedUser() { + return new CTSharedUser(); + } + + /** + * Create an instance of {@link CTRevisionQueryTableField } + * + */ + public CTRevisionQueryTableField createCTRevisionQueryTableField() { + return new CTRevisionQueryTableField(); + } + + /** + * Create an instance of {@link CTSharedItems } + * + */ + public CTSharedItems createCTSharedItems() { + return new CTSharedItems(); + } + + /** + * Create an instance of {@link CTDataValidations } + * + */ + public CTDataValidations createCTDataValidations() { + return new CTDataValidations(); + } + + /** + * Create an instance of {@link CTHyperlinks } + * + */ + public CTHyperlinks createCTHyperlinks() { + return new CTHyperlinks(); + } + + /** + * Create an instance of {@link CTColHierarchiesUsage } + * + */ + public CTColHierarchiesUsage createCTColHierarchiesUsage() { + return new CTColHierarchiesUsage(); + } + + /** + * Create an instance of {@link CTCalculatedMember } + * + */ + public CTCalculatedMember createCTCalculatedMember() { + return new CTCalculatedMember(); + } + + /** + * Create an instance of {@link CTMdxTuple } + * + */ + public CTMdxTuple createCTMdxTuple() { + return new CTMdxTuple(); + } + + /** + * Create an instance of {@link CTPivotSelection } + * + */ + public CTPivotSelection createCTPivotSelection() { + return new CTPivotSelection(); + } + + /** + * Create an instance of {@link CTPivotFilters } + * + */ + public CTPivotFilters createCTPivotFilters() { + return new CTPivotFilters(); + } + + /** + * Create an instance of {@link CTSheetDimension } + * + */ + public CTSheetDimension createCTSheetDimension() { + return new CTSheetDimension(); + } + + /** + * Create an instance of {@link CTExternalSheetNames } + * + */ + public CTExternalSheetNames createCTExternalSheetNames() { + return new CTExternalSheetNames(); + } + + /** + * Create an instance of {@link CTMetadataBlocks } + * + */ + public CTMetadataBlocks createCTMetadataBlocks() { + return new CTMetadataBlocks(); + } + + /** + * Create an instance of {@link CTCalcCell } + * + */ + public CTCalcCell createCTCalcCell() { + return new CTCalcCell(); + } + + /** + * Create an instance of {@link SheetData } + * + */ + public SheetData createSheetData() { + return new SheetData(); + } + + /** + * Create an instance of {@link CTPageField } + * + */ + public CTPageField createCTPageField() { + return new CTPageField(); + } + + /** + * Create an instance of {@link DefinedNames } + * + */ + public DefinedNames createDefinedNames() { + return new DefinedNames(); + } + + /** + * Create an instance of {@link CTCalculatedItem } + * + */ + public CTCalculatedItem createCTCalculatedItem() { + return new CTCalculatedItem(); + } + + /** + * Create an instance of {@link CTIndex } + * + */ + public CTIndex createCTIndex() { + return new CTIndex(); + } + + /** + * Create an instance of {@link CTVolTopic } + * + */ + public CTVolTopic createCTVolTopic() { + return new CTVolTopic(); + } + + /** + * Create an instance of {@link CTComment } + * + */ + public CTComment createCTComment() { + return new CTComment(); + } + + /** + * Create an instance of {@link CTFilters } + * + */ + public CTFilters createCTFilters() { + return new CTFilters(); + } + + /** + * Create an instance of {@link CTPageBreak } + * + */ + public CTPageBreak createCTPageBreak() { + return new CTPageBreak(); + } + + /** + * Create an instance of {@link CTCellProtection } + * + */ + public CTCellProtection createCTCellProtection() { + return new CTCellProtection(); + } + + /** + * Create an instance of {@link CTColor } + * + */ + public CTColor createCTColor() { + return new CTColor(); + } + + /** + * Create an instance of {@link Sheets } + * + */ + public Sheets createSheets() { + return new Sheets(); + } + + /** + * Create an instance of {@link CTPivotAreas } + * + */ + public CTPivotAreas createCTPivotAreas() { + return new CTPivotAreas(); + } + + /** + * Create an instance of {@link CTFont } + * + */ + public CTFont createCTFont() { + return new CTFont(); + } + + /** + * Create an instance of {@link CTPCDSDTCEntries } + * + */ + public CTPCDSDTCEntries createCTPCDSDTCEntries() { + return new CTPCDSDTCEntries(); + } + + /** + * Create an instance of {@link CTVolType } + * + */ + public CTVolType createCTVolType() { + return new CTVolType(); + } + + /** + * Create an instance of {@link CTMissing } + * + */ + public CTMissing createCTMissing() { + return new CTMissing(); + } + + /** + * Create an instance of {@link CTRevisionDefinedName } + * + */ + public CTRevisionDefinedName createCTRevisionDefinedName() { + return new CTRevisionDefinedName(); + } + + /** + * Create an instance of {@link CTTableStyle } + * + */ + public CTTableStyle createCTTableStyle() { + return new CTTableStyle(); + } + + /** + * Create an instance of {@link CTQuery } + * + */ + public CTQuery createCTQuery() { + return new CTQuery(); + } + + /** + * Create an instance of {@link CTPhoneticRun } + * + */ + public CTPhoneticRun createCTPhoneticRun() { + return new CTPhoneticRun(); + } + + /** + * Create an instance of {@link CTChartFormats } + * + */ + public CTChartFormats createCTChartFormats() { + return new CTChartFormats(); + } + + /** + * Create an instance of {@link CTCellAlignment } + * + */ + public CTCellAlignment createCTCellAlignment() { + return new CTCellAlignment(); + } + + /** + * Create an instance of {@link CTPivotFields } + * + */ + public CTPivotFields createCTPivotFields() { + return new CTPivotFields(); + } + + /** + * Create an instance of {@link CTTables } + * + */ + public CTTables createCTTables() { + return new CTTables(); + } + + /** + * Create an instance of {@link CTDxf } + * + */ + public CTDxf createCTDxf() { + return new CTDxf(); + } + + /** + * Create an instance of {@link CTMetadataBlock } + * + */ + public CTMetadataBlock createCTMetadataBlock() { + return new CTMetadataBlock(); + } + + /** + * Create an instance of {@link CTFill } + * + */ + public CTFill createCTFill() { + return new CTFill(); + } + + /** + * Create an instance of {@link CTMergeCells } + * + */ + public CTMergeCells createCTMergeCells() { + return new CTMergeCells(); + } + + /** + * Create an instance of {@link CTCfvo } + * + */ + public CTCfvo createCTCfvo() { + return new CTCfvo(); + } + + /** + * Create an instance of {@link CTRangeSets } + * + */ + public CTRangeSets createCTRangeSets() { + return new CTRangeSets(); + } + + /** + * Create an instance of {@link CTCellSmartTag } + * + */ + public CTCellSmartTag createCTCellSmartTag() { + return new CTCellSmartTag(); + } + + /** + * Create an instance of {@link CTSchema } + * + */ + public CTSchema createCTSchema() { + return new CTSchema(); + } + + /** + * Create an instance of {@link CTTableColumns } + * + */ + public CTTableColumns createCTTableColumns() { + return new CTTableColumns(); + } + + /** + * Create an instance of {@link CTWebPublishing } + * + */ + public CTWebPublishing createCTWebPublishing() { + return new CTWebPublishing(); + } + + /** + * Create an instance of {@link CTIntProperty } + * + */ + public CTIntProperty createCTIntProperty() { + return new CTIntProperty(); + } + + /** + * Create an instance of {@link CTMetadataStrings } + * + */ + public CTMetadataStrings createCTMetadataStrings() { + return new CTMetadataStrings(); + } + + /** + * Create an instance of {@link CTNumFmt } + * + */ + public CTNumFmt createCTNumFmt() { + return new CTNumFmt(); + } + + /** + * Create an instance of {@link CTI } + * + */ + public CTI createCTI() { + return new CTI(); + } + + /** + * Create an instance of {@link CTCalculatedItems } + * + */ + public CTCalculatedItems createCTCalculatedItems() { + return new CTCalculatedItems(); + } + + /** + * Create an instance of {@link CTRowHierarchiesUsage } + * + */ + public CTRowHierarchiesUsage createCTRowHierarchiesUsage() { + return new CTRowHierarchiesUsage(); + } + + /** + * Create an instance of {@link CTDrawing } + * + */ + public CTDrawing createCTDrawing() { + return new CTDrawing(); + } + + /** + * Create an instance of {@link CTSelection } + * + */ + public CTSelection createCTSelection() { + return new CTSelection(); + } + + /** + * Create an instance of {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing createCTLegacyDrawing() { + return new CTLegacyDrawing(); + } + + /** + * Create an instance of {@link CTCommentList } + * + */ + public CTCommentList createCTCommentList() { + return new CTCommentList(); + } + + /** + * Create an instance of {@link CTControlPr } + * + */ + public CTControlPr createCTControlPr() { + return new CTControlPr(); + } + + /** + * Create an instance of {@link CTPane } + * + */ + public CTPane createCTPane() { + return new CTPane(); + } + + /** + * Create an instance of {@link CTRevisionComment } + * + */ + public CTRevisionComment createCTRevisionComment() { + return new CTRevisionComment(); + } + + /** + * Create an instance of {@link CTMember } + * + */ + public CTMember createCTMember() { + return new CTMember(); + } + + /** + * Create an instance of {@link CTMeasureDimensionMaps } + * + */ + public CTMeasureDimensionMaps createCTMeasureDimensionMaps() { + return new CTMeasureDimensionMaps(); + } + + /** + * Create an instance of {@link CTCellWatches } + * + */ + public CTCellWatches createCTCellWatches() { + return new CTCellWatches(); + } + + /** + * Create an instance of {@link CTFontName } + * + */ + public CTFontName createCTFontName() { + return new CTFontName(); + } + + /** + * Create an instance of {@link CTDbPr } + * + */ + public CTDbPr createCTDbPr() { + return new CTDbPr(); + } + + /** + * Create an instance of {@link CTVerticalAlignFontProperty } + * + */ + public CTVerticalAlignFontProperty createCTVerticalAlignFontProperty() { + return new CTVerticalAlignFontProperty(); + } + + /** + * Create an instance of {@link CTTableMissing } + * + */ + public CTTableMissing createCTTableMissing() { + return new CTTableMissing(); + } + + /** + * Create an instance of {@link CTOleObject } + * + */ + public CTOleObject createCTOleObject() { + return new CTOleObject(); + } + + /** + * Create an instance of {@link CTDefinedName } + * + */ + public CTDefinedName createCTDefinedName() { + return new CTDefinedName(); + } + + /** + * Create an instance of {@link CTDdeLink } + * + */ + public CTDdeLink createCTDdeLink() { + return new CTDdeLink(); + } + + /** + * Create an instance of {@link CTCellWatch } + * + */ + public CTCellWatch createCTCellWatch() { + return new CTCellWatch(); + } + + /** + * Create an instance of {@link CTRevisionCustomView } + * + */ + public CTRevisionCustomView createCTRevisionCustomView() { + return new CTRevisionCustomView(); + } + + /** + * Create an instance of {@link CTTop10 } + * + */ + public CTTop10 createCTTop10() { + return new CTTop10(); + } + + /** + * Create an instance of {@link CTSets } + * + */ + public CTSets createCTSets() { + return new CTSets(); + } + + /** + * Create an instance of {@link CTProtectedRange } + * + */ + public CTProtectedRange createCTProtectedRange() { + return new CTProtectedRange(); + } + + /** + * Create an instance of {@link Cols } + * + */ + public Cols createCols() { + return new Cols(); + } + + /** + * Create an instance of {@link Macrosheet } + * + */ + public Macrosheet createMacrosheet() { + return new Macrosheet(); + } + + /** + * Create an instance of {@link CTMemberProperties } + * + */ + public CTMemberProperties createCTMemberProperties() { + return new CTMemberProperties(); + } + + /** + * Create an instance of {@link CTRPrElt } + * + */ + public CTRPrElt createCTRPrElt() { + return new CTRPrElt(); + } + + /** + * Create an instance of {@link Col } + * + */ + public Col createCol() { + return new Col(); + } + + /** + * Create an instance of {@link CTConsolidation } + * + */ + public CTConsolidation createCTConsolidation() { + return new CTConsolidation(); + } + + /** + * Create an instance of {@link CTBorders } + * + */ + public CTBorders createCTBorders() { + return new CTBorders(); + } + + /** + * Create an instance of {@link CTSmartTagTypes } + * + */ + public CTSmartTagTypes createCTSmartTagTypes() { + return new CTSmartTagTypes(); + } + + /** + * Create an instance of {@link CTGradientFill } + * + */ + public CTGradientFill createCTGradientFill() { + return new CTGradientFill(); + } + + /** + * Create an instance of {@link CTRevisionInsertSheet } + * + */ + public CTRevisionInsertSheet createCTRevisionInsertSheet() { + return new CTRevisionInsertSheet(); + } + + /** + * Create an instance of {@link CTRgbColor } + * + */ + public CTRgbColor createCTRgbColor() { + return new CTRgbColor(); + } + + /** + * Create an instance of {@link CTExternalReferences } + * + */ + public CTExternalReferences createCTExternalReferences() { + return new CTExternalReferences(); + } + + /** + * Create an instance of {@link CTTextFields } + * + */ + public CTTextFields createCTTextFields() { + return new CTTextFields(); + } + + /** + * Create an instance of {@link CTRecord } + * + */ + public CTRecord createCTRecord() { + return new CTRecord(); + } + + /** + * Create an instance of {@link CTDataFields } + * + */ + public CTDataFields createCTDataFields() { + return new CTDataFields(); + } + + /** + * Create an instance of {@link CTPageSetUpPr } + * + */ + public CTPageSetUpPr createCTPageSetUpPr() { + return new CTPageSetUpPr(); + } + + /** + * Create an instance of {@link CTDataRef } + * + */ + public CTDataRef createCTDataRef() { + return new CTDataRef(); + } + + /** + * Create an instance of {@link CTTuple } + * + */ + public CTTuple createCTTuple() { + return new CTTuple(); + } + + /** + * Create an instance of {@link CTExternalSheetData } + * + */ + public CTExternalSheetData createCTExternalSheetData() { + return new CTExternalSheetData(); + } + + /** + * Create an instance of {@link CTPCDKPI } + * + */ + public CTPCDKPI createCTPCDKPI() { + return new CTPCDKPI(); + } + + /** + * Create an instance of {@link CTReviewedRevisions } + * + */ + public CTReviewedRevisions createCTReviewedRevisions() { + return new CTReviewedRevisions(); + } + + /** + * Create an instance of {@link CTTableParts } + * + */ + public CTTableParts createCTTableParts() { + return new CTTableParts(); + } + + /** + * Create an instance of {@link CTFormats } + * + */ + public CTFormats createCTFormats() { + return new CTFormats(); + } + + /** + * Create an instance of {@link CTUndoInfo } + * + */ + public CTUndoInfo createCTUndoInfo() { + return new CTUndoInfo(); + } + + /** + * Create an instance of {@link CTCacheSource } + * + */ + public CTCacheSource createCTCacheSource() { + return new CTCacheSource(); + } + + /** + * Create an instance of {@link CTMRUColors } + * + */ + public CTMRUColors createCTMRUColors() { + return new CTMRUColors(); + } + + /** + * Create an instance of {@link CTGroupLevel } + * + */ + public CTGroupLevel createCTGroupLevel() { + return new CTGroupLevel(); + } + + /** + * Create an instance of {@link CTRElt } + * + */ + public CTRElt createCTRElt() { + return new CTRElt(); + } + + /** + * Create an instance of {@link CTFunctionGroups } + * + */ + public CTFunctionGroups createCTFunctionGroups() { + return new CTFunctionGroups(); + } + + /** + * Create an instance of {@link CTGroupItems } + * + */ + public CTGroupItems createCTGroupItems() { + return new CTGroupItems(); + } + + /** + * Create an instance of {@link Sheet } + * + */ + public Sheet createSheet() { + return new Sheet(); + } + + /** + * Create an instance of {@link CTDxfs } + * + */ + public CTDxfs createCTDxfs() { + return new CTDxfs(); + } + + /** + * Create an instance of {@link CTRevisionCellChange } + * + */ + public CTRevisionCellChange createCTRevisionCellChange() { + return new CTRevisionCellChange(); + } + + /** + * Create an instance of {@link CTExternalRow } + * + */ + public CTExternalRow createCTExternalRow() { + return new CTExternalRow(); + } + + /** + * Create an instance of {@link CTDateTime } + * + */ + public CTDateTime createCTDateTime() { + return new CTDateTime(); + } + + /** + * Create an instance of {@link CTDataRefs } + * + */ + public CTDataRefs createCTDataRefs() { + return new CTDataRefs(); + } + + /** + * Create an instance of {@link CTDiscretePr } + * + */ + public CTDiscretePr createCTDiscretePr() { + return new CTDiscretePr(); + } + + /** + * Create an instance of {@link CTSmartTagType } + * + */ + public CTSmartTagType createCTSmartTagType() { + return new CTSmartTagType(); + } + + /** + * Create an instance of {@link CTSmartTagPr } + * + */ + public CTSmartTagPr createCTSmartTagPr() { + return new CTSmartTagPr(); + } + + /** + * Create an instance of {@link CTPivotHierarchies } + * + */ + public CTPivotHierarchies createCTPivotHierarchies() { + return new CTPivotHierarchies(); + } + + /** + * Create an instance of {@link SheetView } + * + */ + public SheetView createSheetView() { + return new SheetView(); + } + + /** + * Create an instance of {@link CTReviewed } + * + */ + public CTReviewed createCTReviewed() { + return new CTReviewed(); + } + + /** + * Create an instance of {@link CTXmlColumnPr } + * + */ + public CTXmlColumnPr createCTXmlColumnPr() { + return new CTXmlColumnPr(); + } + + /** + * Create an instance of {@link CTPivotCaches } + * + */ + public CTPivotCaches createCTPivotCaches() { + return new CTPivotCaches(); + } + + /** + * Create an instance of {@link CTCustomProperty } + * + */ + public CTCustomProperty createCTCustomProperty() { + return new CTCustomProperty(); + } + + /** + * Create an instance of {@link CTSet } + * + */ + public CTSet createCTSet() { + return new CTSet(); + } + + /** + * Create an instance of {@link CTWorksheetSource } + * + */ + public CTWorksheetSource createCTWorksheetSource() { + return new CTWorksheetSource(); + } + + /** + * Create an instance of {@link CTMeasureGroups } + * + */ + public CTMeasureGroups createCTMeasureGroups() { + return new CTMeasureGroups(); + } + + /** + * Create an instance of {@link CTGroupLevels } + * + */ + public CTGroupLevels createCTGroupLevels() { + return new CTGroupLevels(); + } + + /** + * Create an instance of {@link CTRevisionMove } + * + */ + public CTRevisionMove createCTRevisionMove() { + return new CTRevisionMove(); + } + + /** + * Create an instance of {@link CTTableStyleElement } + * + */ + public CTTableStyleElement createCTTableStyleElement() { + return new CTTableStyleElement(); + } + + /** + * Create an instance of {@link CTRowFields } + * + */ + public CTRowFields createCTRowFields() { + return new CTRowFields(); + } + + /** + * Create an instance of {@link CTWebPublishItem } + * + */ + public CTWebPublishItem createCTWebPublishItem() { + return new CTWebPublishItem(); + } + + /** + * Create an instance of {@link CTFormat } + * + */ + public CTFormat createCTFormat() { + return new CTFormat(); + } + + /** + * Create an instance of {@link CTDataField } + * + */ + public CTDataField createCTDataField() { + return new CTDataField(); + } + + /** + * Create an instance of {@link CTIconFilter } + * + */ + public CTIconFilter createCTIconFilter() { + return new CTIconFilter(); + } + + /** + * Create an instance of {@link CTSortState } + * + */ + public CTSortState createCTSortState() { + return new CTSortState(); + } + + /** + * Create an instance of {@link CTRangeSet } + * + */ + public CTRangeSet createCTRangeSet() { + return new CTRangeSet(); + } + + /** + * Create an instance of {@link CTRangePr } + * + */ + public CTRangePr createCTRangePr() { + return new CTRangePr(); + } + + /** + * Create an instance of {@link CTIgnoredError } + * + */ + public CTIgnoredError createCTIgnoredError() { + return new CTIgnoredError(); + } + + /** + * Create an instance of {@link CTMetadataTypes } + * + */ + public CTMetadataTypes createCTMetadataTypes() { + return new CTMetadataTypes(); + } + + /** + * Create an instance of {@link CTPCDKPIs } + * + */ + public CTPCDKPIs createCTPCDKPIs() { + return new CTPCDKPIs(); + } + + /** + * Create an instance of {@link CTString } + * + */ + public CTString createCTString() { + return new CTString(); + } + + /** + * Create an instance of {@link CTRowItems } + * + */ + public CTRowItems createCTRowItems() { + return new CTRowItems(); + } + + /** + * Create an instance of {@link CTSheetCalcPr } + * + */ + public CTSheetCalcPr createCTSheetCalcPr() { + return new CTSheetCalcPr(); + } + + /** + * Create an instance of {@link CTDataConsolidate } + * + */ + public CTDataConsolidate createCTDataConsolidate() { + return new CTDataConsolidate(); + } + + /** + * Create an instance of {@link CTExternalSheetName } + * + */ + public CTExternalSheetName createCTExternalSheetName() { + return new CTExternalSheetName(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTChartsheet }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "chartsheet") + public JAXBElement createChartsheet(CTChartsheet value) { + return new JAXBElement(_Chartsheet_QNAME, CTChartsheet.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTVolTypes }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "volTypes") + public JAXBElement createVolTypes(CTVolTypes value) { + return new JAXBElement(_VolTypes_QNAME, CTVolTypes.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTMapInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "MapInfo") + public JAXBElement createMapInfo(CTMapInfo value) { + return new JAXBElement(_MapInfo_QNAME, CTMapInfo.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTComments }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "comments") + public JAXBElement createComments(CTComments value) { + return new JAXBElement(_Comments_QNAME, CTComments.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTRevisions }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "revisions") + public JAXBElement createRevisions(CTRevisions value) { + return new JAXBElement(_Revisions_QNAME, CTRevisions.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTPivotCacheRecords }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "pivotCacheRecords") + public JAXBElement createPivotCacheRecords(CTPivotCacheRecords value) { + return new JAXBElement(_PivotCacheRecords_QNAME, CTPivotCacheRecords.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Dialogsheet }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "dialogsheet") + public JAXBElement createDialogsheet(Dialogsheet value) { + return new JAXBElement(_Dialogsheet_QNAME, Dialogsheet.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTPivotCacheDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "pivotCacheDefinition") + public JAXBElement createPivotCacheDefinition(CTPivotCacheDefinition value) { + return new JAXBElement(_PivotCacheDefinition_QNAME, CTPivotCacheDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTQueryTable }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "queryTable") + public JAXBElement createQueryTable(CTQueryTable value) { + return new JAXBElement(_QueryTable_QNAME, CTQueryTable.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTCalcChain }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "calcChain") + public JAXBElement createCalcChain(CTCalcChain value) { + return new JAXBElement(_CalcChain_QNAME, CTCalcChain.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTPivotTableDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "pivotTableDefinition") + public JAXBElement createPivotTableDefinition(CTPivotTableDefinition value) { + return new JAXBElement(_PivotTableDefinition_QNAME, CTPivotTableDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTConnections }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "connections") + public JAXBElement createConnections(CTConnections value) { + return new JAXBElement(_Connections_QNAME, CTConnections.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTMetadata }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "metadata") + public JAXBElement createMetadata(CTMetadata value) { + return new JAXBElement(_Metadata_QNAME, CTMetadata.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTSst }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "sst") + public JAXBElement createSst(CTSst value) { + return new JAXBElement(_Sst_QNAME, CTSst.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Workbook }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "workbook") + public JAXBElement createWorkbook(Workbook value) { + return new JAXBElement(_Workbook_QNAME, Workbook.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTUsers }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "users") + public JAXBElement createUsers(CTUsers value) { + return new JAXBElement(_Users_QNAME, CTUsers.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTRevisionHeaders }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "headers") + public JAXBElement createHeaders(CTRevisionHeaders value) { + return new JAXBElement(_Headers_QNAME, CTRevisionHeaders.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTExternalLink }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "externalLink") + public JAXBElement createExternalLink(CTExternalLink value) { + return new JAXBElement(_ExternalLink_QNAME, CTExternalLink.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTSingleXmlCells }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "singleXmlCells") + public JAXBElement createSingleXmlCells(CTSingleXmlCells value) { + return new JAXBElement(_SingleXmlCells_QNAME, CTSingleXmlCells.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTStylesheet }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "styleSheet") + public JAXBElement createStyleSheet(CTStylesheet value) { + return new JAXBElement(_StyleSheet_QNAME, CTStylesheet.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTTable }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "table") + public JAXBElement createTable(CTTable value) { + return new JAXBElement(_Table_QNAME, CTTable.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Worksheet }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "worksheet") + public JAXBElement createWorksheet(Worksheet value) { + return new JAXBElement(_Worksheet_QNAME, Worksheet.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "condense", scope = CTFont.class) + public JAXBElement createCTFontCondense(CTBooleanProperty value) { + return new JAXBElement(_CTFontCondense_QNAME, CTBooleanProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTFontSize }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "sz", scope = CTFont.class) + public JAXBElement createCTFontSz(CTFontSize value) { + return new JAXBElement(_CTFontSz_QNAME, CTFontSize.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "strike", scope = CTFont.class) + public JAXBElement createCTFontStrike(CTBooleanProperty value) { + return new JAXBElement(_CTFontStrike_QNAME, CTBooleanProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "u", scope = CTFont.class) + public JAXBElement createCTFontU(CTUnderlineProperty value) { + return new JAXBElement(_CTFontU_QNAME, CTUnderlineProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "vertAlign", scope = CTFont.class) + public JAXBElement createCTFontVertAlign(CTVerticalAlignFontProperty value) { + return new JAXBElement(_CTFontVertAlign_QNAME, CTVerticalAlignFontProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTFontName }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "name", scope = CTFont.class) + public JAXBElement createCTFontName(CTFontName value) { + return new JAXBElement(_CTFontName_QNAME, CTFontName.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTFontFamily }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "family", scope = CTFont.class) + public JAXBElement createCTFontFamily(CTFontFamily value) { + return new JAXBElement(_CTFontFamily_QNAME, CTFontFamily.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "shadow", scope = CTFont.class) + public JAXBElement createCTFontShadow(CTBooleanProperty value) { + return new JAXBElement(_CTFontShadow_QNAME, CTBooleanProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTColor }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "color", scope = CTFont.class) + public JAXBElement createCTFontColor(CTColor value) { + return new JAXBElement(_CTFontColor_QNAME, CTColor.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "scheme", scope = CTFont.class) + public JAXBElement createCTFontScheme(CTFontScheme value) { + return new JAXBElement(_CTFontScheme_QNAME, CTFontScheme.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "charset", scope = CTFont.class) + public JAXBElement createCTFontCharset(CTIntProperty value) { + return new JAXBElement(_CTFontCharset_QNAME, CTIntProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "i", scope = CTFont.class) + public JAXBElement createCTFontI(CTBooleanProperty value) { + return new JAXBElement(_CTFontI_QNAME, CTBooleanProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "outline", scope = CTFont.class) + public JAXBElement createCTFontOutline(CTBooleanProperty value) { + return new JAXBElement(_CTFontOutline_QNAME, CTBooleanProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "extend", scope = CTFont.class) + public JAXBElement createCTFontExtend(CTBooleanProperty value) { + return new JAXBElement(_CTFontExtend_QNAME, CTBooleanProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "b", scope = CTFont.class) + public JAXBElement createCTFontB(CTBooleanProperty value) { + return new JAXBElement(_CTFontB_QNAME, CTBooleanProperty.class, CTFont.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "condense", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltCondense(CTBooleanProperty value) { + return new JAXBElement(_CTFontCondense_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTFontSize }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "sz", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltSz(CTFontSize value) { + return new JAXBElement(_CTFontSz_QNAME, CTFontSize.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "strike", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltStrike(CTBooleanProperty value) { + return new JAXBElement(_CTFontStrike_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTUnderlineProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "u", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltU(CTUnderlineProperty value) { + return new JAXBElement(_CTFontU_QNAME, CTUnderlineProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTVerticalAlignFontProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "vertAlign", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltVertAlign(CTVerticalAlignFontProperty value) { + return new JAXBElement(_CTFontVertAlign_QNAME, CTVerticalAlignFontProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "family", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltFamily(CTIntProperty value) { + return new JAXBElement(_CTFontFamily_QNAME, CTIntProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "shadow", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltShadow(CTBooleanProperty value) { + return new JAXBElement(_CTFontShadow_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTColor }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "color", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltColor(CTColor value) { + return new JAXBElement(_CTFontColor_QNAME, CTColor.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTFontScheme }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "scheme", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltScheme(CTFontScheme value) { + return new JAXBElement(_CTFontScheme_QNAME, CTFontScheme.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTIntProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "charset", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltCharset(CTIntProperty value) { + return new JAXBElement(_CTFontCharset_QNAME, CTIntProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "i", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltI(CTBooleanProperty value) { + return new JAXBElement(_CTFontI_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "outline", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltOutline(CTBooleanProperty value) { + return new JAXBElement(_CTFontOutline_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "extend", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltExtend(CTBooleanProperty value) { + return new JAXBElement(_CTFontExtend_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTFontName }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "rFont", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltRFont(CTFontName value) { + return new JAXBElement(_CTRPrEltRFont_QNAME, CTFontName.class, CTRPrElt.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CTBooleanProperty }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", name = "b", scope = CTRPrElt.class) + public JAXBElement createCTRPrEltB(CTBooleanProperty value) { + return new JAXBElement(_CTFontB_QNAME, CTBooleanProperty.class, CTRPrElt.class, value); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Row.java b/src/xlsx4j/java/org/xlsx4j/sml/Row.java index 6da58ef7fe..ed036526d0 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Row.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Row.java @@ -1,484 +1,496 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Row complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Row">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cell" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="r" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="spans" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellSpans" />
- *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="customFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="ht" type="{http://www.w3.org/2001/XMLSchema}double" />
- *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="customHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="outlineLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
- *       <attribute name="collapsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="thickTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="thickBot" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Row", propOrder = { - "c", - "extLst" -}) -public class Row { - - protected List c; - protected CTExtensionList extLst; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long r; - @XmlAttribute - protected List spans; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long s; - @XmlAttribute - protected Boolean customFormat; - @XmlAttribute - protected Double ht; - @XmlAttribute - protected Boolean hidden; - @XmlAttribute - protected Boolean customHeight; - @XmlAttribute - @XmlSchemaType(name = "unsignedByte") - protected Short outlineLevel; - @XmlAttribute - protected Boolean collapsed; - @XmlAttribute - protected Boolean thickTop; - @XmlAttribute - protected Boolean thickBot; - @XmlAttribute - protected Boolean ph; - - /** - * Gets the value of the c property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the c property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getC().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Cell } - * - * - */ - public List getC() { - if (c == null) { - c = new ArrayList(); - } - return this.c; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the r property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getR() { - return r; - } - - /** - * Sets the value of the r property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setR(Long value) { - this.r = value; - } - - /** - * Gets the value of the spans property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the spans property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSpans().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - */ - public List getSpans() { - if (spans == null) { - spans = new ArrayList(); - } - return this.spans; - } - - /** - * Gets the value of the s property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getS() { - if (s == null) { - return 0L; - } else { - return s; - } - } - - /** - * Sets the value of the s property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setS(Long value) { - this.s = value; - } - - /** - * Gets the value of the customFormat property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCustomFormat() { - if (customFormat == null) { - return false; - } else { - return customFormat; - } - } - - /** - * Sets the value of the customFormat property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomFormat(Boolean value) { - this.customFormat = value; - } - - /** - * Gets the value of the ht property. - * - * @return - * possible object is - * {@link Double } - * - */ - public Double getHt() { - return ht; - } - - /** - * Sets the value of the ht property. - * - * @param value - * allowed object is - * {@link Double } - * - */ - public void setHt(Double value) { - this.ht = value; - } - - /** - * Gets the value of the hidden property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHidden() { - if (hidden == null) { - return false; - } else { - return hidden; - } - } - - /** - * Sets the value of the hidden property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidden(Boolean value) { - this.hidden = value; - } - - /** - * Gets the value of the customHeight property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCustomHeight() { - if (customHeight == null) { - return false; - } else { - return customHeight; - } - } - - /** - * Sets the value of the customHeight property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCustomHeight(Boolean value) { - this.customHeight = value; - } - - /** - * Gets the value of the outlineLevel property. - * - * @return - * possible object is - * {@link Short } - * - */ - public short getOutlineLevel() { - if (outlineLevel == null) { - return ((short) 0); - } else { - return outlineLevel; - } - } - - /** - * Sets the value of the outlineLevel property. - * - * @param value - * allowed object is - * {@link Short } - * - */ - public void setOutlineLevel(Short value) { - this.outlineLevel = value; - } - - /** - * Gets the value of the collapsed property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCollapsed() { - if (collapsed == null) { - return false; - } else { - return collapsed; - } - } - - /** - * Sets the value of the collapsed property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCollapsed(Boolean value) { - this.collapsed = value; - } - - /** - * Gets the value of the thickTop property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isThickTop() { - if (thickTop == null) { - return false; - } else { - return thickTop; - } - } - - /** - * Sets the value of the thickTop property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setThickTop(Boolean value) { - this.thickTop = value; - } - - /** - * Gets the value of the thickBot property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isThickBot() { - if (thickBot == null) { - return false; - } else { - return thickBot; - } - } - - /** - * Sets the value of the thickBot property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setThickBot(Boolean value) { - this.thickBot = value; - } - - /** - * Gets the value of the ph property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPh() { - if (ph == null) { - return false; - } else { - return ph; - } - } - - /** - * Sets the value of the ph property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPh(Boolean value) { - this.ph = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Row complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Row">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cell" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="r" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="spans" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellSpans" />
+ *       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="customFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="ht" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="customHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="outlineLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
+ *       <attribute name="collapsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="thickTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="thickBot" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Row", propOrder = { + "c", + "extLst" +}) +public class Row implements Child +{ + + protected List c; + protected CTExtensionList extLst; + @XmlAttribute(name = "r") + @XmlSchemaType(name = "unsignedInt") + protected Long r; + @XmlAttribute(name = "spans") + protected List spans; + @XmlAttribute(name = "s") + @XmlSchemaType(name = "unsignedInt") + protected Long s; + @XmlAttribute(name = "customFormat") + protected Boolean customFormat; + @XmlAttribute(name = "ht") + protected Double ht; + @XmlAttribute(name = "hidden") + protected Boolean hidden; + @XmlAttribute(name = "customHeight") + protected Boolean customHeight; + @XmlAttribute(name = "outlineLevel") + @XmlSchemaType(name = "unsignedByte") + protected Short outlineLevel; + @XmlAttribute(name = "collapsed") + protected Boolean collapsed; + @XmlAttribute(name = "thickTop") + protected Boolean thickTop; + @XmlAttribute(name = "thickBot") + protected Boolean thickBot; + @XmlAttribute(name = "ph") + protected Boolean ph; + @XmlTransient + private Object parent; + + /** + * Gets the value of the c property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the c property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getC().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Cell } + * + * + */ + public List getC() { + if (c == null) { + c = new ArrayList(); + } + return this.c; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the r property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getR() { + return r; + } + + /** + * Sets the value of the r property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setR(Long value) { + this.r = value; + } + + /** + * Gets the value of the spans property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the spans property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSpans().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSpans() { + if (spans == null) { + spans = new ArrayList(); + } + return this.spans; + } + + /** + * Gets the value of the s property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getS() { + if (s == null) { + return 0L; + } else { + return s; + } + } + + /** + * Sets the value of the s property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setS(Long value) { + this.s = value; + } + + /** + * Gets the value of the customFormat property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCustomFormat() { + if (customFormat == null) { + return false; + } else { + return customFormat; + } + } + + /** + * Sets the value of the customFormat property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomFormat(Boolean value) { + this.customFormat = value; + } + + /** + * Gets the value of the ht property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHt() { + return ht; + } + + /** + * Sets the value of the ht property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHt(Double value) { + this.ht = value; + } + + /** + * Gets the value of the hidden property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHidden() { + if (hidden == null) { + return false; + } else { + return hidden; + } + } + + /** + * Sets the value of the hidden property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidden(Boolean value) { + this.hidden = value; + } + + /** + * Gets the value of the customHeight property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCustomHeight() { + if (customHeight == null) { + return false; + } else { + return customHeight; + } + } + + /** + * Sets the value of the customHeight property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCustomHeight(Boolean value) { + this.customHeight = value; + } + + /** + * Gets the value of the outlineLevel property. + * + * @return + * possible object is + * {@link Short } + * + */ + public short getOutlineLevel() { + if (outlineLevel == null) { + return ((short) 0); + } else { + return outlineLevel; + } + } + + /** + * Sets the value of the outlineLevel property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setOutlineLevel(Short value) { + this.outlineLevel = value; + } + + /** + * Gets the value of the collapsed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCollapsed() { + if (collapsed == null) { + return false; + } else { + return collapsed; + } + } + + /** + * Sets the value of the collapsed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCollapsed(Boolean value) { + this.collapsed = value; + } + + /** + * Gets the value of the thickTop property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isThickTop() { + if (thickTop == null) { + return false; + } else { + return thickTop; + } + } + + /** + * Sets the value of the thickTop property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setThickTop(Boolean value) { + this.thickTop = value; + } + + /** + * Gets the value of the thickBot property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isThickBot() { + if (thickBot == null) { + return false; + } else { + return thickBot; + } + } + + /** + * Sets the value of the thickBot property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setThickBot(Boolean value) { + this.thickBot = value; + } + + /** + * Gets the value of the ph property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPh() { + if (ph == null) { + return false; + } else { + return ph; + } + } + + /** + * Sets the value of the ph property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPh(Boolean value) { + this.ph = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STAxis.java b/src/xlsx4j/java/org/xlsx4j/sml/STAxis.java index d43b4209ea..f9c223a931 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STAxis.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STAxis.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Axis. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Axis">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="axisRow"/>
- *     <enumeration value="axisCol"/>
- *     <enumeration value="axisPage"/>
- *     <enumeration value="axisValues"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Axis") -@XmlEnum -public enum STAxis { - - - /** - * Row Axis - * - */ - @XmlEnumValue("axisRow") - AXIS_ROW("axisRow"), - - /** - * Column Axis - * - */ - @XmlEnumValue("axisCol") - AXIS_COL("axisCol"), - - /** - * Include Count Filter - * - */ - @XmlEnumValue("axisPage") - AXIS_PAGE("axisPage"), - - /** - * Values Axis - * - */ - @XmlEnumValue("axisValues") - AXIS_VALUES("axisValues"); - private final String value; - - STAxis(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STAxis fromValue(String v) { - for (STAxis c: STAxis.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Axis. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Axis">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="axisRow"/>
+ *     <enumeration value="axisCol"/>
+ *     <enumeration value="axisPage"/>
+ *     <enumeration value="axisValues"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Axis") +@XmlEnum +public enum STAxis { + + @XmlEnumValue("axisRow") + AXIS_ROW("axisRow"), + @XmlEnumValue("axisCol") + AXIS_COL("axisCol"), + @XmlEnumValue("axisPage") + AXIS_PAGE("axisPage"), + @XmlEnumValue("axisValues") + AXIS_VALUES("axisValues"); + private final String value; + + STAxis(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STAxis fromValue(String v) { + for (STAxis c: STAxis.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STBorderStyle.java b/src/xlsx4j/java/org/xlsx4j/sml/STBorderStyle.java index fe80e6d1a3..0848fa5669 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STBorderStyle.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STBorderStyle.java @@ -1,177 +1,87 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_BorderStyle. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_BorderStyle">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="thin"/>
- *     <enumeration value="medium"/>
- *     <enumeration value="dashed"/>
- *     <enumeration value="dotted"/>
- *     <enumeration value="thick"/>
- *     <enumeration value="double"/>
- *     <enumeration value="hair"/>
- *     <enumeration value="mediumDashed"/>
- *     <enumeration value="dashDot"/>
- *     <enumeration value="mediumDashDot"/>
- *     <enumeration value="dashDotDot"/>
- *     <enumeration value="mediumDashDotDot"/>
- *     <enumeration value="slantDashDot"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_BorderStyle") -@XmlEnum -public enum STBorderStyle { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Thin Border - * - */ - @XmlEnumValue("thin") - THIN("thin"), - - /** - * Medium Border - * - */ - @XmlEnumValue("medium") - MEDIUM("medium"), - - /** - * Dashed - * - */ - @XmlEnumValue("dashed") - DASHED("dashed"), - - /** - * Dotted - * - */ - @XmlEnumValue("dotted") - DOTTED("dotted"), - - /** - * Thick Line Border - * - */ - @XmlEnumValue("thick") - THICK("thick"), - - /** - * Double Line - * - */ - @XmlEnumValue("double") - DOUBLE("double"), - - /** - * Hairline Border - * - */ - @XmlEnumValue("hair") - HAIR("hair"), - - /** - * Medium Dashed - * - */ - @XmlEnumValue("mediumDashed") - MEDIUM_DASHED("mediumDashed"), - - /** - * Dash Dot - * - */ - @XmlEnumValue("dashDot") - DASH_DOT("dashDot"), - - /** - * Medium Dash Dot - * - */ - @XmlEnumValue("mediumDashDot") - MEDIUM_DASH_DOT("mediumDashDot"), - - /** - * Dash Dot Dot - * - */ - @XmlEnumValue("dashDotDot") - DASH_DOT_DOT("dashDotDot"), - - /** - * Medium Dash Dot Dot - * - */ - @XmlEnumValue("mediumDashDotDot") - MEDIUM_DASH_DOT_DOT("mediumDashDotDot"), - - /** - * Slant Dash Dot - * - */ - @XmlEnumValue("slantDashDot") - SLANT_DASH_DOT("slantDashDot"); - private final String value; - - STBorderStyle(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STBorderStyle fromValue(String v) { - for (STBorderStyle c: STBorderStyle.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_BorderStyle. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_BorderStyle">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="thin"/>
+ *     <enumeration value="medium"/>
+ *     <enumeration value="dashed"/>
+ *     <enumeration value="dotted"/>
+ *     <enumeration value="thick"/>
+ *     <enumeration value="double"/>
+ *     <enumeration value="hair"/>
+ *     <enumeration value="mediumDashed"/>
+ *     <enumeration value="dashDot"/>
+ *     <enumeration value="mediumDashDot"/>
+ *     <enumeration value="dashDotDot"/>
+ *     <enumeration value="mediumDashDotDot"/>
+ *     <enumeration value="slantDashDot"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_BorderStyle") +@XmlEnum +public enum STBorderStyle { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("thin") + THIN("thin"), + @XmlEnumValue("medium") + MEDIUM("medium"), + @XmlEnumValue("dashed") + DASHED("dashed"), + @XmlEnumValue("dotted") + DOTTED("dotted"), + @XmlEnumValue("thick") + THICK("thick"), + @XmlEnumValue("double") + DOUBLE("double"), + @XmlEnumValue("hair") + HAIR("hair"), + @XmlEnumValue("mediumDashed") + MEDIUM_DASHED("mediumDashed"), + @XmlEnumValue("dashDot") + DASH_DOT("dashDot"), + @XmlEnumValue("mediumDashDot") + MEDIUM_DASH_DOT("mediumDashDot"), + @XmlEnumValue("dashDotDot") + DASH_DOT_DOT("dashDotDot"), + @XmlEnumValue("mediumDashDotDot") + MEDIUM_DASH_DOT_DOT("mediumDashDotDot"), + @XmlEnumValue("slantDashDot") + SLANT_DASH_DOT("slantDashDot"); + private final String value; + + STBorderStyle(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STBorderStyle fromValue(String v) { + for (STBorderStyle c: STBorderStyle.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCalcMode.java b/src/xlsx4j/java/org/xlsx4j/sml/STCalcMode.java index e655b2bdee..928731e271 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCalcMode.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STCalcMode.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CalcMode. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CalcMode">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="manual"/>
- *     <enumeration value="auto"/>
- *     <enumeration value="autoNoTable"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CalcMode") -@XmlEnum -public enum STCalcMode { - - - /** - * Manual Calculation Mode - * - */ - @XmlEnumValue("manual") - MANUAL("manual"), - - /** - * Automatic - * - */ - @XmlEnumValue("auto") - AUTO("auto"), - - /** - * Automatic Calculation (No Tables) - * - */ - @XmlEnumValue("autoNoTable") - AUTO_NO_TABLE("autoNoTable"); - private final String value; - - STCalcMode(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCalcMode fromValue(String v) { - for (STCalcMode c: STCalcMode.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_CalcMode. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_CalcMode">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="manual"/>
+ *     <enumeration value="auto"/>
+ *     <enumeration value="autoNoTable"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_CalcMode") +@XmlEnum +public enum STCalcMode { + + @XmlEnumValue("manual") + MANUAL("manual"), + @XmlEnumValue("auto") + AUTO("auto"), + @XmlEnumValue("autoNoTable") + AUTO_NO_TABLE("autoNoTable"); + private final String value; + + STCalcMode(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STCalcMode fromValue(String v) { + for (STCalcMode c: STCalcMode.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCalendarType.java b/src/xlsx4j/java/org/xlsx4j/sml/STCalendarType.java deleted file mode 100644 index 5b3bf8c225..0000000000 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCalendarType.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CalendarType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CalendarType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="gregorian"/>
- *     <enumeration value="gregorianUs"/>
- *     <enumeration value="japan"/>
- *     <enumeration value="taiwan"/>
- *     <enumeration value="korea"/>
- *     <enumeration value="hijri"/>
- *     <enumeration value="thai"/>
- *     <enumeration value="hebrew"/>
- *     <enumeration value="gregorianMeFrench"/>
- *     <enumeration value="gregorianArabic"/>
- *     <enumeration value="gregorianXlitEnglish"/>
- *     <enumeration value="gregorianXlitFrench"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CalendarType") -@XmlEnum -public enum STCalendarType { - - - /** - * No Calendar Type - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Gregorian - * - */ - @XmlEnumValue("gregorian") - GREGORIAN("gregorian"), - - /** - * Gregorian (U.S.) Calendar - * - */ - @XmlEnumValue("gregorianUs") - GREGORIAN_US("gregorianUs"), - - /** - * Japanese Emperor Era Calendar - * - */ - @XmlEnumValue("japan") - JAPAN("japan"), - - /** - * Taiwan Era Calendar - * - */ - @XmlEnumValue("taiwan") - TAIWAN("taiwan"), - - /** - * Korean Tangun Era Calendar - * - */ - @XmlEnumValue("korea") - KOREA("korea"), - - /** - * Hijri (Arabic Lunar) Calendar - * - */ - @XmlEnumValue("hijri") - HIJRI("hijri"), - - /** - * Thai Calendar - * - */ - @XmlEnumValue("thai") - THAI("thai"), - - /** - * Hebrew (Lunar) Calendar - * - */ - @XmlEnumValue("hebrew") - HEBREW("hebrew"), - - /** - * Gregorian Middle East French Calendar - * - */ - @XmlEnumValue("gregorianMeFrench") - GREGORIAN_ME_FRENCH("gregorianMeFrench"), - - /** - * Gregorian Arabic Calendar - * - */ - @XmlEnumValue("gregorianArabic") - GREGORIAN_ARABIC("gregorianArabic"), - - /** - * Gregorian Transliterated English Calendar - * - */ - @XmlEnumValue("gregorianXlitEnglish") - GREGORIAN_XLIT_ENGLISH("gregorianXlitEnglish"), - - /** - * Gregorian Transliterated French Calendar - * - */ - @XmlEnumValue("gregorianXlitFrench") - GREGORIAN_XLIT_FRENCH("gregorianXlitFrench"); - private final String value; - - STCalendarType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCalendarType fromValue(String v) { - for (STCalendarType c: STCalendarType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCellComments.java b/src/xlsx4j/java/org/xlsx4j/sml/STCellComments.java index aa88e6ae74..97df521dc6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCellComments.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STCellComments.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CellComments. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CellComments">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="asDisplayed"/>
- *     <enumeration value="atEnd"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CellComments") -@XmlEnum -public enum STCellComments { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Print Comments As Displayed - * - */ - @XmlEnumValue("asDisplayed") - AS_DISPLAYED("asDisplayed"), - - /** - * Print At End - * - */ - @XmlEnumValue("atEnd") - AT_END("atEnd"); - private final String value; - - STCellComments(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCellComments fromValue(String v) { - for (STCellComments c: STCellComments.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_CellComments. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_CellComments">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="asDisplayed"/>
+ *     <enumeration value="atEnd"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_CellComments") +@XmlEnum +public enum STCellComments { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("asDisplayed") + AS_DISPLAYED("asDisplayed"), + @XmlEnumValue("atEnd") + AT_END("atEnd"); + private final String value; + + STCellComments(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STCellComments fromValue(String v) { + for (STCellComments c: STCellComments.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCellFormulaType.java b/src/xlsx4j/java/org/xlsx4j/sml/STCellFormulaType.java index c291305483..38f6794b72 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCellFormulaType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STCellFormulaType.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CellFormulaType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CellFormulaType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="normal"/>
- *     <enumeration value="array"/>
- *     <enumeration value="dataTable"/>
- *     <enumeration value="shared"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CellFormulaType") -@XmlEnum -public enum STCellFormulaType { - - - /** - * Normal - * - */ - @XmlEnumValue("normal") - NORMAL("normal"), - - /** - * Array Entered - * - */ - @XmlEnumValue("array") - ARRAY("array"), - - /** - * Table Formula - * - */ - @XmlEnumValue("dataTable") - DATA_TABLE("dataTable"), - - /** - * Shared Formula - * - */ - @XmlEnumValue("shared") - SHARED("shared"); - private final String value; - - STCellFormulaType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCellFormulaType fromValue(String v) { - for (STCellFormulaType c: STCellFormulaType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_CellFormulaType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_CellFormulaType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="normal"/>
+ *     <enumeration value="array"/>
+ *     <enumeration value="dataTable"/>
+ *     <enumeration value="shared"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_CellFormulaType") +@XmlEnum +public enum STCellFormulaType { + + @XmlEnumValue("normal") + NORMAL("normal"), + @XmlEnumValue("array") + ARRAY("array"), + @XmlEnumValue("dataTable") + DATA_TABLE("dataTable"), + @XmlEnumValue("shared") + SHARED("shared"); + private final String value; + + STCellFormulaType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STCellFormulaType fromValue(String v) { + for (STCellFormulaType c: STCellFormulaType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCellType.java b/src/xlsx4j/java/org/xlsx4j/sml/STCellType.java index e6a7ea09c0..5a28547757 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCellType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STCellType.java @@ -1,113 +1,63 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CellType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CellType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="b"/>
- *     <enumeration value="n"/>
- *     <enumeration value="e"/>
- *     <enumeration value="s"/>
- *     <enumeration value="str"/>
- *     <enumeration value="inlineStr"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CellType") -@XmlEnum -public enum STCellType { - - - /** - * Boolean - * - */ - @XmlEnumValue("b") - B("b"), - - /** - * Number - * - */ - @XmlEnumValue("n") - N("n"), - - /** - * Error - * - */ - @XmlEnumValue("e") - E("e"), - - /** - * Shared String - * - */ - @XmlEnumValue("s") - S("s"), - - /** - * String - * - */ - @XmlEnumValue("str") - STR("str"), - - /** - * Inline String - * - */ - @XmlEnumValue("inlineStr") - INLINE_STR("inlineStr"); - private final String value; - - STCellType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCellType fromValue(String v) { - for (STCellType c: STCellType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_CellType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_CellType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="b"/>
+ *     <enumeration value="n"/>
+ *     <enumeration value="e"/>
+ *     <enumeration value="s"/>
+ *     <enumeration value="str"/>
+ *     <enumeration value="inlineStr"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_CellType") +@XmlEnum +public enum STCellType { + + @XmlEnumValue("b") + B("b"), + @XmlEnumValue("n") + N("n"), + @XmlEnumValue("e") + E("e"), + @XmlEnumValue("s") + S("s"), + @XmlEnumValue("str") + STR("str"), + @XmlEnumValue("inlineStr") + INLINE_STR("inlineStr"); + private final String value; + + STCellType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STCellType fromValue(String v) { + for (STCellType c: STCellType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCfType.java b/src/xlsx4j/java/org/xlsx4j/sml/STCfType.java index ec26037e2d..f12d677ce9 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCfType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STCfType.java @@ -1,209 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CfType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CfType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="expression"/>
- *     <enumeration value="cellIs"/>
- *     <enumeration value="colorScale"/>
- *     <enumeration value="dataBar"/>
- *     <enumeration value="iconSet"/>
- *     <enumeration value="top10"/>
- *     <enumeration value="uniqueValues"/>
- *     <enumeration value="duplicateValues"/>
- *     <enumeration value="containsText"/>
- *     <enumeration value="notContainsText"/>
- *     <enumeration value="beginsWith"/>
- *     <enumeration value="endsWith"/>
- *     <enumeration value="containsBlanks"/>
- *     <enumeration value="notContainsBlanks"/>
- *     <enumeration value="containsErrors"/>
- *     <enumeration value="notContainsErrors"/>
- *     <enumeration value="timePeriod"/>
- *     <enumeration value="aboveAverage"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CfType") -@XmlEnum -public enum STCfType { - - - /** - * Expression - * - */ - @XmlEnumValue("expression") - EXPRESSION("expression"), - - /** - * Cell Is - * - */ - @XmlEnumValue("cellIs") - CELL_IS("cellIs"), - - /** - * Color Scale - * - */ - @XmlEnumValue("colorScale") - COLOR_SCALE("colorScale"), - - /** - * Data Bar - * - */ - @XmlEnumValue("dataBar") - DATA_BAR("dataBar"), - - /** - * Icon Set - * - */ - @XmlEnumValue("iconSet") - ICON_SET("iconSet"), - - /** - * Top 10 - * - */ - @XmlEnumValue("top10") - TOP_10("top10"), - - /** - * Unique Values - * - */ - @XmlEnumValue("uniqueValues") - UNIQUE_VALUES("uniqueValues"), - - /** - * Duplicate Values - * - */ - @XmlEnumValue("duplicateValues") - DUPLICATE_VALUES("duplicateValues"), - - /** - * Contains Text - * - */ - @XmlEnumValue("containsText") - CONTAINS_TEXT("containsText"), - - /** - * Does Not Contain Text - * - */ - @XmlEnumValue("notContainsText") - NOT_CONTAINS_TEXT("notContainsText"), - - /** - * Begins With - * - */ - @XmlEnumValue("beginsWith") - BEGINS_WITH("beginsWith"), - - /** - * Ends With - * - */ - @XmlEnumValue("endsWith") - ENDS_WITH("endsWith"), - - /** - * Contains Blanks - * - */ - @XmlEnumValue("containsBlanks") - CONTAINS_BLANKS("containsBlanks"), - - /** - * Contains No Blanks - * - */ - @XmlEnumValue("notContainsBlanks") - NOT_CONTAINS_BLANKS("notContainsBlanks"), - - /** - * Contains Errors - * - */ - @XmlEnumValue("containsErrors") - CONTAINS_ERRORS("containsErrors"), - - /** - * Contains No Errors - * - */ - @XmlEnumValue("notContainsErrors") - NOT_CONTAINS_ERRORS("notContainsErrors"), - - /** - * Time Period - * - */ - @XmlEnumValue("timePeriod") - TIME_PERIOD("timePeriod"), - - /** - * Above or Below Average - * - */ - @XmlEnumValue("aboveAverage") - ABOVE_AVERAGE("aboveAverage"); - private final String value; - - STCfType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCfType fromValue(String v) { - for (STCfType c: STCfType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_CfType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_CfType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="expression"/>
+ *     <enumeration value="cellIs"/>
+ *     <enumeration value="colorScale"/>
+ *     <enumeration value="dataBar"/>
+ *     <enumeration value="iconSet"/>
+ *     <enumeration value="top10"/>
+ *     <enumeration value="uniqueValues"/>
+ *     <enumeration value="duplicateValues"/>
+ *     <enumeration value="containsText"/>
+ *     <enumeration value="notContainsText"/>
+ *     <enumeration value="beginsWith"/>
+ *     <enumeration value="endsWith"/>
+ *     <enumeration value="containsBlanks"/>
+ *     <enumeration value="notContainsBlanks"/>
+ *     <enumeration value="containsErrors"/>
+ *     <enumeration value="notContainsErrors"/>
+ *     <enumeration value="timePeriod"/>
+ *     <enumeration value="aboveAverage"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_CfType") +@XmlEnum +public enum STCfType { + + @XmlEnumValue("expression") + EXPRESSION("expression"), + @XmlEnumValue("cellIs") + CELL_IS("cellIs"), + @XmlEnumValue("colorScale") + COLOR_SCALE("colorScale"), + @XmlEnumValue("dataBar") + DATA_BAR("dataBar"), + @XmlEnumValue("iconSet") + ICON_SET("iconSet"), + @XmlEnumValue("top10") + TOP_10("top10"), + @XmlEnumValue("uniqueValues") + UNIQUE_VALUES("uniqueValues"), + @XmlEnumValue("duplicateValues") + DUPLICATE_VALUES("duplicateValues"), + @XmlEnumValue("containsText") + CONTAINS_TEXT("containsText"), + @XmlEnumValue("notContainsText") + NOT_CONTAINS_TEXT("notContainsText"), + @XmlEnumValue("beginsWith") + BEGINS_WITH("beginsWith"), + @XmlEnumValue("endsWith") + ENDS_WITH("endsWith"), + @XmlEnumValue("containsBlanks") + CONTAINS_BLANKS("containsBlanks"), + @XmlEnumValue("notContainsBlanks") + NOT_CONTAINS_BLANKS("notContainsBlanks"), + @XmlEnumValue("containsErrors") + CONTAINS_ERRORS("containsErrors"), + @XmlEnumValue("notContainsErrors") + NOT_CONTAINS_ERRORS("notContainsErrors"), + @XmlEnumValue("timePeriod") + TIME_PERIOD("timePeriod"), + @XmlEnumValue("aboveAverage") + ABOVE_AVERAGE("aboveAverage"); + private final String value; + + STCfType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STCfType fromValue(String v) { + for (STCfType c: STCfType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCfvoType.java b/src/xlsx4j/java/org/xlsx4j/sml/STCfvoType.java index 8ef58eea70..6dfa3599a8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCfvoType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STCfvoType.java @@ -1,113 +1,63 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CfvoType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CfvoType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="num"/>
- *     <enumeration value="percent"/>
- *     <enumeration value="max"/>
- *     <enumeration value="min"/>
- *     <enumeration value="formula"/>
- *     <enumeration value="percentile"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CfvoType") -@XmlEnum -public enum STCfvoType { - - - /** - * Number - * - */ - @XmlEnumValue("num") - NUM("num"), - - /** - * Percent - * - */ - @XmlEnumValue("percent") - PERCENT("percent"), - - /** - * Maximum - * - */ - @XmlEnumValue("max") - MAX("max"), - - /** - * Minimum - * - */ - @XmlEnumValue("min") - MIN("min"), - - /** - * Formula - * - */ - @XmlEnumValue("formula") - FORMULA("formula"), - - /** - * Percentile - * - */ - @XmlEnumValue("percentile") - PERCENTILE("percentile"); - private final String value; - - STCfvoType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCfvoType fromValue(String v) { - for (STCfvoType c: STCfvoType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_CfvoType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_CfvoType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="num"/>
+ *     <enumeration value="percent"/>
+ *     <enumeration value="max"/>
+ *     <enumeration value="min"/>
+ *     <enumeration value="formula"/>
+ *     <enumeration value="percentile"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_CfvoType") +@XmlEnum +public enum STCfvoType { + + @XmlEnumValue("num") + NUM("num"), + @XmlEnumValue("percent") + PERCENT("percent"), + @XmlEnumValue("max") + MAX("max"), + @XmlEnumValue("min") + MIN("min"), + @XmlEnumValue("formula") + FORMULA("formula"), + @XmlEnumValue("percentile") + PERCENTILE("percentile"); + private final String value; + + STCfvoType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STCfvoType fromValue(String v) { + for (STCfvoType c: STCfvoType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STComments.java b/src/xlsx4j/java/org/xlsx4j/sml/STComments.java index 11866a39fe..eccca196c1 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STComments.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STComments.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Comments. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Comments">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="commNone"/>
- *     <enumeration value="commIndicator"/>
- *     <enumeration value="commIndAndComment"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Comments") -@XmlEnum -public enum STComments { - - - /** - * No Comments - * - */ - @XmlEnumValue("commNone") - COMM_NONE("commNone"), - - /** - * Show Comment Indicator - * - */ - @XmlEnumValue("commIndicator") - COMM_INDICATOR("commIndicator"), - - /** - * Show Comment & Indicator - * - */ - @XmlEnumValue("commIndAndComment") - COMM_IND_AND_COMMENT("commIndAndComment"); - private final String value; - - STComments(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STComments fromValue(String v) { - for (STComments c: STComments.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Comments. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Comments">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="commNone"/>
+ *     <enumeration value="commIndicator"/>
+ *     <enumeration value="commIndAndComment"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Comments") +@XmlEnum +public enum STComments { + + @XmlEnumValue("commNone") + COMM_NONE("commNone"), + @XmlEnumValue("commIndicator") + COMM_INDICATOR("commIndicator"), + @XmlEnumValue("commIndAndComment") + COMM_IND_AND_COMMENT("commIndAndComment"); + private final String value; + + STComments(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STComments fromValue(String v) { + for (STComments c: STComments.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STConditionalFormattingOperator.java b/src/xlsx4j/java/org/xlsx4j/sml/STConditionalFormattingOperator.java index 745da58341..91e15899e4 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STConditionalFormattingOperator.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STConditionalFormattingOperator.java @@ -1,161 +1,81 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_ConditionalFormattingOperator. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_ConditionalFormattingOperator">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="lessThan"/>
- *     <enumeration value="lessThanOrEqual"/>
- *     <enumeration value="equal"/>
- *     <enumeration value="notEqual"/>
- *     <enumeration value="greaterThanOrEqual"/>
- *     <enumeration value="greaterThan"/>
- *     <enumeration value="between"/>
- *     <enumeration value="notBetween"/>
- *     <enumeration value="containsText"/>
- *     <enumeration value="notContains"/>
- *     <enumeration value="beginsWith"/>
- *     <enumeration value="endsWith"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_ConditionalFormattingOperator") -@XmlEnum -public enum STConditionalFormattingOperator { - - - /** - * Less Than - * - */ - @XmlEnumValue("lessThan") - LESS_THAN("lessThan"), - - /** - * Less Than Or Equal - * - */ - @XmlEnumValue("lessThanOrEqual") - LESS_THAN_OR_EQUAL("lessThanOrEqual"), - - /** - * Equal - * - */ - @XmlEnumValue("equal") - EQUAL("equal"), - - /** - * Not Equal - * - */ - @XmlEnumValue("notEqual") - NOT_EQUAL("notEqual"), - - /** - * Greater Than Or Equal - * - */ - @XmlEnumValue("greaterThanOrEqual") - GREATER_THAN_OR_EQUAL("greaterThanOrEqual"), - - /** - * Greater Than - * - */ - @XmlEnumValue("greaterThan") - GREATER_THAN("greaterThan"), - - /** - * Between - * - */ - @XmlEnumValue("between") - BETWEEN("between"), - - /** - * Not Between - * - */ - @XmlEnumValue("notBetween") - NOT_BETWEEN("notBetween"), - - /** - * Contains - * - */ - @XmlEnumValue("containsText") - CONTAINS_TEXT("containsText"), - - /** - * Does Not Contain - * - */ - @XmlEnumValue("notContains") - NOT_CONTAINS("notContains"), - - /** - * Begins With - * - */ - @XmlEnumValue("beginsWith") - BEGINS_WITH("beginsWith"), - - /** - * Ends With - * - */ - @XmlEnumValue("endsWith") - ENDS_WITH("endsWith"); - private final String value; - - STConditionalFormattingOperator(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STConditionalFormattingOperator fromValue(String v) { - for (STConditionalFormattingOperator c: STConditionalFormattingOperator.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_ConditionalFormattingOperator. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_ConditionalFormattingOperator">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="lessThan"/>
+ *     <enumeration value="lessThanOrEqual"/>
+ *     <enumeration value="equal"/>
+ *     <enumeration value="notEqual"/>
+ *     <enumeration value="greaterThanOrEqual"/>
+ *     <enumeration value="greaterThan"/>
+ *     <enumeration value="between"/>
+ *     <enumeration value="notBetween"/>
+ *     <enumeration value="containsText"/>
+ *     <enumeration value="notContains"/>
+ *     <enumeration value="beginsWith"/>
+ *     <enumeration value="endsWith"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_ConditionalFormattingOperator") +@XmlEnum +public enum STConditionalFormattingOperator { + + @XmlEnumValue("lessThan") + LESS_THAN("lessThan"), + @XmlEnumValue("lessThanOrEqual") + LESS_THAN_OR_EQUAL("lessThanOrEqual"), + @XmlEnumValue("equal") + EQUAL("equal"), + @XmlEnumValue("notEqual") + NOT_EQUAL("notEqual"), + @XmlEnumValue("greaterThanOrEqual") + GREATER_THAN_OR_EQUAL("greaterThanOrEqual"), + @XmlEnumValue("greaterThan") + GREATER_THAN("greaterThan"), + @XmlEnumValue("between") + BETWEEN("between"), + @XmlEnumValue("notBetween") + NOT_BETWEEN("notBetween"), + @XmlEnumValue("containsText") + CONTAINS_TEXT("containsText"), + @XmlEnumValue("notContains") + NOT_CONTAINS("notContains"), + @XmlEnumValue("beginsWith") + BEGINS_WITH("beginsWith"), + @XmlEnumValue("endsWith") + ENDS_WITH("endsWith"); + private final String value; + + STConditionalFormattingOperator(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STConditionalFormattingOperator fromValue(String v) { + for (STConditionalFormattingOperator c: STConditionalFormattingOperator.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STCredMethod.java b/src/xlsx4j/java/org/xlsx4j/sml/STCredMethod.java index e9da83c147..606e66428c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STCredMethod.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STCredMethod.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_CredMethod. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_CredMethod">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="integrated"/>
- *     <enumeration value="none"/>
- *     <enumeration value="stored"/>
- *     <enumeration value="prompt"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_CredMethod") -@XmlEnum -public enum STCredMethod { - - - /** - * Integrated Authentication - * - */ - @XmlEnumValue("integrated") - INTEGRATED("integrated"), - - /** - * No Credentials - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Stored Credentials - * - */ - @XmlEnumValue("stored") - STORED("stored"), - - /** - * Prompt Credentials - * - */ - @XmlEnumValue("prompt") - PROMPT("prompt"); - private final String value; - - STCredMethod(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STCredMethod fromValue(String v) { - for (STCredMethod c: STCredMethod.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_CredMethod. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_CredMethod">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="integrated"/>
+ *     <enumeration value="none"/>
+ *     <enumeration value="stored"/>
+ *     <enumeration value="prompt"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_CredMethod") +@XmlEnum +public enum STCredMethod { + + @XmlEnumValue("integrated") + INTEGRATED("integrated"), + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("stored") + STORED("stored"), + @XmlEnumValue("prompt") + PROMPT("prompt"); + private final String value; + + STCredMethod(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STCredMethod fromValue(String v) { + for (STCredMethod c: STCredMethod.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDataConsolidateFunction.java b/src/xlsx4j/java/org/xlsx4j/sml/STDataConsolidateFunction.java index aa6f41244d..3e07ef9b03 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDataConsolidateFunction.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDataConsolidateFunction.java @@ -1,153 +1,78 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DataConsolidateFunction. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DataConsolidateFunction">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="average"/>
- *     <enumeration value="count"/>
- *     <enumeration value="countNums"/>
- *     <enumeration value="max"/>
- *     <enumeration value="min"/>
- *     <enumeration value="product"/>
- *     <enumeration value="stdDev"/>
- *     <enumeration value="stdDevp"/>
- *     <enumeration value="sum"/>
- *     <enumeration value="var"/>
- *     <enumeration value="varp"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DataConsolidateFunction") -@XmlEnum -public enum STDataConsolidateFunction { - - - /** - * Average - * - */ - @XmlEnumValue("average") - AVERAGE("average"), - - /** - * Count - * - */ - @XmlEnumValue("count") - COUNT("count"), - - /** - * CountNums - * - */ - @XmlEnumValue("countNums") - COUNT_NUMS("countNums"), - - /** - * Maximum - * - */ - @XmlEnumValue("max") - MAX("max"), - - /** - * Minimum - * - */ - @XmlEnumValue("min") - MIN("min"), - - /** - * Product - * - */ - @XmlEnumValue("product") - PRODUCT("product"), - - /** - * StdDev - * - */ - @XmlEnumValue("stdDev") - STD_DEV("stdDev"), - - /** - * StdDevP - * - */ - @XmlEnumValue("stdDevp") - STD_DEVP("stdDevp"), - - /** - * Sum - * - */ - @XmlEnumValue("sum") - SUM("sum"), - - /** - * Variance - * - */ - @XmlEnumValue("var") - VAR("var"), - - /** - * VarP - * - */ - @XmlEnumValue("varp") - VARP("varp"); - private final String value; - - STDataConsolidateFunction(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDataConsolidateFunction fromValue(String v) { - for (STDataConsolidateFunction c: STDataConsolidateFunction.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DataConsolidateFunction. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DataConsolidateFunction">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="average"/>
+ *     <enumeration value="count"/>
+ *     <enumeration value="countNums"/>
+ *     <enumeration value="max"/>
+ *     <enumeration value="min"/>
+ *     <enumeration value="product"/>
+ *     <enumeration value="stdDev"/>
+ *     <enumeration value="stdDevp"/>
+ *     <enumeration value="sum"/>
+ *     <enumeration value="var"/>
+ *     <enumeration value="varp"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DataConsolidateFunction") +@XmlEnum +public enum STDataConsolidateFunction { + + @XmlEnumValue("average") + AVERAGE("average"), + @XmlEnumValue("count") + COUNT("count"), + @XmlEnumValue("countNums") + COUNT_NUMS("countNums"), + @XmlEnumValue("max") + MAX("max"), + @XmlEnumValue("min") + MIN("min"), + @XmlEnumValue("product") + PRODUCT("product"), + @XmlEnumValue("stdDev") + STD_DEV("stdDev"), + @XmlEnumValue("stdDevp") + STD_DEVP("stdDevp"), + @XmlEnumValue("sum") + SUM("sum"), + @XmlEnumValue("var") + VAR("var"), + @XmlEnumValue("varp") + VARP("varp"); + private final String value; + + STDataConsolidateFunction(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDataConsolidateFunction fromValue(String v) { + for (STDataConsolidateFunction c: STDataConsolidateFunction.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationErrorStyle.java b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationErrorStyle.java index fe0da34067..e56d2a9048 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationErrorStyle.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationErrorStyle.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DataValidationErrorStyle. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DataValidationErrorStyle">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="stop"/>
- *     <enumeration value="warning"/>
- *     <enumeration value="information"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DataValidationErrorStyle") -@XmlEnum -public enum STDataValidationErrorStyle { - - - /** - * Stop Icon - * - */ - @XmlEnumValue("stop") - STOP("stop"), - - /** - * Warning Icon - * - */ - @XmlEnumValue("warning") - WARNING("warning"), - - /** - * Information Icon - * - */ - @XmlEnumValue("information") - INFORMATION("information"); - private final String value; - - STDataValidationErrorStyle(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDataValidationErrorStyle fromValue(String v) { - for (STDataValidationErrorStyle c: STDataValidationErrorStyle.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DataValidationErrorStyle. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DataValidationErrorStyle">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="stop"/>
+ *     <enumeration value="warning"/>
+ *     <enumeration value="information"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DataValidationErrorStyle") +@XmlEnum +public enum STDataValidationErrorStyle { + + @XmlEnumValue("stop") + STOP("stop"), + @XmlEnumValue("warning") + WARNING("warning"), + @XmlEnumValue("information") + INFORMATION("information"); + private final String value; + + STDataValidationErrorStyle(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDataValidationErrorStyle fromValue(String v) { + for (STDataValidationErrorStyle c: STDataValidationErrorStyle.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationImeMode.java b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationImeMode.java index 88641b219f..956086f0d6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationImeMode.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationImeMode.java @@ -1,153 +1,78 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DataValidationImeMode. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DataValidationImeMode">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="noControl"/>
- *     <enumeration value="off"/>
- *     <enumeration value="on"/>
- *     <enumeration value="disabled"/>
- *     <enumeration value="hiragana"/>
- *     <enumeration value="fullKatakana"/>
- *     <enumeration value="halfKatakana"/>
- *     <enumeration value="fullAlpha"/>
- *     <enumeration value="halfAlpha"/>
- *     <enumeration value="fullHangul"/>
- *     <enumeration value="halfHangul"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DataValidationImeMode") -@XmlEnum -public enum STDataValidationImeMode { - - - /** - * IME Mode Not Controlled - * - */ - @XmlEnumValue("noControl") - NO_CONTROL("noControl"), - - /** - * IME Off - * - */ - @XmlEnumValue("off") - OFF("off"), - - /** - * IME On - * - */ - @XmlEnumValue("on") - ON("on"), - - /** - * Disabled IME Mode - * - */ - @XmlEnumValue("disabled") - DISABLED("disabled"), - - /** - * Hiragana IME Mode - * - */ - @XmlEnumValue("hiragana") - HIRAGANA("hiragana"), - - /** - * Full Katakana IME Mode - * - */ - @XmlEnumValue("fullKatakana") - FULL_KATAKANA("fullKatakana"), - - /** - * Half-Width Katakana - * - */ - @XmlEnumValue("halfKatakana") - HALF_KATAKANA("halfKatakana"), - - /** - * Full-Width Alpha-Numeric IME Mode - * - */ - @XmlEnumValue("fullAlpha") - FULL_ALPHA("fullAlpha"), - - /** - * Half Alpha IME - * - */ - @XmlEnumValue("halfAlpha") - HALF_ALPHA("halfAlpha"), - - /** - * Full Width Hangul - * - */ - @XmlEnumValue("fullHangul") - FULL_HANGUL("fullHangul"), - - /** - * Half-Width Hangul IME Mode - * - */ - @XmlEnumValue("halfHangul") - HALF_HANGUL("halfHangul"); - private final String value; - - STDataValidationImeMode(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDataValidationImeMode fromValue(String v) { - for (STDataValidationImeMode c: STDataValidationImeMode.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DataValidationImeMode. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DataValidationImeMode">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="noControl"/>
+ *     <enumeration value="off"/>
+ *     <enumeration value="on"/>
+ *     <enumeration value="disabled"/>
+ *     <enumeration value="hiragana"/>
+ *     <enumeration value="fullKatakana"/>
+ *     <enumeration value="halfKatakana"/>
+ *     <enumeration value="fullAlpha"/>
+ *     <enumeration value="halfAlpha"/>
+ *     <enumeration value="fullHangul"/>
+ *     <enumeration value="halfHangul"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DataValidationImeMode") +@XmlEnum +public enum STDataValidationImeMode { + + @XmlEnumValue("noControl") + NO_CONTROL("noControl"), + @XmlEnumValue("off") + OFF("off"), + @XmlEnumValue("on") + ON("on"), + @XmlEnumValue("disabled") + DISABLED("disabled"), + @XmlEnumValue("hiragana") + HIRAGANA("hiragana"), + @XmlEnumValue("fullKatakana") + FULL_KATAKANA("fullKatakana"), + @XmlEnumValue("halfKatakana") + HALF_KATAKANA("halfKatakana"), + @XmlEnumValue("fullAlpha") + FULL_ALPHA("fullAlpha"), + @XmlEnumValue("halfAlpha") + HALF_ALPHA("halfAlpha"), + @XmlEnumValue("fullHangul") + FULL_HANGUL("fullHangul"), + @XmlEnumValue("halfHangul") + HALF_HANGUL("halfHangul"); + private final String value; + + STDataValidationImeMode(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDataValidationImeMode fromValue(String v) { + for (STDataValidationImeMode c: STDataValidationImeMode.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationOperator.java b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationOperator.java index bbaaf04e78..3c12e427a1 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationOperator.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationOperator.java @@ -1,129 +1,69 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DataValidationOperator. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DataValidationOperator">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="between"/>
- *     <enumeration value="notBetween"/>
- *     <enumeration value="equal"/>
- *     <enumeration value="notEqual"/>
- *     <enumeration value="lessThan"/>
- *     <enumeration value="lessThanOrEqual"/>
- *     <enumeration value="greaterThan"/>
- *     <enumeration value="greaterThanOrEqual"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DataValidationOperator") -@XmlEnum -public enum STDataValidationOperator { - - - /** - * Between - * - */ - @XmlEnumValue("between") - BETWEEN("between"), - - /** - * Not Between - * - */ - @XmlEnumValue("notBetween") - NOT_BETWEEN("notBetween"), - - /** - * Equal - * - */ - @XmlEnumValue("equal") - EQUAL("equal"), - - /** - * Not Equal - * - */ - @XmlEnumValue("notEqual") - NOT_EQUAL("notEqual"), - - /** - * Less Than - * - */ - @XmlEnumValue("lessThan") - LESS_THAN("lessThan"), - - /** - * Less Than Or Equal - * - */ - @XmlEnumValue("lessThanOrEqual") - LESS_THAN_OR_EQUAL("lessThanOrEqual"), - - /** - * Greater Than - * - */ - @XmlEnumValue("greaterThan") - GREATER_THAN("greaterThan"), - - /** - * Greater Than Or Equal - * - */ - @XmlEnumValue("greaterThanOrEqual") - GREATER_THAN_OR_EQUAL("greaterThanOrEqual"); - private final String value; - - STDataValidationOperator(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDataValidationOperator fromValue(String v) { - for (STDataValidationOperator c: STDataValidationOperator.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DataValidationOperator. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DataValidationOperator">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="between"/>
+ *     <enumeration value="notBetween"/>
+ *     <enumeration value="equal"/>
+ *     <enumeration value="notEqual"/>
+ *     <enumeration value="lessThan"/>
+ *     <enumeration value="lessThanOrEqual"/>
+ *     <enumeration value="greaterThan"/>
+ *     <enumeration value="greaterThanOrEqual"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DataValidationOperator") +@XmlEnum +public enum STDataValidationOperator { + + @XmlEnumValue("between") + BETWEEN("between"), + @XmlEnumValue("notBetween") + NOT_BETWEEN("notBetween"), + @XmlEnumValue("equal") + EQUAL("equal"), + @XmlEnumValue("notEqual") + NOT_EQUAL("notEqual"), + @XmlEnumValue("lessThan") + LESS_THAN("lessThan"), + @XmlEnumValue("lessThanOrEqual") + LESS_THAN_OR_EQUAL("lessThanOrEqual"), + @XmlEnumValue("greaterThan") + GREATER_THAN("greaterThan"), + @XmlEnumValue("greaterThanOrEqual") + GREATER_THAN_OR_EQUAL("greaterThanOrEqual"); + private final String value; + + STDataValidationOperator(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDataValidationOperator fromValue(String v) { + for (STDataValidationOperator c: STDataValidationOperator.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationType.java b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationType.java index e95de13ef7..3abc3d5d34 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDataValidationType.java @@ -1,129 +1,69 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DataValidationType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DataValidationType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="whole"/>
- *     <enumeration value="decimal"/>
- *     <enumeration value="list"/>
- *     <enumeration value="date"/>
- *     <enumeration value="time"/>
- *     <enumeration value="textLength"/>
- *     <enumeration value="custom"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DataValidationType") -@XmlEnum -public enum STDataValidationType { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Whole Number - * - */ - @XmlEnumValue("whole") - WHOLE("whole"), - - /** - * Decimal - * - */ - @XmlEnumValue("decimal") - DECIMAL("decimal"), - - /** - * List - * - */ - @XmlEnumValue("list") - LIST("list"), - - /** - * Date - * - */ - @XmlEnumValue("date") - DATE("date"), - - /** - * Time - * - */ - @XmlEnumValue("time") - TIME("time"), - - /** - * Text Length - * - */ - @XmlEnumValue("textLength") - TEXT_LENGTH("textLength"), - - /** - * Custom - * - */ - @XmlEnumValue("custom") - CUSTOM("custom"); - private final String value; - - STDataValidationType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDataValidationType fromValue(String v) { - for (STDataValidationType c: STDataValidationType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DataValidationType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DataValidationType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="whole"/>
+ *     <enumeration value="decimal"/>
+ *     <enumeration value="list"/>
+ *     <enumeration value="date"/>
+ *     <enumeration value="time"/>
+ *     <enumeration value="textLength"/>
+ *     <enumeration value="custom"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DataValidationType") +@XmlEnum +public enum STDataValidationType { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("whole") + WHOLE("whole"), + @XmlEnumValue("decimal") + DECIMAL("decimal"), + @XmlEnumValue("list") + LIST("list"), + @XmlEnumValue("date") + DATE("date"), + @XmlEnumValue("time") + TIME("time"), + @XmlEnumValue("textLength") + TEXT_LENGTH("textLength"), + @XmlEnumValue("custom") + CUSTOM("custom"); + private final String value; + + STDataValidationType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDataValidationType fromValue(String v) { + for (STDataValidationType c: STDataValidationType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDateTimeGrouping.java b/src/xlsx4j/java/org/xlsx4j/sml/STDateTimeGrouping.java index 7e7e673b97..05596e5250 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDateTimeGrouping.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDateTimeGrouping.java @@ -1,113 +1,63 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DateTimeGrouping. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DateTimeGrouping">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="year"/>
- *     <enumeration value="month"/>
- *     <enumeration value="day"/>
- *     <enumeration value="hour"/>
- *     <enumeration value="minute"/>
- *     <enumeration value="second"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DateTimeGrouping") -@XmlEnum -public enum STDateTimeGrouping { - - - /** - * Group by Year - * - */ - @XmlEnumValue("year") - YEAR("year"), - - /** - * Month - * - */ - @XmlEnumValue("month") - MONTH("month"), - - /** - * Day - * - */ - @XmlEnumValue("day") - DAY("day"), - - /** - * Group by Hour - * - */ - @XmlEnumValue("hour") - HOUR("hour"), - - /** - * Group by Minute - * - */ - @XmlEnumValue("minute") - MINUTE("minute"), - - /** - * Second - * - */ - @XmlEnumValue("second") - SECOND("second"); - private final String value; - - STDateTimeGrouping(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDateTimeGrouping fromValue(String v) { - for (STDateTimeGrouping c: STDateTimeGrouping.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DateTimeGrouping. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DateTimeGrouping">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="year"/>
+ *     <enumeration value="month"/>
+ *     <enumeration value="day"/>
+ *     <enumeration value="hour"/>
+ *     <enumeration value="minute"/>
+ *     <enumeration value="second"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DateTimeGrouping") +@XmlEnum +public enum STDateTimeGrouping { + + @XmlEnumValue("year") + YEAR("year"), + @XmlEnumValue("month") + MONTH("month"), + @XmlEnumValue("day") + DAY("day"), + @XmlEnumValue("hour") + HOUR("hour"), + @XmlEnumValue("minute") + MINUTE("minute"), + @XmlEnumValue("second") + SECOND("second"); + private final String value; + + STDateTimeGrouping(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDateTimeGrouping fromValue(String v) { + for (STDateTimeGrouping c: STDateTimeGrouping.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDdeValueType.java b/src/xlsx4j/java/org/xlsx4j/sml/STDdeValueType.java index 9d305d9eda..575dd30d77 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDdeValueType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDdeValueType.java @@ -1,105 +1,60 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DdeValueType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DdeValueType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="nil"/>
- *     <enumeration value="b"/>
- *     <enumeration value="n"/>
- *     <enumeration value="e"/>
- *     <enumeration value="str"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DdeValueType") -@XmlEnum -public enum STDdeValueType { - - - /** - * Nil - * - */ - @XmlEnumValue("nil") - NIL("nil"), - - /** - * Boolean - * - */ - @XmlEnumValue("b") - B("b"), - - /** - * Real Number - * - */ - @XmlEnumValue("n") - N("n"), - - /** - * Error - * - */ - @XmlEnumValue("e") - E("e"), - - /** - * String - * - */ - @XmlEnumValue("str") - STR("str"); - private final String value; - - STDdeValueType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDdeValueType fromValue(String v) { - for (STDdeValueType c: STDdeValueType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DdeValueType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DdeValueType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="nil"/>
+ *     <enumeration value="b"/>
+ *     <enumeration value="n"/>
+ *     <enumeration value="e"/>
+ *     <enumeration value="str"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DdeValueType") +@XmlEnum +public enum STDdeValueType { + + @XmlEnumValue("nil") + NIL("nil"), + @XmlEnumValue("b") + B("b"), + @XmlEnumValue("n") + N("n"), + @XmlEnumValue("e") + E("e"), + @XmlEnumValue("str") + STR("str"); + private final String value; + + STDdeValueType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDdeValueType fromValue(String v) { + for (STDdeValueType c: STDdeValueType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDvAspect.java b/src/xlsx4j/java/org/xlsx4j/sml/STDvAspect.java index f04bd1abf4..41d16fa353 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDvAspect.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDvAspect.java @@ -1,68 +1,38 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DvAspect. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DvAspect">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="DVASPECT_CONTENT"/>
- *     <enumeration value="DVASPECT_ICON"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DvAspect") -@XmlEnum -public enum STDvAspect { - - - /** - * Object Display Content - * - */ - DVASPECT_CONTENT, - - /** - * Object Display Icon - * - */ - DVASPECT_ICON; - - public String value() { - return name(); - } - - public static STDvAspect fromValue(String v) { - return valueOf(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DvAspect. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DvAspect">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="DVASPECT_CONTENT"/>
+ *     <enumeration value="DVASPECT_ICON"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DvAspect") +@XmlEnum +public enum STDvAspect { + + DVASPECT_CONTENT, + DVASPECT_ICON; + + public String value() { + return name(); + } + + public static STDvAspect fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STDynamicFilterType.java b/src/xlsx4j/java/org/xlsx4j/sml/STDynamicFilterType.java index bb71ee3327..a74c3c1421 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STDynamicFilterType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STDynamicFilterType.java @@ -1,345 +1,150 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_DynamicFilterType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_DynamicFilterType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="null"/>
- *     <enumeration value="aboveAverage"/>
- *     <enumeration value="belowAverage"/>
- *     <enumeration value="tomorrow"/>
- *     <enumeration value="today"/>
- *     <enumeration value="yesterday"/>
- *     <enumeration value="nextWeek"/>
- *     <enumeration value="thisWeek"/>
- *     <enumeration value="lastWeek"/>
- *     <enumeration value="nextMonth"/>
- *     <enumeration value="thisMonth"/>
- *     <enumeration value="lastMonth"/>
- *     <enumeration value="nextQuarter"/>
- *     <enumeration value="thisQuarter"/>
- *     <enumeration value="lastQuarter"/>
- *     <enumeration value="nextYear"/>
- *     <enumeration value="thisYear"/>
- *     <enumeration value="lastYear"/>
- *     <enumeration value="yearToDate"/>
- *     <enumeration value="Q1"/>
- *     <enumeration value="Q2"/>
- *     <enumeration value="Q3"/>
- *     <enumeration value="Q4"/>
- *     <enumeration value="M1"/>
- *     <enumeration value="M2"/>
- *     <enumeration value="M3"/>
- *     <enumeration value="M4"/>
- *     <enumeration value="M5"/>
- *     <enumeration value="M6"/>
- *     <enumeration value="M7"/>
- *     <enumeration value="M8"/>
- *     <enumeration value="M9"/>
- *     <enumeration value="M10"/>
- *     <enumeration value="M11"/>
- *     <enumeration value="M12"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_DynamicFilterType") -@XmlEnum -public enum STDynamicFilterType { - - - /** - * Null - * - */ - @XmlEnumValue("null") - NULL("null"), - - /** - * Above Average - * - */ - @XmlEnumValue("aboveAverage") - ABOVE_AVERAGE("aboveAverage"), - - /** - * Below Average - * - */ - @XmlEnumValue("belowAverage") - BELOW_AVERAGE("belowAverage"), - - /** - * Tomorrow - * - */ - @XmlEnumValue("tomorrow") - TOMORROW("tomorrow"), - - /** - * Today - * - */ - @XmlEnumValue("today") - TODAY("today"), - - /** - * Yesterday - * - */ - @XmlEnumValue("yesterday") - YESTERDAY("yesterday"), - - /** - * Next Week - * - */ - @XmlEnumValue("nextWeek") - NEXT_WEEK("nextWeek"), - - /** - * This Week - * - */ - @XmlEnumValue("thisWeek") - THIS_WEEK("thisWeek"), - - /** - * Last Week - * - */ - @XmlEnumValue("lastWeek") - LAST_WEEK("lastWeek"), - - /** - * Next Month - * - */ - @XmlEnumValue("nextMonth") - NEXT_MONTH("nextMonth"), - - /** - * This Month - * - */ - @XmlEnumValue("thisMonth") - THIS_MONTH("thisMonth"), - - /** - * Last Month - * - */ - @XmlEnumValue("lastMonth") - LAST_MONTH("lastMonth"), - - /** - * Next Quarter - * - */ - @XmlEnumValue("nextQuarter") - NEXT_QUARTER("nextQuarter"), - - /** - * This Quarter - * - */ - @XmlEnumValue("thisQuarter") - THIS_QUARTER("thisQuarter"), - - /** - * Last Quarter - * - */ - @XmlEnumValue("lastQuarter") - LAST_QUARTER("lastQuarter"), - - /** - * Next Year - * - */ - @XmlEnumValue("nextYear") - NEXT_YEAR("nextYear"), - - /** - * This Year - * - */ - @XmlEnumValue("thisYear") - THIS_YEAR("thisYear"), - - /** - * Last Year - * - */ - @XmlEnumValue("lastYear") - LAST_YEAR("lastYear"), - - /** - * Year To Date - * - */ - @XmlEnumValue("yearToDate") - YEAR_TO_DATE("yearToDate"), - - /** - * 1st Quarter - * - */ - @XmlEnumValue("Q1") - Q_1("Q1"), - - /** - * 2nd Quarter - * - */ - @XmlEnumValue("Q2") - Q_2("Q2"), - - /** - * 3rd Quarter - * - */ - @XmlEnumValue("Q3") - Q_3("Q3"), - - /** - * 4th Quarter - * - */ - @XmlEnumValue("Q4") - Q_4("Q4"), - - /** - * 1st Month - * - */ - @XmlEnumValue("M1") - M_1("M1"), - - /** - * 2nd Month - * - */ - @XmlEnumValue("M2") - M_2("M2"), - - /** - * 3rd Month - * - */ - @XmlEnumValue("M3") - M_3("M3"), - - /** - * 4th Month - * - */ - @XmlEnumValue("M4") - M_4("M4"), - - /** - * 5th Month - * - */ - @XmlEnumValue("M5") - M_5("M5"), - - /** - * 6th Month - * - */ - @XmlEnumValue("M6") - M_6("M6"), - - /** - * 7th Month - * - */ - @XmlEnumValue("M7") - M_7("M7"), - - /** - * 8th Month - * - */ - @XmlEnumValue("M8") - M_8("M8"), - - /** - * 9th Month - * - */ - @XmlEnumValue("M9") - M_9("M9"), - - /** - * 10th Month - * - */ - @XmlEnumValue("M10") - M_10("M10"), - - /** - * 11th Month - * - */ - @XmlEnumValue("M11") - M_11("M11"), - - /** - * 12th Month - * - */ - @XmlEnumValue("M12") - M_12("M12"); - private final String value; - - STDynamicFilterType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STDynamicFilterType fromValue(String v) { - for (STDynamicFilterType c: STDynamicFilterType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_DynamicFilterType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_DynamicFilterType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="null"/>
+ *     <enumeration value="aboveAverage"/>
+ *     <enumeration value="belowAverage"/>
+ *     <enumeration value="tomorrow"/>
+ *     <enumeration value="today"/>
+ *     <enumeration value="yesterday"/>
+ *     <enumeration value="nextWeek"/>
+ *     <enumeration value="thisWeek"/>
+ *     <enumeration value="lastWeek"/>
+ *     <enumeration value="nextMonth"/>
+ *     <enumeration value="thisMonth"/>
+ *     <enumeration value="lastMonth"/>
+ *     <enumeration value="nextQuarter"/>
+ *     <enumeration value="thisQuarter"/>
+ *     <enumeration value="lastQuarter"/>
+ *     <enumeration value="nextYear"/>
+ *     <enumeration value="thisYear"/>
+ *     <enumeration value="lastYear"/>
+ *     <enumeration value="yearToDate"/>
+ *     <enumeration value="Q1"/>
+ *     <enumeration value="Q2"/>
+ *     <enumeration value="Q3"/>
+ *     <enumeration value="Q4"/>
+ *     <enumeration value="M1"/>
+ *     <enumeration value="M2"/>
+ *     <enumeration value="M3"/>
+ *     <enumeration value="M4"/>
+ *     <enumeration value="M5"/>
+ *     <enumeration value="M6"/>
+ *     <enumeration value="M7"/>
+ *     <enumeration value="M8"/>
+ *     <enumeration value="M9"/>
+ *     <enumeration value="M10"/>
+ *     <enumeration value="M11"/>
+ *     <enumeration value="M12"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_DynamicFilterType") +@XmlEnum +public enum STDynamicFilterType { + + @XmlEnumValue("null") + NULL("null"), + @XmlEnumValue("aboveAverage") + ABOVE_AVERAGE("aboveAverage"), + @XmlEnumValue("belowAverage") + BELOW_AVERAGE("belowAverage"), + @XmlEnumValue("tomorrow") + TOMORROW("tomorrow"), + @XmlEnumValue("today") + TODAY("today"), + @XmlEnumValue("yesterday") + YESTERDAY("yesterday"), + @XmlEnumValue("nextWeek") + NEXT_WEEK("nextWeek"), + @XmlEnumValue("thisWeek") + THIS_WEEK("thisWeek"), + @XmlEnumValue("lastWeek") + LAST_WEEK("lastWeek"), + @XmlEnumValue("nextMonth") + NEXT_MONTH("nextMonth"), + @XmlEnumValue("thisMonth") + THIS_MONTH("thisMonth"), + @XmlEnumValue("lastMonth") + LAST_MONTH("lastMonth"), + @XmlEnumValue("nextQuarter") + NEXT_QUARTER("nextQuarter"), + @XmlEnumValue("thisQuarter") + THIS_QUARTER("thisQuarter"), + @XmlEnumValue("lastQuarter") + LAST_QUARTER("lastQuarter"), + @XmlEnumValue("nextYear") + NEXT_YEAR("nextYear"), + @XmlEnumValue("thisYear") + THIS_YEAR("thisYear"), + @XmlEnumValue("lastYear") + LAST_YEAR("lastYear"), + @XmlEnumValue("yearToDate") + YEAR_TO_DATE("yearToDate"), + @XmlEnumValue("Q1") + Q_1("Q1"), + @XmlEnumValue("Q2") + Q_2("Q2"), + @XmlEnumValue("Q3") + Q_3("Q3"), + @XmlEnumValue("Q4") + Q_4("Q4"), + @XmlEnumValue("M1") + M_1("M1"), + @XmlEnumValue("M2") + M_2("M2"), + @XmlEnumValue("M3") + M_3("M3"), + @XmlEnumValue("M4") + M_4("M4"), + @XmlEnumValue("M5") + M_5("M5"), + @XmlEnumValue("M6") + M_6("M6"), + @XmlEnumValue("M7") + M_7("M7"), + @XmlEnumValue("M8") + M_8("M8"), + @XmlEnumValue("M9") + M_9("M9"), + @XmlEnumValue("M10") + M_10("M10"), + @XmlEnumValue("M11") + M_11("M11"), + @XmlEnumValue("M12") + M_12("M12"); + private final String value; + + STDynamicFilterType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STDynamicFilterType fromValue(String v) { + for (STDynamicFilterType c: STDynamicFilterType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STExternalConnectionType.java b/src/xlsx4j/java/org/xlsx4j/sml/STExternalConnectionType.java index b4cf39fd06..103ff74c5e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STExternalConnectionType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STExternalConnectionType.java @@ -1,138 +1,68 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_ExternalConnectionType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_ExternalConnectionType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="general"/>
- *     <enumeration value="text"/>
- *     <enumeration value="MDY"/>
- *     <enumeration value="DMY"/>
- *     <enumeration value="YMD"/>
- *     <enumeration value="MYD"/>
- *     <enumeration value="DYM"/>
- *     <enumeration value="YDM"/>
- *     <enumeration value="skip"/>
- *     <enumeration value="EMD"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_ExternalConnectionType") -@XmlEnum -public enum STExternalConnectionType { - - - /** - * General - * - */ - @XmlEnumValue("general") - GENERAL("general"), - - /** - * Text - * - */ - @XmlEnumValue("text") - TEXT("text"), - - /** - * Month Day Year - * - */ - MDY("MDY"), - - /** - * Day Month Year - * - */ - DMY("DMY"), - - /** - * Year Month Day - * - */ - YMD("YMD"), - - /** - * Month Day Year - * - */ - MYD("MYD"), - - /** - * Day Year Month - * - */ - DYM("DYM"), - - /** - * Year Day Month - * - */ - YDM("YDM"), - - /** - * Skip Field - * - */ - @XmlEnumValue("skip") - SKIP("skip"), - - /** - * East Asian Year Month Day - * - */ - EMD("EMD"); - private final String value; - - STExternalConnectionType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STExternalConnectionType fromValue(String v) { - for (STExternalConnectionType c: STExternalConnectionType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_ExternalConnectionType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_ExternalConnectionType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="general"/>
+ *     <enumeration value="text"/>
+ *     <enumeration value="MDY"/>
+ *     <enumeration value="DMY"/>
+ *     <enumeration value="YMD"/>
+ *     <enumeration value="MYD"/>
+ *     <enumeration value="DYM"/>
+ *     <enumeration value="YDM"/>
+ *     <enumeration value="skip"/>
+ *     <enumeration value="EMD"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_ExternalConnectionType") +@XmlEnum +public enum STExternalConnectionType { + + @XmlEnumValue("general") + GENERAL("general"), + @XmlEnumValue("text") + TEXT("text"), + MDY("MDY"), + DMY("DMY"), + YMD("YMD"), + MYD("MYD"), + DYM("DYM"), + YDM("YDM"), + @XmlEnumValue("skip") + SKIP("skip"), + EMD("EMD"); + private final String value; + + STExternalConnectionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STExternalConnectionType fromValue(String v) { + for (STExternalConnectionType c: STExternalConnectionType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STFieldSortType.java b/src/xlsx4j/java/org/xlsx4j/sml/STFieldSortType.java index 200e17caa8..d5bb7569a3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STFieldSortType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STFieldSortType.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_FieldSortType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_FieldSortType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="manual"/>
- *     <enumeration value="ascending"/>
- *     <enumeration value="descending"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_FieldSortType") -@XmlEnum -public enum STFieldSortType { - - - /** - * Manual Sort - * - */ - @XmlEnumValue("manual") - MANUAL("manual"), - - /** - * Ascending - * - */ - @XmlEnumValue("ascending") - ASCENDING("ascending"), - - /** - * Descending - * - */ - @XmlEnumValue("descending") - DESCENDING("descending"); - private final String value; - - STFieldSortType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STFieldSortType fromValue(String v) { - for (STFieldSortType c: STFieldSortType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_FieldSortType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_FieldSortType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="manual"/>
+ *     <enumeration value="ascending"/>
+ *     <enumeration value="descending"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_FieldSortType") +@XmlEnum +public enum STFieldSortType { + + @XmlEnumValue("manual") + MANUAL("manual"), + @XmlEnumValue("ascending") + ASCENDING("ascending"), + @XmlEnumValue("descending") + DESCENDING("descending"); + private final String value; + + STFieldSortType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STFieldSortType fromValue(String v) { + for (STFieldSortType c: STFieldSortType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STFileType.java b/src/xlsx4j/java/org/xlsx4j/sml/STFileType.java index 19c0e1ef09..60b9095c3e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STFileType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STFileType.java @@ -1,89 +1,60 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_FileType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_FileType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="mac"/>
- *     <enumeration value="win"/>
- *     <enumeration value="dos"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_FileType") -@XmlEnum -public enum STFileType { - - - /** - * Macintosh - * - */ - @XmlEnumValue("mac") - MAC("mac"), - - /** - * Windows (ANSI) - * - */ - @XmlEnumValue("win") - WIN("win"), - - /** - * DOS - * - */ - @XmlEnumValue("dos") - DOS("dos"); - private final String value; - - STFileType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STFileType fromValue(String v) { - for (STFileType c: STFileType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_FileType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_FileType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="mac"/>
+ *     <enumeration value="win"/>
+ *     <enumeration value="dos"/>
+ *     <enumeration value="lin"/>
+ *     <enumeration value="other"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_FileType") +@XmlEnum +public enum STFileType { + + @XmlEnumValue("mac") + MAC("mac"), + @XmlEnumValue("win") + WIN("win"), + @XmlEnumValue("dos") + DOS("dos"), + @XmlEnumValue("lin") + LIN("lin"), + @XmlEnumValue("other") + OTHER("other"); + private final String value; + + STFileType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STFileType fromValue(String v) { + for (STFileType c: STFileType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STFilterOperator.java b/src/xlsx4j/java/org/xlsx4j/sml/STFilterOperator.java index 422ee8612d..da41cd13a5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STFilterOperator.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STFilterOperator.java @@ -1,113 +1,63 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_FilterOperator. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_FilterOperator">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="equal"/>
- *     <enumeration value="lessThan"/>
- *     <enumeration value="lessThanOrEqual"/>
- *     <enumeration value="notEqual"/>
- *     <enumeration value="greaterThanOrEqual"/>
- *     <enumeration value="greaterThan"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_FilterOperator") -@XmlEnum -public enum STFilterOperator { - - - /** - * Equal - * - */ - @XmlEnumValue("equal") - EQUAL("equal"), - - /** - * Less Than - * - */ - @XmlEnumValue("lessThan") - LESS_THAN("lessThan"), - - /** - * Less Than Or Equal - * - */ - @XmlEnumValue("lessThanOrEqual") - LESS_THAN_OR_EQUAL("lessThanOrEqual"), - - /** - * Not Equal - * - */ - @XmlEnumValue("notEqual") - NOT_EQUAL("notEqual"), - - /** - * Greater Than Or Equal - * - */ - @XmlEnumValue("greaterThanOrEqual") - GREATER_THAN_OR_EQUAL("greaterThanOrEqual"), - - /** - * Greater Than - * - */ - @XmlEnumValue("greaterThan") - GREATER_THAN("greaterThan"); - private final String value; - - STFilterOperator(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STFilterOperator fromValue(String v) { - for (STFilterOperator c: STFilterOperator.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_FilterOperator. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_FilterOperator">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="equal"/>
+ *     <enumeration value="lessThan"/>
+ *     <enumeration value="lessThanOrEqual"/>
+ *     <enumeration value="notEqual"/>
+ *     <enumeration value="greaterThanOrEqual"/>
+ *     <enumeration value="greaterThan"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_FilterOperator") +@XmlEnum +public enum STFilterOperator { + + @XmlEnumValue("equal") + EQUAL("equal"), + @XmlEnumValue("lessThan") + LESS_THAN("lessThan"), + @XmlEnumValue("lessThanOrEqual") + LESS_THAN_OR_EQUAL("lessThanOrEqual"), + @XmlEnumValue("notEqual") + NOT_EQUAL("notEqual"), + @XmlEnumValue("greaterThanOrEqual") + GREATER_THAN_OR_EQUAL("greaterThanOrEqual"), + @XmlEnumValue("greaterThan") + GREATER_THAN("greaterThan"); + private final String value; + + STFilterOperator(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STFilterOperator fromValue(String v) { + for (STFilterOperator c: STFilterOperator.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STFontScheme.java b/src/xlsx4j/java/org/xlsx4j/sml/STFontScheme.java index 612f26327f..0371cd79e6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STFontScheme.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STFontScheme.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_FontScheme. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_FontScheme">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="major"/>
- *     <enumeration value="minor"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_FontScheme") -@XmlEnum -public enum STFontScheme { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Major Font - * - */ - @XmlEnumValue("major") - MAJOR("major"), - - /** - * Minor Font - * - */ - @XmlEnumValue("minor") - MINOR("minor"); - private final String value; - - STFontScheme(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STFontScheme fromValue(String v) { - for (STFontScheme c: STFontScheme.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_FontScheme. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_FontScheme">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="major"/>
+ *     <enumeration value="minor"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_FontScheme") +@XmlEnum +public enum STFontScheme { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("major") + MAJOR("major"), + @XmlEnumValue("minor") + MINOR("minor"); + private final String value; + + STFontScheme(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STFontScheme fromValue(String v) { + for (STFontScheme c: STFontScheme.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STFormatAction.java b/src/xlsx4j/java/org/xlsx4j/sml/STFormatAction.java index fe789af8e3..e456a3d04e 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STFormatAction.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STFormatAction.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_FormatAction. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_FormatAction">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="blank"/>
- *     <enumeration value="formatting"/>
- *     <enumeration value="drill"/>
- *     <enumeration value="formula"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_FormatAction") -@XmlEnum -public enum STFormatAction { - - - /** - * Blank - * - */ - @XmlEnumValue("blank") - BLANK("blank"), - - /** - * Formatting - * - */ - @XmlEnumValue("formatting") - FORMATTING("formatting"), - - /** - * Drill Type - * - */ - @XmlEnumValue("drill") - DRILL("drill"), - - /** - * Formula Type - * - */ - @XmlEnumValue("formula") - FORMULA("formula"); - private final String value; - - STFormatAction(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STFormatAction fromValue(String v) { - for (STFormatAction c: STFormatAction.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_FormatAction. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_FormatAction">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="blank"/>
+ *     <enumeration value="formatting"/>
+ *     <enumeration value="drill"/>
+ *     <enumeration value="formula"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_FormatAction") +@XmlEnum +public enum STFormatAction { + + @XmlEnumValue("blank") + BLANK("blank"), + @XmlEnumValue("formatting") + FORMATTING("formatting"), + @XmlEnumValue("drill") + DRILL("drill"), + @XmlEnumValue("formula") + FORMULA("formula"); + private final String value; + + STFormatAction(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STFormatAction fromValue(String v) { + for (STFormatAction c: STFormatAction.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STFormulaExpression.java b/src/xlsx4j/java/org/xlsx4j/sml/STFormulaExpression.java index 4e9adc9b66..1e087c762c 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STFormulaExpression.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STFormulaExpression.java @@ -1,105 +1,60 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_FormulaExpression. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_FormulaExpression">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="ref"/>
- *     <enumeration value="refError"/>
- *     <enumeration value="area"/>
- *     <enumeration value="areaError"/>
- *     <enumeration value="computedArea"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_FormulaExpression") -@XmlEnum -public enum STFormulaExpression { - - - /** - * Reference - * - */ - @XmlEnumValue("ref") - REF("ref"), - - /** - * Reference Is Error - * - */ - @XmlEnumValue("refError") - REF_ERROR("refError"), - - /** - * Area - * - */ - @XmlEnumValue("area") - AREA("area"), - - /** - * Area Error - * - */ - @XmlEnumValue("areaError") - AREA_ERROR("areaError"), - - /** - * Computed Area - * - */ - @XmlEnumValue("computedArea") - COMPUTED_AREA("computedArea"); - private final String value; - - STFormulaExpression(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STFormulaExpression fromValue(String v) { - for (STFormulaExpression c: STFormulaExpression.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_FormulaExpression. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_FormulaExpression">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ref"/>
+ *     <enumeration value="refError"/>
+ *     <enumeration value="area"/>
+ *     <enumeration value="areaError"/>
+ *     <enumeration value="computedArea"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_FormulaExpression") +@XmlEnum +public enum STFormulaExpression { + + @XmlEnumValue("ref") + REF("ref"), + @XmlEnumValue("refError") + REF_ERROR("refError"), + @XmlEnumValue("area") + AREA("area"), + @XmlEnumValue("areaError") + AREA_ERROR("areaError"), + @XmlEnumValue("computedArea") + COMPUTED_AREA("computedArea"); + private final String value; + + STFormulaExpression(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STFormulaExpression fromValue(String v) { + for (STFormulaExpression c: STFormulaExpression.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STGradientType.java b/src/xlsx4j/java/org/xlsx4j/sml/STGradientType.java index badfd12fd6..42caa5d1da 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STGradientType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STGradientType.java @@ -1,81 +1,51 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_GradientType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_GradientType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="linear"/>
- *     <enumeration value="path"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_GradientType") -@XmlEnum -public enum STGradientType { - - - /** - * Linear Gradient - * - */ - @XmlEnumValue("linear") - LINEAR("linear"), - - /** - * Path - * - */ - @XmlEnumValue("path") - PATH("path"); - private final String value; - - STGradientType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STGradientType fromValue(String v) { - for (STGradientType c: STGradientType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_GradientType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_GradientType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="linear"/>
+ *     <enumeration value="path"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_GradientType") +@XmlEnum +public enum STGradientType { + + @XmlEnumValue("linear") + LINEAR("linear"), + @XmlEnumValue("path") + PATH("path"); + private final String value; + + STGradientType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STGradientType fromValue(String v) { + for (STGradientType c: STGradientType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STGroupBy.java b/src/xlsx4j/java/org/xlsx4j/sml/STGroupBy.java index 8370fd520d..ee24606488 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STGroupBy.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STGroupBy.java @@ -1,129 +1,69 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_GroupBy. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_GroupBy">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="range"/>
- *     <enumeration value="seconds"/>
- *     <enumeration value="minutes"/>
- *     <enumeration value="hours"/>
- *     <enumeration value="days"/>
- *     <enumeration value="months"/>
- *     <enumeration value="quarters"/>
- *     <enumeration value="years"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_GroupBy") -@XmlEnum -public enum STGroupBy { - - - /** - * Group By Numeric Ranges - * - */ - @XmlEnumValue("range") - RANGE("range"), - - /** - * Seconds - * - */ - @XmlEnumValue("seconds") - SECONDS("seconds"), - - /** - * Minutes - * - */ - @XmlEnumValue("minutes") - MINUTES("minutes"), - - /** - * Hours - * - */ - @XmlEnumValue("hours") - HOURS("hours"), - - /** - * Days - * - */ - @XmlEnumValue("days") - DAYS("days"), - - /** - * Months - * - */ - @XmlEnumValue("months") - MONTHS("months"), - - /** - * Quarters - * - */ - @XmlEnumValue("quarters") - QUARTERS("quarters"), - - /** - * Years - * - */ - @XmlEnumValue("years") - YEARS("years"); - private final String value; - - STGroupBy(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STGroupBy fromValue(String v) { - for (STGroupBy c: STGroupBy.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_GroupBy. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_GroupBy">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="range"/>
+ *     <enumeration value="seconds"/>
+ *     <enumeration value="minutes"/>
+ *     <enumeration value="hours"/>
+ *     <enumeration value="days"/>
+ *     <enumeration value="months"/>
+ *     <enumeration value="quarters"/>
+ *     <enumeration value="years"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_GroupBy") +@XmlEnum +public enum STGroupBy { + + @XmlEnumValue("range") + RANGE("range"), + @XmlEnumValue("seconds") + SECONDS("seconds"), + @XmlEnumValue("minutes") + MINUTES("minutes"), + @XmlEnumValue("hours") + HOURS("hours"), + @XmlEnumValue("days") + DAYS("days"), + @XmlEnumValue("months") + MONTHS("months"), + @XmlEnumValue("quarters") + QUARTERS("quarters"), + @XmlEnumValue("years") + YEARS("years"); + private final String value; + + STGroupBy(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STGroupBy fromValue(String v) { + for (STGroupBy c: STGroupBy.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STGrowShrinkType.java b/src/xlsx4j/java/org/xlsx4j/sml/STGrowShrinkType.java index 9eb9369a8d..db521c3f9f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STGrowShrinkType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STGrowShrinkType.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_GrowShrinkType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_GrowShrinkType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="insertDelete"/>
- *     <enumeration value="insertClear"/>
- *     <enumeration value="overwriteClear"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_GrowShrinkType") -@XmlEnum -public enum STGrowShrinkType { - - - /** - * Insert & Delete On Refresh - * - */ - @XmlEnumValue("insertDelete") - INSERT_DELETE("insertDelete"), - - /** - * Insert & Clear On Refresh - * - */ - @XmlEnumValue("insertClear") - INSERT_CLEAR("insertClear"), - - /** - * Overwrite & Clear On Refresh - * - */ - @XmlEnumValue("overwriteClear") - OVERWRITE_CLEAR("overwriteClear"); - private final String value; - - STGrowShrinkType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STGrowShrinkType fromValue(String v) { - for (STGrowShrinkType c: STGrowShrinkType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_GrowShrinkType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_GrowShrinkType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="insertDelete"/>
+ *     <enumeration value="insertClear"/>
+ *     <enumeration value="overwriteClear"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_GrowShrinkType") +@XmlEnum +public enum STGrowShrinkType { + + @XmlEnumValue("insertDelete") + INSERT_DELETE("insertDelete"), + @XmlEnumValue("insertClear") + INSERT_CLEAR("insertClear"), + @XmlEnumValue("overwriteClear") + OVERWRITE_CLEAR("overwriteClear"); + private final String value; + + STGrowShrinkType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STGrowShrinkType fromValue(String v) { + for (STGrowShrinkType c: STGrowShrinkType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STHorizontalAlignment.java b/src/xlsx4j/java/org/xlsx4j/sml/STHorizontalAlignment.java index 50e9ebcb92..e33fa145a2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STHorizontalAlignment.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STHorizontalAlignment.java @@ -1,129 +1,69 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_HorizontalAlignment. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_HorizontalAlignment">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="general"/>
- *     <enumeration value="left"/>
- *     <enumeration value="center"/>
- *     <enumeration value="right"/>
- *     <enumeration value="fill"/>
- *     <enumeration value="justify"/>
- *     <enumeration value="centerContinuous"/>
- *     <enumeration value="distributed"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_HorizontalAlignment") -@XmlEnum -public enum STHorizontalAlignment { - - - /** - * General Horizontal Alignment - * - */ - @XmlEnumValue("general") - GENERAL("general"), - - /** - * Left Horizontal Alignment - * - */ - @XmlEnumValue("left") - LEFT("left"), - - /** - * Centered Horizontal Alignment - * - */ - @XmlEnumValue("center") - CENTER("center"), - - /** - * Right Horizontal Alignment - * - */ - @XmlEnumValue("right") - RIGHT("right"), - - /** - * Fill - * - */ - @XmlEnumValue("fill") - FILL("fill"), - - /** - * Justify - * - */ - @XmlEnumValue("justify") - JUSTIFY("justify"), - - /** - * Center Continuous Horizontal Alignment - * - */ - @XmlEnumValue("centerContinuous") - CENTER_CONTINUOUS("centerContinuous"), - - /** - * Distributed Horizontal Alignment - * - */ - @XmlEnumValue("distributed") - DISTRIBUTED("distributed"); - private final String value; - - STHorizontalAlignment(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STHorizontalAlignment fromValue(String v) { - for (STHorizontalAlignment c: STHorizontalAlignment.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_HorizontalAlignment. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_HorizontalAlignment">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="general"/>
+ *     <enumeration value="left"/>
+ *     <enumeration value="center"/>
+ *     <enumeration value="right"/>
+ *     <enumeration value="fill"/>
+ *     <enumeration value="justify"/>
+ *     <enumeration value="centerContinuous"/>
+ *     <enumeration value="distributed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_HorizontalAlignment") +@XmlEnum +public enum STHorizontalAlignment { + + @XmlEnumValue("general") + GENERAL("general"), + @XmlEnumValue("left") + LEFT("left"), + @XmlEnumValue("center") + CENTER("center"), + @XmlEnumValue("right") + RIGHT("right"), + @XmlEnumValue("fill") + FILL("fill"), + @XmlEnumValue("justify") + JUSTIFY("justify"), + @XmlEnumValue("centerContinuous") + CENTER_CONTINUOUS("centerContinuous"), + @XmlEnumValue("distributed") + DISTRIBUTED("distributed"); + private final String value; + + STHorizontalAlignment(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STHorizontalAlignment fromValue(String v) { + for (STHorizontalAlignment c: STHorizontalAlignment.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STHtmlFmt.java b/src/xlsx4j/java/org/xlsx4j/sml/STHtmlFmt.java index e74287f018..f064ba2bab 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STHtmlFmt.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STHtmlFmt.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_HtmlFmt. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_HtmlFmt">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="rtf"/>
- *     <enumeration value="all"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_HtmlFmt") -@XmlEnum -public enum STHtmlFmt { - - - /** - * No Formatting - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Honor Rich Text - * - */ - @XmlEnumValue("rtf") - RTF("rtf"), - - /** - * All - * - */ - @XmlEnumValue("all") - ALL("all"); - private final String value; - - STHtmlFmt(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STHtmlFmt fromValue(String v) { - for (STHtmlFmt c: STHtmlFmt.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_HtmlFmt. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_HtmlFmt">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="rtf"/>
+ *     <enumeration value="all"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_HtmlFmt") +@XmlEnum +public enum STHtmlFmt { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("rtf") + RTF("rtf"), + @XmlEnumValue("all") + ALL("all"); + private final String value; + + STHtmlFmt(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STHtmlFmt fromValue(String v) { + for (STHtmlFmt c: STHtmlFmt.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STItemType.java b/src/xlsx4j/java/org/xlsx4j/sml/STItemType.java index 04dbf62fcc..ca06cbec43 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STItemType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STItemType.java @@ -1,185 +1,90 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_ItemType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_ItemType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="data"/>
- *     <enumeration value="default"/>
- *     <enumeration value="sum"/>
- *     <enumeration value="countA"/>
- *     <enumeration value="avg"/>
- *     <enumeration value="max"/>
- *     <enumeration value="min"/>
- *     <enumeration value="product"/>
- *     <enumeration value="count"/>
- *     <enumeration value="stdDev"/>
- *     <enumeration value="stdDevP"/>
- *     <enumeration value="var"/>
- *     <enumeration value="varP"/>
- *     <enumeration value="grand"/>
- *     <enumeration value="blank"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_ItemType") -@XmlEnum -public enum STItemType { - - - /** - * Data - * - */ - @XmlEnumValue("data") - DATA("data"), - - /** - * Default - * - */ - @XmlEnumValue("default") - DEFAULT("default"), - - /** - * Sum - * - */ - @XmlEnumValue("sum") - SUM("sum"), - - /** - * CountA - * - */ - @XmlEnumValue("countA") - COUNT_A("countA"), - - /** - * Average - * - */ - @XmlEnumValue("avg") - AVG("avg"), - - /** - * Max - * - */ - @XmlEnumValue("max") - MAX("max"), - - /** - * Min - * - */ - @XmlEnumValue("min") - MIN("min"), - - /** - * Product - * - */ - @XmlEnumValue("product") - PRODUCT("product"), - - /** - * Count - * - */ - @XmlEnumValue("count") - COUNT("count"), - - /** - * stdDev - * - */ - @XmlEnumValue("stdDev") - STD_DEV("stdDev"), - - /** - * StdDevP - * - */ - @XmlEnumValue("stdDevP") - STD_DEV_P("stdDevP"), - - /** - * Var - * - */ - @XmlEnumValue("var") - VAR("var"), - - /** - * VarP - * - */ - @XmlEnumValue("varP") - VAR_P("varP"), - - /** - * Grand Total Item - * - */ - @XmlEnumValue("grand") - GRAND("grand"), - - /** - * Blank Pivot Item - * - */ - @XmlEnumValue("blank") - BLANK("blank"); - private final String value; - - STItemType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STItemType fromValue(String v) { - for (STItemType c: STItemType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_ItemType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_ItemType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="data"/>
+ *     <enumeration value="default"/>
+ *     <enumeration value="sum"/>
+ *     <enumeration value="countA"/>
+ *     <enumeration value="avg"/>
+ *     <enumeration value="max"/>
+ *     <enumeration value="min"/>
+ *     <enumeration value="product"/>
+ *     <enumeration value="count"/>
+ *     <enumeration value="stdDev"/>
+ *     <enumeration value="stdDevP"/>
+ *     <enumeration value="var"/>
+ *     <enumeration value="varP"/>
+ *     <enumeration value="grand"/>
+ *     <enumeration value="blank"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_ItemType") +@XmlEnum +public enum STItemType { + + @XmlEnumValue("data") + DATA("data"), + @XmlEnumValue("default") + DEFAULT("default"), + @XmlEnumValue("sum") + SUM("sum"), + @XmlEnumValue("countA") + COUNT_A("countA"), + @XmlEnumValue("avg") + AVG("avg"), + @XmlEnumValue("max") + MAX("max"), + @XmlEnumValue("min") + MIN("min"), + @XmlEnumValue("product") + PRODUCT("product"), + @XmlEnumValue("count") + COUNT("count"), + @XmlEnumValue("stdDev") + STD_DEV("stdDev"), + @XmlEnumValue("stdDevP") + STD_DEV_P("stdDevP"), + @XmlEnumValue("var") + VAR("var"), + @XmlEnumValue("varP") + VAR_P("varP"), + @XmlEnumValue("grand") + GRAND("grand"), + @XmlEnumValue("blank") + BLANK("blank"); + private final String value; + + STItemType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STItemType fromValue(String v) { + for (STItemType c: STItemType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STMdxFunctionType.java b/src/xlsx4j/java/org/xlsx4j/sml/STMdxFunctionType.java index 391eb1eff3..6429e02cf2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STMdxFunctionType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STMdxFunctionType.java @@ -1,121 +1,66 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_MdxFunctionType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_MdxFunctionType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="m"/>
- *     <enumeration value="v"/>
- *     <enumeration value="s"/>
- *     <enumeration value="c"/>
- *     <enumeration value="r"/>
- *     <enumeration value="p"/>
- *     <enumeration value="k"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_MdxFunctionType") -@XmlEnum -public enum STMdxFunctionType { - - - /** - * Cube Member - * - */ - @XmlEnumValue("m") - M("m"), - - /** - * Cube Value - * - */ - @XmlEnumValue("v") - V("v"), - - /** - * Cube Set - * - */ - @XmlEnumValue("s") - S("s"), - - /** - * Cube Set Count - * - */ - @XmlEnumValue("c") - C("c"), - - /** - * Cube Ranked Member - * - */ - @XmlEnumValue("r") - R("r"), - - /** - * Cube Member Property - * - */ - @XmlEnumValue("p") - P("p"), - - /** - * Cube KPI Member - * - */ - @XmlEnumValue("k") - K("k"); - private final String value; - - STMdxFunctionType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STMdxFunctionType fromValue(String v) { - for (STMdxFunctionType c: STMdxFunctionType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_MdxFunctionType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_MdxFunctionType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="m"/>
+ *     <enumeration value="v"/>
+ *     <enumeration value="s"/>
+ *     <enumeration value="c"/>
+ *     <enumeration value="r"/>
+ *     <enumeration value="p"/>
+ *     <enumeration value="k"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_MdxFunctionType") +@XmlEnum +public enum STMdxFunctionType { + + @XmlEnumValue("m") + M("m"), + @XmlEnumValue("v") + V("v"), + @XmlEnumValue("s") + S("s"), + @XmlEnumValue("c") + C("c"), + @XmlEnumValue("r") + R("r"), + @XmlEnumValue("p") + P("p"), + @XmlEnumValue("k") + K("k"); + private final String value; + + STMdxFunctionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STMdxFunctionType fromValue(String v) { + for (STMdxFunctionType c: STMdxFunctionType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STMdxKPIProperty.java b/src/xlsx4j/java/org/xlsx4j/sml/STMdxKPIProperty.java index b843e0a03a..3de532574d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STMdxKPIProperty.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STMdxKPIProperty.java @@ -1,113 +1,63 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_MdxKPIProperty. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_MdxKPIProperty">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="v"/>
- *     <enumeration value="g"/>
- *     <enumeration value="s"/>
- *     <enumeration value="t"/>
- *     <enumeration value="w"/>
- *     <enumeration value="m"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_MdxKPIProperty") -@XmlEnum -public enum STMdxKPIProperty { - - - /** - * Value - * - */ - @XmlEnumValue("v") - V("v"), - - /** - * Goal - * - */ - @XmlEnumValue("g") - G("g"), - - /** - * Status - * - */ - @XmlEnumValue("s") - S("s"), - - /** - * Trend - * - */ - @XmlEnumValue("t") - T("t"), - - /** - * Weight - * - */ - @XmlEnumValue("w") - W("w"), - - /** - * Current Time Member - * - */ - @XmlEnumValue("m") - M("m"); - private final String value; - - STMdxKPIProperty(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STMdxKPIProperty fromValue(String v) { - for (STMdxKPIProperty c: STMdxKPIProperty.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_MdxKPIProperty. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_MdxKPIProperty">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="v"/>
+ *     <enumeration value="g"/>
+ *     <enumeration value="s"/>
+ *     <enumeration value="t"/>
+ *     <enumeration value="w"/>
+ *     <enumeration value="m"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_MdxKPIProperty") +@XmlEnum +public enum STMdxKPIProperty { + + @XmlEnumValue("v") + V("v"), + @XmlEnumValue("g") + G("g"), + @XmlEnumValue("s") + S("s"), + @XmlEnumValue("t") + T("t"), + @XmlEnumValue("w") + W("w"), + @XmlEnumValue("m") + M("m"); + private final String value; + + STMdxKPIProperty(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STMdxKPIProperty fromValue(String v) { + for (STMdxKPIProperty c: STMdxKPIProperty.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STMdxSetOrder.java b/src/xlsx4j/java/org/xlsx4j/sml/STMdxSetOrder.java index f3710ac05a..acf7df8f8a 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STMdxSetOrder.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STMdxSetOrder.java @@ -1,121 +1,66 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_MdxSetOrder. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_MdxSetOrder">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="u"/>
- *     <enumeration value="a"/>
- *     <enumeration value="d"/>
- *     <enumeration value="aa"/>
- *     <enumeration value="ad"/>
- *     <enumeration value="na"/>
- *     <enumeration value="nd"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_MdxSetOrder") -@XmlEnum -public enum STMdxSetOrder { - - - /** - * Unsorted - * - */ - @XmlEnumValue("u") - U("u"), - - /** - * Ascending - * - */ - @XmlEnumValue("a") - A("a"), - - /** - * Descending - * - */ - @XmlEnumValue("d") - D("d"), - - /** - * Alpha Ascending Sort Order - * - */ - @XmlEnumValue("aa") - AA("aa"), - - /** - * Alpha Descending Sort Order - * - */ - @XmlEnumValue("ad") - AD("ad"), - - /** - * Natural Ascending - * - */ - @XmlEnumValue("na") - NA("na"), - - /** - * Natural Descending - * - */ - @XmlEnumValue("nd") - ND("nd"); - private final String value; - - STMdxSetOrder(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STMdxSetOrder fromValue(String v) { - for (STMdxSetOrder c: STMdxSetOrder.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_MdxSetOrder. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_MdxSetOrder">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="u"/>
+ *     <enumeration value="a"/>
+ *     <enumeration value="d"/>
+ *     <enumeration value="aa"/>
+ *     <enumeration value="ad"/>
+ *     <enumeration value="na"/>
+ *     <enumeration value="nd"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_MdxSetOrder") +@XmlEnum +public enum STMdxSetOrder { + + @XmlEnumValue("u") + U("u"), + @XmlEnumValue("a") + A("a"), + @XmlEnumValue("d") + D("d"), + @XmlEnumValue("aa") + AA("aa"), + @XmlEnumValue("ad") + AD("ad"), + @XmlEnumValue("na") + NA("na"), + @XmlEnumValue("nd") + ND("nd"); + private final String value; + + STMdxSetOrder(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STMdxSetOrder fromValue(String v) { + for (STMdxSetOrder c: STMdxSetOrder.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STObjects.java b/src/xlsx4j/java/org/xlsx4j/sml/STObjects.java index cae51ce986..03948a5930 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STObjects.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STObjects.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Objects. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Objects">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="all"/>
- *     <enumeration value="placeholders"/>
- *     <enumeration value="none"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Objects") -@XmlEnum -public enum STObjects { - - - /** - * All - * - */ - @XmlEnumValue("all") - ALL("all"), - - /** - * Show Placeholders - * - */ - @XmlEnumValue("placeholders") - PLACEHOLDERS("placeholders"), - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"); - private final String value; - - STObjects(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STObjects fromValue(String v) { - for (STObjects c: STObjects.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Objects. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Objects">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="all"/>
+ *     <enumeration value="placeholders"/>
+ *     <enumeration value="none"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Objects") +@XmlEnum +public enum STObjects { + + @XmlEnumValue("all") + ALL("all"), + @XmlEnumValue("placeholders") + PLACEHOLDERS("placeholders"), + @XmlEnumValue("none") + NONE("none"); + private final String value; + + STObjects(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STObjects fromValue(String v) { + for (STObjects c: STObjects.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STOleUpdate.java b/src/xlsx4j/java/org/xlsx4j/sml/STOleUpdate.java index 0b656a4d23..1db0c0a942 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STOleUpdate.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STOleUpdate.java @@ -1,68 +1,38 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_OleUpdate. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_OleUpdate">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="OLEUPDATE_ALWAYS"/>
- *     <enumeration value="OLEUPDATE_ONCALL"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_OleUpdate") -@XmlEnum -public enum STOleUpdate { - - - /** - * Always Update OLE - * - */ - OLEUPDATE_ALWAYS, - - /** - * Update OLE On Call - * - */ - OLEUPDATE_ONCALL; - - public String value() { - return name(); - } - - public static STOleUpdate fromValue(String v) { - return valueOf(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_OleUpdate. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_OleUpdate">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="OLEUPDATE_ALWAYS"/>
+ *     <enumeration value="OLEUPDATE_ONCALL"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_OleUpdate") +@XmlEnum +public enum STOleUpdate { + + OLEUPDATE_ALWAYS, + OLEUPDATE_ONCALL; + + public String value() { + return name(); + } + + public static STOleUpdate fromValue(String v) { + return valueOf(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STOrientation.java b/src/xlsx4j/java/org/xlsx4j/sml/STOrientation.java index 649698ab62..cb8560f3f7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STOrientation.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STOrientation.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Orientation. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Orientation">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="default"/>
- *     <enumeration value="portrait"/>
- *     <enumeration value="landscape"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Orientation") -@XmlEnum -public enum STOrientation { - - - /** - * Default - * - */ - @XmlEnumValue("default") - DEFAULT("default"), - - /** - * Portrait - * - */ - @XmlEnumValue("portrait") - PORTRAIT("portrait"), - - /** - * Landscape - * - */ - @XmlEnumValue("landscape") - LANDSCAPE("landscape"); - private final String value; - - STOrientation(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STOrientation fromValue(String v) { - for (STOrientation c: STOrientation.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Orientation. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Orientation">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="default"/>
+ *     <enumeration value="portrait"/>
+ *     <enumeration value="landscape"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Orientation") +@XmlEnum +public enum STOrientation { + + @XmlEnumValue("default") + DEFAULT("default"), + @XmlEnumValue("portrait") + PORTRAIT("portrait"), + @XmlEnumValue("landscape") + LANDSCAPE("landscape"); + private final String value; + + STOrientation(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STOrientation fromValue(String v) { + for (STOrientation c: STOrientation.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPageOrder.java b/src/xlsx4j/java/org/xlsx4j/sml/STPageOrder.java index 0b786a34b9..41239c8085 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPageOrder.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPageOrder.java @@ -1,81 +1,51 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PageOrder. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PageOrder">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="downThenOver"/>
- *     <enumeration value="overThenDown"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PageOrder") -@XmlEnum -public enum STPageOrder { - - - /** - * Down Then Over - * - */ - @XmlEnumValue("downThenOver") - DOWN_THEN_OVER("downThenOver"), - - /** - * Over Then Down - * - */ - @XmlEnumValue("overThenDown") - OVER_THEN_DOWN("overThenDown"); - private final String value; - - STPageOrder(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPageOrder fromValue(String v) { - for (STPageOrder c: STPageOrder.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PageOrder. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PageOrder">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="downThenOver"/>
+ *     <enumeration value="overThenDown"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PageOrder") +@XmlEnum +public enum STPageOrder { + + @XmlEnumValue("downThenOver") + DOWN_THEN_OVER("downThenOver"), + @XmlEnumValue("overThenDown") + OVER_THEN_DOWN("overThenDown"); + private final String value; + + STPageOrder(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPageOrder fromValue(String v) { + for (STPageOrder c: STPageOrder.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPane.java b/src/xlsx4j/java/org/xlsx4j/sml/STPane.java index 8b300a14d1..f1ec9dafa7 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPane.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPane.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Pane. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Pane">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="bottomRight"/>
- *     <enumeration value="topRight"/>
- *     <enumeration value="bottomLeft"/>
- *     <enumeration value="topLeft"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Pane") -@XmlEnum -public enum STPane { - - - /** - * Bottom Right Pane - * - */ - @XmlEnumValue("bottomRight") - BOTTOM_RIGHT("bottomRight"), - - /** - * Top Right Pane - * - */ - @XmlEnumValue("topRight") - TOP_RIGHT("topRight"), - - /** - * Bottom Left Pane - * - */ - @XmlEnumValue("bottomLeft") - BOTTOM_LEFT("bottomLeft"), - - /** - * Top Left Pane - * - */ - @XmlEnumValue("topLeft") - TOP_LEFT("topLeft"); - private final String value; - - STPane(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPane fromValue(String v) { - for (STPane c: STPane.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Pane. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Pane">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="bottomRight"/>
+ *     <enumeration value="topRight"/>
+ *     <enumeration value="bottomLeft"/>
+ *     <enumeration value="topLeft"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Pane") +@XmlEnum +public enum STPane { + + @XmlEnumValue("bottomRight") + BOTTOM_RIGHT("bottomRight"), + @XmlEnumValue("topRight") + TOP_RIGHT("topRight"), + @XmlEnumValue("bottomLeft") + BOTTOM_LEFT("bottomLeft"), + @XmlEnumValue("topLeft") + TOP_LEFT("topLeft"); + private final String value; + + STPane(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPane fromValue(String v) { + for (STPane c: STPane.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPaneState.java b/src/xlsx4j/java/org/xlsx4j/sml/STPaneState.java index 7042f39f98..ce4ff98de3 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPaneState.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPaneState.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PaneState. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PaneState">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="split"/>
- *     <enumeration value="frozen"/>
- *     <enumeration value="frozenSplit"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PaneState") -@XmlEnum -public enum STPaneState { - - - /** - * Split - * - */ - @XmlEnumValue("split") - SPLIT("split"), - - /** - * Frozen - * - */ - @XmlEnumValue("frozen") - FROZEN("frozen"), - - /** - * Frozen Split - * - */ - @XmlEnumValue("frozenSplit") - FROZEN_SPLIT("frozenSplit"); - private final String value; - - STPaneState(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPaneState fromValue(String v) { - for (STPaneState c: STPaneState.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PaneState. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PaneState">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="split"/>
+ *     <enumeration value="frozen"/>
+ *     <enumeration value="frozenSplit"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PaneState") +@XmlEnum +public enum STPaneState { + + @XmlEnumValue("split") + SPLIT("split"), + @XmlEnumValue("frozen") + FROZEN("frozen"), + @XmlEnumValue("frozenSplit") + FROZEN_SPLIT("frozenSplit"); + private final String value; + + STPaneState(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPaneState fromValue(String v) { + for (STPaneState c: STPaneState.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STParameterType.java b/src/xlsx4j/java/org/xlsx4j/sml/STParameterType.java index 33a8674990..9f8d399286 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STParameterType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STParameterType.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_ParameterType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_ParameterType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="prompt"/>
- *     <enumeration value="value"/>
- *     <enumeration value="cell"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_ParameterType") -@XmlEnum -public enum STParameterType { - - - /** - * Prompt on Refresh - * - */ - @XmlEnumValue("prompt") - PROMPT("prompt"), - - /** - * Value - * - */ - @XmlEnumValue("value") - VALUE("value"), - - /** - * Parameter From Cell - * - */ - @XmlEnumValue("cell") - CELL("cell"); - private final String value; - - STParameterType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STParameterType fromValue(String v) { - for (STParameterType c: STParameterType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_ParameterType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_ParameterType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="prompt"/>
+ *     <enumeration value="value"/>
+ *     <enumeration value="cell"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_ParameterType") +@XmlEnum +public enum STParameterType { + + @XmlEnumValue("prompt") + PROMPT("prompt"), + @XmlEnumValue("value") + VALUE("value"), + @XmlEnumValue("cell") + CELL("cell"); + private final String value; + + STParameterType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STParameterType fromValue(String v) { + for (STParameterType c: STParameterType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPatternType.java b/src/xlsx4j/java/org/xlsx4j/sml/STPatternType.java index 04e09487d3..5f5af6dc2b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPatternType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPatternType.java @@ -1,217 +1,102 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PatternType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PatternType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="solid"/>
- *     <enumeration value="mediumGray"/>
- *     <enumeration value="darkGray"/>
- *     <enumeration value="lightGray"/>
- *     <enumeration value="darkHorizontal"/>
- *     <enumeration value="darkVertical"/>
- *     <enumeration value="darkDown"/>
- *     <enumeration value="darkUp"/>
- *     <enumeration value="darkGrid"/>
- *     <enumeration value="darkTrellis"/>
- *     <enumeration value="lightHorizontal"/>
- *     <enumeration value="lightVertical"/>
- *     <enumeration value="lightDown"/>
- *     <enumeration value="lightUp"/>
- *     <enumeration value="lightGrid"/>
- *     <enumeration value="lightTrellis"/>
- *     <enumeration value="gray125"/>
- *     <enumeration value="gray0625"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PatternType") -@XmlEnum -public enum STPatternType { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Solid - * - */ - @XmlEnumValue("solid") - SOLID("solid"), - - /** - * Medium Gray - * - */ - @XmlEnumValue("mediumGray") - MEDIUM_GRAY("mediumGray"), - - /** - * Dary Gray - * - */ - @XmlEnumValue("darkGray") - DARK_GRAY("darkGray"), - - /** - * Light Gray - * - */ - @XmlEnumValue("lightGray") - LIGHT_GRAY("lightGray"), - - /** - * Dark Horizontal - * - */ - @XmlEnumValue("darkHorizontal") - DARK_HORIZONTAL("darkHorizontal"), - - /** - * Dark Vertical - * - */ - @XmlEnumValue("darkVertical") - DARK_VERTICAL("darkVertical"), - - /** - * Dark Down - * - */ - @XmlEnumValue("darkDown") - DARK_DOWN("darkDown"), - - /** - * Dark Up - * - */ - @XmlEnumValue("darkUp") - DARK_UP("darkUp"), - - /** - * Dark Grid - * - */ - @XmlEnumValue("darkGrid") - DARK_GRID("darkGrid"), - - /** - * Dark Trellis - * - */ - @XmlEnumValue("darkTrellis") - DARK_TRELLIS("darkTrellis"), - - /** - * Light Horizontal - * - */ - @XmlEnumValue("lightHorizontal") - LIGHT_HORIZONTAL("lightHorizontal"), - - /** - * Light Vertical - * - */ - @XmlEnumValue("lightVertical") - LIGHT_VERTICAL("lightVertical"), - - /** - * Light Down - * - */ - @XmlEnumValue("lightDown") - LIGHT_DOWN("lightDown"), - - /** - * Light Up - * - */ - @XmlEnumValue("lightUp") - LIGHT_UP("lightUp"), - - /** - * Light Grid - * - */ - @XmlEnumValue("lightGrid") - LIGHT_GRID("lightGrid"), - - /** - * Light Trellis - * - */ - @XmlEnumValue("lightTrellis") - LIGHT_TRELLIS("lightTrellis"), - - /** - * Gray 0.125 - * - */ - @XmlEnumValue("gray125") - GRAY_125("gray125"), - - /** - * Gray 0.0625 - * - */ - @XmlEnumValue("gray0625") - GRAY_0625("gray0625"); - private final String value; - - STPatternType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPatternType fromValue(String v) { - for (STPatternType c: STPatternType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PatternType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PatternType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="solid"/>
+ *     <enumeration value="mediumGray"/>
+ *     <enumeration value="darkGray"/>
+ *     <enumeration value="lightGray"/>
+ *     <enumeration value="darkHorizontal"/>
+ *     <enumeration value="darkVertical"/>
+ *     <enumeration value="darkDown"/>
+ *     <enumeration value="darkUp"/>
+ *     <enumeration value="darkGrid"/>
+ *     <enumeration value="darkTrellis"/>
+ *     <enumeration value="lightHorizontal"/>
+ *     <enumeration value="lightVertical"/>
+ *     <enumeration value="lightDown"/>
+ *     <enumeration value="lightUp"/>
+ *     <enumeration value="lightGrid"/>
+ *     <enumeration value="lightTrellis"/>
+ *     <enumeration value="gray125"/>
+ *     <enumeration value="gray0625"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PatternType") +@XmlEnum +public enum STPatternType { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("solid") + SOLID("solid"), + @XmlEnumValue("mediumGray") + MEDIUM_GRAY("mediumGray"), + @XmlEnumValue("darkGray") + DARK_GRAY("darkGray"), + @XmlEnumValue("lightGray") + LIGHT_GRAY("lightGray"), + @XmlEnumValue("darkHorizontal") + DARK_HORIZONTAL("darkHorizontal"), + @XmlEnumValue("darkVertical") + DARK_VERTICAL("darkVertical"), + @XmlEnumValue("darkDown") + DARK_DOWN("darkDown"), + @XmlEnumValue("darkUp") + DARK_UP("darkUp"), + @XmlEnumValue("darkGrid") + DARK_GRID("darkGrid"), + @XmlEnumValue("darkTrellis") + DARK_TRELLIS("darkTrellis"), + @XmlEnumValue("lightHorizontal") + LIGHT_HORIZONTAL("lightHorizontal"), + @XmlEnumValue("lightVertical") + LIGHT_VERTICAL("lightVertical"), + @XmlEnumValue("lightDown") + LIGHT_DOWN("lightDown"), + @XmlEnumValue("lightUp") + LIGHT_UP("lightUp"), + @XmlEnumValue("lightGrid") + LIGHT_GRID("lightGrid"), + @XmlEnumValue("lightTrellis") + LIGHT_TRELLIS("lightTrellis"), + @XmlEnumValue("gray125") + GRAY_125("gray125"), + @XmlEnumValue("gray0625") + GRAY_0625("gray0625"); + private final String value; + + STPatternType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPatternType fromValue(String v) { + for (STPatternType c: STPatternType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticAlignment.java b/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticAlignment.java index 32f7db784e..a64bd5b303 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticAlignment.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticAlignment.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PhoneticAlignment. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PhoneticAlignment">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="noControl"/>
- *     <enumeration value="left"/>
- *     <enumeration value="center"/>
- *     <enumeration value="distributed"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PhoneticAlignment") -@XmlEnum -public enum STPhoneticAlignment { - - - /** - * No Control - * - */ - @XmlEnumValue("noControl") - NO_CONTROL("noControl"), - - /** - * Left Alignment - * - */ - @XmlEnumValue("left") - LEFT("left"), - - /** - * Center Alignment - * - */ - @XmlEnumValue("center") - CENTER("center"), - - /** - * Distributed - * - */ - @XmlEnumValue("distributed") - DISTRIBUTED("distributed"); - private final String value; - - STPhoneticAlignment(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPhoneticAlignment fromValue(String v) { - for (STPhoneticAlignment c: STPhoneticAlignment.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PhoneticAlignment. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PhoneticAlignment">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="noControl"/>
+ *     <enumeration value="left"/>
+ *     <enumeration value="center"/>
+ *     <enumeration value="distributed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PhoneticAlignment") +@XmlEnum +public enum STPhoneticAlignment { + + @XmlEnumValue("noControl") + NO_CONTROL("noControl"), + @XmlEnumValue("left") + LEFT("left"), + @XmlEnumValue("center") + CENTER("center"), + @XmlEnumValue("distributed") + DISTRIBUTED("distributed"); + private final String value; + + STPhoneticAlignment(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPhoneticAlignment fromValue(String v) { + for (STPhoneticAlignment c: STPhoneticAlignment.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticType.java b/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticType.java index 99a5a4366b..298ef9ea22 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPhoneticType.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PhoneticType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PhoneticType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="halfwidthKatakana"/>
- *     <enumeration value="fullwidthKatakana"/>
- *     <enumeration value="Hiragana"/>
- *     <enumeration value="noConversion"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PhoneticType") -@XmlEnum -public enum STPhoneticType { - - - /** - * Half-Width Katakana - * - */ - @XmlEnumValue("halfwidthKatakana") - HALFWIDTH_KATAKANA("halfwidthKatakana"), - - /** - * Full-Width Katakana - * - */ - @XmlEnumValue("fullwidthKatakana") - FULLWIDTH_KATAKANA("fullwidthKatakana"), - - /** - * Hiragana - * - */ - @XmlEnumValue("Hiragana") - HIRAGANA("Hiragana"), - - /** - * No Conversion - * - */ - @XmlEnumValue("noConversion") - NO_CONVERSION("noConversion"); - private final String value; - - STPhoneticType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPhoneticType fromValue(String v) { - for (STPhoneticType c: STPhoneticType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PhoneticType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PhoneticType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="halfwidthKatakana"/>
+ *     <enumeration value="fullwidthKatakana"/>
+ *     <enumeration value="Hiragana"/>
+ *     <enumeration value="noConversion"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PhoneticType") +@XmlEnum +public enum STPhoneticType { + + @XmlEnumValue("halfwidthKatakana") + HALFWIDTH_KATAKANA("halfwidthKatakana"), + @XmlEnumValue("fullwidthKatakana") + FULLWIDTH_KATAKANA("fullwidthKatakana"), + @XmlEnumValue("Hiragana") + HIRAGANA("Hiragana"), + @XmlEnumValue("noConversion") + NO_CONVERSION("noConversion"); + private final String value; + + STPhoneticType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPhoneticType fromValue(String v) { + for (STPhoneticType c: STPhoneticType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPivotAreaType.java b/src/xlsx4j/java/org/xlsx4j/sml/STPivotAreaType.java index 57eec579dc..f1650b7eaa 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPivotAreaType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPivotAreaType.java @@ -1,121 +1,69 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PivotAreaType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PivotAreaType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="normal"/>
- *     <enumeration value="data"/>
- *     <enumeration value="all"/>
- *     <enumeration value="origin"/>
- *     <enumeration value="button"/>
- *     <enumeration value="topRight"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PivotAreaType") -@XmlEnum -public enum STPivotAreaType { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Normal - * - */ - @XmlEnumValue("normal") - NORMAL("normal"), - - /** - * Data - * - */ - @XmlEnumValue("data") - DATA("data"), - - /** - * All - * - */ - @XmlEnumValue("all") - ALL("all"), - - /** - * Origin - * - */ - @XmlEnumValue("origin") - ORIGIN("origin"), - - /** - * Field Button - * - */ - @XmlEnumValue("button") - BUTTON("button"), - - /** - * Top Right - * - */ - @XmlEnumValue("topRight") - TOP_RIGHT("topRight"); - private final String value; - - STPivotAreaType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPivotAreaType fromValue(String v) { - for (STPivotAreaType c: STPivotAreaType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PivotAreaType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PivotAreaType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="normal"/>
+ *     <enumeration value="data"/>
+ *     <enumeration value="all"/>
+ *     <enumeration value="origin"/>
+ *     <enumeration value="button"/>
+ *     <enumeration value="topEnd"/>
+ *     <enumeration value="topRight"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PivotAreaType") +@XmlEnum +public enum STPivotAreaType { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("normal") + NORMAL("normal"), + @XmlEnumValue("data") + DATA("data"), + @XmlEnumValue("all") + ALL("all"), + @XmlEnumValue("origin") + ORIGIN("origin"), + @XmlEnumValue("button") + BUTTON("button"), + @XmlEnumValue("topEnd") + TOP_END("topEnd"), + @XmlEnumValue("topRight") + TOP_RIGHT("topRight"); + private final String value; + + STPivotAreaType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPivotAreaType fromValue(String v) { + for (STPivotAreaType c: STPivotAreaType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPivotFilterType.java b/src/xlsx4j/java/org/xlsx4j/sml/STPivotFilterType.java index c8d2194757..e78b150e94 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPivotFilterType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPivotFilterType.java @@ -1,593 +1,243 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PivotFilterType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PivotFilterType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="unknown"/>
- *     <enumeration value="count"/>
- *     <enumeration value="percent"/>
- *     <enumeration value="sum"/>
- *     <enumeration value="captionEqual"/>
- *     <enumeration value="captionNotEqual"/>
- *     <enumeration value="captionBeginsWith"/>
- *     <enumeration value="captionNotBeginsWith"/>
- *     <enumeration value="captionEndsWith"/>
- *     <enumeration value="captionNotEndsWith"/>
- *     <enumeration value="captionContains"/>
- *     <enumeration value="captionNotContains"/>
- *     <enumeration value="captionGreaterThan"/>
- *     <enumeration value="captionGreaterThanOrEqual"/>
- *     <enumeration value="captionLessThan"/>
- *     <enumeration value="captionLessThanOrEqual"/>
- *     <enumeration value="captionBetween"/>
- *     <enumeration value="captionNotBetween"/>
- *     <enumeration value="valueEqual"/>
- *     <enumeration value="valueNotEqual"/>
- *     <enumeration value="valueGreaterThan"/>
- *     <enumeration value="valueGreaterThanOrEqual"/>
- *     <enumeration value="valueLessThan"/>
- *     <enumeration value="valueLessThanOrEqual"/>
- *     <enumeration value="valueBetween"/>
- *     <enumeration value="valueNotBetween"/>
- *     <enumeration value="dateEqual"/>
- *     <enumeration value="dateNotEqual"/>
- *     <enumeration value="dateOlderThan"/>
- *     <enumeration value="dateOlderThanOrEqual"/>
- *     <enumeration value="dateNewerThan"/>
- *     <enumeration value="dateNewerThanOrEqual"/>
- *     <enumeration value="dateBetween"/>
- *     <enumeration value="dateNotBetween"/>
- *     <enumeration value="tomorrow"/>
- *     <enumeration value="today"/>
- *     <enumeration value="yesterday"/>
- *     <enumeration value="nextWeek"/>
- *     <enumeration value="thisWeek"/>
- *     <enumeration value="lastWeek"/>
- *     <enumeration value="nextMonth"/>
- *     <enumeration value="thisMonth"/>
- *     <enumeration value="lastMonth"/>
- *     <enumeration value="nextQuarter"/>
- *     <enumeration value="thisQuarter"/>
- *     <enumeration value="lastQuarter"/>
- *     <enumeration value="nextYear"/>
- *     <enumeration value="thisYear"/>
- *     <enumeration value="lastYear"/>
- *     <enumeration value="yearToDate"/>
- *     <enumeration value="Q1"/>
- *     <enumeration value="Q2"/>
- *     <enumeration value="Q3"/>
- *     <enumeration value="Q4"/>
- *     <enumeration value="M1"/>
- *     <enumeration value="M2"/>
- *     <enumeration value="M3"/>
- *     <enumeration value="M4"/>
- *     <enumeration value="M5"/>
- *     <enumeration value="M6"/>
- *     <enumeration value="M7"/>
- *     <enumeration value="M8"/>
- *     <enumeration value="M9"/>
- *     <enumeration value="M10"/>
- *     <enumeration value="M11"/>
- *     <enumeration value="M12"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PivotFilterType") -@XmlEnum -public enum STPivotFilterType { - - - /** - * Unknown - * - */ - @XmlEnumValue("unknown") - UNKNOWN("unknown"), - - /** - * Count - * - */ - @XmlEnumValue("count") - COUNT("count"), - - /** - * Percent - * - */ - @XmlEnumValue("percent") - PERCENT("percent"), - - /** - * Sum - * - */ - @XmlEnumValue("sum") - SUM("sum"), - - /** - * Caption Equals - * - */ - @XmlEnumValue("captionEqual") - CAPTION_EQUAL("captionEqual"), - - /** - * Caption Not Equal - * - */ - @XmlEnumValue("captionNotEqual") - CAPTION_NOT_EQUAL("captionNotEqual"), - - /** - * Caption Begins With - * - */ - @XmlEnumValue("captionBeginsWith") - CAPTION_BEGINS_WITH("captionBeginsWith"), - - /** - * Caption Does Not Begin With - * - */ - @XmlEnumValue("captionNotBeginsWith") - CAPTION_NOT_BEGINS_WITH("captionNotBeginsWith"), - - /** - * Caption Ends With - * - */ - @XmlEnumValue("captionEndsWith") - CAPTION_ENDS_WITH("captionEndsWith"), - - /** - * Caption Does Not End With - * - */ - @XmlEnumValue("captionNotEndsWith") - CAPTION_NOT_ENDS_WITH("captionNotEndsWith"), - - /** - * Caption Contains - * - */ - @XmlEnumValue("captionContains") - CAPTION_CONTAINS("captionContains"), - - /** - * Caption Does Not Contain - * - */ - @XmlEnumValue("captionNotContains") - CAPTION_NOT_CONTAINS("captionNotContains"), - - /** - * Caption Is Greater Than - * - */ - @XmlEnumValue("captionGreaterThan") - CAPTION_GREATER_THAN("captionGreaterThan"), - - /** - * Caption Is Greater Than Or Equal To - * - */ - @XmlEnumValue("captionGreaterThanOrEqual") - CAPTION_GREATER_THAN_OR_EQUAL("captionGreaterThanOrEqual"), - - /** - * Caption Is Less Than - * - */ - @XmlEnumValue("captionLessThan") - CAPTION_LESS_THAN("captionLessThan"), - - /** - * Caption Is Less Than Or Equal To - * - */ - @XmlEnumValue("captionLessThanOrEqual") - CAPTION_LESS_THAN_OR_EQUAL("captionLessThanOrEqual"), - - /** - * Caption Is Between - * - */ - @XmlEnumValue("captionBetween") - CAPTION_BETWEEN("captionBetween"), - - /** - * Caption Is Not Between - * - */ - @XmlEnumValue("captionNotBetween") - CAPTION_NOT_BETWEEN("captionNotBetween"), - - /** - * Value Equal - * - */ - @XmlEnumValue("valueEqual") - VALUE_EQUAL("valueEqual"), - - /** - * Value Not Equal - * - */ - @XmlEnumValue("valueNotEqual") - VALUE_NOT_EQUAL("valueNotEqual"), - - /** - * Value Greater Than - * - */ - @XmlEnumValue("valueGreaterThan") - VALUE_GREATER_THAN("valueGreaterThan"), - - /** - * Value Greater Than Or Equal To - * - */ - @XmlEnumValue("valueGreaterThanOrEqual") - VALUE_GREATER_THAN_OR_EQUAL("valueGreaterThanOrEqual"), - - /** - * Value Less Than - * - */ - @XmlEnumValue("valueLessThan") - VALUE_LESS_THAN("valueLessThan"), - - /** - * Value Less Than Or Equal To - * - */ - @XmlEnumValue("valueLessThanOrEqual") - VALUE_LESS_THAN_OR_EQUAL("valueLessThanOrEqual"), - - /** - * Value Between - * - */ - @XmlEnumValue("valueBetween") - VALUE_BETWEEN("valueBetween"), - - /** - * Value Not Between - * - */ - @XmlEnumValue("valueNotBetween") - VALUE_NOT_BETWEEN("valueNotBetween"), - - /** - * Date Equals - * - */ - @XmlEnumValue("dateEqual") - DATE_EQUAL("dateEqual"), - - /** - * Date Does Not Equal - * - */ - @XmlEnumValue("dateNotEqual") - DATE_NOT_EQUAL("dateNotEqual"), - - /** - * Date Older Than - * - */ - @XmlEnumValue("dateOlderThan") - DATE_OLDER_THAN("dateOlderThan"), - - /** - * Date Older Than Or Equal - * - */ - @XmlEnumValue("dateOlderThanOrEqual") - DATE_OLDER_THAN_OR_EQUAL("dateOlderThanOrEqual"), - - /** - * Date Newer Than - * - */ - @XmlEnumValue("dateNewerThan") - DATE_NEWER_THAN("dateNewerThan"), - - /** - * Date Newer Than or Equal To - * - */ - @XmlEnumValue("dateNewerThanOrEqual") - DATE_NEWER_THAN_OR_EQUAL("dateNewerThanOrEqual"), - - /** - * Date Between - * - */ - @XmlEnumValue("dateBetween") - DATE_BETWEEN("dateBetween"), - - /** - * Date Not Between - * - */ - @XmlEnumValue("dateNotBetween") - DATE_NOT_BETWEEN("dateNotBetween"), - - /** - * Tomorrow - * - */ - @XmlEnumValue("tomorrow") - TOMORROW("tomorrow"), - - /** - * Today - * - */ - @XmlEnumValue("today") - TODAY("today"), - - /** - * Yesterday - * - */ - @XmlEnumValue("yesterday") - YESTERDAY("yesterday"), - - /** - * Next Week - * - */ - @XmlEnumValue("nextWeek") - NEXT_WEEK("nextWeek"), - - /** - * This Week - * - */ - @XmlEnumValue("thisWeek") - THIS_WEEK("thisWeek"), - - /** - * Last Week - * - */ - @XmlEnumValue("lastWeek") - LAST_WEEK("lastWeek"), - - /** - * Next Month - * - */ - @XmlEnumValue("nextMonth") - NEXT_MONTH("nextMonth"), - - /** - * This Month - * - */ - @XmlEnumValue("thisMonth") - THIS_MONTH("thisMonth"), - - /** - * Last Month - * - */ - @XmlEnumValue("lastMonth") - LAST_MONTH("lastMonth"), - - /** - * Next Quarter - * - */ - @XmlEnumValue("nextQuarter") - NEXT_QUARTER("nextQuarter"), - - /** - * This Quarter - * - */ - @XmlEnumValue("thisQuarter") - THIS_QUARTER("thisQuarter"), - - /** - * Last Quarter - * - */ - @XmlEnumValue("lastQuarter") - LAST_QUARTER("lastQuarter"), - - /** - * Next Year - * - */ - @XmlEnumValue("nextYear") - NEXT_YEAR("nextYear"), - - /** - * This Year - * - */ - @XmlEnumValue("thisYear") - THIS_YEAR("thisYear"), - - /** - * Last Year - * - */ - @XmlEnumValue("lastYear") - LAST_YEAR("lastYear"), - - /** - * Year-To-Date - * - */ - @XmlEnumValue("yearToDate") - YEAR_TO_DATE("yearToDate"), - - /** - * First Quarter - * - */ - @XmlEnumValue("Q1") - Q_1("Q1"), - - /** - * Second Quarter - * - */ - @XmlEnumValue("Q2") - Q_2("Q2"), - - /** - * Third Quarter - * - */ - @XmlEnumValue("Q3") - Q_3("Q3"), - - /** - * Fourth Quarter - * - */ - @XmlEnumValue("Q4") - Q_4("Q4"), - - /** - * January - * - */ - @XmlEnumValue("M1") - M_1("M1"), - - /** - * Dates in February - * - */ - @XmlEnumValue("M2") - M_2("M2"), - - /** - * Dates in March - * - */ - @XmlEnumValue("M3") - M_3("M3"), - - /** - * Dates in April - * - */ - @XmlEnumValue("M4") - M_4("M4"), - - /** - * Dates in May - * - */ - @XmlEnumValue("M5") - M_5("M5"), - - /** - * Dates in June - * - */ - @XmlEnumValue("M6") - M_6("M6"), - - /** - * Dates in July - * - */ - @XmlEnumValue("M7") - M_7("M7"), - - /** - * Dates in August - * - */ - @XmlEnumValue("M8") - M_8("M8"), - - /** - * Dates in September - * - */ - @XmlEnumValue("M9") - M_9("M9"), - - /** - * Dates in October - * - */ - @XmlEnumValue("M10") - M_10("M10"), - - /** - * Dates in November - * - */ - @XmlEnumValue("M11") - M_11("M11"), - - /** - * Dates in December - * - */ - @XmlEnumValue("M12") - M_12("M12"); - private final String value; - - STPivotFilterType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPivotFilterType fromValue(String v) { - for (STPivotFilterType c: STPivotFilterType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PivotFilterType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PivotFilterType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="unknown"/>
+ *     <enumeration value="count"/>
+ *     <enumeration value="percent"/>
+ *     <enumeration value="sum"/>
+ *     <enumeration value="captionEqual"/>
+ *     <enumeration value="captionNotEqual"/>
+ *     <enumeration value="captionBeginsWith"/>
+ *     <enumeration value="captionNotBeginsWith"/>
+ *     <enumeration value="captionEndsWith"/>
+ *     <enumeration value="captionNotEndsWith"/>
+ *     <enumeration value="captionContains"/>
+ *     <enumeration value="captionNotContains"/>
+ *     <enumeration value="captionGreaterThan"/>
+ *     <enumeration value="captionGreaterThanOrEqual"/>
+ *     <enumeration value="captionLessThan"/>
+ *     <enumeration value="captionLessThanOrEqual"/>
+ *     <enumeration value="captionBetween"/>
+ *     <enumeration value="captionNotBetween"/>
+ *     <enumeration value="valueEqual"/>
+ *     <enumeration value="valueNotEqual"/>
+ *     <enumeration value="valueGreaterThan"/>
+ *     <enumeration value="valueGreaterThanOrEqual"/>
+ *     <enumeration value="valueLessThan"/>
+ *     <enumeration value="valueLessThanOrEqual"/>
+ *     <enumeration value="valueBetween"/>
+ *     <enumeration value="valueNotBetween"/>
+ *     <enumeration value="dateEqual"/>
+ *     <enumeration value="dateNotEqual"/>
+ *     <enumeration value="dateOlderThan"/>
+ *     <enumeration value="dateOlderThanOrEqual"/>
+ *     <enumeration value="dateNewerThan"/>
+ *     <enumeration value="dateNewerThanOrEqual"/>
+ *     <enumeration value="dateBetween"/>
+ *     <enumeration value="dateNotBetween"/>
+ *     <enumeration value="tomorrow"/>
+ *     <enumeration value="today"/>
+ *     <enumeration value="yesterday"/>
+ *     <enumeration value="nextWeek"/>
+ *     <enumeration value="thisWeek"/>
+ *     <enumeration value="lastWeek"/>
+ *     <enumeration value="nextMonth"/>
+ *     <enumeration value="thisMonth"/>
+ *     <enumeration value="lastMonth"/>
+ *     <enumeration value="nextQuarter"/>
+ *     <enumeration value="thisQuarter"/>
+ *     <enumeration value="lastQuarter"/>
+ *     <enumeration value="nextYear"/>
+ *     <enumeration value="thisYear"/>
+ *     <enumeration value="lastYear"/>
+ *     <enumeration value="yearToDate"/>
+ *     <enumeration value="Q1"/>
+ *     <enumeration value="Q2"/>
+ *     <enumeration value="Q3"/>
+ *     <enumeration value="Q4"/>
+ *     <enumeration value="M1"/>
+ *     <enumeration value="M2"/>
+ *     <enumeration value="M3"/>
+ *     <enumeration value="M4"/>
+ *     <enumeration value="M5"/>
+ *     <enumeration value="M6"/>
+ *     <enumeration value="M7"/>
+ *     <enumeration value="M8"/>
+ *     <enumeration value="M9"/>
+ *     <enumeration value="M10"/>
+ *     <enumeration value="M11"/>
+ *     <enumeration value="M12"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PivotFilterType") +@XmlEnum +public enum STPivotFilterType { + + @XmlEnumValue("unknown") + UNKNOWN("unknown"), + @XmlEnumValue("count") + COUNT("count"), + @XmlEnumValue("percent") + PERCENT("percent"), + @XmlEnumValue("sum") + SUM("sum"), + @XmlEnumValue("captionEqual") + CAPTION_EQUAL("captionEqual"), + @XmlEnumValue("captionNotEqual") + CAPTION_NOT_EQUAL("captionNotEqual"), + @XmlEnumValue("captionBeginsWith") + CAPTION_BEGINS_WITH("captionBeginsWith"), + @XmlEnumValue("captionNotBeginsWith") + CAPTION_NOT_BEGINS_WITH("captionNotBeginsWith"), + @XmlEnumValue("captionEndsWith") + CAPTION_ENDS_WITH("captionEndsWith"), + @XmlEnumValue("captionNotEndsWith") + CAPTION_NOT_ENDS_WITH("captionNotEndsWith"), + @XmlEnumValue("captionContains") + CAPTION_CONTAINS("captionContains"), + @XmlEnumValue("captionNotContains") + CAPTION_NOT_CONTAINS("captionNotContains"), + @XmlEnumValue("captionGreaterThan") + CAPTION_GREATER_THAN("captionGreaterThan"), + @XmlEnumValue("captionGreaterThanOrEqual") + CAPTION_GREATER_THAN_OR_EQUAL("captionGreaterThanOrEqual"), + @XmlEnumValue("captionLessThan") + CAPTION_LESS_THAN("captionLessThan"), + @XmlEnumValue("captionLessThanOrEqual") + CAPTION_LESS_THAN_OR_EQUAL("captionLessThanOrEqual"), + @XmlEnumValue("captionBetween") + CAPTION_BETWEEN("captionBetween"), + @XmlEnumValue("captionNotBetween") + CAPTION_NOT_BETWEEN("captionNotBetween"), + @XmlEnumValue("valueEqual") + VALUE_EQUAL("valueEqual"), + @XmlEnumValue("valueNotEqual") + VALUE_NOT_EQUAL("valueNotEqual"), + @XmlEnumValue("valueGreaterThan") + VALUE_GREATER_THAN("valueGreaterThan"), + @XmlEnumValue("valueGreaterThanOrEqual") + VALUE_GREATER_THAN_OR_EQUAL("valueGreaterThanOrEqual"), + @XmlEnumValue("valueLessThan") + VALUE_LESS_THAN("valueLessThan"), + @XmlEnumValue("valueLessThanOrEqual") + VALUE_LESS_THAN_OR_EQUAL("valueLessThanOrEqual"), + @XmlEnumValue("valueBetween") + VALUE_BETWEEN("valueBetween"), + @XmlEnumValue("valueNotBetween") + VALUE_NOT_BETWEEN("valueNotBetween"), + @XmlEnumValue("dateEqual") + DATE_EQUAL("dateEqual"), + @XmlEnumValue("dateNotEqual") + DATE_NOT_EQUAL("dateNotEqual"), + @XmlEnumValue("dateOlderThan") + DATE_OLDER_THAN("dateOlderThan"), + @XmlEnumValue("dateOlderThanOrEqual") + DATE_OLDER_THAN_OR_EQUAL("dateOlderThanOrEqual"), + @XmlEnumValue("dateNewerThan") + DATE_NEWER_THAN("dateNewerThan"), + @XmlEnumValue("dateNewerThanOrEqual") + DATE_NEWER_THAN_OR_EQUAL("dateNewerThanOrEqual"), + @XmlEnumValue("dateBetween") + DATE_BETWEEN("dateBetween"), + @XmlEnumValue("dateNotBetween") + DATE_NOT_BETWEEN("dateNotBetween"), + @XmlEnumValue("tomorrow") + TOMORROW("tomorrow"), + @XmlEnumValue("today") + TODAY("today"), + @XmlEnumValue("yesterday") + YESTERDAY("yesterday"), + @XmlEnumValue("nextWeek") + NEXT_WEEK("nextWeek"), + @XmlEnumValue("thisWeek") + THIS_WEEK("thisWeek"), + @XmlEnumValue("lastWeek") + LAST_WEEK("lastWeek"), + @XmlEnumValue("nextMonth") + NEXT_MONTH("nextMonth"), + @XmlEnumValue("thisMonth") + THIS_MONTH("thisMonth"), + @XmlEnumValue("lastMonth") + LAST_MONTH("lastMonth"), + @XmlEnumValue("nextQuarter") + NEXT_QUARTER("nextQuarter"), + @XmlEnumValue("thisQuarter") + THIS_QUARTER("thisQuarter"), + @XmlEnumValue("lastQuarter") + LAST_QUARTER("lastQuarter"), + @XmlEnumValue("nextYear") + NEXT_YEAR("nextYear"), + @XmlEnumValue("thisYear") + THIS_YEAR("thisYear"), + @XmlEnumValue("lastYear") + LAST_YEAR("lastYear"), + @XmlEnumValue("yearToDate") + YEAR_TO_DATE("yearToDate"), + @XmlEnumValue("Q1") + Q_1("Q1"), + @XmlEnumValue("Q2") + Q_2("Q2"), + @XmlEnumValue("Q3") + Q_3("Q3"), + @XmlEnumValue("Q4") + Q_4("Q4"), + @XmlEnumValue("M1") + M_1("M1"), + @XmlEnumValue("M2") + M_2("M2"), + @XmlEnumValue("M3") + M_3("M3"), + @XmlEnumValue("M4") + M_4("M4"), + @XmlEnumValue("M5") + M_5("M5"), + @XmlEnumValue("M6") + M_6("M6"), + @XmlEnumValue("M7") + M_7("M7"), + @XmlEnumValue("M8") + M_8("M8"), + @XmlEnumValue("M9") + M_9("M9"), + @XmlEnumValue("M10") + M_10("M10"), + @XmlEnumValue("M11") + M_11("M11"), + @XmlEnumValue("M12") + M_12("M12"); + private final String value; + + STPivotFilterType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPivotFilterType fromValue(String v) { + for (STPivotFilterType c: STPivotFilterType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STPrintError.java b/src/xlsx4j/java/org/xlsx4j/sml/STPrintError.java index 99a41f00cf..2320cef952 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STPrintError.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STPrintError.java @@ -1,96 +1,56 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_PrintError. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_PrintError">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="displayed"/>
- *     <enumeration value="blank"/>
- *     <enumeration value="dash"/>
- *     <enumeration value="NA"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_PrintError") -@XmlEnum -public enum STPrintError { - - - /** - * Display Cell Errors - * - */ - @XmlEnumValue("displayed") - DISPLAYED("displayed"), - - /** - * Show Cell Errors As Blank - * - */ - @XmlEnumValue("blank") - BLANK("blank"), - - /** - * Dash Cell Errors - * - */ - @XmlEnumValue("dash") - DASH("dash"), - - /** - * NA - * - */ - NA("NA"); - private final String value; - - STPrintError(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STPrintError fromValue(String v) { - for (STPrintError c: STPrintError.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_PrintError. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_PrintError">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="displayed"/>
+ *     <enumeration value="blank"/>
+ *     <enumeration value="dash"/>
+ *     <enumeration value="NA"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_PrintError") +@XmlEnum +public enum STPrintError { + + @XmlEnumValue("displayed") + DISPLAYED("displayed"), + @XmlEnumValue("blank") + BLANK("blank"), + @XmlEnumValue("dash") + DASH("dash"), + NA("NA"); + private final String value; + + STPrintError(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STPrintError fromValue(String v) { + for (STPrintError c: STPrintError.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STQualifier.java b/src/xlsx4j/java/org/xlsx4j/sml/STQualifier.java index 26dae01734..85e6c2275b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STQualifier.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STQualifier.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Qualifier. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Qualifier">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="doubleQuote"/>
- *     <enumeration value="singleQuote"/>
- *     <enumeration value="none"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Qualifier") -@XmlEnum -public enum STQualifier { - - - /** - * Double Quote - * - */ - @XmlEnumValue("doubleQuote") - DOUBLE_QUOTE("doubleQuote"), - - /** - * Single Quote - * - */ - @XmlEnumValue("singleQuote") - SINGLE_QUOTE("singleQuote"), - - /** - * No Text Qualifier - * - */ - @XmlEnumValue("none") - NONE("none"); - private final String value; - - STQualifier(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STQualifier fromValue(String v) { - for (STQualifier c: STQualifier.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Qualifier. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Qualifier">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="doubleQuote"/>
+ *     <enumeration value="singleQuote"/>
+ *     <enumeration value="none"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Qualifier") +@XmlEnum +public enum STQualifier { + + @XmlEnumValue("doubleQuote") + DOUBLE_QUOTE("doubleQuote"), + @XmlEnumValue("singleQuote") + SINGLE_QUOTE("singleQuote"), + @XmlEnumValue("none") + NONE("none"); + private final String value; + + STQualifier(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STQualifier fromValue(String v) { + for (STQualifier c: STQualifier.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STRefMode.java b/src/xlsx4j/java/org/xlsx4j/sml/STRefMode.java index 5ef4c431f7..d58f4262a5 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STRefMode.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STRefMode.java @@ -1,81 +1,51 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_RefMode. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_RefMode">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="A1"/>
- *     <enumeration value="R1C1"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_RefMode") -@XmlEnum -public enum STRefMode { - - - /** - * A1 Mode - * - */ - @XmlEnumValue("A1") - A_1("A1"), - - /** - * R1C1 Reference Mode - * - */ - @XmlEnumValue("R1C1") - R_1_C_1("R1C1"); - private final String value; - - STRefMode(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STRefMode fromValue(String v) { - for (STRefMode c: STRefMode.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_RefMode. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_RefMode">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="A1"/>
+ *     <enumeration value="R1C1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_RefMode") +@XmlEnum +public enum STRefMode { + + @XmlEnumValue("A1") + A_1("A1"), + @XmlEnumValue("R1C1") + R_1_C_1("R1C1"); + private final String value; + + STRefMode(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STRefMode fromValue(String v) { + for (STRefMode c: STRefMode.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STRevisionAction.java b/src/xlsx4j/java/org/xlsx4j/sml/STRevisionAction.java index 0ec20461ab..f7af1a4dc2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STRevisionAction.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STRevisionAction.java @@ -1,81 +1,51 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_RevisionAction. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_RevisionAction">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="add"/>
- *     <enumeration value="delete"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_RevisionAction") -@XmlEnum -public enum STRevisionAction { - - - /** - * Add - * - */ - @XmlEnumValue("add") - ADD("add"), - - /** - * Delete - * - */ - @XmlEnumValue("delete") - DELETE("delete"); - private final String value; - - STRevisionAction(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STRevisionAction fromValue(String v) { - for (STRevisionAction c: STRevisionAction.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_RevisionAction. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_RevisionAction">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="add"/>
+ *     <enumeration value="delete"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_RevisionAction") +@XmlEnum +public enum STRevisionAction { + + @XmlEnumValue("add") + ADD("add"), + @XmlEnumValue("delete") + DELETE("delete"); + private final String value; + + STRevisionAction(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STRevisionAction fromValue(String v) { + for (STRevisionAction c: STRevisionAction.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STRwColActionType.java b/src/xlsx4j/java/org/xlsx4j/sml/STRwColActionType.java index 91ec714293..d620d0c0e6 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STRwColActionType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STRwColActionType.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_rwColActionType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_rwColActionType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="insertRow"/>
- *     <enumeration value="deleteRow"/>
- *     <enumeration value="insertCol"/>
- *     <enumeration value="deleteCol"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_rwColActionType") -@XmlEnum -public enum STRwColActionType { - - - /** - * Insert Row - * - */ - @XmlEnumValue("insertRow") - INSERT_ROW("insertRow"), - - /** - * Delete Row - * - */ - @XmlEnumValue("deleteRow") - DELETE_ROW("deleteRow"), - - /** - * Column Insert - * - */ - @XmlEnumValue("insertCol") - INSERT_COL("insertCol"), - - /** - * Delete Column - * - */ - @XmlEnumValue("deleteCol") - DELETE_COL("deleteCol"); - private final String value; - - STRwColActionType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STRwColActionType fromValue(String v) { - for (STRwColActionType c: STRwColActionType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_rwColActionType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_rwColActionType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="insertRow"/>
+ *     <enumeration value="deleteRow"/>
+ *     <enumeration value="insertCol"/>
+ *     <enumeration value="deleteCol"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_rwColActionType") +@XmlEnum +public enum STRwColActionType { + + @XmlEnumValue("insertRow") + INSERT_ROW("insertRow"), + @XmlEnumValue("deleteRow") + DELETE_ROW("deleteRow"), + @XmlEnumValue("insertCol") + INSERT_COL("insertCol"), + @XmlEnumValue("deleteCol") + DELETE_COL("deleteCol"); + private final String value; + + STRwColActionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STRwColActionType fromValue(String v) { + for (STRwColActionType c: STRwColActionType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STScope.java b/src/xlsx4j/java/org/xlsx4j/sml/STScope.java index d9e5b0544d..90d9234572 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STScope.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STScope.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Scope. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Scope">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="selection"/>
- *     <enumeration value="data"/>
- *     <enumeration value="field"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Scope") -@XmlEnum -public enum STScope { - - - /** - * Selection - * - */ - @XmlEnumValue("selection") - SELECTION("selection"), - - /** - * Data Fields - * - */ - @XmlEnumValue("data") - DATA("data"), - - /** - * Field Intersections - * - */ - @XmlEnumValue("field") - FIELD("field"); - private final String value; - - STScope(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STScope fromValue(String v) { - for (STScope c: STScope.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Scope. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Scope">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="selection"/>
+ *     <enumeration value="data"/>
+ *     <enumeration value="field"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Scope") +@XmlEnum +public enum STScope { + + @XmlEnumValue("selection") + SELECTION("selection"), + @XmlEnumValue("data") + DATA("data"), + @XmlEnumValue("field") + FIELD("field"); + private final String value; + + STScope(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STScope fromValue(String v) { + for (STScope c: STScope.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STSheetState.java b/src/xlsx4j/java/org/xlsx4j/sml/STSheetState.java index ba89ef4b4c..d4b7297038 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STSheetState.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STSheetState.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_SheetState. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_SheetState">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="visible"/>
- *     <enumeration value="hidden"/>
- *     <enumeration value="veryHidden"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_SheetState") -@XmlEnum -public enum STSheetState { - - - /** - * Visible - * - */ - @XmlEnumValue("visible") - VISIBLE("visible"), - - /** - * Hidden - * - */ - @XmlEnumValue("hidden") - HIDDEN("hidden"), - - /** - * Very Hidden - * - */ - @XmlEnumValue("veryHidden") - VERY_HIDDEN("veryHidden"); - private final String value; - - STSheetState(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STSheetState fromValue(String v) { - for (STSheetState c: STSheetState.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_SheetState. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_SheetState">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="visible"/>
+ *     <enumeration value="hidden"/>
+ *     <enumeration value="veryHidden"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_SheetState") +@XmlEnum +public enum STSheetState { + + @XmlEnumValue("visible") + VISIBLE("visible"), + @XmlEnumValue("hidden") + HIDDEN("hidden"), + @XmlEnumValue("veryHidden") + VERY_HIDDEN("veryHidden"); + private final String value; + + STSheetState(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STSheetState fromValue(String v) { + for (STSheetState c: STSheetState.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STSheetViewType.java b/src/xlsx4j/java/org/xlsx4j/sml/STSheetViewType.java index 9eb2794dff..1b35a307af 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STSheetViewType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STSheetViewType.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_SheetViewType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_SheetViewType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="normal"/>
- *     <enumeration value="pageBreakPreview"/>
- *     <enumeration value="pageLayout"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_SheetViewType") -@XmlEnum -public enum STSheetViewType { - - - /** - * Normal View - * - */ - @XmlEnumValue("normal") - NORMAL("normal"), - - /** - * Page Break Preview - * - */ - @XmlEnumValue("pageBreakPreview") - PAGE_BREAK_PREVIEW("pageBreakPreview"), - - /** - * Page Layout View - * - */ - @XmlEnumValue("pageLayout") - PAGE_LAYOUT("pageLayout"); - private final String value; - - STSheetViewType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STSheetViewType fromValue(String v) { - for (STSheetViewType c: STSheetViewType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_SheetViewType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_SheetViewType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="normal"/>
+ *     <enumeration value="pageBreakPreview"/>
+ *     <enumeration value="pageLayout"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_SheetViewType") +@XmlEnum +public enum STSheetViewType { + + @XmlEnumValue("normal") + NORMAL("normal"), + @XmlEnumValue("pageBreakPreview") + PAGE_BREAK_PREVIEW("pageBreakPreview"), + @XmlEnumValue("pageLayout") + PAGE_LAYOUT("pageLayout"); + private final String value; + + STSheetViewType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STSheetViewType fromValue(String v) { + for (STSheetViewType c: STSheetViewType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STShowDataAs.java b/src/xlsx4j/java/org/xlsx4j/sml/STShowDataAs.java index bc565d3c85..0890ce9b41 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STShowDataAs.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STShowDataAs.java @@ -1,137 +1,72 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_ShowDataAs. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_ShowDataAs">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="normal"/>
- *     <enumeration value="difference"/>
- *     <enumeration value="percent"/>
- *     <enumeration value="percentDiff"/>
- *     <enumeration value="runTotal"/>
- *     <enumeration value="percentOfRow"/>
- *     <enumeration value="percentOfCol"/>
- *     <enumeration value="percentOfTotal"/>
- *     <enumeration value="index"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_ShowDataAs") -@XmlEnum -public enum STShowDataAs { - - - /** - * Normal Data Type - * - */ - @XmlEnumValue("normal") - NORMAL("normal"), - - /** - * Difference - * - */ - @XmlEnumValue("difference") - DIFFERENCE("difference"), - - /** - * Percentage Of - * - */ - @XmlEnumValue("percent") - PERCENT("percent"), - - /** - * Percentage Difference - * - */ - @XmlEnumValue("percentDiff") - PERCENT_DIFF("percentDiff"), - - /** - * Running Total - * - */ - @XmlEnumValue("runTotal") - RUN_TOTAL("runTotal"), - - /** - * Percentage of Row - * - */ - @XmlEnumValue("percentOfRow") - PERCENT_OF_ROW("percentOfRow"), - - /** - * Percent of Column - * - */ - @XmlEnumValue("percentOfCol") - PERCENT_OF_COL("percentOfCol"), - - /** - * Percentage of Total - * - */ - @XmlEnumValue("percentOfTotal") - PERCENT_OF_TOTAL("percentOfTotal"), - - /** - * Index - * - */ - @XmlEnumValue("index") - INDEX("index"); - private final String value; - - STShowDataAs(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STShowDataAs fromValue(String v) { - for (STShowDataAs c: STShowDataAs.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_ShowDataAs. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_ShowDataAs">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="normal"/>
+ *     <enumeration value="difference"/>
+ *     <enumeration value="percent"/>
+ *     <enumeration value="percentDiff"/>
+ *     <enumeration value="runTotal"/>
+ *     <enumeration value="percentOfRow"/>
+ *     <enumeration value="percentOfCol"/>
+ *     <enumeration value="percentOfTotal"/>
+ *     <enumeration value="index"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_ShowDataAs") +@XmlEnum +public enum STShowDataAs { + + @XmlEnumValue("normal") + NORMAL("normal"), + @XmlEnumValue("difference") + DIFFERENCE("difference"), + @XmlEnumValue("percent") + PERCENT("percent"), + @XmlEnumValue("percentDiff") + PERCENT_DIFF("percentDiff"), + @XmlEnumValue("runTotal") + RUN_TOTAL("runTotal"), + @XmlEnumValue("percentOfRow") + PERCENT_OF_ROW("percentOfRow"), + @XmlEnumValue("percentOfCol") + PERCENT_OF_COL("percentOfCol"), + @XmlEnumValue("percentOfTotal") + PERCENT_OF_TOTAL("percentOfTotal"), + @XmlEnumValue("index") + INDEX("index"); + private final String value; + + STShowDataAs(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STShowDataAs fromValue(String v) { + for (STShowDataAs c: STShowDataAs.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STSmartTagShow.java b/src/xlsx4j/java/org/xlsx4j/sml/STSmartTagShow.java index 2d2ad8e391..bb1467ec16 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STSmartTagShow.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STSmartTagShow.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_SmartTagShow. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_SmartTagShow">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="all"/>
- *     <enumeration value="none"/>
- *     <enumeration value="noIndicator"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_SmartTagShow") -@XmlEnum -public enum STSmartTagShow { - - - /** - * All - * - */ - @XmlEnumValue("all") - ALL("all"), - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * No Smart Tag Indicator - * - */ - @XmlEnumValue("noIndicator") - NO_INDICATOR("noIndicator"); - private final String value; - - STSmartTagShow(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STSmartTagShow fromValue(String v) { - for (STSmartTagShow c: STSmartTagShow.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_SmartTagShow. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_SmartTagShow">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="all"/>
+ *     <enumeration value="none"/>
+ *     <enumeration value="noIndicator"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_SmartTagShow") +@XmlEnum +public enum STSmartTagShow { + + @XmlEnumValue("all") + ALL("all"), + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("noIndicator") + NO_INDICATOR("noIndicator"); + private final String value; + + STSmartTagShow(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STSmartTagShow fromValue(String v) { + for (STSmartTagShow c: STSmartTagShow.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STSortBy.java b/src/xlsx4j/java/org/xlsx4j/sml/STSortBy.java index f9aa5173ff..81ce09434b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STSortBy.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STSortBy.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_SortBy. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_SortBy">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="value"/>
- *     <enumeration value="cellColor"/>
- *     <enumeration value="fontColor"/>
- *     <enumeration value="icon"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_SortBy") -@XmlEnum -public enum STSortBy { - - - /** - * Value - * - */ - @XmlEnumValue("value") - VALUE("value"), - - /** - * Sort by Cell Color - * - */ - @XmlEnumValue("cellColor") - CELL_COLOR("cellColor"), - - /** - * Sort by Font Color - * - */ - @XmlEnumValue("fontColor") - FONT_COLOR("fontColor"), - - /** - * Sort by Icon - * - */ - @XmlEnumValue("icon") - ICON("icon"); - private final String value; - - STSortBy(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STSortBy fromValue(String v) { - for (STSortBy c: STSortBy.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_SortBy. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_SortBy">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="value"/>
+ *     <enumeration value="cellColor"/>
+ *     <enumeration value="fontColor"/>
+ *     <enumeration value="icon"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_SortBy") +@XmlEnum +public enum STSortBy { + + @XmlEnumValue("value") + VALUE("value"), + @XmlEnumValue("cellColor") + CELL_COLOR("cellColor"), + @XmlEnumValue("fontColor") + FONT_COLOR("fontColor"), + @XmlEnumValue("icon") + ICON("icon"); + private final String value; + + STSortBy(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STSortBy fromValue(String v) { + for (STSortBy c: STSortBy.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STSortMethod.java b/src/xlsx4j/java/org/xlsx4j/sml/STSortMethod.java index 8765707dcd..c0a98e0b85 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STSortMethod.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STSortMethod.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_SortMethod. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_SortMethod">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="stroke"/>
- *     <enumeration value="pinYin"/>
- *     <enumeration value="none"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_SortMethod") -@XmlEnum -public enum STSortMethod { - - - /** - * Sort by Stroke - * - */ - @XmlEnumValue("stroke") - STROKE("stroke"), - - /** - * PinYin Sort - * - */ - @XmlEnumValue("pinYin") - PIN_YIN("pinYin"), - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"); - private final String value; - - STSortMethod(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STSortMethod fromValue(String v) { - for (STSortMethod c: STSortMethod.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_SortMethod. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_SortMethod">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="stroke"/>
+ *     <enumeration value="pinYin"/>
+ *     <enumeration value="none"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_SortMethod") +@XmlEnum +public enum STSortMethod { + + @XmlEnumValue("stroke") + STROKE("stroke"), + @XmlEnumValue("pinYin") + PIN_YIN("pinYin"), + @XmlEnumValue("none") + NONE("none"); + private final String value; + + STSortMethod(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STSortMethod fromValue(String v) { + for (STSortMethod c: STSortMethod.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STSortType.java b/src/xlsx4j/java/org/xlsx4j/sml/STSortType.java index aa2f1a7032..6295a32177 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STSortType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STSortType.java @@ -1,121 +1,66 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_SortType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_SortType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="ascending"/>
- *     <enumeration value="descending"/>
- *     <enumeration value="ascendingAlpha"/>
- *     <enumeration value="descendingAlpha"/>
- *     <enumeration value="ascendingNatural"/>
- *     <enumeration value="descendingNatural"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_SortType") -@XmlEnum -public enum STSortType { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Ascending - * - */ - @XmlEnumValue("ascending") - ASCENDING("ascending"), - - /** - * Descending - * - */ - @XmlEnumValue("descending") - DESCENDING("descending"), - - /** - * Ascending Alpha - * - */ - @XmlEnumValue("ascendingAlpha") - ASCENDING_ALPHA("ascendingAlpha"), - - /** - * Alphabetic Order Descending - * - */ - @XmlEnumValue("descendingAlpha") - DESCENDING_ALPHA("descendingAlpha"), - - /** - * Ascending Natural - * - */ - @XmlEnumValue("ascendingNatural") - ASCENDING_NATURAL("ascendingNatural"), - - /** - * Natural Order Descending - * - */ - @XmlEnumValue("descendingNatural") - DESCENDING_NATURAL("descendingNatural"); - private final String value; - - STSortType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STSortType fromValue(String v) { - for (STSortType c: STSortType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_SortType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_SortType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="ascending"/>
+ *     <enumeration value="descending"/>
+ *     <enumeration value="ascendingAlpha"/>
+ *     <enumeration value="descendingAlpha"/>
+ *     <enumeration value="ascendingNatural"/>
+ *     <enumeration value="descendingNatural"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_SortType") +@XmlEnum +public enum STSortType { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("ascending") + ASCENDING("ascending"), + @XmlEnumValue("descending") + DESCENDING("descending"), + @XmlEnumValue("ascendingAlpha") + ASCENDING_ALPHA("ascendingAlpha"), + @XmlEnumValue("descendingAlpha") + DESCENDING_ALPHA("descendingAlpha"), + @XmlEnumValue("ascendingNatural") + ASCENDING_NATURAL("ascendingNatural"), + @XmlEnumValue("descendingNatural") + DESCENDING_NATURAL("descendingNatural"); + private final String value; + + STSortType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STSortType fromValue(String v) { + for (STSortType c: STSortType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STSourceType.java b/src/xlsx4j/java/org/xlsx4j/sml/STSourceType.java index e41fe26ec8..55cf489eae 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STSourceType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STSourceType.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_SourceType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_SourceType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="worksheet"/>
- *     <enumeration value="external"/>
- *     <enumeration value="consolidation"/>
- *     <enumeration value="scenario"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_SourceType") -@XmlEnum -public enum STSourceType { - - - /** - * Worksheet - * - */ - @XmlEnumValue("worksheet") - WORKSHEET("worksheet"), - - /** - * External - * - */ - @XmlEnumValue("external") - EXTERNAL("external"), - - /** - * Consolidation Ranges - * - */ - @XmlEnumValue("consolidation") - CONSOLIDATION("consolidation"), - - /** - * Scenario Summary Report - * - */ - @XmlEnumValue("scenario") - SCENARIO("scenario"); - private final String value; - - STSourceType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STSourceType fromValue(String v) { - for (STSourceType c: STSourceType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_SourceType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_SourceType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="worksheet"/>
+ *     <enumeration value="external"/>
+ *     <enumeration value="consolidation"/>
+ *     <enumeration value="scenario"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_SourceType") +@XmlEnum +public enum STSourceType { + + @XmlEnumValue("worksheet") + WORKSHEET("worksheet"), + @XmlEnumValue("external") + EXTERNAL("external"), + @XmlEnumValue("consolidation") + CONSOLIDATION("consolidation"), + @XmlEnumValue("scenario") + SCENARIO("scenario"); + private final String value; + + STSourceType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STSourceType fromValue(String v) { + for (STSourceType c: STSourceType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STTableStyleType.java b/src/xlsx4j/java/org/xlsx4j/sml/STTableStyleType.java index 8e13370187..cc517483b8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STTableStyleType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STTableStyleType.java @@ -1,289 +1,129 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_TableStyleType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_TableStyleType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="wholeTable"/>
- *     <enumeration value="headerRow"/>
- *     <enumeration value="totalRow"/>
- *     <enumeration value="firstColumn"/>
- *     <enumeration value="lastColumn"/>
- *     <enumeration value="firstRowStripe"/>
- *     <enumeration value="secondRowStripe"/>
- *     <enumeration value="firstColumnStripe"/>
- *     <enumeration value="secondColumnStripe"/>
- *     <enumeration value="firstHeaderCell"/>
- *     <enumeration value="lastHeaderCell"/>
- *     <enumeration value="firstTotalCell"/>
- *     <enumeration value="lastTotalCell"/>
- *     <enumeration value="firstSubtotalColumn"/>
- *     <enumeration value="secondSubtotalColumn"/>
- *     <enumeration value="thirdSubtotalColumn"/>
- *     <enumeration value="firstSubtotalRow"/>
- *     <enumeration value="secondSubtotalRow"/>
- *     <enumeration value="thirdSubtotalRow"/>
- *     <enumeration value="blankRow"/>
- *     <enumeration value="firstColumnSubheading"/>
- *     <enumeration value="secondColumnSubheading"/>
- *     <enumeration value="thirdColumnSubheading"/>
- *     <enumeration value="firstRowSubheading"/>
- *     <enumeration value="secondRowSubheading"/>
- *     <enumeration value="thirdRowSubheading"/>
- *     <enumeration value="pageFieldLabels"/>
- *     <enumeration value="pageFieldValues"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_TableStyleType") -@XmlEnum -public enum STTableStyleType { - - - /** - * Whole Table Style - * - */ - @XmlEnumValue("wholeTable") - WHOLE_TABLE("wholeTable"), - - /** - * Header Row Style - * - */ - @XmlEnumValue("headerRow") - HEADER_ROW("headerRow"), - - /** - * Total Row Style - * - */ - @XmlEnumValue("totalRow") - TOTAL_ROW("totalRow"), - - /** - * First Column Style - * - */ - @XmlEnumValue("firstColumn") - FIRST_COLUMN("firstColumn"), - - /** - * Last Column Style - * - */ - @XmlEnumValue("lastColumn") - LAST_COLUMN("lastColumn"), - - /** - * First Row Stripe Style - * - */ - @XmlEnumValue("firstRowStripe") - FIRST_ROW_STRIPE("firstRowStripe"), - - /** - * Second Row Stripe Style - * - */ - @XmlEnumValue("secondRowStripe") - SECOND_ROW_STRIPE("secondRowStripe"), - - /** - * First Column Stripe Style - * - */ - @XmlEnumValue("firstColumnStripe") - FIRST_COLUMN_STRIPE("firstColumnStripe"), - - /** - * Second Column Stipe Style - * - */ - @XmlEnumValue("secondColumnStripe") - SECOND_COLUMN_STRIPE("secondColumnStripe"), - - /** - * First Header Row Style - * - */ - @XmlEnumValue("firstHeaderCell") - FIRST_HEADER_CELL("firstHeaderCell"), - - /** - * Last Header Style - * - */ - @XmlEnumValue("lastHeaderCell") - LAST_HEADER_CELL("lastHeaderCell"), - - /** - * First Total Row Style - * - */ - @XmlEnumValue("firstTotalCell") - FIRST_TOTAL_CELL("firstTotalCell"), - - /** - * Last Total Row Style - * - */ - @XmlEnumValue("lastTotalCell") - LAST_TOTAL_CELL("lastTotalCell"), - - /** - * First Subtotal Column Style - * - */ - @XmlEnumValue("firstSubtotalColumn") - FIRST_SUBTOTAL_COLUMN("firstSubtotalColumn"), - - /** - * Second Subtotal Column Style - * - */ - @XmlEnumValue("secondSubtotalColumn") - SECOND_SUBTOTAL_COLUMN("secondSubtotalColumn"), - - /** - * Third Subtotal Column Style - * - */ - @XmlEnumValue("thirdSubtotalColumn") - THIRD_SUBTOTAL_COLUMN("thirdSubtotalColumn"), - - /** - * First Subtotal Row Style - * - */ - @XmlEnumValue("firstSubtotalRow") - FIRST_SUBTOTAL_ROW("firstSubtotalRow"), - - /** - * Second Subtotal Row Style - * - */ - @XmlEnumValue("secondSubtotalRow") - SECOND_SUBTOTAL_ROW("secondSubtotalRow"), - - /** - * Third Subtotal Row Style - * - */ - @XmlEnumValue("thirdSubtotalRow") - THIRD_SUBTOTAL_ROW("thirdSubtotalRow"), - - /** - * Blank Row Style - * - */ - @XmlEnumValue("blankRow") - BLANK_ROW("blankRow"), - - /** - * First Column Subheading Style - * - */ - @XmlEnumValue("firstColumnSubheading") - FIRST_COLUMN_SUBHEADING("firstColumnSubheading"), - - /** - * Second Column Subheading Style - * - */ - @XmlEnumValue("secondColumnSubheading") - SECOND_COLUMN_SUBHEADING("secondColumnSubheading"), - - /** - * Third Column Subheading Style - * - */ - @XmlEnumValue("thirdColumnSubheading") - THIRD_COLUMN_SUBHEADING("thirdColumnSubheading"), - - /** - * First Row Subheading Style - * - */ - @XmlEnumValue("firstRowSubheading") - FIRST_ROW_SUBHEADING("firstRowSubheading"), - - /** - * Second Row Subheading Style - * - */ - @XmlEnumValue("secondRowSubheading") - SECOND_ROW_SUBHEADING("secondRowSubheading"), - - /** - * Third Row Subheading Style - * - */ - @XmlEnumValue("thirdRowSubheading") - THIRD_ROW_SUBHEADING("thirdRowSubheading"), - - /** - * Page Field Labels Style - * - */ - @XmlEnumValue("pageFieldLabels") - PAGE_FIELD_LABELS("pageFieldLabels"), - - /** - * Page Field Values Style - * - */ - @XmlEnumValue("pageFieldValues") - PAGE_FIELD_VALUES("pageFieldValues"); - private final String value; - - STTableStyleType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STTableStyleType fromValue(String v) { - for (STTableStyleType c: STTableStyleType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_TableStyleType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_TableStyleType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="wholeTable"/>
+ *     <enumeration value="headerRow"/>
+ *     <enumeration value="totalRow"/>
+ *     <enumeration value="firstColumn"/>
+ *     <enumeration value="lastColumn"/>
+ *     <enumeration value="firstRowStripe"/>
+ *     <enumeration value="secondRowStripe"/>
+ *     <enumeration value="firstColumnStripe"/>
+ *     <enumeration value="secondColumnStripe"/>
+ *     <enumeration value="firstHeaderCell"/>
+ *     <enumeration value="lastHeaderCell"/>
+ *     <enumeration value="firstTotalCell"/>
+ *     <enumeration value="lastTotalCell"/>
+ *     <enumeration value="firstSubtotalColumn"/>
+ *     <enumeration value="secondSubtotalColumn"/>
+ *     <enumeration value="thirdSubtotalColumn"/>
+ *     <enumeration value="firstSubtotalRow"/>
+ *     <enumeration value="secondSubtotalRow"/>
+ *     <enumeration value="thirdSubtotalRow"/>
+ *     <enumeration value="blankRow"/>
+ *     <enumeration value="firstColumnSubheading"/>
+ *     <enumeration value="secondColumnSubheading"/>
+ *     <enumeration value="thirdColumnSubheading"/>
+ *     <enumeration value="firstRowSubheading"/>
+ *     <enumeration value="secondRowSubheading"/>
+ *     <enumeration value="thirdRowSubheading"/>
+ *     <enumeration value="pageFieldLabels"/>
+ *     <enumeration value="pageFieldValues"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_TableStyleType") +@XmlEnum +public enum STTableStyleType { + + @XmlEnumValue("wholeTable") + WHOLE_TABLE("wholeTable"), + @XmlEnumValue("headerRow") + HEADER_ROW("headerRow"), + @XmlEnumValue("totalRow") + TOTAL_ROW("totalRow"), + @XmlEnumValue("firstColumn") + FIRST_COLUMN("firstColumn"), + @XmlEnumValue("lastColumn") + LAST_COLUMN("lastColumn"), + @XmlEnumValue("firstRowStripe") + FIRST_ROW_STRIPE("firstRowStripe"), + @XmlEnumValue("secondRowStripe") + SECOND_ROW_STRIPE("secondRowStripe"), + @XmlEnumValue("firstColumnStripe") + FIRST_COLUMN_STRIPE("firstColumnStripe"), + @XmlEnumValue("secondColumnStripe") + SECOND_COLUMN_STRIPE("secondColumnStripe"), + @XmlEnumValue("firstHeaderCell") + FIRST_HEADER_CELL("firstHeaderCell"), + @XmlEnumValue("lastHeaderCell") + LAST_HEADER_CELL("lastHeaderCell"), + @XmlEnumValue("firstTotalCell") + FIRST_TOTAL_CELL("firstTotalCell"), + @XmlEnumValue("lastTotalCell") + LAST_TOTAL_CELL("lastTotalCell"), + @XmlEnumValue("firstSubtotalColumn") + FIRST_SUBTOTAL_COLUMN("firstSubtotalColumn"), + @XmlEnumValue("secondSubtotalColumn") + SECOND_SUBTOTAL_COLUMN("secondSubtotalColumn"), + @XmlEnumValue("thirdSubtotalColumn") + THIRD_SUBTOTAL_COLUMN("thirdSubtotalColumn"), + @XmlEnumValue("firstSubtotalRow") + FIRST_SUBTOTAL_ROW("firstSubtotalRow"), + @XmlEnumValue("secondSubtotalRow") + SECOND_SUBTOTAL_ROW("secondSubtotalRow"), + @XmlEnumValue("thirdSubtotalRow") + THIRD_SUBTOTAL_ROW("thirdSubtotalRow"), + @XmlEnumValue("blankRow") + BLANK_ROW("blankRow"), + @XmlEnumValue("firstColumnSubheading") + FIRST_COLUMN_SUBHEADING("firstColumnSubheading"), + @XmlEnumValue("secondColumnSubheading") + SECOND_COLUMN_SUBHEADING("secondColumnSubheading"), + @XmlEnumValue("thirdColumnSubheading") + THIRD_COLUMN_SUBHEADING("thirdColumnSubheading"), + @XmlEnumValue("firstRowSubheading") + FIRST_ROW_SUBHEADING("firstRowSubheading"), + @XmlEnumValue("secondRowSubheading") + SECOND_ROW_SUBHEADING("secondRowSubheading"), + @XmlEnumValue("thirdRowSubheading") + THIRD_ROW_SUBHEADING("thirdRowSubheading"), + @XmlEnumValue("pageFieldLabels") + PAGE_FIELD_LABELS("pageFieldLabels"), + @XmlEnumValue("pageFieldValues") + PAGE_FIELD_VALUES("pageFieldValues"); + private final String value; + + STTableStyleType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STTableStyleType fromValue(String v) { + for (STTableStyleType c: STTableStyleType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STTableType.java b/src/xlsx4j/java/org/xlsx4j/sml/STTableType.java index 17f0276831..0349d8fca2 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STTableType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STTableType.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_TableType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_TableType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="worksheet"/>
- *     <enumeration value="xml"/>
- *     <enumeration value="queryTable"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_TableType") -@XmlEnum -public enum STTableType { - - - /** - * Worksheet - * - */ - @XmlEnumValue("worksheet") - WORKSHEET("worksheet"), - - /** - * XML - * - */ - @XmlEnumValue("xml") - XML("xml"), - - /** - * Query Table - * - */ - @XmlEnumValue("queryTable") - QUERY_TABLE("queryTable"); - private final String value; - - STTableType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STTableType fromValue(String v) { - for (STTableType c: STTableType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_TableType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_TableType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="worksheet"/>
+ *     <enumeration value="xml"/>
+ *     <enumeration value="queryTable"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_TableType") +@XmlEnum +public enum STTableType { + + @XmlEnumValue("worksheet") + WORKSHEET("worksheet"), + @XmlEnumValue("xml") + XML("xml"), + @XmlEnumValue("queryTable") + QUERY_TABLE("queryTable"); + private final String value; + + STTableType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STTableType fromValue(String v) { + for (STTableType c: STTableType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STTextHAlign.java b/src/xlsx4j/java/org/xlsx4j/sml/STTextHAlign.java new file mode 100644 index 0000000000..6a2d3bca03 --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/STTextHAlign.java @@ -0,0 +1,60 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_TextHAlign. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_TextHAlign">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="left"/>
+ *     <enumeration value="center"/>
+ *     <enumeration value="right"/>
+ *     <enumeration value="justify"/>
+ *     <enumeration value="distributed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_TextHAlign") +@XmlEnum +public enum STTextHAlign { + + @XmlEnumValue("left") + LEFT("left"), + @XmlEnumValue("center") + CENTER("center"), + @XmlEnumValue("right") + RIGHT("right"), + @XmlEnumValue("justify") + JUSTIFY("justify"), + @XmlEnumValue("distributed") + DISTRIBUTED("distributed"); + private final String value; + + STTextHAlign(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STTextHAlign fromValue(String v) { + for (STTextHAlign c: STTextHAlign.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STTextVAlign.java b/src/xlsx4j/java/org/xlsx4j/sml/STTextVAlign.java new file mode 100644 index 0000000000..fcf0955524 --- /dev/null +++ b/src/xlsx4j/java/org/xlsx4j/sml/STTextVAlign.java @@ -0,0 +1,60 @@ + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_TextVAlign. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_TextVAlign">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="top"/>
+ *     <enumeration value="center"/>
+ *     <enumeration value="bottom"/>
+ *     <enumeration value="justify"/>
+ *     <enumeration value="distributed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_TextVAlign") +@XmlEnum +public enum STTextVAlign { + + @XmlEnumValue("top") + TOP("top"), + @XmlEnumValue("center") + CENTER("center"), + @XmlEnumValue("bottom") + BOTTOM("bottom"), + @XmlEnumValue("justify") + JUSTIFY("justify"), + @XmlEnumValue("distributed") + DISTRIBUTED("distributed"); + private final String value; + + STTextVAlign(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STTextVAlign fromValue(String v) { + for (STTextVAlign c: STTextVAlign.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STTimePeriod.java b/src/xlsx4j/java/org/xlsx4j/sml/STTimePeriod.java index db46aaeeb6..989018d13f 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STTimePeriod.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STTimePeriod.java @@ -1,145 +1,75 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_TimePeriod. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_TimePeriod">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="today"/>
- *     <enumeration value="yesterday"/>
- *     <enumeration value="tomorrow"/>
- *     <enumeration value="last7Days"/>
- *     <enumeration value="thisMonth"/>
- *     <enumeration value="lastMonth"/>
- *     <enumeration value="nextMonth"/>
- *     <enumeration value="thisWeek"/>
- *     <enumeration value="lastWeek"/>
- *     <enumeration value="nextWeek"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_TimePeriod") -@XmlEnum -public enum STTimePeriod { - - - /** - * Today - * - */ - @XmlEnumValue("today") - TODAY("today"), - - /** - * Yesterday - * - */ - @XmlEnumValue("yesterday") - YESTERDAY("yesterday"), - - /** - * Tomorrow - * - */ - @XmlEnumValue("tomorrow") - TOMORROW("tomorrow"), - - /** - * Last 7 Days - * - */ - @XmlEnumValue("last7Days") - LAST_7_DAYS("last7Days"), - - /** - * This Month - * - */ - @XmlEnumValue("thisMonth") - THIS_MONTH("thisMonth"), - - /** - * Last Month - * - */ - @XmlEnumValue("lastMonth") - LAST_MONTH("lastMonth"), - - /** - * Next Month - * - */ - @XmlEnumValue("nextMonth") - NEXT_MONTH("nextMonth"), - - /** - * This Week - * - */ - @XmlEnumValue("thisWeek") - THIS_WEEK("thisWeek"), - - /** - * Last Week - * - */ - @XmlEnumValue("lastWeek") - LAST_WEEK("lastWeek"), - - /** - * Next Week - * - */ - @XmlEnumValue("nextWeek") - NEXT_WEEK("nextWeek"); - private final String value; - - STTimePeriod(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STTimePeriod fromValue(String v) { - for (STTimePeriod c: STTimePeriod.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_TimePeriod. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_TimePeriod">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="today"/>
+ *     <enumeration value="yesterday"/>
+ *     <enumeration value="tomorrow"/>
+ *     <enumeration value="last7Days"/>
+ *     <enumeration value="thisMonth"/>
+ *     <enumeration value="lastMonth"/>
+ *     <enumeration value="nextMonth"/>
+ *     <enumeration value="thisWeek"/>
+ *     <enumeration value="lastWeek"/>
+ *     <enumeration value="nextWeek"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_TimePeriod") +@XmlEnum +public enum STTimePeriod { + + @XmlEnumValue("today") + TODAY("today"), + @XmlEnumValue("yesterday") + YESTERDAY("yesterday"), + @XmlEnumValue("tomorrow") + TOMORROW("tomorrow"), + @XmlEnumValue("last7Days") + LAST_7_DAYS("last7Days"), + @XmlEnumValue("thisMonth") + THIS_MONTH("thisMonth"), + @XmlEnumValue("lastMonth") + LAST_MONTH("lastMonth"), + @XmlEnumValue("nextMonth") + NEXT_MONTH("nextMonth"), + @XmlEnumValue("thisWeek") + THIS_WEEK("thisWeek"), + @XmlEnumValue("lastWeek") + LAST_WEEK("lastWeek"), + @XmlEnumValue("nextWeek") + NEXT_WEEK("nextWeek"); + private final String value; + + STTimePeriod(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STTimePeriod fromValue(String v) { + for (STTimePeriod c: STTimePeriod.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STTotalsRowFunction.java b/src/xlsx4j/java/org/xlsx4j/sml/STTotalsRowFunction.java index c592c7c519..c168eb56cc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STTotalsRowFunction.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STTotalsRowFunction.java @@ -1,145 +1,75 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_TotalsRowFunction. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_TotalsRowFunction">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="sum"/>
- *     <enumeration value="min"/>
- *     <enumeration value="max"/>
- *     <enumeration value="average"/>
- *     <enumeration value="count"/>
- *     <enumeration value="countNums"/>
- *     <enumeration value="stdDev"/>
- *     <enumeration value="var"/>
- *     <enumeration value="custom"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_TotalsRowFunction") -@XmlEnum -public enum STTotalsRowFunction { - - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * Sum - * - */ - @XmlEnumValue("sum") - SUM("sum"), - - /** - * Minimum - * - */ - @XmlEnumValue("min") - MIN("min"), - - /** - * Maximum - * - */ - @XmlEnumValue("max") - MAX("max"), - - /** - * Average - * - */ - @XmlEnumValue("average") - AVERAGE("average"), - - /** - * Non Empty Cell Count - * - */ - @XmlEnumValue("count") - COUNT("count"), - - /** - * Count Numbers - * - */ - @XmlEnumValue("countNums") - COUNT_NUMS("countNums"), - - /** - * StdDev - * - */ - @XmlEnumValue("stdDev") - STD_DEV("stdDev"), - - /** - * Var - * - */ - @XmlEnumValue("var") - VAR("var"), - - /** - * Custom Formula - * - */ - @XmlEnumValue("custom") - CUSTOM("custom"); - private final String value; - - STTotalsRowFunction(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STTotalsRowFunction fromValue(String v) { - for (STTotalsRowFunction c: STTotalsRowFunction.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_TotalsRowFunction. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_TotalsRowFunction">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="sum"/>
+ *     <enumeration value="min"/>
+ *     <enumeration value="max"/>
+ *     <enumeration value="average"/>
+ *     <enumeration value="count"/>
+ *     <enumeration value="countNums"/>
+ *     <enumeration value="stdDev"/>
+ *     <enumeration value="var"/>
+ *     <enumeration value="custom"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_TotalsRowFunction") +@XmlEnum +public enum STTotalsRowFunction { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("sum") + SUM("sum"), + @XmlEnumValue("min") + MIN("min"), + @XmlEnumValue("max") + MAX("max"), + @XmlEnumValue("average") + AVERAGE("average"), + @XmlEnumValue("count") + COUNT("count"), + @XmlEnumValue("countNums") + COUNT_NUMS("countNums"), + @XmlEnumValue("stdDev") + STD_DEV("stdDev"), + @XmlEnumValue("var") + VAR("var"), + @XmlEnumValue("custom") + CUSTOM("custom"); + private final String value; + + STTotalsRowFunction(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STTotalsRowFunction fromValue(String v) { + for (STTotalsRowFunction c: STTotalsRowFunction.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STType.java b/src/xlsx4j/java/org/xlsx4j/sml/STType.java index e64d5e8c35..8f0b6399a0 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STType.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Type. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Type">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="none"/>
- *     <enumeration value="all"/>
- *     <enumeration value="row"/>
- *     <enumeration value="column"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Type") -@XmlEnum -public enum STType { - - - /** - * Top N None - * - */ - @XmlEnumValue("none") - NONE("none"), - - /** - * All - * - */ - @XmlEnumValue("all") - ALL("all"), - - /** - * Row Top N - * - */ - @XmlEnumValue("row") - ROW("row"), - - /** - * Column Top N - * - */ - @XmlEnumValue("column") - COLUMN("column"); - private final String value; - - STType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STType fromValue(String v) { - for (STType c: STType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="none"/>
+ *     <enumeration value="all"/>
+ *     <enumeration value="row"/>
+ *     <enumeration value="column"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Type") +@XmlEnum +public enum STType { + + @XmlEnumValue("none") + NONE("none"), + @XmlEnumValue("all") + ALL("all"), + @XmlEnumValue("row") + ROW("row"), + @XmlEnumValue("column") + COLUMN("column"); + private final String value; + + STType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STType fromValue(String v) { + for (STType c: STType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STUnderlineValues.java b/src/xlsx4j/java/org/xlsx4j/sml/STUnderlineValues.java index 28cff23b3a..65151071cc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STUnderlineValues.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STUnderlineValues.java @@ -1,105 +1,60 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_UnderlineValues. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_UnderlineValues">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="single"/>
- *     <enumeration value="double"/>
- *     <enumeration value="singleAccounting"/>
- *     <enumeration value="doubleAccounting"/>
- *     <enumeration value="none"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_UnderlineValues") -@XmlEnum -public enum STUnderlineValues { - - - /** - * Single Underline - * - */ - @XmlEnumValue("single") - SINGLE("single"), - - /** - * Double Underline - * - */ - @XmlEnumValue("double") - DOUBLE("double"), - - /** - * Accounting Single Underline - * - */ - @XmlEnumValue("singleAccounting") - SINGLE_ACCOUNTING("singleAccounting"), - - /** - * Accounting Double Underline - * - */ - @XmlEnumValue("doubleAccounting") - DOUBLE_ACCOUNTING("doubleAccounting"), - - /** - * None - * - */ - @XmlEnumValue("none") - NONE("none"); - private final String value; - - STUnderlineValues(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STUnderlineValues fromValue(String v) { - for (STUnderlineValues c: STUnderlineValues.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_UnderlineValues. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_UnderlineValues">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="single"/>
+ *     <enumeration value="double"/>
+ *     <enumeration value="singleAccounting"/>
+ *     <enumeration value="doubleAccounting"/>
+ *     <enumeration value="none"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_UnderlineValues") +@XmlEnum +public enum STUnderlineValues { + + @XmlEnumValue("single") + SINGLE("single"), + @XmlEnumValue("double") + DOUBLE("double"), + @XmlEnumValue("singleAccounting") + SINGLE_ACCOUNTING("singleAccounting"), + @XmlEnumValue("doubleAccounting") + DOUBLE_ACCOUNTING("doubleAccounting"), + @XmlEnumValue("none") + NONE("none"); + private final String value; + + STUnderlineValues(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STUnderlineValues fromValue(String v) { + for (STUnderlineValues c: STUnderlineValues.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STUpdateLinks.java b/src/xlsx4j/java/org/xlsx4j/sml/STUpdateLinks.java index 35a000dfb3..ca8ceb419d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STUpdateLinks.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STUpdateLinks.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_UpdateLinks. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_UpdateLinks">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="userSet"/>
- *     <enumeration value="never"/>
- *     <enumeration value="always"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_UpdateLinks") -@XmlEnum -public enum STUpdateLinks { - - - /** - * User Set - * - */ - @XmlEnumValue("userSet") - USER_SET("userSet"), - - /** - * Never Update Links - * - */ - @XmlEnumValue("never") - NEVER("never"), - - /** - * Always Update Links - * - */ - @XmlEnumValue("always") - ALWAYS("always"); - private final String value; - - STUpdateLinks(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STUpdateLinks fromValue(String v) { - for (STUpdateLinks c: STUpdateLinks.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_UpdateLinks. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_UpdateLinks">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="userSet"/>
+ *     <enumeration value="never"/>
+ *     <enumeration value="always"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_UpdateLinks") +@XmlEnum +public enum STUpdateLinks { + + @XmlEnumValue("userSet") + USER_SET("userSet"), + @XmlEnumValue("never") + NEVER("never"), + @XmlEnumValue("always") + ALWAYS("always"); + private final String value; + + STUpdateLinks(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STUpdateLinks fromValue(String v) { + for (STUpdateLinks c: STUpdateLinks.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STVerticalAlignRun.java b/src/xlsx4j/java/org/xlsx4j/sml/STVerticalAlignRun.java deleted file mode 100644 index 182451b81f..0000000000 --- a/src/xlsx4j/java/org/xlsx4j/sml/STVerticalAlignRun.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_VerticalAlignRun. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_VerticalAlignRun">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="baseline"/>
- *     <enumeration value="superscript"/>
- *     <enumeration value="subscript"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_VerticalAlignRun") -@XmlEnum -public enum STVerticalAlignRun { - - - /** - * Baseline - * - */ - @XmlEnumValue("baseline") - BASELINE("baseline"), - - /** - * Superscript - * - */ - @XmlEnumValue("superscript") - SUPERSCRIPT("superscript"), - - /** - * Subscript - * - */ - @XmlEnumValue("subscript") - SUBSCRIPT("subscript"); - private final String value; - - STVerticalAlignRun(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STVerticalAlignRun fromValue(String v) { - for (STVerticalAlignRun c: STVerticalAlignRun.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STVerticalAlignment.java b/src/xlsx4j/java/org/xlsx4j/sml/STVerticalAlignment.java index 9656bb34e9..ad9ba50979 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STVerticalAlignment.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STVerticalAlignment.java @@ -1,105 +1,60 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_VerticalAlignment. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_VerticalAlignment">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="top"/>
- *     <enumeration value="center"/>
- *     <enumeration value="bottom"/>
- *     <enumeration value="justify"/>
- *     <enumeration value="distributed"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_VerticalAlignment") -@XmlEnum -public enum STVerticalAlignment { - - - /** - * Align Top - * - */ - @XmlEnumValue("top") - TOP("top"), - - /** - * Centered Vertical Alignment - * - */ - @XmlEnumValue("center") - CENTER("center"), - - /** - * Aligned To Bottom - * - */ - @XmlEnumValue("bottom") - BOTTOM("bottom"), - - /** - * Justified Vertically - * - */ - @XmlEnumValue("justify") - JUSTIFY("justify"), - - /** - * Distributed Vertical Alignment - * - */ - @XmlEnumValue("distributed") - DISTRIBUTED("distributed"); - private final String value; - - STVerticalAlignment(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STVerticalAlignment fromValue(String v) { - for (STVerticalAlignment c: STVerticalAlignment.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_VerticalAlignment. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_VerticalAlignment">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="top"/>
+ *     <enumeration value="center"/>
+ *     <enumeration value="bottom"/>
+ *     <enumeration value="justify"/>
+ *     <enumeration value="distributed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_VerticalAlignment") +@XmlEnum +public enum STVerticalAlignment { + + @XmlEnumValue("top") + TOP("top"), + @XmlEnumValue("center") + CENTER("center"), + @XmlEnumValue("bottom") + BOTTOM("bottom"), + @XmlEnumValue("justify") + JUSTIFY("justify"), + @XmlEnumValue("distributed") + DISTRIBUTED("distributed"); + private final String value; + + STVerticalAlignment(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STVerticalAlignment fromValue(String v) { + for (STVerticalAlignment c: STVerticalAlignment.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STVisibility.java b/src/xlsx4j/java/org/xlsx4j/sml/STVisibility.java index 06d5a879ea..8a07247f8b 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STVisibility.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STVisibility.java @@ -1,89 +1,54 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_Visibility. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_Visibility">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="visible"/>
- *     <enumeration value="hidden"/>
- *     <enumeration value="veryHidden"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_Visibility") -@XmlEnum -public enum STVisibility { - - - /** - * Visible - * - */ - @XmlEnumValue("visible") - VISIBLE("visible"), - - /** - * Hidden - * - */ - @XmlEnumValue("hidden") - HIDDEN("hidden"), - - /** - * Very Hidden - * - */ - @XmlEnumValue("veryHidden") - VERY_HIDDEN("veryHidden"); - private final String value; - - STVisibility(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STVisibility fromValue(String v) { - for (STVisibility c: STVisibility.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_Visibility. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_Visibility">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="visible"/>
+ *     <enumeration value="hidden"/>
+ *     <enumeration value="veryHidden"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_Visibility") +@XmlEnum +public enum STVisibility { + + @XmlEnumValue("visible") + VISIBLE("visible"), + @XmlEnumValue("hidden") + HIDDEN("hidden"), + @XmlEnumValue("veryHidden") + VERY_HIDDEN("veryHidden"); + private final String value; + + STVisibility(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STVisibility fromValue(String v) { + for (STVisibility c: STVisibility.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STVolDepType.java b/src/xlsx4j/java/org/xlsx4j/sml/STVolDepType.java index 90caa91c9a..9ecfb36185 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STVolDepType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STVolDepType.java @@ -1,81 +1,51 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_VolDepType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_VolDepType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="realTimeData"/>
- *     <enumeration value="olapFunctions"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_VolDepType") -@XmlEnum -public enum STVolDepType { - - - /** - * Real Time Data - * - */ - @XmlEnumValue("realTimeData") - REAL_TIME_DATA("realTimeData"), - - /** - * OLAP Formulas - * - */ - @XmlEnumValue("olapFunctions") - OLAP_FUNCTIONS("olapFunctions"); - private final String value; - - STVolDepType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STVolDepType fromValue(String v) { - for (STVolDepType c: STVolDepType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_VolDepType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_VolDepType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="realTimeData"/>
+ *     <enumeration value="olapFunctions"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_VolDepType") +@XmlEnum +public enum STVolDepType { + + @XmlEnumValue("realTimeData") + REAL_TIME_DATA("realTimeData"), + @XmlEnumValue("olapFunctions") + OLAP_FUNCTIONS("olapFunctions"); + private final String value; + + STVolDepType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STVolDepType fromValue(String v) { + for (STVolDepType c: STVolDepType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STVolValueType.java b/src/xlsx4j/java/org/xlsx4j/sml/STVolValueType.java index 736f99a282..d8a776cecb 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STVolValueType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STVolValueType.java @@ -1,97 +1,57 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_VolValueType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_VolValueType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="b"/>
- *     <enumeration value="n"/>
- *     <enumeration value="e"/>
- *     <enumeration value="s"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_VolValueType") -@XmlEnum -public enum STVolValueType { - - - /** - * Boolean - * - */ - @XmlEnumValue("b") - B("b"), - - /** - * Real Number - * - */ - @XmlEnumValue("n") - N("n"), - - /** - * Error - * - */ - @XmlEnumValue("e") - E("e"), - - /** - * String - * - */ - @XmlEnumValue("s") - S("s"); - private final String value; - - STVolValueType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STVolValueType fromValue(String v) { - for (STVolValueType c: STVolValueType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_VolValueType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_VolValueType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="b"/>
+ *     <enumeration value="n"/>
+ *     <enumeration value="e"/>
+ *     <enumeration value="s"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_VolValueType") +@XmlEnum +public enum STVolValueType { + + @XmlEnumValue("b") + B("b"), + @XmlEnumValue("n") + N("n"), + @XmlEnumValue("e") + E("e"), + @XmlEnumValue("s") + S("s"); + private final String value; + + STVolValueType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STVolValueType fromValue(String v) { + for (STVolValueType c: STVolValueType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STWebSourceType.java b/src/xlsx4j/java/org/xlsx4j/sml/STWebSourceType.java index a1e83ac540..f48ab42de8 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/STWebSourceType.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/STWebSourceType.java @@ -1,129 +1,69 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_WebSourceType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_WebSourceType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="sheet"/>
- *     <enumeration value="printArea"/>
- *     <enumeration value="autoFilter"/>
- *     <enumeration value="range"/>
- *     <enumeration value="chart"/>
- *     <enumeration value="pivotTable"/>
- *     <enumeration value="query"/>
- *     <enumeration value="label"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_WebSourceType") -@XmlEnum -public enum STWebSourceType { - - - /** - * All Sheet Content - * - */ - @XmlEnumValue("sheet") - SHEET("sheet"), - - /** - * Print Area - * - */ - @XmlEnumValue("printArea") - PRINT_AREA("printArea"), - - /** - * AutoFilter - * - */ - @XmlEnumValue("autoFilter") - AUTO_FILTER("autoFilter"), - - /** - * Range - * - */ - @XmlEnumValue("range") - RANGE("range"), - - /** - * Chart - * - */ - @XmlEnumValue("chart") - CHART("chart"), - - /** - * PivotTable - * - */ - @XmlEnumValue("pivotTable") - PIVOT_TABLE("pivotTable"), - - /** - * QueryTable - * - */ - @XmlEnumValue("query") - QUERY("query"), - - /** - * Label - * - */ - @XmlEnumValue("label") - LABEL("label"); - private final String value; - - STWebSourceType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STWebSourceType fromValue(String v) { - for (STWebSourceType c: STWebSourceType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ST_WebSourceType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ST_WebSourceType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="sheet"/>
+ *     <enumeration value="printArea"/>
+ *     <enumeration value="autoFilter"/>
+ *     <enumeration value="range"/>
+ *     <enumeration value="chart"/>
+ *     <enumeration value="pivotTable"/>
+ *     <enumeration value="query"/>
+ *     <enumeration value="label"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ST_WebSourceType") +@XmlEnum +public enum STWebSourceType { + + @XmlEnumValue("sheet") + SHEET("sheet"), + @XmlEnumValue("printArea") + PRINT_AREA("printArea"), + @XmlEnumValue("autoFilter") + AUTO_FILTER("autoFilter"), + @XmlEnumValue("range") + RANGE("range"), + @XmlEnumValue("chart") + CHART("chart"), + @XmlEnumValue("pivotTable") + PIVOT_TABLE("pivotTable"), + @XmlEnumValue("query") + QUERY("query"), + @XmlEnumValue("label") + LABEL("label"); + private final String value; + + STWebSourceType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static STWebSourceType fromValue(String v) { + for (STWebSourceType c: STWebSourceType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/STXmlDataType.java b/src/xlsx4j/java/org/xlsx4j/sml/STXmlDataType.java deleted file mode 100644 index c03e51dad1..0000000000 --- a/src/xlsx4j/java/org/xlsx4j/sml/STXmlDataType.java +++ /dev/null @@ -1,417 +0,0 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ST_XmlDataType. - * - *

The following schema fragment specifies the expected content contained within this class. - *

- *

- * <simpleType name="ST_XmlDataType">
- *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *     <enumeration value="string"/>
- *     <enumeration value="normalizedString"/>
- *     <enumeration value="token"/>
- *     <enumeration value="byte"/>
- *     <enumeration value="unsignedByte"/>
- *     <enumeration value="base64Binary"/>
- *     <enumeration value="hexBinary"/>
- *     <enumeration value="integer"/>
- *     <enumeration value="positiveInteger"/>
- *     <enumeration value="negativeInteger"/>
- *     <enumeration value="nonPositiveInteger"/>
- *     <enumeration value="nonNegativeInteger"/>
- *     <enumeration value="int"/>
- *     <enumeration value="unsignedInt"/>
- *     <enumeration value="long"/>
- *     <enumeration value="unsignedLong"/>
- *     <enumeration value="short"/>
- *     <enumeration value="unsignedShort"/>
- *     <enumeration value="decimal"/>
- *     <enumeration value="float"/>
- *     <enumeration value="double"/>
- *     <enumeration value="boolean"/>
- *     <enumeration value="time"/>
- *     <enumeration value="dateTime"/>
- *     <enumeration value="duration"/>
- *     <enumeration value="date"/>
- *     <enumeration value="gMonth"/>
- *     <enumeration value="gYear"/>
- *     <enumeration value="gYearMonth"/>
- *     <enumeration value="gDay"/>
- *     <enumeration value="gMonthDay"/>
- *     <enumeration value="Name"/>
- *     <enumeration value="QName"/>
- *     <enumeration value="NCName"/>
- *     <enumeration value="anyURI"/>
- *     <enumeration value="language"/>
- *     <enumeration value="ID"/>
- *     <enumeration value="IDREF"/>
- *     <enumeration value="IDREFS"/>
- *     <enumeration value="ENTITY"/>
- *     <enumeration value="ENTITIES"/>
- *     <enumeration value="NOTATION"/>
- *     <enumeration value="NMTOKEN"/>
- *     <enumeration value="NMTOKENS"/>
- *     <enumeration value="anyType"/>
- *   </restriction>
- * </simpleType>
- * 
- * - */ -@XmlType(name = "ST_XmlDataType") -@XmlEnum -public enum STXmlDataType { - - - /** - * String - * - */ - @XmlEnumValue("string") - STRING("string"), - - /** - * Normalized String - * - */ - @XmlEnumValue("normalizedString") - NORMALIZED_STRING("normalizedString"), - - /** - * Token - * - */ - @XmlEnumValue("token") - TOKEN("token"), - - /** - * Byte - * - */ - @XmlEnumValue("byte") - BYTE("byte"), - - /** - * Unsigned Byte - * - */ - @XmlEnumValue("unsignedByte") - UNSIGNED_BYTE("unsignedByte"), - - /** - * Base 64 Encoded Binary - * - */ - @XmlEnumValue("base64Binary") - BASE_64_BINARY("base64Binary"), - - /** - * Hex Binary - * - */ - @XmlEnumValue("hexBinary") - HEX_BINARY("hexBinary"), - - /** - * Integer - * - */ - @XmlEnumValue("integer") - INTEGER("integer"), - - /** - * Positive Integer - * - */ - @XmlEnumValue("positiveInteger") - POSITIVE_INTEGER("positiveInteger"), - - /** - * Negative Integer - * - */ - @XmlEnumValue("negativeInteger") - NEGATIVE_INTEGER("negativeInteger"), - - /** - * Non Positive Integer - * - */ - @XmlEnumValue("nonPositiveInteger") - NON_POSITIVE_INTEGER("nonPositiveInteger"), - - /** - * Non Negative Integer - * - */ - @XmlEnumValue("nonNegativeInteger") - NON_NEGATIVE_INTEGER("nonNegativeInteger"), - - /** - * Integer - * - */ - @XmlEnumValue("int") - INT("int"), - - /** - * Unsigned Integer - * - */ - @XmlEnumValue("unsignedInt") - UNSIGNED_INT("unsignedInt"), - - /** - * Long - * - */ - @XmlEnumValue("long") - LONG("long"), - - /** - * Unsigned Long - * - */ - @XmlEnumValue("unsignedLong") - UNSIGNED_LONG("unsignedLong"), - - /** - * Short - * - */ - @XmlEnumValue("short") - SHORT("short"), - - /** - * Unsigned Short - * - */ - @XmlEnumValue("unsignedShort") - UNSIGNED_SHORT("unsignedShort"), - - /** - * Decimal - * - */ - @XmlEnumValue("decimal") - DECIMAL("decimal"), - - /** - * Float - * - */ - @XmlEnumValue("float") - FLOAT("float"), - - /** - * Double - * - */ - @XmlEnumValue("double") - DOUBLE("double"), - - /** - * Boolean - * - */ - @XmlEnumValue("boolean") - BOOLEAN("boolean"), - - /** - * Time - * - */ - @XmlEnumValue("time") - TIME("time"), - - /** - * Date Time - * - */ - @XmlEnumValue("dateTime") - DATE_TIME("dateTime"), - - /** - * Duration - * - */ - @XmlEnumValue("duration") - DURATION("duration"), - - /** - * Date - * - */ - @XmlEnumValue("date") - DATE("date"), - - /** - * gMonth - * - */ - @XmlEnumValue("gMonth") - G_MONTH("gMonth"), - - /** - * gYear - * - */ - @XmlEnumValue("gYear") - G_YEAR("gYear"), - - /** - * gYearMonth - * - */ - @XmlEnumValue("gYearMonth") - G_YEAR_MONTH("gYearMonth"), - - /** - * gDay - * - */ - @XmlEnumValue("gDay") - G_DAY("gDay"), - - /** - * gMonthDays - * - */ - @XmlEnumValue("gMonthDay") - G_MONTH_DAY("gMonthDay"), - - /** - * Name - * - */ - @XmlEnumValue("Name") - NAME("Name"), - - /** - * Qname - * - */ - @XmlEnumValue("QName") - Q_NAME("QName"), - - /** - * NCName - * - */ - @XmlEnumValue("NCName") - NC_NAME("NCName"), - - /** - * Any URI - * - */ - @XmlEnumValue("anyURI") - ANY_URI("anyURI"), - - /** - * Language - * - */ - @XmlEnumValue("language") - LANGUAGE("language"), - - /** - * ID - * - */ - ID("ID"), - - /** - * IDREF - * - */ - IDREF("IDREF"), - - /** - * IDREFS - * - */ - IDREFS("IDREFS"), - - /** - * ENTITY - * - */ - ENTITY("ENTITY"), - - /** - * ENTITIES - * - */ - ENTITIES("ENTITIES"), - - /** - * Notation - * - */ - NOTATION("NOTATION"), - - /** - * NMTOKEN - * - */ - NMTOKEN("NMTOKEN"), - - /** - * NMTOKENS - * - */ - NMTOKENS("NMTOKENS"), - - /** - * Any Type - * - */ - @XmlEnumValue("anyType") - ANY_TYPE("anyType"); - private final String value; - - STXmlDataType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static STXmlDataType fromValue(String v) { - for (STXmlDataType c: STXmlDataType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); - } - -} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Sheet.java b/src/xlsx4j/java/org/xlsx4j/sml/Sheet.java index 39917e0cf9..676a843cea 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Sheet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Sheet.java @@ -1,157 +1,169 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Sheet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Sheet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Xstring" />
- *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetState" default="visible" />
- *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Sheet") -public class Sheet { - - @XmlAttribute(required = true) - protected String name; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long sheetId; - @XmlAttribute - protected STSheetState state; - @XmlAttribute(namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) - protected String id; - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setName(String value) { - this.name = value; - } - - /** - * Gets the value of the sheetId property. - * - */ - public long getSheetId() { - return sheetId; - } - - /** - * Sets the value of the sheetId property. - * - */ - public void setSheetId(long value) { - this.sheetId = value; - } - - /** - * Gets the value of the state property. - * - * @return - * possible object is - * {@link STSheetState } - * - */ - public STSheetState getState() { - if (state == null) { - return STSheetState.VISIBLE; - } else { - return state; - } - } - - /** - * Sets the value of the state property. - * - * @param value - * allowed object is - * {@link STSheetState } - * - */ - public void setState(STSheetState value) { - this.state = value; - } - - /** - * Relationship Id - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Sheet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Sheet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
+ *       <attribute name="sheetId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *       <attribute name="state" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetState" default="visible" />
+ *       <attribute ref="{http://schemas.openxmlformats.org/officeDocument/2006/relationships}id use="required""/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Sheet") +public class Sheet implements Child +{ + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "sheetId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long sheetId; + @XmlAttribute(name = "state") + protected STSheetState state; + @XmlAttribute(name = "id", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", required = true) + protected String id; + @XmlTransient + private Object parent; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the sheetId property. + * + */ + public long getSheetId() { + return sheetId; + } + + /** + * Sets the value of the sheetId property. + * + */ + public void setSheetId(long value) { + this.sheetId = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link STSheetState } + * + */ + public STSheetState getState() { + if (state == null) { + return STSheetState.VISIBLE; + } else { + return state; + } + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link STSheetState } + * + */ + public void setState(STSheetState value) { + this.state = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/SheetData.java b/src/xlsx4j/java/org/xlsx4j/sml/SheetData.java index 51f65b8569..91e8a7750d 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/SheetData.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/SheetData.java @@ -1,87 +1,99 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetData complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetData">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="row" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Row" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetData", propOrder = { - "row" -}) -public class SheetData { - - protected List row; - - /** - * Gets the value of the row property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the row property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRow().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Row } - * - * - */ - public List getRow() { - if (row == null) { - row = new ArrayList(); - } - return this.row; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetData complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetData">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="row" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Row" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetData", propOrder = { + "row" +}) +public class SheetData implements Child +{ + + protected List row; + @XmlTransient + private Object parent; + + /** + * Gets the value of the row property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the row property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRow().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Row } + * + * + */ + public List getRow() { + if (row == null) { + row = new ArrayList(); + } + return this.row; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/SheetView.java b/src/xlsx4j/java/org/xlsx4j/sml/SheetView.java index 588f07f633..2c4f2f84c0 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/SheetView.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/SheetView.java @@ -1,754 +1,766 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetView complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetView">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Pane" minOccurs="0"/>
- *         <element name="selection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Selection" maxOccurs="4" minOccurs="0"/>
- *         <element name="pivotSelection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotSelection" maxOccurs="4" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="windowProtection" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showGridLines" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showRowColHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showZeros" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="rightToLeft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="tabSelected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showRuler" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showOutlineSymbols" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="defaultGridColor" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="showWhiteSpace" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="view" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetViewType" default="normal" />
- *       <attribute name="topLeftCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
- *       <attribute name="colorId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="64" />
- *       <attribute name="zoomScale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
- *       <attribute name="zoomScaleNormal" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="zoomScaleSheetLayoutView" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="zoomScalePageLayoutView" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
- *       <attribute name="workbookViewId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetView", propOrder = { - "pane", - "selection", - "pivotSelection", - "extLst" -}) -public class SheetView { - - protected CTPane pane; - protected List selection; - protected List pivotSelection; - protected CTExtensionList extLst; - @XmlAttribute - protected Boolean windowProtection; - @XmlAttribute - protected Boolean showFormulas; - @XmlAttribute - protected Boolean showGridLines; - @XmlAttribute - protected Boolean showRowColHeaders; - @XmlAttribute - protected Boolean showZeros; - @XmlAttribute - protected Boolean rightToLeft; - @XmlAttribute - protected Boolean tabSelected; - @XmlAttribute - protected Boolean showRuler; - @XmlAttribute - protected Boolean showOutlineSymbols; - @XmlAttribute - protected Boolean defaultGridColor; - @XmlAttribute - protected Boolean showWhiteSpace; - @XmlAttribute - protected STSheetViewType view; - @XmlAttribute - protected String topLeftCell; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long colorId; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long zoomScale; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long zoomScaleNormal; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long zoomScaleSheetLayoutView; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long zoomScalePageLayoutView; - @XmlAttribute(required = true) - @XmlSchemaType(name = "unsignedInt") - protected long workbookViewId; - - /** - * Gets the value of the pane property. - * - * @return - * possible object is - * {@link CTPane } - * - */ - public CTPane getPane() { - return pane; - } - - /** - * Sets the value of the pane property. - * - * @param value - * allowed object is - * {@link CTPane } - * - */ - public void setPane(CTPane value) { - this.pane = value; - } - - /** - * Gets the value of the selection property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the selection property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSelection().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTSelection } - * - * - */ - public List getSelection() { - if (selection == null) { - selection = new ArrayList(); - } - return this.selection; - } - - /** - * Gets the value of the pivotSelection property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the pivotSelection property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPivotSelection().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTPivotSelection } - * - * - */ - public List getPivotSelection() { - if (pivotSelection == null) { - pivotSelection = new ArrayList(); - } - return this.pivotSelection; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - - /** - * Gets the value of the windowProtection property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isWindowProtection() { - if (windowProtection == null) { - return false; - } else { - return windowProtection; - } - } - - /** - * Sets the value of the windowProtection property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setWindowProtection(Boolean value) { - this.windowProtection = value; - } - - /** - * Gets the value of the showFormulas property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowFormulas() { - if (showFormulas == null) { - return false; - } else { - return showFormulas; - } - } - - /** - * Sets the value of the showFormulas property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowFormulas(Boolean value) { - this.showFormulas = value; - } - - /** - * Gets the value of the showGridLines property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowGridLines() { - if (showGridLines == null) { - return true; - } else { - return showGridLines; - } - } - - /** - * Sets the value of the showGridLines property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowGridLines(Boolean value) { - this.showGridLines = value; - } - - /** - * Gets the value of the showRowColHeaders property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowRowColHeaders() { - if (showRowColHeaders == null) { - return true; - } else { - return showRowColHeaders; - } - } - - /** - * Sets the value of the showRowColHeaders property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowRowColHeaders(Boolean value) { - this.showRowColHeaders = value; - } - - /** - * Gets the value of the showZeros property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowZeros() { - if (showZeros == null) { - return true; - } else { - return showZeros; - } - } - - /** - * Sets the value of the showZeros property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowZeros(Boolean value) { - this.showZeros = value; - } - - /** - * Gets the value of the rightToLeft property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRightToLeft() { - if (rightToLeft == null) { - return false; - } else { - return rightToLeft; - } - } - - /** - * Sets the value of the rightToLeft property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRightToLeft(Boolean value) { - this.rightToLeft = value; - } - - /** - * Gets the value of the tabSelected property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isTabSelected() { - if (tabSelected == null) { - return false; - } else { - return tabSelected; - } - } - - /** - * Sets the value of the tabSelected property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setTabSelected(Boolean value) { - this.tabSelected = value; - } - - /** - * Gets the value of the showRuler property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowRuler() { - if (showRuler == null) { - return true; - } else { - return showRuler; - } - } - - /** - * Sets the value of the showRuler property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowRuler(Boolean value) { - this.showRuler = value; - } - - /** - * Gets the value of the showOutlineSymbols property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowOutlineSymbols() { - if (showOutlineSymbols == null) { - return true; - } else { - return showOutlineSymbols; - } - } - - /** - * Sets the value of the showOutlineSymbols property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowOutlineSymbols(Boolean value) { - this.showOutlineSymbols = value; - } - - /** - * Gets the value of the defaultGridColor property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDefaultGridColor() { - if (defaultGridColor == null) { - return true; - } else { - return defaultGridColor; - } - } - - /** - * Sets the value of the defaultGridColor property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDefaultGridColor(Boolean value) { - this.defaultGridColor = value; - } - - /** - * Gets the value of the showWhiteSpace property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowWhiteSpace() { - if (showWhiteSpace == null) { - return true; - } else { - return showWhiteSpace; - } - } - - /** - * Sets the value of the showWhiteSpace property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowWhiteSpace(Boolean value) { - this.showWhiteSpace = value; - } - - /** - * Gets the value of the view property. - * - * @return - * possible object is - * {@link STSheetViewType } - * - */ - public STSheetViewType getView() { - if (view == null) { - return STSheetViewType.NORMAL; - } else { - return view; - } - } - - /** - * Sets the value of the view property. - * - * @param value - * allowed object is - * {@link STSheetViewType } - * - */ - public void setView(STSheetViewType value) { - this.view = value; - } - - /** - * Gets the value of the topLeftCell property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTopLeftCell() { - return topLeftCell; - } - - /** - * Sets the value of the topLeftCell property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTopLeftCell(String value) { - this.topLeftCell = value; - } - - /** - * Gets the value of the colorId property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getColorId() { - if (colorId == null) { - return 64L; - } else { - return colorId; - } - } - - /** - * Sets the value of the colorId property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setColorId(Long value) { - this.colorId = value; - } - - /** - * Gets the value of the zoomScale property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getZoomScale() { - if (zoomScale == null) { - return 100L; - } else { - return zoomScale; - } - } - - /** - * Sets the value of the zoomScale property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setZoomScale(Long value) { - this.zoomScale = value; - } - - /** - * Gets the value of the zoomScaleNormal property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getZoomScaleNormal() { - if (zoomScaleNormal == null) { - return 0L; - } else { - return zoomScaleNormal; - } - } - - /** - * Sets the value of the zoomScaleNormal property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setZoomScaleNormal(Long value) { - this.zoomScaleNormal = value; - } - - /** - * Gets the value of the zoomScaleSheetLayoutView property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getZoomScaleSheetLayoutView() { - if (zoomScaleSheetLayoutView == null) { - return 0L; - } else { - return zoomScaleSheetLayoutView; - } - } - - /** - * Sets the value of the zoomScaleSheetLayoutView property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setZoomScaleSheetLayoutView(Long value) { - this.zoomScaleSheetLayoutView = value; - } - - /** - * Gets the value of the zoomScalePageLayoutView property. - * - * @return - * possible object is - * {@link Long } - * - */ - public long getZoomScalePageLayoutView() { - if (zoomScalePageLayoutView == null) { - return 0L; - } else { - return zoomScalePageLayoutView; - } - } - - /** - * Sets the value of the zoomScalePageLayoutView property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setZoomScalePageLayoutView(Long value) { - this.zoomScalePageLayoutView = value; - } - - /** - * Gets the value of the workbookViewId property. - * - */ - public long getWorkbookViewId() { - return workbookViewId; - } - - /** - * Sets the value of the workbookViewId property. - * - */ - public void setWorkbookViewId(long value) { - this.workbookViewId = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetView complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetView">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Pane" minOccurs="0"/>
+ *         <element name="selection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Selection" maxOccurs="4" minOccurs="0"/>
+ *         <element name="pivotSelection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotSelection" maxOccurs="4" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="windowProtection" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showGridLines" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showRowColHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showZeros" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="rightToLeft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="tabSelected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showRuler" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showOutlineSymbols" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="defaultGridColor" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="showWhiteSpace" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="view" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetViewType" default="normal" />
+ *       <attribute name="topLeftCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
+ *       <attribute name="colorId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="64" />
+ *       <attribute name="zoomScale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
+ *       <attribute name="zoomScaleNormal" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="zoomScaleSheetLayoutView" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="zoomScalePageLayoutView" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
+ *       <attribute name="workbookViewId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetView", propOrder = { + "pane", + "selection", + "pivotSelection", + "extLst" +}) +public class SheetView implements Child +{ + + protected CTPane pane; + protected List selection; + protected List pivotSelection; + protected CTExtensionList extLst; + @XmlAttribute(name = "windowProtection") + protected Boolean windowProtection; + @XmlAttribute(name = "showFormulas") + protected Boolean showFormulas; + @XmlAttribute(name = "showGridLines") + protected Boolean showGridLines; + @XmlAttribute(name = "showRowColHeaders") + protected Boolean showRowColHeaders; + @XmlAttribute(name = "showZeros") + protected Boolean showZeros; + @XmlAttribute(name = "rightToLeft") + protected Boolean rightToLeft; + @XmlAttribute(name = "tabSelected") + protected Boolean tabSelected; + @XmlAttribute(name = "showRuler") + protected Boolean showRuler; + @XmlAttribute(name = "showOutlineSymbols") + protected Boolean showOutlineSymbols; + @XmlAttribute(name = "defaultGridColor") + protected Boolean defaultGridColor; + @XmlAttribute(name = "showWhiteSpace") + protected Boolean showWhiteSpace; + @XmlAttribute(name = "view") + protected STSheetViewType view; + @XmlAttribute(name = "topLeftCell") + protected String topLeftCell; + @XmlAttribute(name = "colorId") + @XmlSchemaType(name = "unsignedInt") + protected Long colorId; + @XmlAttribute(name = "zoomScale") + @XmlSchemaType(name = "unsignedInt") + protected Long zoomScale; + @XmlAttribute(name = "zoomScaleNormal") + @XmlSchemaType(name = "unsignedInt") + protected Long zoomScaleNormal; + @XmlAttribute(name = "zoomScaleSheetLayoutView") + @XmlSchemaType(name = "unsignedInt") + protected Long zoomScaleSheetLayoutView; + @XmlAttribute(name = "zoomScalePageLayoutView") + @XmlSchemaType(name = "unsignedInt") + protected Long zoomScalePageLayoutView; + @XmlAttribute(name = "workbookViewId", required = true) + @XmlSchemaType(name = "unsignedInt") + protected long workbookViewId; + @XmlTransient + private Object parent; + + /** + * Gets the value of the pane property. + * + * @return + * possible object is + * {@link CTPane } + * + */ + public CTPane getPane() { + return pane; + } + + /** + * Sets the value of the pane property. + * + * @param value + * allowed object is + * {@link CTPane } + * + */ + public void setPane(CTPane value) { + this.pane = value; + } + + /** + * Gets the value of the selection property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the selection property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSelection().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTSelection } + * + * + */ + public List getSelection() { + if (selection == null) { + selection = new ArrayList(); + } + return this.selection; + } + + /** + * Gets the value of the pivotSelection property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pivotSelection property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPivotSelection().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTPivotSelection } + * + * + */ + public List getPivotSelection() { + if (pivotSelection == null) { + pivotSelection = new ArrayList(); + } + return this.pivotSelection; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the windowProtection property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isWindowProtection() { + if (windowProtection == null) { + return false; + } else { + return windowProtection; + } + } + + /** + * Sets the value of the windowProtection property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWindowProtection(Boolean value) { + this.windowProtection = value; + } + + /** + * Gets the value of the showFormulas property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowFormulas() { + if (showFormulas == null) { + return false; + } else { + return showFormulas; + } + } + + /** + * Sets the value of the showFormulas property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowFormulas(Boolean value) { + this.showFormulas = value; + } + + /** + * Gets the value of the showGridLines property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowGridLines() { + if (showGridLines == null) { + return true; + } else { + return showGridLines; + } + } + + /** + * Sets the value of the showGridLines property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowGridLines(Boolean value) { + this.showGridLines = value; + } + + /** + * Gets the value of the showRowColHeaders property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowRowColHeaders() { + if (showRowColHeaders == null) { + return true; + } else { + return showRowColHeaders; + } + } + + /** + * Sets the value of the showRowColHeaders property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowRowColHeaders(Boolean value) { + this.showRowColHeaders = value; + } + + /** + * Gets the value of the showZeros property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowZeros() { + if (showZeros == null) { + return true; + } else { + return showZeros; + } + } + + /** + * Sets the value of the showZeros property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowZeros(Boolean value) { + this.showZeros = value; + } + + /** + * Gets the value of the rightToLeft property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRightToLeft() { + if (rightToLeft == null) { + return false; + } else { + return rightToLeft; + } + } + + /** + * Sets the value of the rightToLeft property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRightToLeft(Boolean value) { + this.rightToLeft = value; + } + + /** + * Gets the value of the tabSelected property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isTabSelected() { + if (tabSelected == null) { + return false; + } else { + return tabSelected; + } + } + + /** + * Sets the value of the tabSelected property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTabSelected(Boolean value) { + this.tabSelected = value; + } + + /** + * Gets the value of the showRuler property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowRuler() { + if (showRuler == null) { + return true; + } else { + return showRuler; + } + } + + /** + * Sets the value of the showRuler property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowRuler(Boolean value) { + this.showRuler = value; + } + + /** + * Gets the value of the showOutlineSymbols property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowOutlineSymbols() { + if (showOutlineSymbols == null) { + return true; + } else { + return showOutlineSymbols; + } + } + + /** + * Sets the value of the showOutlineSymbols property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowOutlineSymbols(Boolean value) { + this.showOutlineSymbols = value; + } + + /** + * Gets the value of the defaultGridColor property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDefaultGridColor() { + if (defaultGridColor == null) { + return true; + } else { + return defaultGridColor; + } + } + + /** + * Sets the value of the defaultGridColor property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDefaultGridColor(Boolean value) { + this.defaultGridColor = value; + } + + /** + * Gets the value of the showWhiteSpace property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowWhiteSpace() { + if (showWhiteSpace == null) { + return true; + } else { + return showWhiteSpace; + } + } + + /** + * Sets the value of the showWhiteSpace property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowWhiteSpace(Boolean value) { + this.showWhiteSpace = value; + } + + /** + * Gets the value of the view property. + * + * @return + * possible object is + * {@link STSheetViewType } + * + */ + public STSheetViewType getView() { + if (view == null) { + return STSheetViewType.NORMAL; + } else { + return view; + } + } + + /** + * Sets the value of the view property. + * + * @param value + * allowed object is + * {@link STSheetViewType } + * + */ + public void setView(STSheetViewType value) { + this.view = value; + } + + /** + * Gets the value of the topLeftCell property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTopLeftCell() { + return topLeftCell; + } + + /** + * Sets the value of the topLeftCell property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTopLeftCell(String value) { + this.topLeftCell = value; + } + + /** + * Gets the value of the colorId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getColorId() { + if (colorId == null) { + return 64L; + } else { + return colorId; + } + } + + /** + * Sets the value of the colorId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setColorId(Long value) { + this.colorId = value; + } + + /** + * Gets the value of the zoomScale property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getZoomScale() { + if (zoomScale == null) { + return 100L; + } else { + return zoomScale; + } + } + + /** + * Sets the value of the zoomScale property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setZoomScale(Long value) { + this.zoomScale = value; + } + + /** + * Gets the value of the zoomScaleNormal property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getZoomScaleNormal() { + if (zoomScaleNormal == null) { + return 0L; + } else { + return zoomScaleNormal; + } + } + + /** + * Sets the value of the zoomScaleNormal property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setZoomScaleNormal(Long value) { + this.zoomScaleNormal = value; + } + + /** + * Gets the value of the zoomScaleSheetLayoutView property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getZoomScaleSheetLayoutView() { + if (zoomScaleSheetLayoutView == null) { + return 0L; + } else { + return zoomScaleSheetLayoutView; + } + } + + /** + * Sets the value of the zoomScaleSheetLayoutView property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setZoomScaleSheetLayoutView(Long value) { + this.zoomScaleSheetLayoutView = value; + } + + /** + * Gets the value of the zoomScalePageLayoutView property. + * + * @return + * possible object is + * {@link Long } + * + */ + public long getZoomScalePageLayoutView() { + if (zoomScalePageLayoutView == null) { + return 0L; + } else { + return zoomScalePageLayoutView; + } + } + + /** + * Sets the value of the zoomScalePageLayoutView property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setZoomScalePageLayoutView(Long value) { + this.zoomScalePageLayoutView = value; + } + + /** + * Gets the value of the workbookViewId property. + * + */ + public long getWorkbookViewId() { + return workbookViewId; + } + + /** + * Sets the value of the workbookViewId property. + * + */ + public void setWorkbookViewId(long value) { + this.workbookViewId = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/SheetViews.java b/src/xlsx4j/java/org/xlsx4j/sml/SheetViews.java index 6c498dd731..8cbfefb7de 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/SheetViews.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/SheetViews.java @@ -1,116 +1,128 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_SheetViews complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_SheetViews">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetView" maxOccurs="unbounded"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_SheetViews", propOrder = { - "sheetView", - "extLst" -}) -public class SheetViews { - - @XmlElement(required = true) - protected List sheetView; - protected CTExtensionList extLst; - - /** - * Gets the value of the sheetView property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sheetView property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSheetView().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link SheetView } - * - * - */ - public List getSheetView() { - if (sheetView == null) { - sheetView = new ArrayList(); - } - return this.sheetView; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_SheetViews complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_SheetViews">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetView" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetView" maxOccurs="unbounded"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_SheetViews", propOrder = { + "sheetView", + "extLst" +}) +public class SheetViews implements Child +{ + + @XmlElement(required = true) + protected List sheetView; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetView property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sheetView property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSheetView().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link SheetView } + * + * + */ + public List getSheetView() { + if (sheetView == null) { + sheetView = new ArrayList(); + } + return this.sheetView; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Sheets.java b/src/xlsx4j/java/org/xlsx4j/sml/Sheets.java index 2bc8db67ba..e9e70236cf 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Sheets.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Sheets.java @@ -1,89 +1,101 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Sheets complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Sheets">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Sheet" maxOccurs="unbounded"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Sheets", propOrder = { - "sheet" -}) -public class Sheets { - - @XmlElement(required = true) - protected List sheet; - - /** - * Gets the value of the sheet property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the sheet property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSheet().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Sheet } - * - * - */ - public List getSheet() { - if (sheet == null) { - sheet = new ArrayList(); - } - return this.sheet; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Sheets complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Sheets">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Sheet" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Sheets", propOrder = { + "sheet" +}) +public class Sheets implements Child +{ + + @XmlElement(required = true) + protected List sheet; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheet property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the sheet property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSheet().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Sheet } + * + * + */ + public List getSheet() { + if (sheet == null) { + sheet = new ArrayList(); + } + return this.sheet; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Workbook.java b/src/xlsx4j/java/org/xlsx4j/sml/Workbook.java index ab00dc1852..e51af31fdc 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Workbook.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Workbook.java @@ -1,577 +1,618 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Workbook complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Workbook">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="fileVersion" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FileVersion" minOccurs="0"/>
- *         <element name="fileSharing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FileSharing" minOccurs="0"/>
- *         <element name="workbookPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WorkbookPr" minOccurs="0"/>
- *         <element name="workbookProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WorkbookProtection" minOccurs="0"/>
- *         <element name="bookViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BookViews" minOccurs="0"/>
- *         <element name="sheets" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Sheets"/>
- *         <element name="functionGroups" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FunctionGroups" minOccurs="0"/>
- *         <element name="externalReferences" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalReferences" minOccurs="0"/>
- *         <element name="definedNames" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DefinedNames" minOccurs="0"/>
- *         <element name="calcPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalcPr" minOccurs="0"/>
- *         <element name="oleSize" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleSize" minOccurs="0"/>
- *         <element name="customWorkbookViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomWorkbookViews" minOccurs="0"/>
- *         <element name="pivotCaches" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotCaches" minOccurs="0"/>
- *         <element name="smartTagPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTagPr" minOccurs="0"/>
- *         <element name="smartTagTypes" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTagTypes" minOccurs="0"/>
- *         <element name="webPublishing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishing" minOccurs="0"/>
- *         <element name="fileRecoveryPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FileRecoveryPr" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="webPublishObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishObjects" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Workbook", propOrder = { - "fileVersion", - "fileSharing", - "workbookPr", - "workbookProtection", - "bookViews", - "sheets", - "functionGroups", - "externalReferences", - "definedNames", - "calcPr", - "oleSize", - "customWorkbookViews", - "pivotCaches", - "smartTagPr", - "smartTagTypes", - "webPublishing", - "fileRecoveryPr", - "webPublishObjects", - "extLst" -}) -@XmlRootElement(name = "workbook") -public class Workbook { - - protected FileVersion fileVersion; - protected CTFileSharing fileSharing; - protected WorkbookPr workbookPr; - protected CTWorkbookProtection workbookProtection; - protected BookViews bookViews; - @XmlElement(required = true) - protected Sheets sheets; - protected CTFunctionGroups functionGroups; - protected CTExternalReferences externalReferences; - protected DefinedNames definedNames; - protected CTCalcPr calcPr; - protected CTOleSize oleSize; - protected CTCustomWorkbookViews customWorkbookViews; - protected CTPivotCaches pivotCaches; - protected CTSmartTagPr smartTagPr; - protected CTSmartTagTypes smartTagTypes; - protected CTWebPublishing webPublishing; - protected List fileRecoveryPr; - protected CTWebPublishObjects webPublishObjects; - protected CTExtensionList extLst; - - /** - * Gets the value of the fileVersion property. - * - * @return - * possible object is - * {@link FileVersion } - * - */ - public FileVersion getFileVersion() { - return fileVersion; - } - - /** - * Sets the value of the fileVersion property. - * - * @param value - * allowed object is - * {@link FileVersion } - * - */ - public void setFileVersion(FileVersion value) { - this.fileVersion = value; - } - - /** - * Gets the value of the fileSharing property. - * - * @return - * possible object is - * {@link CTFileSharing } - * - */ - public CTFileSharing getFileSharing() { - return fileSharing; - } - - /** - * Sets the value of the fileSharing property. - * - * @param value - * allowed object is - * {@link CTFileSharing } - * - */ - public void setFileSharing(CTFileSharing value) { - this.fileSharing = value; - } - - /** - * Gets the value of the workbookPr property. - * - * @return - * possible object is - * {@link WorkbookPr } - * - */ - public WorkbookPr getWorkbookPr() { - return workbookPr; - } - - /** - * Sets the value of the workbookPr property. - * - * @param value - * allowed object is - * {@link WorkbookPr } - * - */ - public void setWorkbookPr(WorkbookPr value) { - this.workbookPr = value; - } - - /** - * Gets the value of the workbookProtection property. - * - * @return - * possible object is - * {@link CTWorkbookProtection } - * - */ - public CTWorkbookProtection getWorkbookProtection() { - return workbookProtection; - } - - /** - * Sets the value of the workbookProtection property. - * - * @param value - * allowed object is - * {@link CTWorkbookProtection } - * - */ - public void setWorkbookProtection(CTWorkbookProtection value) { - this.workbookProtection = value; - } - - /** - * Gets the value of the bookViews property. - * - * @return - * possible object is - * {@link BookViews } - * - */ - public BookViews getBookViews() { - return bookViews; - } - - /** - * Sets the value of the bookViews property. - * - * @param value - * allowed object is - * {@link BookViews } - * - */ - public void setBookViews(BookViews value) { - this.bookViews = value; - } - - /** - * Gets the value of the sheets property. - * - * @return - * possible object is - * {@link Sheets } - * - */ - public Sheets getSheets() { - return sheets; - } - - /** - * Sets the value of the sheets property. - * - * @param value - * allowed object is - * {@link Sheets } - * - */ - public void setSheets(Sheets value) { - this.sheets = value; - } - - /** - * Gets the value of the functionGroups property. - * - * @return - * possible object is - * {@link CTFunctionGroups } - * - */ - public CTFunctionGroups getFunctionGroups() { - return functionGroups; - } - - /** - * Sets the value of the functionGroups property. - * - * @param value - * allowed object is - * {@link CTFunctionGroups } - * - */ - public void setFunctionGroups(CTFunctionGroups value) { - this.functionGroups = value; - } - - /** - * Gets the value of the externalReferences property. - * - * @return - * possible object is - * {@link CTExternalReferences } - * - */ - public CTExternalReferences getExternalReferences() { - return externalReferences; - } - - /** - * Sets the value of the externalReferences property. - * - * @param value - * allowed object is - * {@link CTExternalReferences } - * - */ - public void setExternalReferences(CTExternalReferences value) { - this.externalReferences = value; - } - - /** - * Gets the value of the definedNames property. - * - * @return - * possible object is - * {@link DefinedNames } - * - */ - public DefinedNames getDefinedNames() { - return definedNames; - } - - /** - * Sets the value of the definedNames property. - * - * @param value - * allowed object is - * {@link DefinedNames } - * - */ - public void setDefinedNames(DefinedNames value) { - this.definedNames = value; - } - - /** - * Gets the value of the calcPr property. - * - * @return - * possible object is - * {@link CTCalcPr } - * - */ - public CTCalcPr getCalcPr() { - return calcPr; - } - - /** - * Sets the value of the calcPr property. - * - * @param value - * allowed object is - * {@link CTCalcPr } - * - */ - public void setCalcPr(CTCalcPr value) { - this.calcPr = value; - } - - /** - * Gets the value of the oleSize property. - * - * @return - * possible object is - * {@link CTOleSize } - * - */ - public CTOleSize getOleSize() { - return oleSize; - } - - /** - * Sets the value of the oleSize property. - * - * @param value - * allowed object is - * {@link CTOleSize } - * - */ - public void setOleSize(CTOleSize value) { - this.oleSize = value; - } - - /** - * Gets the value of the customWorkbookViews property. - * - * @return - * possible object is - * {@link CTCustomWorkbookViews } - * - */ - public CTCustomWorkbookViews getCustomWorkbookViews() { - return customWorkbookViews; - } - - /** - * Sets the value of the customWorkbookViews property. - * - * @param value - * allowed object is - * {@link CTCustomWorkbookViews } - * - */ - public void setCustomWorkbookViews(CTCustomWorkbookViews value) { - this.customWorkbookViews = value; - } - - /** - * Gets the value of the pivotCaches property. - * - * @return - * possible object is - * {@link CTPivotCaches } - * - */ - public CTPivotCaches getPivotCaches() { - return pivotCaches; - } - - /** - * Sets the value of the pivotCaches property. - * - * @param value - * allowed object is - * {@link CTPivotCaches } - * - */ - public void setPivotCaches(CTPivotCaches value) { - this.pivotCaches = value; - } - - /** - * Gets the value of the smartTagPr property. - * - * @return - * possible object is - * {@link CTSmartTagPr } - * - */ - public CTSmartTagPr getSmartTagPr() { - return smartTagPr; - } - - /** - * Sets the value of the smartTagPr property. - * - * @param value - * allowed object is - * {@link CTSmartTagPr } - * - */ - public void setSmartTagPr(CTSmartTagPr value) { - this.smartTagPr = value; - } - - /** - * Gets the value of the smartTagTypes property. - * - * @return - * possible object is - * {@link CTSmartTagTypes } - * - */ - public CTSmartTagTypes getSmartTagTypes() { - return smartTagTypes; - } - - /** - * Sets the value of the smartTagTypes property. - * - * @param value - * allowed object is - * {@link CTSmartTagTypes } - * - */ - public void setSmartTagTypes(CTSmartTagTypes value) { - this.smartTagTypes = value; - } - - /** - * Gets the value of the webPublishing property. - * - * @return - * possible object is - * {@link CTWebPublishing } - * - */ - public CTWebPublishing getWebPublishing() { - return webPublishing; - } - - /** - * Sets the value of the webPublishing property. - * - * @param value - * allowed object is - * {@link CTWebPublishing } - * - */ - public void setWebPublishing(CTWebPublishing value) { - this.webPublishing = value; - } - - /** - * Gets the value of the fileRecoveryPr property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the fileRecoveryPr property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFileRecoveryPr().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTFileRecoveryPr } - * - * - */ - public List getFileRecoveryPr() { - if (fileRecoveryPr == null) { - fileRecoveryPr = new ArrayList(); - } - return this.fileRecoveryPr; - } - - /** - * Gets the value of the webPublishObjects property. - * - * @return - * possible object is - * {@link CTWebPublishObjects } - * - */ - public CTWebPublishObjects getWebPublishObjects() { - return webPublishObjects; - } - - /** - * Sets the value of the webPublishObjects property. - * - * @param value - * allowed object is - * {@link CTWebPublishObjects } - * - */ - public void setWebPublishObjects(CTWebPublishObjects value) { - this.webPublishObjects = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.docx4j.sharedtypes.STConformanceClass; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Workbook complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Workbook">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="fileVersion" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FileVersion" minOccurs="0"/>
+ *         <element name="fileSharing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FileSharing" minOccurs="0"/>
+ *         <element name="workbookPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WorkbookPr" minOccurs="0"/>
+ *         <element name="workbookProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WorkbookProtection" minOccurs="0"/>
+ *         <element name="bookViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BookViews" minOccurs="0"/>
+ *         <element name="sheets" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Sheets"/>
+ *         <element name="functionGroups" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FunctionGroups" minOccurs="0"/>
+ *         <element name="externalReferences" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExternalReferences" minOccurs="0"/>
+ *         <element name="definedNames" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DefinedNames" minOccurs="0"/>
+ *         <element name="calcPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CalcPr" minOccurs="0"/>
+ *         <element name="oleSize" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleSize" minOccurs="0"/>
+ *         <element name="customWorkbookViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomWorkbookViews" minOccurs="0"/>
+ *         <element name="pivotCaches" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotCaches" minOccurs="0"/>
+ *         <element name="smartTagPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTagPr" minOccurs="0"/>
+ *         <element name="smartTagTypes" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTagTypes" minOccurs="0"/>
+ *         <element name="webPublishing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishing" minOccurs="0"/>
+ *         <element name="fileRecoveryPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FileRecoveryPr" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="webPublishObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishObjects" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="conformance" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_ConformanceClass" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Workbook", propOrder = { + "fileVersion", + "fileSharing", + "workbookPr", + "workbookProtection", + "bookViews", + "sheets", + "functionGroups", + "externalReferences", + "definedNames", + "calcPr", + "oleSize", + "customWorkbookViews", + "pivotCaches", + "smartTagPr", + "smartTagTypes", + "webPublishing", + "fileRecoveryPr", + "webPublishObjects", + "extLst" +}) +@XmlRootElement(name = "workbook") +public class Workbook implements Child +{ + + protected FileVersion fileVersion; + protected CTFileSharing fileSharing; + protected WorkbookPr workbookPr; + protected CTWorkbookProtection workbookProtection; + protected BookViews bookViews; + @XmlElement(required = true) + protected Sheets sheets; + protected CTFunctionGroups functionGroups; + protected CTExternalReferences externalReferences; + protected DefinedNames definedNames; + protected CTCalcPr calcPr; + protected CTOleSize oleSize; + protected CTCustomWorkbookViews customWorkbookViews; + protected CTPivotCaches pivotCaches; + protected CTSmartTagPr smartTagPr; + protected CTSmartTagTypes smartTagTypes; + protected CTWebPublishing webPublishing; + protected List fileRecoveryPr; + protected CTWebPublishObjects webPublishObjects; + protected CTExtensionList extLst; + @XmlAttribute(name = "conformance") + protected STConformanceClass conformance; + @XmlTransient + private Object parent; + + /** + * Gets the value of the fileVersion property. + * + * @return + * possible object is + * {@link FileVersion } + * + */ + public FileVersion getFileVersion() { + return fileVersion; + } + + /** + * Sets the value of the fileVersion property. + * + * @param value + * allowed object is + * {@link FileVersion } + * + */ + public void setFileVersion(FileVersion value) { + this.fileVersion = value; + } + + /** + * Gets the value of the fileSharing property. + * + * @return + * possible object is + * {@link CTFileSharing } + * + */ + public CTFileSharing getFileSharing() { + return fileSharing; + } + + /** + * Sets the value of the fileSharing property. + * + * @param value + * allowed object is + * {@link CTFileSharing } + * + */ + public void setFileSharing(CTFileSharing value) { + this.fileSharing = value; + } + + /** + * Gets the value of the workbookPr property. + * + * @return + * possible object is + * {@link WorkbookPr } + * + */ + public WorkbookPr getWorkbookPr() { + return workbookPr; + } + + /** + * Sets the value of the workbookPr property. + * + * @param value + * allowed object is + * {@link WorkbookPr } + * + */ + public void setWorkbookPr(WorkbookPr value) { + this.workbookPr = value; + } + + /** + * Gets the value of the workbookProtection property. + * + * @return + * possible object is + * {@link CTWorkbookProtection } + * + */ + public CTWorkbookProtection getWorkbookProtection() { + return workbookProtection; + } + + /** + * Sets the value of the workbookProtection property. + * + * @param value + * allowed object is + * {@link CTWorkbookProtection } + * + */ + public void setWorkbookProtection(CTWorkbookProtection value) { + this.workbookProtection = value; + } + + /** + * Gets the value of the bookViews property. + * + * @return + * possible object is + * {@link BookViews } + * + */ + public BookViews getBookViews() { + return bookViews; + } + + /** + * Sets the value of the bookViews property. + * + * @param value + * allowed object is + * {@link BookViews } + * + */ + public void setBookViews(BookViews value) { + this.bookViews = value; + } + + /** + * Gets the value of the sheets property. + * + * @return + * possible object is + * {@link Sheets } + * + */ + public Sheets getSheets() { + return sheets; + } + + /** + * Sets the value of the sheets property. + * + * @param value + * allowed object is + * {@link Sheets } + * + */ + public void setSheets(Sheets value) { + this.sheets = value; + } + + /** + * Gets the value of the functionGroups property. + * + * @return + * possible object is + * {@link CTFunctionGroups } + * + */ + public CTFunctionGroups getFunctionGroups() { + return functionGroups; + } + + /** + * Sets the value of the functionGroups property. + * + * @param value + * allowed object is + * {@link CTFunctionGroups } + * + */ + public void setFunctionGroups(CTFunctionGroups value) { + this.functionGroups = value; + } + + /** + * Gets the value of the externalReferences property. + * + * @return + * possible object is + * {@link CTExternalReferences } + * + */ + public CTExternalReferences getExternalReferences() { + return externalReferences; + } + + /** + * Sets the value of the externalReferences property. + * + * @param value + * allowed object is + * {@link CTExternalReferences } + * + */ + public void setExternalReferences(CTExternalReferences value) { + this.externalReferences = value; + } + + /** + * Gets the value of the definedNames property. + * + * @return + * possible object is + * {@link DefinedNames } + * + */ + public DefinedNames getDefinedNames() { + return definedNames; + } + + /** + * Sets the value of the definedNames property. + * + * @param value + * allowed object is + * {@link DefinedNames } + * + */ + public void setDefinedNames(DefinedNames value) { + this.definedNames = value; + } + + /** + * Gets the value of the calcPr property. + * + * @return + * possible object is + * {@link CTCalcPr } + * + */ + public CTCalcPr getCalcPr() { + return calcPr; + } + + /** + * Sets the value of the calcPr property. + * + * @param value + * allowed object is + * {@link CTCalcPr } + * + */ + public void setCalcPr(CTCalcPr value) { + this.calcPr = value; + } + + /** + * Gets the value of the oleSize property. + * + * @return + * possible object is + * {@link CTOleSize } + * + */ + public CTOleSize getOleSize() { + return oleSize; + } + + /** + * Sets the value of the oleSize property. + * + * @param value + * allowed object is + * {@link CTOleSize } + * + */ + public void setOleSize(CTOleSize value) { + this.oleSize = value; + } + + /** + * Gets the value of the customWorkbookViews property. + * + * @return + * possible object is + * {@link CTCustomWorkbookViews } + * + */ + public CTCustomWorkbookViews getCustomWorkbookViews() { + return customWorkbookViews; + } + + /** + * Sets the value of the customWorkbookViews property. + * + * @param value + * allowed object is + * {@link CTCustomWorkbookViews } + * + */ + public void setCustomWorkbookViews(CTCustomWorkbookViews value) { + this.customWorkbookViews = value; + } + + /** + * Gets the value of the pivotCaches property. + * + * @return + * possible object is + * {@link CTPivotCaches } + * + */ + public CTPivotCaches getPivotCaches() { + return pivotCaches; + } + + /** + * Sets the value of the pivotCaches property. + * + * @param value + * allowed object is + * {@link CTPivotCaches } + * + */ + public void setPivotCaches(CTPivotCaches value) { + this.pivotCaches = value; + } + + /** + * Gets the value of the smartTagPr property. + * + * @return + * possible object is + * {@link CTSmartTagPr } + * + */ + public CTSmartTagPr getSmartTagPr() { + return smartTagPr; + } + + /** + * Sets the value of the smartTagPr property. + * + * @param value + * allowed object is + * {@link CTSmartTagPr } + * + */ + public void setSmartTagPr(CTSmartTagPr value) { + this.smartTagPr = value; + } + + /** + * Gets the value of the smartTagTypes property. + * + * @return + * possible object is + * {@link CTSmartTagTypes } + * + */ + public CTSmartTagTypes getSmartTagTypes() { + return smartTagTypes; + } + + /** + * Sets the value of the smartTagTypes property. + * + * @param value + * allowed object is + * {@link CTSmartTagTypes } + * + */ + public void setSmartTagTypes(CTSmartTagTypes value) { + this.smartTagTypes = value; + } + + /** + * Gets the value of the webPublishing property. + * + * @return + * possible object is + * {@link CTWebPublishing } + * + */ + public CTWebPublishing getWebPublishing() { + return webPublishing; + } + + /** + * Sets the value of the webPublishing property. + * + * @param value + * allowed object is + * {@link CTWebPublishing } + * + */ + public void setWebPublishing(CTWebPublishing value) { + this.webPublishing = value; + } + + /** + * Gets the value of the fileRecoveryPr property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the fileRecoveryPr property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFileRecoveryPr().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTFileRecoveryPr } + * + * + */ + public List getFileRecoveryPr() { + if (fileRecoveryPr == null) { + fileRecoveryPr = new ArrayList(); + } + return this.fileRecoveryPr; + } + + /** + * Gets the value of the webPublishObjects property. + * + * @return + * possible object is + * {@link CTWebPublishObjects } + * + */ + public CTWebPublishObjects getWebPublishObjects() { + return webPublishObjects; + } + + /** + * Sets the value of the webPublishObjects property. + * + * @param value + * allowed object is + * {@link CTWebPublishObjects } + * + */ + public void setWebPublishObjects(CTWebPublishObjects value) { + this.webPublishObjects = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the value of the conformance property. + * + * @return + * possible object is + * {@link STConformanceClass } + * + */ + public STConformanceClass getConformance() { + return conformance; + } + + /** + * Sets the value of the conformance property. + * + * @param value + * allowed object is + * {@link STConformanceClass } + * + */ + public void setConformance(STConformanceClass value) { + this.conformance = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/WorkbookPr.java b/src/xlsx4j/java/org/xlsx4j/sml/WorkbookPr.java index 65c5700ec6..6d86c29402 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/WorkbookPr.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/WorkbookPr.java @@ -1,603 +1,615 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_WorkbookPr complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_WorkbookPr">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attribute name="date1904" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Objects" default="all" />
- *       <attribute name="showBorderUnselectedTables" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="filterPrivacy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="promptedSolutions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showInkAnnotation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="backupFile" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="saveExternalLinkValues" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="updateLinks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UpdateLinks" default="userSet" />
- *       <attribute name="codeName" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="hidePivotFieldList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="showPivotChartFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="allowRefreshQuery" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="publishItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="checkCompatibility" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="autoCompressPictures" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
- *       <attribute name="refreshAllConnections" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
- *       <attribute name="defaultThemeVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_WorkbookPr") -public class WorkbookPr { - - @XmlAttribute - protected Boolean date1904; - @XmlAttribute - protected STObjects showObjects; - @XmlAttribute - protected Boolean showBorderUnselectedTables; - @XmlAttribute - protected Boolean filterPrivacy; - @XmlAttribute - protected Boolean promptedSolutions; - @XmlAttribute - protected Boolean showInkAnnotation; - @XmlAttribute - protected Boolean backupFile; - @XmlAttribute - protected Boolean saveExternalLinkValues; - @XmlAttribute - protected STUpdateLinks updateLinks; - @XmlAttribute - protected String codeName; - @XmlAttribute - protected Boolean hidePivotFieldList; - @XmlAttribute - protected Boolean showPivotChartFilter; - @XmlAttribute - protected Boolean allowRefreshQuery; - @XmlAttribute - protected Boolean publishItems; - @XmlAttribute - protected Boolean checkCompatibility; - @XmlAttribute - protected Boolean autoCompressPictures; - @XmlAttribute - protected Boolean refreshAllConnections; - @XmlAttribute - @XmlSchemaType(name = "unsignedInt") - protected Long defaultThemeVersion; - - /** - * Gets the value of the date1904 property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isDate1904() { - if (date1904 == null) { - return false; - } else { - return date1904; - } - } - - /** - * Sets the value of the date1904 property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setDate1904(Boolean value) { - this.date1904 = value; - } - - /** - * Gets the value of the showObjects property. - * - * @return - * possible object is - * {@link STObjects } - * - */ - public STObjects getShowObjects() { - if (showObjects == null) { - return STObjects.ALL; - } else { - return showObjects; - } - } - - /** - * Sets the value of the showObjects property. - * - * @param value - * allowed object is - * {@link STObjects } - * - */ - public void setShowObjects(STObjects value) { - this.showObjects = value; - } - - /** - * Gets the value of the showBorderUnselectedTables property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowBorderUnselectedTables() { - if (showBorderUnselectedTables == null) { - return true; - } else { - return showBorderUnselectedTables; - } - } - - /** - * Sets the value of the showBorderUnselectedTables property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowBorderUnselectedTables(Boolean value) { - this.showBorderUnselectedTables = value; - } - - /** - * Gets the value of the filterPrivacy property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isFilterPrivacy() { - if (filterPrivacy == null) { - return false; - } else { - return filterPrivacy; - } - } - - /** - * Sets the value of the filterPrivacy property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFilterPrivacy(Boolean value) { - this.filterPrivacy = value; - } - - /** - * Gets the value of the promptedSolutions property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPromptedSolutions() { - if (promptedSolutions == null) { - return false; - } else { - return promptedSolutions; - } - } - - /** - * Sets the value of the promptedSolutions property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPromptedSolutions(Boolean value) { - this.promptedSolutions = value; - } - - /** - * Gets the value of the showInkAnnotation property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowInkAnnotation() { - if (showInkAnnotation == null) { - return true; - } else { - return showInkAnnotation; - } - } - - /** - * Sets the value of the showInkAnnotation property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowInkAnnotation(Boolean value) { - this.showInkAnnotation = value; - } - - /** - * Gets the value of the backupFile property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isBackupFile() { - if (backupFile == null) { - return false; - } else { - return backupFile; - } - } - - /** - * Sets the value of the backupFile property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setBackupFile(Boolean value) { - this.backupFile = value; - } - - /** - * Gets the value of the saveExternalLinkValues property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isSaveExternalLinkValues() { - if (saveExternalLinkValues == null) { - return true; - } else { - return saveExternalLinkValues; - } - } - - /** - * Sets the value of the saveExternalLinkValues property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setSaveExternalLinkValues(Boolean value) { - this.saveExternalLinkValues = value; - } - - /** - * Gets the value of the updateLinks property. - * - * @return - * possible object is - * {@link STUpdateLinks } - * - */ - public STUpdateLinks getUpdateLinks() { - if (updateLinks == null) { - return STUpdateLinks.USER_SET; - } else { - return updateLinks; - } - } - - /** - * Sets the value of the updateLinks property. - * - * @param value - * allowed object is - * {@link STUpdateLinks } - * - */ - public void setUpdateLinks(STUpdateLinks value) { - this.updateLinks = value; - } - - /** - * Gets the value of the codeName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCodeName() { - return codeName; - } - - /** - * Sets the value of the codeName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCodeName(String value) { - this.codeName = value; - } - - /** - * Gets the value of the hidePivotFieldList property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isHidePivotFieldList() { - if (hidePivotFieldList == null) { - return false; - } else { - return hidePivotFieldList; - } - } - - /** - * Sets the value of the hidePivotFieldList property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setHidePivotFieldList(Boolean value) { - this.hidePivotFieldList = value; - } - - /** - * Gets the value of the showPivotChartFilter property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isShowPivotChartFilter() { - if (showPivotChartFilter == null) { - return false; - } else { - return showPivotChartFilter; - } - } - - /** - * Sets the value of the showPivotChartFilter property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setShowPivotChartFilter(Boolean value) { - this.showPivotChartFilter = value; - } - - /** - * Gets the value of the allowRefreshQuery property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAllowRefreshQuery() { - if (allowRefreshQuery == null) { - return false; - } else { - return allowRefreshQuery; - } - } - - /** - * Sets the value of the allowRefreshQuery property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAllowRefreshQuery(Boolean value) { - this.allowRefreshQuery = value; - } - - /** - * Gets the value of the publishItems property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isPublishItems() { - if (publishItems == null) { - return false; - } else { - return publishItems; - } - } - - /** - * Sets the value of the publishItems property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPublishItems(Boolean value) { - this.publishItems = value; - } - - /** - * Gets the value of the checkCompatibility property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isCheckCompatibility() { - if (checkCompatibility == null) { - return false; - } else { - return checkCompatibility; - } - } - - /** - * Sets the value of the checkCompatibility property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCheckCompatibility(Boolean value) { - this.checkCompatibility = value; - } - - /** - * Gets the value of the autoCompressPictures property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isAutoCompressPictures() { - if (autoCompressPictures == null) { - return true; - } else { - return autoCompressPictures; - } - } - - /** - * Sets the value of the autoCompressPictures property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setAutoCompressPictures(Boolean value) { - this.autoCompressPictures = value; - } - - /** - * Gets the value of the refreshAllConnections property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public boolean isRefreshAllConnections() { - if (refreshAllConnections == null) { - return false; - } else { - return refreshAllConnections; - } - } - - /** - * Sets the value of the refreshAllConnections property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setRefreshAllConnections(Boolean value) { - this.refreshAllConnections = value; - } - - /** - * Gets the value of the defaultThemeVersion property. - * - * @return - * possible object is - * {@link Long } - * - */ - public Long getDefaultThemeVersion() { - return defaultThemeVersion; - } - - /** - * Sets the value of the defaultThemeVersion property. - * - * @param value - * allowed object is - * {@link Long } - * - */ - public void setDefaultThemeVersion(Long value) { - this.defaultThemeVersion = value; - } - -} + +package org.xlsx4j.sml; + +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_WorkbookPr complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_WorkbookPr">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="date1904" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Objects" default="all" />
+ *       <attribute name="showBorderUnselectedTables" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="filterPrivacy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="promptedSolutions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showInkAnnotation" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="backupFile" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="saveExternalLinkValues" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="updateLinks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UpdateLinks" default="userSet" />
+ *       <attribute name="codeName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="hidePivotFieldList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="showPivotChartFilter" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="allowRefreshQuery" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="publishItems" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="checkCompatibility" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="autoCompressPictures" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="refreshAllConnections" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="defaultThemeVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_WorkbookPr") +public class WorkbookPr implements Child +{ + + @XmlAttribute(name = "date1904") + protected Boolean date1904; + @XmlAttribute(name = "showObjects") + protected STObjects showObjects; + @XmlAttribute(name = "showBorderUnselectedTables") + protected Boolean showBorderUnselectedTables; + @XmlAttribute(name = "filterPrivacy") + protected Boolean filterPrivacy; + @XmlAttribute(name = "promptedSolutions") + protected Boolean promptedSolutions; + @XmlAttribute(name = "showInkAnnotation") + protected Boolean showInkAnnotation; + @XmlAttribute(name = "backupFile") + protected Boolean backupFile; + @XmlAttribute(name = "saveExternalLinkValues") + protected Boolean saveExternalLinkValues; + @XmlAttribute(name = "updateLinks") + protected STUpdateLinks updateLinks; + @XmlAttribute(name = "codeName") + protected String codeName; + @XmlAttribute(name = "hidePivotFieldList") + protected Boolean hidePivotFieldList; + @XmlAttribute(name = "showPivotChartFilter") + protected Boolean showPivotChartFilter; + @XmlAttribute(name = "allowRefreshQuery") + protected Boolean allowRefreshQuery; + @XmlAttribute(name = "publishItems") + protected Boolean publishItems; + @XmlAttribute(name = "checkCompatibility") + protected Boolean checkCompatibility; + @XmlAttribute(name = "autoCompressPictures") + protected Boolean autoCompressPictures; + @XmlAttribute(name = "refreshAllConnections") + protected Boolean refreshAllConnections; + @XmlAttribute(name = "defaultThemeVersion") + @XmlSchemaType(name = "unsignedInt") + protected Long defaultThemeVersion; + @XmlTransient + private Object parent; + + /** + * Gets the value of the date1904 property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDate1904() { + if (date1904 == null) { + return false; + } else { + return date1904; + } + } + + /** + * Sets the value of the date1904 property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDate1904(Boolean value) { + this.date1904 = value; + } + + /** + * Gets the value of the showObjects property. + * + * @return + * possible object is + * {@link STObjects } + * + */ + public STObjects getShowObjects() { + if (showObjects == null) { + return STObjects.ALL; + } else { + return showObjects; + } + } + + /** + * Sets the value of the showObjects property. + * + * @param value + * allowed object is + * {@link STObjects } + * + */ + public void setShowObjects(STObjects value) { + this.showObjects = value; + } + + /** + * Gets the value of the showBorderUnselectedTables property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowBorderUnselectedTables() { + if (showBorderUnselectedTables == null) { + return true; + } else { + return showBorderUnselectedTables; + } + } + + /** + * Sets the value of the showBorderUnselectedTables property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowBorderUnselectedTables(Boolean value) { + this.showBorderUnselectedTables = value; + } + + /** + * Gets the value of the filterPrivacy property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFilterPrivacy() { + if (filterPrivacy == null) { + return false; + } else { + return filterPrivacy; + } + } + + /** + * Sets the value of the filterPrivacy property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFilterPrivacy(Boolean value) { + this.filterPrivacy = value; + } + + /** + * Gets the value of the promptedSolutions property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPromptedSolutions() { + if (promptedSolutions == null) { + return false; + } else { + return promptedSolutions; + } + } + + /** + * Sets the value of the promptedSolutions property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPromptedSolutions(Boolean value) { + this.promptedSolutions = value; + } + + /** + * Gets the value of the showInkAnnotation property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowInkAnnotation() { + if (showInkAnnotation == null) { + return true; + } else { + return showInkAnnotation; + } + } + + /** + * Sets the value of the showInkAnnotation property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowInkAnnotation(Boolean value) { + this.showInkAnnotation = value; + } + + /** + * Gets the value of the backupFile property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBackupFile() { + if (backupFile == null) { + return false; + } else { + return backupFile; + } + } + + /** + * Sets the value of the backupFile property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBackupFile(Boolean value) { + this.backupFile = value; + } + + /** + * Gets the value of the saveExternalLinkValues property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSaveExternalLinkValues() { + if (saveExternalLinkValues == null) { + return true; + } else { + return saveExternalLinkValues; + } + } + + /** + * Sets the value of the saveExternalLinkValues property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSaveExternalLinkValues(Boolean value) { + this.saveExternalLinkValues = value; + } + + /** + * Gets the value of the updateLinks property. + * + * @return + * possible object is + * {@link STUpdateLinks } + * + */ + public STUpdateLinks getUpdateLinks() { + if (updateLinks == null) { + return STUpdateLinks.USER_SET; + } else { + return updateLinks; + } + } + + /** + * Sets the value of the updateLinks property. + * + * @param value + * allowed object is + * {@link STUpdateLinks } + * + */ + public void setUpdateLinks(STUpdateLinks value) { + this.updateLinks = value; + } + + /** + * Gets the value of the codeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCodeName() { + return codeName; + } + + /** + * Sets the value of the codeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCodeName(String value) { + this.codeName = value; + } + + /** + * Gets the value of the hidePivotFieldList property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isHidePivotFieldList() { + if (hidePivotFieldList == null) { + return false; + } else { + return hidePivotFieldList; + } + } + + /** + * Sets the value of the hidePivotFieldList property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHidePivotFieldList(Boolean value) { + this.hidePivotFieldList = value; + } + + /** + * Gets the value of the showPivotChartFilter property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowPivotChartFilter() { + if (showPivotChartFilter == null) { + return false; + } else { + return showPivotChartFilter; + } + } + + /** + * Sets the value of the showPivotChartFilter property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowPivotChartFilter(Boolean value) { + this.showPivotChartFilter = value; + } + + /** + * Gets the value of the allowRefreshQuery property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAllowRefreshQuery() { + if (allowRefreshQuery == null) { + return false; + } else { + return allowRefreshQuery; + } + } + + /** + * Sets the value of the allowRefreshQuery property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAllowRefreshQuery(Boolean value) { + this.allowRefreshQuery = value; + } + + /** + * Gets the value of the publishItems property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPublishItems() { + if (publishItems == null) { + return false; + } else { + return publishItems; + } + } + + /** + * Sets the value of the publishItems property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPublishItems(Boolean value) { + this.publishItems = value; + } + + /** + * Gets the value of the checkCompatibility property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isCheckCompatibility() { + if (checkCompatibility == null) { + return false; + } else { + return checkCompatibility; + } + } + + /** + * Sets the value of the checkCompatibility property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCheckCompatibility(Boolean value) { + this.checkCompatibility = value; + } + + /** + * Gets the value of the autoCompressPictures property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoCompressPictures() { + if (autoCompressPictures == null) { + return true; + } else { + return autoCompressPictures; + } + } + + /** + * Sets the value of the autoCompressPictures property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoCompressPictures(Boolean value) { + this.autoCompressPictures = value; + } + + /** + * Gets the value of the refreshAllConnections property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRefreshAllConnections() { + if (refreshAllConnections == null) { + return false; + } else { + return refreshAllConnections; + } + } + + /** + * Sets the value of the refreshAllConnections property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRefreshAllConnections(Boolean value) { + this.refreshAllConnections = value; + } + + /** + * Gets the value of the defaultThemeVersion property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDefaultThemeVersion() { + return defaultThemeVersion; + } + + /** + * Sets the value of the defaultThemeVersion property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDefaultThemeVersion(Long value) { + this.defaultThemeVersion = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/Worksheet.java b/src/xlsx4j/java/org/xlsx4j/sml/Worksheet.java index fc529103d0..d352366c16 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/Worksheet.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/Worksheet.java @@ -1,1095 +1,1134 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - - -package org.xlsx4j.sml; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for CT_Worksheet complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="CT_Worksheet">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetPr" minOccurs="0"/>
- *         <element name="dimension" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetDimension" minOccurs="0"/>
- *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetViews" minOccurs="0"/>
- *         <element name="sheetFormatPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetFormatPr" minOccurs="0"/>
- *         <element name="cols" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cols" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="sheetData" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetData"/>
- *         <element name="sheetCalcPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetCalcPr" minOccurs="0"/>
- *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetProtection" minOccurs="0"/>
- *         <element name="protectedRanges" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ProtectedRanges" minOccurs="0"/>
- *         <element name="scenarios" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Scenarios" minOccurs="0"/>
- *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
- *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
- *         <element name="dataConsolidate" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataConsolidate" minOccurs="0"/>
- *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetViews" minOccurs="0"/>
- *         <element name="mergeCells" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MergeCells" minOccurs="0"/>
- *         <element name="phoneticPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticPr" minOccurs="0"/>
- *         <element name="conditionalFormatting" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormatting" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="dataValidations" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataValidations" minOccurs="0"/>
- *         <element name="hyperlinks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Hyperlinks" minOccurs="0"/>
- *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
- *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
- *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
- *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
- *         <element name="rowBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
- *         <element name="colBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
- *         <element name="customProperties" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomProperties" minOccurs="0"/>
- *         <element name="cellWatches" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellWatches" minOccurs="0"/>
- *         <element name="ignoredErrors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IgnoredErrors" minOccurs="0"/>
- *         <element name="smartTags" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTags" minOccurs="0"/>
- *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing" minOccurs="0"/>
- *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
- *         <element name="picture" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetBackgroundPicture" minOccurs="0"/>
- *         <element name="oleObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObjects" minOccurs="0"/>
- *         <element name="controls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Controls" minOccurs="0"/>
- *         <element name="webPublishItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishItems" minOccurs="0"/>
- *         <element name="tableParts" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableParts" minOccurs="0"/>
- *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CT_Worksheet", propOrder = { - "sheetPr", - "dimension", - "sheetViews", - "sheetFormatPr", - "cols", - "sheetData", - "sheetCalcPr", - "sheetProtection", - "protectedRanges", - "scenarios", - "autoFilter", - "sortState", - "dataConsolidate", - "customSheetViews", - "mergeCells", - "phoneticPr", - "conditionalFormatting", - "dataValidations", - "hyperlinks", - "printOptions", - "pageMargins", - "pageSetup", - "headerFooter", - "rowBreaks", - "colBreaks", - "customProperties", - "cellWatches", - "ignoredErrors", - "smartTags", - "drawing", - "legacyDrawing", - "legacyDrawingHF", - "picture", - "oleObjects", - "controls", - "webPublishItems", - "tableParts", - "extLst" -}) -@XmlRootElement(name = "worksheet") -public class Worksheet { - - protected CTSheetPr sheetPr; - protected CTSheetDimension dimension; - protected SheetViews sheetViews; - protected CTSheetFormatPr sheetFormatPr; - protected List cols; - @XmlElement(required = true) - protected SheetData sheetData; - protected CTSheetCalcPr sheetCalcPr; - protected CTSheetProtection sheetProtection; - protected CTProtectedRanges protectedRanges; - protected CTScenarios scenarios; - protected CTAutoFilter autoFilter; - protected CTSortState sortState; - protected CTDataConsolidate dataConsolidate; - protected CTCustomSheetViews customSheetViews; - protected CTMergeCells mergeCells; - protected CTPhoneticPr phoneticPr; - protected List conditionalFormatting; - protected CTDataValidations dataValidations; - protected CTHyperlinks hyperlinks; - protected CTPrintOptions printOptions; - protected CTPageMargins pageMargins; - protected CTPageSetup pageSetup; - protected CTHeaderFooter headerFooter; - protected CTPageBreak rowBreaks; - protected CTPageBreak colBreaks; - protected CTCustomProperties customProperties; - protected CTCellWatches cellWatches; - protected CTIgnoredErrors ignoredErrors; - protected CTSmartTags smartTags; - protected CTDrawing drawing; - protected CTLegacyDrawing legacyDrawing; - protected CTLegacyDrawing legacyDrawingHF; - protected CTSheetBackgroundPicture picture; - protected CTOleObjects oleObjects; - protected CTControls controls; - protected CTWebPublishItems webPublishItems; - protected CTTableParts tableParts; - protected CTExtensionList extLst; - - /** - * Gets the value of the sheetPr property. - * - * @return - * possible object is - * {@link CTSheetPr } - * - */ - public CTSheetPr getSheetPr() { - return sheetPr; - } - - /** - * Sets the value of the sheetPr property. - * - * @param value - * allowed object is - * {@link CTSheetPr } - * - */ - public void setSheetPr(CTSheetPr value) { - this.sheetPr = value; - } - - /** - * Gets the value of the dimension property. - * - * @return - * possible object is - * {@link CTSheetDimension } - * - */ - public CTSheetDimension getDimension() { - return dimension; - } - - /** - * Sets the value of the dimension property. - * - * @param value - * allowed object is - * {@link CTSheetDimension } - * - */ - public void setDimension(CTSheetDimension value) { - this.dimension = value; - } - - /** - * Gets the value of the sheetViews property. - * - * @return - * possible object is - * {@link SheetViews } - * - */ - public SheetViews getSheetViews() { - return sheetViews; - } - - /** - * Sets the value of the sheetViews property. - * - * @param value - * allowed object is - * {@link SheetViews } - * - */ - public void setSheetViews(SheetViews value) { - this.sheetViews = value; - } - - /** - * Gets the value of the sheetFormatPr property. - * - * @return - * possible object is - * {@link CTSheetFormatPr } - * - */ - public CTSheetFormatPr getSheetFormatPr() { - return sheetFormatPr; - } - - /** - * Sets the value of the sheetFormatPr property. - * - * @param value - * allowed object is - * {@link CTSheetFormatPr } - * - */ - public void setSheetFormatPr(CTSheetFormatPr value) { - this.sheetFormatPr = value; - } - - /** - * Gets the value of the cols property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the cols property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getCols().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Cols } - * - * - */ - public List getCols() { - if (cols == null) { - cols = new ArrayList(); - } - return this.cols; - } - - /** - * Gets the value of the sheetData property. - * - * @return - * possible object is - * {@link SheetData } - * - */ - public SheetData getSheetData() { - return sheetData; - } - - /** - * Sets the value of the sheetData property. - * - * @param value - * allowed object is - * {@link SheetData } - * - */ - public void setSheetData(SheetData value) { - this.sheetData = value; - } - - /** - * Gets the value of the sheetCalcPr property. - * - * @return - * possible object is - * {@link CTSheetCalcPr } - * - */ - public CTSheetCalcPr getSheetCalcPr() { - return sheetCalcPr; - } - - /** - * Sets the value of the sheetCalcPr property. - * - * @param value - * allowed object is - * {@link CTSheetCalcPr } - * - */ - public void setSheetCalcPr(CTSheetCalcPr value) { - this.sheetCalcPr = value; - } - - /** - * Gets the value of the sheetProtection property. - * - * @return - * possible object is - * {@link CTSheetProtection } - * - */ - public CTSheetProtection getSheetProtection() { - return sheetProtection; - } - - /** - * Sets the value of the sheetProtection property. - * - * @param value - * allowed object is - * {@link CTSheetProtection } - * - */ - public void setSheetProtection(CTSheetProtection value) { - this.sheetProtection = value; - } - - /** - * Gets the value of the protectedRanges property. - * - * @return - * possible object is - * {@link CTProtectedRanges } - * - */ - public CTProtectedRanges getProtectedRanges() { - return protectedRanges; - } - - /** - * Sets the value of the protectedRanges property. - * - * @param value - * allowed object is - * {@link CTProtectedRanges } - * - */ - public void setProtectedRanges(CTProtectedRanges value) { - this.protectedRanges = value; - } - - /** - * Gets the value of the scenarios property. - * - * @return - * possible object is - * {@link CTScenarios } - * - */ - public CTScenarios getScenarios() { - return scenarios; - } - - /** - * Sets the value of the scenarios property. - * - * @param value - * allowed object is - * {@link CTScenarios } - * - */ - public void setScenarios(CTScenarios value) { - this.scenarios = value; - } - - /** - * Gets the value of the autoFilter property. - * - * @return - * possible object is - * {@link CTAutoFilter } - * - */ - public CTAutoFilter getAutoFilter() { - return autoFilter; - } - - /** - * Sets the value of the autoFilter property. - * - * @param value - * allowed object is - * {@link CTAutoFilter } - * - */ - public void setAutoFilter(CTAutoFilter value) { - this.autoFilter = value; - } - - /** - * Gets the value of the sortState property. - * - * @return - * possible object is - * {@link CTSortState } - * - */ - public CTSortState getSortState() { - return sortState; - } - - /** - * Sets the value of the sortState property. - * - * @param value - * allowed object is - * {@link CTSortState } - * - */ - public void setSortState(CTSortState value) { - this.sortState = value; - } - - /** - * Gets the value of the dataConsolidate property. - * - * @return - * possible object is - * {@link CTDataConsolidate } - * - */ - public CTDataConsolidate getDataConsolidate() { - return dataConsolidate; - } - - /** - * Sets the value of the dataConsolidate property. - * - * @param value - * allowed object is - * {@link CTDataConsolidate } - * - */ - public void setDataConsolidate(CTDataConsolidate value) { - this.dataConsolidate = value; - } - - /** - * Gets the value of the customSheetViews property. - * - * @return - * possible object is - * {@link CTCustomSheetViews } - * - */ - public CTCustomSheetViews getCustomSheetViews() { - return customSheetViews; - } - - /** - * Sets the value of the customSheetViews property. - * - * @param value - * allowed object is - * {@link CTCustomSheetViews } - * - */ - public void setCustomSheetViews(CTCustomSheetViews value) { - this.customSheetViews = value; - } - - /** - * Gets the value of the mergeCells property. - * - * @return - * possible object is - * {@link CTMergeCells } - * - */ - public CTMergeCells getMergeCells() { - return mergeCells; - } - - /** - * Sets the value of the mergeCells property. - * - * @param value - * allowed object is - * {@link CTMergeCells } - * - */ - public void setMergeCells(CTMergeCells value) { - this.mergeCells = value; - } - - /** - * Gets the value of the phoneticPr property. - * - * @return - * possible object is - * {@link CTPhoneticPr } - * - */ - public CTPhoneticPr getPhoneticPr() { - return phoneticPr; - } - - /** - * Sets the value of the phoneticPr property. - * - * @param value - * allowed object is - * {@link CTPhoneticPr } - * - */ - public void setPhoneticPr(CTPhoneticPr value) { - this.phoneticPr = value; - } - - /** - * Gets the value of the conditionalFormatting property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the conditionalFormatting property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getConditionalFormatting().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link CTConditionalFormatting } - * - * - */ - public List getConditionalFormatting() { - if (conditionalFormatting == null) { - conditionalFormatting = new ArrayList(); - } - return this.conditionalFormatting; - } - - /** - * Gets the value of the dataValidations property. - * - * @return - * possible object is - * {@link CTDataValidations } - * - */ - public CTDataValidations getDataValidations() { - return dataValidations; - } - - /** - * Sets the value of the dataValidations property. - * - * @param value - * allowed object is - * {@link CTDataValidations } - * - */ - public void setDataValidations(CTDataValidations value) { - this.dataValidations = value; - } - - /** - * Gets the value of the hyperlinks property. - * - * @return - * possible object is - * {@link CTHyperlinks } - * - */ - public CTHyperlinks getHyperlinks() { - return hyperlinks; - } - - /** - * Sets the value of the hyperlinks property. - * - * @param value - * allowed object is - * {@link CTHyperlinks } - * - */ - public void setHyperlinks(CTHyperlinks value) { - this.hyperlinks = value; - } - - /** - * Gets the value of the printOptions property. - * - * @return - * possible object is - * {@link CTPrintOptions } - * - */ - public CTPrintOptions getPrintOptions() { - return printOptions; - } - - /** - * Sets the value of the printOptions property. - * - * @param value - * allowed object is - * {@link CTPrintOptions } - * - */ - public void setPrintOptions(CTPrintOptions value) { - this.printOptions = value; - } - - /** - * Gets the value of the pageMargins property. - * - * @return - * possible object is - * {@link CTPageMargins } - * - */ - public CTPageMargins getPageMargins() { - return pageMargins; - } - - /** - * Sets the value of the pageMargins property. - * - * @param value - * allowed object is - * {@link CTPageMargins } - * - */ - public void setPageMargins(CTPageMargins value) { - this.pageMargins = value; - } - - /** - * Gets the value of the pageSetup property. - * - * @return - * possible object is - * {@link CTPageSetup } - * - */ - public CTPageSetup getPageSetup() { - return pageSetup; - } - - /** - * Sets the value of the pageSetup property. - * - * @param value - * allowed object is - * {@link CTPageSetup } - * - */ - public void setPageSetup(CTPageSetup value) { - this.pageSetup = value; - } - - /** - * Gets the value of the headerFooter property. - * - * @return - * possible object is - * {@link CTHeaderFooter } - * - */ - public CTHeaderFooter getHeaderFooter() { - return headerFooter; - } - - /** - * Sets the value of the headerFooter property. - * - * @param value - * allowed object is - * {@link CTHeaderFooter } - * - */ - public void setHeaderFooter(CTHeaderFooter value) { - this.headerFooter = value; - } - - /** - * Gets the value of the rowBreaks property. - * - * @return - * possible object is - * {@link CTPageBreak } - * - */ - public CTPageBreak getRowBreaks() { - return rowBreaks; - } - - /** - * Sets the value of the rowBreaks property. - * - * @param value - * allowed object is - * {@link CTPageBreak } - * - */ - public void setRowBreaks(CTPageBreak value) { - this.rowBreaks = value; - } - - /** - * Gets the value of the colBreaks property. - * - * @return - * possible object is - * {@link CTPageBreak } - * - */ - public CTPageBreak getColBreaks() { - return colBreaks; - } - - /** - * Sets the value of the colBreaks property. - * - * @param value - * allowed object is - * {@link CTPageBreak } - * - */ - public void setColBreaks(CTPageBreak value) { - this.colBreaks = value; - } - - /** - * Gets the value of the customProperties property. - * - * @return - * possible object is - * {@link CTCustomProperties } - * - */ - public CTCustomProperties getCustomProperties() { - return customProperties; - } - - /** - * Sets the value of the customProperties property. - * - * @param value - * allowed object is - * {@link CTCustomProperties } - * - */ - public void setCustomProperties(CTCustomProperties value) { - this.customProperties = value; - } - - /** - * Gets the value of the cellWatches property. - * - * @return - * possible object is - * {@link CTCellWatches } - * - */ - public CTCellWatches getCellWatches() { - return cellWatches; - } - - /** - * Sets the value of the cellWatches property. - * - * @param value - * allowed object is - * {@link CTCellWatches } - * - */ - public void setCellWatches(CTCellWatches value) { - this.cellWatches = value; - } - - /** - * Gets the value of the ignoredErrors property. - * - * @return - * possible object is - * {@link CTIgnoredErrors } - * - */ - public CTIgnoredErrors getIgnoredErrors() { - return ignoredErrors; - } - - /** - * Sets the value of the ignoredErrors property. - * - * @param value - * allowed object is - * {@link CTIgnoredErrors } - * - */ - public void setIgnoredErrors(CTIgnoredErrors value) { - this.ignoredErrors = value; - } - - /** - * Gets the value of the smartTags property. - * - * @return - * possible object is - * {@link CTSmartTags } - * - */ - public CTSmartTags getSmartTags() { - return smartTags; - } - - /** - * Sets the value of the smartTags property. - * - * @param value - * allowed object is - * {@link CTSmartTags } - * - */ - public void setSmartTags(CTSmartTags value) { - this.smartTags = value; - } - - /** - * Gets the value of the drawing property. - * - * @return - * possible object is - * {@link CTDrawing } - * - */ - public CTDrawing getDrawing() { - return drawing; - } - - /** - * Sets the value of the drawing property. - * - * @param value - * allowed object is - * {@link CTDrawing } - * - */ - public void setDrawing(CTDrawing value) { - this.drawing = value; - } - - /** - * Gets the value of the legacyDrawing property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawing() { - return legacyDrawing; - } - - /** - * Sets the value of the legacyDrawing property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawing(CTLegacyDrawing value) { - this.legacyDrawing = value; - } - - /** - * Gets the value of the legacyDrawingHF property. - * - * @return - * possible object is - * {@link CTLegacyDrawing } - * - */ - public CTLegacyDrawing getLegacyDrawingHF() { - return legacyDrawingHF; - } - - /** - * Sets the value of the legacyDrawingHF property. - * - * @param value - * allowed object is - * {@link CTLegacyDrawing } - * - */ - public void setLegacyDrawingHF(CTLegacyDrawing value) { - this.legacyDrawingHF = value; - } - - /** - * Gets the value of the picture property. - * - * @return - * possible object is - * {@link CTSheetBackgroundPicture } - * - */ - public CTSheetBackgroundPicture getPicture() { - return picture; - } - - /** - * Sets the value of the picture property. - * - * @param value - * allowed object is - * {@link CTSheetBackgroundPicture } - * - */ - public void setPicture(CTSheetBackgroundPicture value) { - this.picture = value; - } - - /** - * Gets the value of the oleObjects property. - * - * @return - * possible object is - * {@link CTOleObjects } - * - */ - public CTOleObjects getOleObjects() { - return oleObjects; - } - - /** - * Sets the value of the oleObjects property. - * - * @param value - * allowed object is - * {@link CTOleObjects } - * - */ - public void setOleObjects(CTOleObjects value) { - this.oleObjects = value; - } - - /** - * Gets the value of the controls property. - * - * @return - * possible object is - * {@link CTControls } - * - */ - public CTControls getControls() { - return controls; - } - - /** - * Sets the value of the controls property. - * - * @param value - * allowed object is - * {@link CTControls } - * - */ - public void setControls(CTControls value) { - this.controls = value; - } - - /** - * Gets the value of the webPublishItems property. - * - * @return - * possible object is - * {@link CTWebPublishItems } - * - */ - public CTWebPublishItems getWebPublishItems() { - return webPublishItems; - } - - /** - * Sets the value of the webPublishItems property. - * - * @param value - * allowed object is - * {@link CTWebPublishItems } - * - */ - public void setWebPublishItems(CTWebPublishItems value) { - this.webPublishItems = value; - } - - /** - * Gets the value of the tableParts property. - * - * @return - * possible object is - * {@link CTTableParts } - * - */ - public CTTableParts getTableParts() { - return tableParts; - } - - /** - * Sets the value of the tableParts property. - * - * @param value - * allowed object is - * {@link CTTableParts } - * - */ - public void setTableParts(CTTableParts value) { - this.tableParts = value; - } - - /** - * Gets the value of the extLst property. - * - * @return - * possible object is - * {@link CTExtensionList } - * - */ - public CTExtensionList getExtLst() { - return extLst; - } - - /** - * Sets the value of the extLst property. - * - * @param value - * allowed object is - * {@link CTExtensionList } - * - */ - public void setExtLst(CTExtensionList value) { - this.extLst = value; - } - -} + +package org.xlsx4j.sml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.Unmarshaller; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlTransient; +import javax.xml.bind.annotation.XmlType; +import org.jvnet.jaxb2_commons.ppp.Child; + + +/** + *

Java class for CT_Worksheet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="CT_Worksheet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sheetPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetPr" minOccurs="0"/>
+ *         <element name="dimension" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetDimension" minOccurs="0"/>
+ *         <element name="sheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetViews" minOccurs="0"/>
+ *         <element name="sheetFormatPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetFormatPr" minOccurs="0"/>
+ *         <element name="cols" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cols" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="sheetData" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetData"/>
+ *         <element name="sheetCalcPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetCalcPr" minOccurs="0"/>
+ *         <element name="sheetProtection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetProtection" minOccurs="0"/>
+ *         <element name="protectedRanges" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ProtectedRanges" minOccurs="0"/>
+ *         <element name="scenarios" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Scenarios" minOccurs="0"/>
+ *         <element name="autoFilter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_AutoFilter" minOccurs="0"/>
+ *         <element name="sortState" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SortState" minOccurs="0"/>
+ *         <element name="dataConsolidate" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataConsolidate" minOccurs="0"/>
+ *         <element name="customSheetViews" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomSheetViews" minOccurs="0"/>
+ *         <element name="mergeCells" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_MergeCells" minOccurs="0"/>
+ *         <element name="phoneticPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PhoneticPr" minOccurs="0"/>
+ *         <element name="conditionalFormatting" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ConditionalFormatting" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="dataValidations" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataValidations" minOccurs="0"/>
+ *         <element name="hyperlinks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Hyperlinks" minOccurs="0"/>
+ *         <element name="printOptions" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PrintOptions" minOccurs="0"/>
+ *         <element name="pageMargins" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageMargins" minOccurs="0"/>
+ *         <element name="pageSetup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageSetup" minOccurs="0"/>
+ *         <element name="headerFooter" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_HeaderFooter" minOccurs="0"/>
+ *         <element name="rowBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
+ *         <element name="colBreaks" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PageBreak" minOccurs="0"/>
+ *         <element name="customProperties" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CustomProperties" minOccurs="0"/>
+ *         <element name="cellWatches" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellWatches" minOccurs="0"/>
+ *         <element name="ignoredErrors" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IgnoredErrors" minOccurs="0"/>
+ *         <element name="smartTags" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SmartTags" minOccurs="0"/>
+ *         <element name="drawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Drawing" minOccurs="0"/>
+ *         <element name="legacyDrawing" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="legacyDrawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_LegacyDrawing" minOccurs="0"/>
+ *         <element name="drawingHF" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DrawingHF" minOccurs="0"/>
+ *         <element name="picture" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SheetBackgroundPicture" minOccurs="0"/>
+ *         <element name="oleObjects" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OleObjects" minOccurs="0"/>
+ *         <element name="controls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Controls" minOccurs="0"/>
+ *         <element name="webPublishItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPublishItems" minOccurs="0"/>
+ *         <element name="tableParts" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TableParts" minOccurs="0"/>
+ *         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CT_Worksheet", propOrder = { + "sheetPr", + "dimension", + "sheetViews", + "sheetFormatPr", + "cols", + "sheetData", + "sheetCalcPr", + "sheetProtection", + "protectedRanges", + "scenarios", + "autoFilter", + "sortState", + "dataConsolidate", + "customSheetViews", + "mergeCells", + "phoneticPr", + "conditionalFormatting", + "dataValidations", + "hyperlinks", + "printOptions", + "pageMargins", + "pageSetup", + "headerFooter", + "rowBreaks", + "colBreaks", + "customProperties", + "cellWatches", + "ignoredErrors", + "smartTags", + "drawing", + "legacyDrawing", + "legacyDrawingHF", + "drawingHF", + "picture", + "oleObjects", + "controls", + "webPublishItems", + "tableParts", + "extLst" +}) +@XmlRootElement(name = "worksheet") +public class Worksheet implements Child +{ + + protected CTSheetPr sheetPr; + protected CTSheetDimension dimension; + protected SheetViews sheetViews; + protected CTSheetFormatPr sheetFormatPr; + protected List cols; + @XmlElement(required = true) + protected SheetData sheetData; + protected CTSheetCalcPr sheetCalcPr; + protected CTSheetProtection sheetProtection; + protected CTProtectedRanges protectedRanges; + protected CTScenarios scenarios; + protected CTAutoFilter autoFilter; + protected CTSortState sortState; + protected CTDataConsolidate dataConsolidate; + protected CTCustomSheetViews customSheetViews; + protected CTMergeCells mergeCells; + protected CTPhoneticPr phoneticPr; + protected List conditionalFormatting; + protected CTDataValidations dataValidations; + protected CTHyperlinks hyperlinks; + protected CTPrintOptions printOptions; + protected CTPageMargins pageMargins; + protected CTPageSetup pageSetup; + protected CTHeaderFooter headerFooter; + protected CTPageBreak rowBreaks; + protected CTPageBreak colBreaks; + protected CTCustomProperties customProperties; + protected CTCellWatches cellWatches; + protected CTIgnoredErrors ignoredErrors; + protected CTSmartTags smartTags; + protected CTDrawing drawing; + protected CTLegacyDrawing legacyDrawing; + protected CTLegacyDrawing legacyDrawingHF; + protected CTDrawingHF drawingHF; + protected CTSheetBackgroundPicture picture; + protected CTOleObjects oleObjects; + protected CTControls controls; + protected CTWebPublishItems webPublishItems; + protected CTTableParts tableParts; + protected CTExtensionList extLst; + @XmlTransient + private Object parent; + + /** + * Gets the value of the sheetPr property. + * + * @return + * possible object is + * {@link CTSheetPr } + * + */ + public CTSheetPr getSheetPr() { + return sheetPr; + } + + /** + * Sets the value of the sheetPr property. + * + * @param value + * allowed object is + * {@link CTSheetPr } + * + */ + public void setSheetPr(CTSheetPr value) { + this.sheetPr = value; + } + + /** + * Gets the value of the dimension property. + * + * @return + * possible object is + * {@link CTSheetDimension } + * + */ + public CTSheetDimension getDimension() { + return dimension; + } + + /** + * Sets the value of the dimension property. + * + * @param value + * allowed object is + * {@link CTSheetDimension } + * + */ + public void setDimension(CTSheetDimension value) { + this.dimension = value; + } + + /** + * Gets the value of the sheetViews property. + * + * @return + * possible object is + * {@link SheetViews } + * + */ + public SheetViews getSheetViews() { + return sheetViews; + } + + /** + * Sets the value of the sheetViews property. + * + * @param value + * allowed object is + * {@link SheetViews } + * + */ + public void setSheetViews(SheetViews value) { + this.sheetViews = value; + } + + /** + * Gets the value of the sheetFormatPr property. + * + * @return + * possible object is + * {@link CTSheetFormatPr } + * + */ + public CTSheetFormatPr getSheetFormatPr() { + return sheetFormatPr; + } + + /** + * Sets the value of the sheetFormatPr property. + * + * @param value + * allowed object is + * {@link CTSheetFormatPr } + * + */ + public void setSheetFormatPr(CTSheetFormatPr value) { + this.sheetFormatPr = value; + } + + /** + * Gets the value of the cols property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cols property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCols().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Cols } + * + * + */ + public List getCols() { + if (cols == null) { + cols = new ArrayList(); + } + return this.cols; + } + + /** + * Gets the value of the sheetData property. + * + * @return + * possible object is + * {@link SheetData } + * + */ + public SheetData getSheetData() { + return sheetData; + } + + /** + * Sets the value of the sheetData property. + * + * @param value + * allowed object is + * {@link SheetData } + * + */ + public void setSheetData(SheetData value) { + this.sheetData = value; + } + + /** + * Gets the value of the sheetCalcPr property. + * + * @return + * possible object is + * {@link CTSheetCalcPr } + * + */ + public CTSheetCalcPr getSheetCalcPr() { + return sheetCalcPr; + } + + /** + * Sets the value of the sheetCalcPr property. + * + * @param value + * allowed object is + * {@link CTSheetCalcPr } + * + */ + public void setSheetCalcPr(CTSheetCalcPr value) { + this.sheetCalcPr = value; + } + + /** + * Gets the value of the sheetProtection property. + * + * @return + * possible object is + * {@link CTSheetProtection } + * + */ + public CTSheetProtection getSheetProtection() { + return sheetProtection; + } + + /** + * Sets the value of the sheetProtection property. + * + * @param value + * allowed object is + * {@link CTSheetProtection } + * + */ + public void setSheetProtection(CTSheetProtection value) { + this.sheetProtection = value; + } + + /** + * Gets the value of the protectedRanges property. + * + * @return + * possible object is + * {@link CTProtectedRanges } + * + */ + public CTProtectedRanges getProtectedRanges() { + return protectedRanges; + } + + /** + * Sets the value of the protectedRanges property. + * + * @param value + * allowed object is + * {@link CTProtectedRanges } + * + */ + public void setProtectedRanges(CTProtectedRanges value) { + this.protectedRanges = value; + } + + /** + * Gets the value of the scenarios property. + * + * @return + * possible object is + * {@link CTScenarios } + * + */ + public CTScenarios getScenarios() { + return scenarios; + } + + /** + * Sets the value of the scenarios property. + * + * @param value + * allowed object is + * {@link CTScenarios } + * + */ + public void setScenarios(CTScenarios value) { + this.scenarios = value; + } + + /** + * Gets the value of the autoFilter property. + * + * @return + * possible object is + * {@link CTAutoFilter } + * + */ + public CTAutoFilter getAutoFilter() { + return autoFilter; + } + + /** + * Sets the value of the autoFilter property. + * + * @param value + * allowed object is + * {@link CTAutoFilter } + * + */ + public void setAutoFilter(CTAutoFilter value) { + this.autoFilter = value; + } + + /** + * Gets the value of the sortState property. + * + * @return + * possible object is + * {@link CTSortState } + * + */ + public CTSortState getSortState() { + return sortState; + } + + /** + * Sets the value of the sortState property. + * + * @param value + * allowed object is + * {@link CTSortState } + * + */ + public void setSortState(CTSortState value) { + this.sortState = value; + } + + /** + * Gets the value of the dataConsolidate property. + * + * @return + * possible object is + * {@link CTDataConsolidate } + * + */ + public CTDataConsolidate getDataConsolidate() { + return dataConsolidate; + } + + /** + * Sets the value of the dataConsolidate property. + * + * @param value + * allowed object is + * {@link CTDataConsolidate } + * + */ + public void setDataConsolidate(CTDataConsolidate value) { + this.dataConsolidate = value; + } + + /** + * Gets the value of the customSheetViews property. + * + * @return + * possible object is + * {@link CTCustomSheetViews } + * + */ + public CTCustomSheetViews getCustomSheetViews() { + return customSheetViews; + } + + /** + * Sets the value of the customSheetViews property. + * + * @param value + * allowed object is + * {@link CTCustomSheetViews } + * + */ + public void setCustomSheetViews(CTCustomSheetViews value) { + this.customSheetViews = value; + } + + /** + * Gets the value of the mergeCells property. + * + * @return + * possible object is + * {@link CTMergeCells } + * + */ + public CTMergeCells getMergeCells() { + return mergeCells; + } + + /** + * Sets the value of the mergeCells property. + * + * @param value + * allowed object is + * {@link CTMergeCells } + * + */ + public void setMergeCells(CTMergeCells value) { + this.mergeCells = value; + } + + /** + * Gets the value of the phoneticPr property. + * + * @return + * possible object is + * {@link CTPhoneticPr } + * + */ + public CTPhoneticPr getPhoneticPr() { + return phoneticPr; + } + + /** + * Sets the value of the phoneticPr property. + * + * @param value + * allowed object is + * {@link CTPhoneticPr } + * + */ + public void setPhoneticPr(CTPhoneticPr value) { + this.phoneticPr = value; + } + + /** + * Gets the value of the conditionalFormatting property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the conditionalFormatting property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getConditionalFormatting().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CTConditionalFormatting } + * + * + */ + public List getConditionalFormatting() { + if (conditionalFormatting == null) { + conditionalFormatting = new ArrayList(); + } + return this.conditionalFormatting; + } + + /** + * Gets the value of the dataValidations property. + * + * @return + * possible object is + * {@link CTDataValidations } + * + */ + public CTDataValidations getDataValidations() { + return dataValidations; + } + + /** + * Sets the value of the dataValidations property. + * + * @param value + * allowed object is + * {@link CTDataValidations } + * + */ + public void setDataValidations(CTDataValidations value) { + this.dataValidations = value; + } + + /** + * Gets the value of the hyperlinks property. + * + * @return + * possible object is + * {@link CTHyperlinks } + * + */ + public CTHyperlinks getHyperlinks() { + return hyperlinks; + } + + /** + * Sets the value of the hyperlinks property. + * + * @param value + * allowed object is + * {@link CTHyperlinks } + * + */ + public void setHyperlinks(CTHyperlinks value) { + this.hyperlinks = value; + } + + /** + * Gets the value of the printOptions property. + * + * @return + * possible object is + * {@link CTPrintOptions } + * + */ + public CTPrintOptions getPrintOptions() { + return printOptions; + } + + /** + * Sets the value of the printOptions property. + * + * @param value + * allowed object is + * {@link CTPrintOptions } + * + */ + public void setPrintOptions(CTPrintOptions value) { + this.printOptions = value; + } + + /** + * Gets the value of the pageMargins property. + * + * @return + * possible object is + * {@link CTPageMargins } + * + */ + public CTPageMargins getPageMargins() { + return pageMargins; + } + + /** + * Sets the value of the pageMargins property. + * + * @param value + * allowed object is + * {@link CTPageMargins } + * + */ + public void setPageMargins(CTPageMargins value) { + this.pageMargins = value; + } + + /** + * Gets the value of the pageSetup property. + * + * @return + * possible object is + * {@link CTPageSetup } + * + */ + public CTPageSetup getPageSetup() { + return pageSetup; + } + + /** + * Sets the value of the pageSetup property. + * + * @param value + * allowed object is + * {@link CTPageSetup } + * + */ + public void setPageSetup(CTPageSetup value) { + this.pageSetup = value; + } + + /** + * Gets the value of the headerFooter property. + * + * @return + * possible object is + * {@link CTHeaderFooter } + * + */ + public CTHeaderFooter getHeaderFooter() { + return headerFooter; + } + + /** + * Sets the value of the headerFooter property. + * + * @param value + * allowed object is + * {@link CTHeaderFooter } + * + */ + public void setHeaderFooter(CTHeaderFooter value) { + this.headerFooter = value; + } + + /** + * Gets the value of the rowBreaks property. + * + * @return + * possible object is + * {@link CTPageBreak } + * + */ + public CTPageBreak getRowBreaks() { + return rowBreaks; + } + + /** + * Sets the value of the rowBreaks property. + * + * @param value + * allowed object is + * {@link CTPageBreak } + * + */ + public void setRowBreaks(CTPageBreak value) { + this.rowBreaks = value; + } + + /** + * Gets the value of the colBreaks property. + * + * @return + * possible object is + * {@link CTPageBreak } + * + */ + public CTPageBreak getColBreaks() { + return colBreaks; + } + + /** + * Sets the value of the colBreaks property. + * + * @param value + * allowed object is + * {@link CTPageBreak } + * + */ + public void setColBreaks(CTPageBreak value) { + this.colBreaks = value; + } + + /** + * Gets the value of the customProperties property. + * + * @return + * possible object is + * {@link CTCustomProperties } + * + */ + public CTCustomProperties getCustomProperties() { + return customProperties; + } + + /** + * Sets the value of the customProperties property. + * + * @param value + * allowed object is + * {@link CTCustomProperties } + * + */ + public void setCustomProperties(CTCustomProperties value) { + this.customProperties = value; + } + + /** + * Gets the value of the cellWatches property. + * + * @return + * possible object is + * {@link CTCellWatches } + * + */ + public CTCellWatches getCellWatches() { + return cellWatches; + } + + /** + * Sets the value of the cellWatches property. + * + * @param value + * allowed object is + * {@link CTCellWatches } + * + */ + public void setCellWatches(CTCellWatches value) { + this.cellWatches = value; + } + + /** + * Gets the value of the ignoredErrors property. + * + * @return + * possible object is + * {@link CTIgnoredErrors } + * + */ + public CTIgnoredErrors getIgnoredErrors() { + return ignoredErrors; + } + + /** + * Sets the value of the ignoredErrors property. + * + * @param value + * allowed object is + * {@link CTIgnoredErrors } + * + */ + public void setIgnoredErrors(CTIgnoredErrors value) { + this.ignoredErrors = value; + } + + /** + * Gets the value of the smartTags property. + * + * @return + * possible object is + * {@link CTSmartTags } + * + */ + public CTSmartTags getSmartTags() { + return smartTags; + } + + /** + * Sets the value of the smartTags property. + * + * @param value + * allowed object is + * {@link CTSmartTags } + * + */ + public void setSmartTags(CTSmartTags value) { + this.smartTags = value; + } + + /** + * Gets the value of the drawing property. + * + * @return + * possible object is + * {@link CTDrawing } + * + */ + public CTDrawing getDrawing() { + return drawing; + } + + /** + * Sets the value of the drawing property. + * + * @param value + * allowed object is + * {@link CTDrawing } + * + */ + public void setDrawing(CTDrawing value) { + this.drawing = value; + } + + /** + * Gets the value of the legacyDrawing property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawing() { + return legacyDrawing; + } + + /** + * Sets the value of the legacyDrawing property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawing(CTLegacyDrawing value) { + this.legacyDrawing = value; + } + + /** + * Gets the value of the legacyDrawingHF property. + * + * @return + * possible object is + * {@link CTLegacyDrawing } + * + */ + public CTLegacyDrawing getLegacyDrawingHF() { + return legacyDrawingHF; + } + + /** + * Sets the value of the legacyDrawingHF property. + * + * @param value + * allowed object is + * {@link CTLegacyDrawing } + * + */ + public void setLegacyDrawingHF(CTLegacyDrawing value) { + this.legacyDrawingHF = value; + } + + /** + * Gets the value of the drawingHF property. + * + * @return + * possible object is + * {@link CTDrawingHF } + * + */ + public CTDrawingHF getDrawingHF() { + return drawingHF; + } + + /** + * Sets the value of the drawingHF property. + * + * @param value + * allowed object is + * {@link CTDrawingHF } + * + */ + public void setDrawingHF(CTDrawingHF value) { + this.drawingHF = value; + } + + /** + * Gets the value of the picture property. + * + * @return + * possible object is + * {@link CTSheetBackgroundPicture } + * + */ + public CTSheetBackgroundPicture getPicture() { + return picture; + } + + /** + * Sets the value of the picture property. + * + * @param value + * allowed object is + * {@link CTSheetBackgroundPicture } + * + */ + public void setPicture(CTSheetBackgroundPicture value) { + this.picture = value; + } + + /** + * Gets the value of the oleObjects property. + * + * @return + * possible object is + * {@link CTOleObjects } + * + */ + public CTOleObjects getOleObjects() { + return oleObjects; + } + + /** + * Sets the value of the oleObjects property. + * + * @param value + * allowed object is + * {@link CTOleObjects } + * + */ + public void setOleObjects(CTOleObjects value) { + this.oleObjects = value; + } + + /** + * Gets the value of the controls property. + * + * @return + * possible object is + * {@link CTControls } + * + */ + public CTControls getControls() { + return controls; + } + + /** + * Sets the value of the controls property. + * + * @param value + * allowed object is + * {@link CTControls } + * + */ + public void setControls(CTControls value) { + this.controls = value; + } + + /** + * Gets the value of the webPublishItems property. + * + * @return + * possible object is + * {@link CTWebPublishItems } + * + */ + public CTWebPublishItems getWebPublishItems() { + return webPublishItems; + } + + /** + * Sets the value of the webPublishItems property. + * + * @param value + * allowed object is + * {@link CTWebPublishItems } + * + */ + public void setWebPublishItems(CTWebPublishItems value) { + this.webPublishItems = value; + } + + /** + * Gets the value of the tableParts property. + * + * @return + * possible object is + * {@link CTTableParts } + * + */ + public CTTableParts getTableParts() { + return tableParts; + } + + /** + * Sets the value of the tableParts property. + * + * @param value + * allowed object is + * {@link CTTableParts } + * + */ + public void setTableParts(CTTableParts value) { + this.tableParts = value; + } + + /** + * Gets the value of the extLst property. + * + * @return + * possible object is + * {@link CTExtensionList } + * + */ + public CTExtensionList getExtLst() { + return extLst; + } + + /** + * Sets the value of the extLst property. + * + * @param value + * allowed object is + * {@link CTExtensionList } + * + */ + public void setExtLst(CTExtensionList value) { + this.extLst = value; + } + + /** + * Gets the parent object in the object tree representing the unmarshalled xml document. + * + * @return + * The parent object. + */ + public Object getParent() { + return this.parent; + } + + public void setParent(Object parent) { + this.parent = parent; + } + + /** + * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. + * + * @param parent + * The parent object in the object tree. + * @param unmarshaller + * The unmarshaller that generated the instance. + */ + public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { + setParent(parent); + } + +} diff --git a/src/xlsx4j/java/org/xlsx4j/sml/header.txt b/src/xlsx4j/java/org/xlsx4j/sml/header.txt deleted file mode 100644 index 14c53e58e8..0000000000 --- a/src/xlsx4j/java/org/xlsx4j/sml/header.txt +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - diff --git a/src/xlsx4j/java/org/xlsx4j/sml/package-info.java b/src/xlsx4j/java/org/xlsx4j/sml/package-info.java index fb05bb305c..b84b781431 100644 --- a/src/xlsx4j/java/org/xlsx4j/sml/package-info.java +++ b/src/xlsx4j/java/org/xlsx4j/sml/package-info.java @@ -1,22 +1,2 @@ -/* - * Copyright 2010, Plutext Pty Ltd. - * - * This file is part of docx4j. - - docx4j is licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - */ - -@javax.xml.bind.annotation.XmlSchema(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) -package org.xlsx4j.sml; +@javax.xml.bind.annotation.XmlSchema(namespace = "http://schemas.openxmlformats.org/spreadsheetml/2006/main", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package org.xlsx4j.sml; diff --git a/src/xlsx4j/java/org/xlsx4j/sml/script b/src/xlsx4j/java/org/xlsx4j/sml/script deleted file mode 100644 index 5d9866df75..0000000000 --- a/src/xlsx4j/java/org/xlsx4j/sml/script +++ /dev/null @@ -1,5 +0,0 @@ -# sed script to insert "header.txt" above the first line - 1{h; r header.txt - D; } - 2{x; G; } -#- - -end of sed script- - - diff --git a/xsd/dml/dml-spreadsheetDrawing.xsd b/xsd/dml/dml-spreadsheetDrawing.xsd index c226f056ed..7cde49b88e 100644 --- a/xsd/dml/dml-spreadsheetDrawing.xsd +++ b/xsd/dml/dml-spreadsheetDrawing.xsd @@ -22,6 +22,11 @@ + + + + + diff --git a/xsd/shared/shared-math-2ed.xsd b/xsd/shared/shared-math-2ed.xsd index 103dc3a7be..af5c957bcd 100644 --- a/xsd/shared/shared-math-2ed.xsd +++ b/xsd/shared/shared-math-2ed.xsd @@ -84,6 +84,7 @@ transitional shared-commonSimpleTypes But we use a slightly different formulation, which is more JAXB friendly + (see our xsd:simpleType/@name="ST_OnOff" in shared-commonSimpleTypes.xsd) --> + + + + + + + + + + + + + + + + + + schemaLocation="../shared/shared-relationshipReference.xsd"/> + schemaLocation="../shared/shared-commonSimpleTypes.xsd"/> + schemaLocation="../dml/dml-spreadsheetDrawing.xsd"/> + + + + Escaped String + + + + + + Content Contains Significant + Whitespace + + + + + + + @@ -587,7 +629,14 @@ - + + + Stores Cache for OLAP Functions + + + + + @@ -1812,7 +1861,7 @@ - + @@ -1820,7 +1869,7 @@ - + @@ -1844,7 +1893,7 @@ - + @@ -1994,7 +2043,14 @@ - + + + Old Formatting + + + + + @@ -2116,6 +2172,11 @@ + + + + + @@ -2148,6 +2209,11 @@ + + + + + @@ -2168,6 +2234,11 @@ + + + + + @@ -2212,6 +2283,11 @@ + + + + + @@ -2231,11 +2307,21 @@ + + + + + + + + + + @@ -2254,6 +2340,11 @@ + + + + + @@ -2272,6 +2363,11 @@ + + + + + @@ -2324,12 +2420,22 @@ + + + + + + + + + + @@ -2920,7 +3026,13 @@ - + + + + + + + @@ -4081,6 +4193,11 @@ + + + + + @@ -4109,6 +4226,11 @@ + + + + + @@ -4116,6 +4238,11 @@ + + + + + @@ -4195,11 +4322,21 @@ + + + + + + + + + + @@ -4213,6 +4350,11 @@ + + + + + + + + + + diff --git a/xsd/sml/sml_root.xsd b/xsd/sml/sml_root.xsd index 798c267652..f37bbc7a43 100644 --- a/xsd/sml/sml_root.xsd +++ b/xsd/sml/sml_root.xsd @@ -8,17 +8,9 @@ - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file