org.xlsx4j.sml.CTStylesheet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
The newest version!
/*
* Copyright 2010-2013, Plutext Pty Ltd.
*
* This file is part of xlsx4j, a component of docx4j.
docx4j is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
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 (Formatting Records) 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 (Cell Formats) property. This element contains the master formatting records
* (xf) which define the formatting applied to cells in this workbook. These records are the
* starting point for determining the formatting for a cell. Cells in the Sheet Part reference
* the xf records by zero-based index.
*
* @return
* possible object is
* {@link CTCellXfs }
*
*/
public CTCellXfs getCellXfs() {
return cellXfs;
}
/**
* Sets the value of the cellXfs (Cell Formats) property.
*
* @param value
* allowed object is
* {@link CTCellXfs }
*
*/
public void setCellXfs(CTCellXfs value) {
this.cellXfs = value;
}
/**
* Gets the value of the cellStyles property; the list of named cell style in this workbook.
*
* @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 (differential Formats) 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);
}
}