Package org.xlsx4j.sml
Class Workbook
java.lang.Object
org.xlsx4j.sml.Workbook
- All Implemented Interfaces:
Child
public class Workbook extends java.lang.Object implements 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 ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}AlternateContent"/>
<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" />
<attribute ref="{http://schemas.openxmlformats.org/markup-compatibility/2006}Ignorable"/>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields Modifier and Type Field Description protected AlternateContentalternateContentprotected BookViewsbookViewsprotected CTCalcPrcalcPrprotected STConformanceClassconformanceprotected CTCustomWorkbookViewscustomWorkbookViewsprotected DefinedNamesdefinedNamesprotected CTExternalReferencesexternalReferencesprotected CTExtensionListextLstprotected java.util.List<CTFileRecoveryPr>fileRecoveryPrprotected CTFileSharingfileSharingprotected FileVersionfileVersionprotected CTFunctionGroupsfunctionGroupsprotected java.lang.Stringignorableprotected CTOleSizeoleSizeprotected CTPivotCachespivotCachesprotected Sheetssheetsprotected CTSmartTagPrsmartTagPrprotected CTSmartTagTypessmartTagTypesprotected CTWebPublishingwebPublishingprotected CTWebPublishObjectswebPublishObjectsprotected WorkbookPrworkbookPrprotected CTWorkbookProtectionworkbookProtection -
Constructor Summary
Constructors Constructor Description Workbook() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.AlternateContentgetAlternateContent()Gets the value of the alternateContent property.BookViewsgetBookViews()Gets the value of the bookViews property.CTCalcPrgetCalcPr()Gets the value of the calcPr property.STConformanceClassgetConformance()Gets the value of the conformance property.CTCustomWorkbookViewsgetCustomWorkbookViews()Gets the value of the customWorkbookViews property.DefinedNamesgetDefinedNames()Gets the value of the definedNames property.CTExternalReferencesgetExternalReferences()Gets the value of the externalReferences property.CTExtensionListgetExtLst()Gets the value of the extLst property.java.util.List<CTFileRecoveryPr>getFileRecoveryPr()Gets the value of the fileRecoveryPr property.CTFileSharinggetFileSharing()Gets the value of the fileSharing property.FileVersiongetFileVersion()Gets the value of the fileVersion property.CTFunctionGroupsgetFunctionGroups()Gets the value of the functionGroups property.java.lang.StringgetIgnorable()Gets the value of the ignorable property.CTOleSizegetOleSize()Gets the value of the oleSize property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.CTPivotCachesgetPivotCaches()Gets the value of the pivotCaches property.SheetsgetSheets()Gets the value of the sheets property.CTSmartTagPrgetSmartTagPr()Gets the value of the smartTagPr property.CTSmartTagTypesgetSmartTagTypes()Gets the value of the smartTagTypes property.CTWebPublishinggetWebPublishing()Gets the value of the webPublishing property.CTWebPublishObjectsgetWebPublishObjects()Gets the value of the webPublishObjects property.WorkbookPrgetWorkbookPr()Gets the value of the workbookPr property.CTWorkbookProtectiongetWorkbookProtection()Gets the value of the workbookProtection property.voidsetAlternateContent(AlternateContent value)Sets the value of the alternateContent property.voidsetBookViews(BookViews value)Sets the value of the bookViews property.voidsetCalcPr(CTCalcPr value)Sets the value of the calcPr property.voidsetConformance(STConformanceClass value)Sets the value of the conformance property.voidsetCustomWorkbookViews(CTCustomWorkbookViews value)Sets the value of the customWorkbookViews property.voidsetDefinedNames(DefinedNames value)Sets the value of the definedNames property.voidsetExternalReferences(CTExternalReferences value)Sets the value of the externalReferences property.voidsetExtLst(CTExtensionList value)Sets the value of the extLst property.voidsetFileSharing(CTFileSharing value)Sets the value of the fileSharing property.voidsetFileVersion(FileVersion value)Sets the value of the fileVersion property.voidsetFunctionGroups(CTFunctionGroups value)Sets the value of the functionGroups property.voidsetIgnorable(java.lang.String value)Sets the value of the ignorable property.voidsetOleSize(CTOleSize value)Sets the value of the oleSize property.voidsetParent(java.lang.Object parent)voidsetPivotCaches(CTPivotCaches value)Sets the value of the pivotCaches property.voidsetSheets(Sheets value)Sets the value of the sheets property.voidsetSmartTagPr(CTSmartTagPr value)Sets the value of the smartTagPr property.voidsetSmartTagTypes(CTSmartTagTypes value)Sets the value of the smartTagTypes property.voidsetWebPublishing(CTWebPublishing value)Sets the value of the webPublishing property.voidsetWebPublishObjects(CTWebPublishObjects value)Sets the value of the webPublishObjects property.voidsetWorkbookPr(WorkbookPr value)Sets the value of the workbookPr property.voidsetWorkbookProtection(CTWorkbookProtection value)Sets the value of the workbookProtection property.
-
Field Details
-
fileVersion
-
fileSharing
-
workbookPr
-
alternateContent
-
workbookProtection
-
bookViews
-
sheets
-
functionGroups
-
externalReferences
-
definedNames
-
calcPr
-
oleSize
-
customWorkbookViews
-
pivotCaches
-
smartTagPr
-
smartTagTypes
-
webPublishing
-
fileRecoveryPr
-
webPublishObjects
-
extLst
-
conformance
-
ignorable
protected java.lang.String ignorable
-
-
Constructor Details
-
Workbook
public Workbook()
-
-
Method Details
-
getFileVersion
Gets the value of the fileVersion property.- Returns:
- possible object is
FileVersion
-
setFileVersion
Sets the value of the fileVersion property.- Parameters:
value- allowed object isFileVersion
-
getFileSharing
Gets the value of the fileSharing property.- Returns:
- possible object is
CTFileSharing
-
setFileSharing
Sets the value of the fileSharing property.- Parameters:
value- allowed object isCTFileSharing
-
getWorkbookPr
Gets the value of the workbookPr property.- Returns:
- possible object is
WorkbookPr
-
setWorkbookPr
Sets the value of the workbookPr property.- Parameters:
value- allowed object isWorkbookPr
-
getAlternateContent
Gets the value of the alternateContent property.- Returns:
- possible object is
AlternateContent
-
setAlternateContent
Sets the value of the alternateContent property.- Parameters:
value- allowed object isAlternateContent
-
getWorkbookProtection
Gets the value of the workbookProtection property.- Returns:
- possible object is
CTWorkbookProtection
-
setWorkbookProtection
Sets the value of the workbookProtection property.- Parameters:
value- allowed object isCTWorkbookProtection
-
getBookViews
Gets the value of the bookViews property.- Returns:
- possible object is
BookViews
-
setBookViews
Sets the value of the bookViews property.- Parameters:
value- allowed object isBookViews
-
getSheets
Gets the value of the sheets property.- Returns:
- possible object is
Sheets
-
setSheets
Sets the value of the sheets property.- Parameters:
value- allowed object isSheets
-
getFunctionGroups
Gets the value of the functionGroups property.- Returns:
- possible object is
CTFunctionGroups
-
setFunctionGroups
Sets the value of the functionGroups property.- Parameters:
value- allowed object isCTFunctionGroups
-
getExternalReferences
Gets the value of the externalReferences property.- Returns:
- possible object is
CTExternalReferences
-
setExternalReferences
Sets the value of the externalReferences property.- Parameters:
value- allowed object isCTExternalReferences
-
getDefinedNames
Gets the value of the definedNames property.- Returns:
- possible object is
DefinedNames
-
setDefinedNames
Sets the value of the definedNames property.- Parameters:
value- allowed object isDefinedNames
-
getCalcPr
Gets the value of the calcPr property.- Returns:
- possible object is
CTCalcPr
-
setCalcPr
Sets the value of the calcPr property.- Parameters:
value- allowed object isCTCalcPr
-
getOleSize
Gets the value of the oleSize property.- Returns:
- possible object is
CTOleSize
-
setOleSize
Sets the value of the oleSize property.- Parameters:
value- allowed object isCTOleSize
-
getCustomWorkbookViews
Gets the value of the customWorkbookViews property.- Returns:
- possible object is
CTCustomWorkbookViews
-
setCustomWorkbookViews
Sets the value of the customWorkbookViews property.- Parameters:
value- allowed object isCTCustomWorkbookViews
-
getPivotCaches
Gets the value of the pivotCaches property.- Returns:
- possible object is
CTPivotCaches
-
setPivotCaches
Sets the value of the pivotCaches property.- Parameters:
value- allowed object isCTPivotCaches
-
getSmartTagPr
Gets the value of the smartTagPr property.- Returns:
- possible object is
CTSmartTagPr
-
setSmartTagPr
Sets the value of the smartTagPr property.- Parameters:
value- allowed object isCTSmartTagPr
-
getSmartTagTypes
Gets the value of the smartTagTypes property.- Returns:
- possible object is
CTSmartTagTypes
-
setSmartTagTypes
Sets the value of the smartTagTypes property.- Parameters:
value- allowed object isCTSmartTagTypes
-
getWebPublishing
Gets the value of the webPublishing property.- Returns:
- possible object is
CTWebPublishing
-
setWebPublishing
Sets the value of the webPublishing property.- Parameters:
value- allowed object isCTWebPublishing
-
getFileRecoveryPr
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
setmethod 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
CTFileRecoveryPr -
getWebPublishObjects
Gets the value of the webPublishObjects property.- Returns:
- possible object is
CTWebPublishObjects
-
setWebPublishObjects
Sets the value of the webPublishObjects property.- Parameters:
value- allowed object isCTWebPublishObjects
-
getExtLst
Gets the value of the extLst property.- Returns:
- possible object is
CTExtensionList
-
setExtLst
Sets the value of the extLst property.- Parameters:
value- allowed object isCTExtensionList
-
getConformance
Gets the value of the conformance property.- Returns:
- possible object is
STConformanceClass
-
setConformance
Sets the value of the conformance property.- Parameters:
value- allowed object isSTConformanceClass
-
getIgnorable
public java.lang.String getIgnorable()Gets the value of the ignorable property.- Returns:
- possible object is
String
-
setIgnorable
public void setIgnorable(java.lang.String value)Sets the value of the ignorable property.- Parameters:
value- allowed object isString
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-