Class WorkbookPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<E>
org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware<E>
org.docx4j.openpackaging.parts.SpreadsheetML.JaxbSmlPart<Workbook>
org.docx4j.openpackaging.parts.SpreadsheetML.WorkbookPart
- All Implemented Interfaces:
XPathEnabled<Workbook>
public class WorkbookPart extends JaxbSmlPart<Workbook>
-
Field Summary
Fields Modifier and Type Field Description protected SharedStringssharedStringsprotected StylesstylesPartprotected ThemePartthemePartFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_Error -
Constructor Summary
Constructors Constructor Description WorkbookPart()WorkbookPart(PartName partName) -
Method Summary
Modifier and Type Method Description java.lang.StringgetMceIgnorable()SharedStringsgetSharedStrings()StylesgetStylesPart()ThemePartgetThemePart()WorksheetPartgetWorksheet(int index)voidinit()booleanisDate1904()protected voidsetMceIgnorable(McIgnorableNamespaceDeclarator namespacePrefixMapper)Where the mc:Ignorable attribute is present, ensure its contents matches the ignorable namespaces actually present.booleansetPartShortcut(Part part)booleansetPartShortcut(Part part, java.lang.String relationshipType)Tell the source Part about this target Part, so the source can use this part via a convenience method.Methods inherited from class org.docx4j.openpackaging.parts.SpreadsheetML.JaxbSmlPart
newPartForContentTypeMethods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
createBinderAndJaxbElement, getBinder, getJAXBAssociationsForXPath, getJAXBAssociationsForXPath, getJAXBNodesViaXPath, getJAXBNodesViaXPath, setJaxbElement, unmarshal, unmarshalMethods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
addMcChoiceNamespace, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getXML, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, setContents, setJAXBContext, setJaxbElement, transform, variableReplaceMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setRelationshipType, setSourceRelationship, setVersionMethods inherited from class org.docx4j.openpackaging.Base
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
-
Field Details
-
Constructor Details
-
WorkbookPart
- Throws:
InvalidFormatException
-
WorkbookPart
- Throws:
InvalidFormatException
-
-
Method Details
-
init
public void init() -
setMceIgnorable
Description copied from class:JaxbXmlPartWhere the mc:Ignorable attribute is present, ensure its contents matches the ignorable namespaces actually present.- Overrides:
setMceIgnorablein classJaxbXmlPart<Workbook>
-
getMceIgnorable
public java.lang.String getMceIgnorable()- Overrides:
getMceIgnorablein classJaxbXmlPart<Workbook>
-
getSharedStrings
-
getStylesPart
-
getThemePart
-
setPartShortcut
-
setPartShortcut
Description copied from class:BaseTell the source Part about this target Part, so the source can use this part via a convenience method.- Overrides:
setPartShortcutin classPart- Returns:
- true if the source Part does use the target Part in a convenience method.
-
getWorksheet
- Parameters:
index-- Returns:
- Throws:
Xlsx4jException
-
isDate1904
public boolean isDate1904()
-