Class DocumentPart<E>
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.JaxbXmlPartAltChunkHost<E>
org.docx4j.openpackaging.parts.WordprocessingML.DocumentPart<E>
- All Implemented Interfaces:
AltChunkInterface,XPathEnabled<E>
- Direct Known Subclasses:
GlossaryDocumentPart,MainDocumentPart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommentsExtendedPartprotected CommentsIdsPartprotected CommentsPartParts which can be the target of a relationship from either the Main Document or the Glossary Document Microsoft's Microsoft.Office.DocumentFormat.OpenXML has no equivalent of this.protected DocumentSettingsPartprotected EndnotesPartprotected FontTablePartprotected FootnotesPartprotected static org.slf4j.Loggerprotected NumberingDefinitionsPartprotected PeoplePartprotected StyleDefinitionsPartprotected ThemePartprotected WebSettingsPartFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
binderFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_ErrorFields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
ConstructorsConstructorDescriptionDocumentPart(PartName partName) Other characteristics which both the Main Document and the Glossary Document have. -
Method Summary
Modifier and TypeMethodDescriptiongetDocumentSettingsPart(boolean createIfAbsent) static NodegetFootnote(WordprocessingMLPackage wmlPackage, String id) Deprecated.getStyleDefinitionsPart(boolean create) booleanDoes this package contain an endnotes part, with real endnotes in it?booleanbooleansetPartShortcut(Part part) booleansetPartShortcut(Part part, 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.JaxbXmlPartAltChunkHost
addAltChunk, addAltChunk, addAltChunk, addAltChunk, addAltChunk, addAltChunk, addAltChunk, addAltChunk, convertAltChunksMethods 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, getConfiguredUnmarshaller, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, getXMLStreamReader, inputStreamToXSR, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, preprocess, replacePartContent, setContents, setJAXBContext, setJaxbElement, setMceIgnorable, transform, transformToDom, 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
-
log
protected static org.slf4j.Logger log -
commentsPart
Parts which can be the target of a relationship from either the Main Document or the Glossary Document Microsoft's Microsoft.Office.DocumentFormat.OpenXML has no equivalent of this. -
commentsExtendedPart
-
commentsIdsPart
-
documentSettingsPart
-
endNotesPart
-
fontTablePart
-
peoplePart
-
themePart
-
footnotesPart
-
numberingDefinitionsPart
-
styleDefinitionsPart
-
webSettingsPart
-
-
Constructor Details
-
DocumentPart
Other characteristics which both the Main Document and the Glossary Document have.- Throws:
InvalidFormatException
-
-
Method Details
-
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.
-
getCommentsPart
-
getCommentsExtendedPart
-
getCommentsIdsPart
-
getDocumentSettingsPart
-
getDocumentSettingsPart
public DocumentSettingsPart getDocumentSettingsPart(boolean createIfAbsent) throws InvalidFormatException - Parameters:
createIfAbsent-- Returns:
- Throws:
InvalidFormatException- Since:
- 3.3.0
-
getEndNotesPart
-
hasEndnotesPart
public boolean hasEndnotesPart()Does this package contain an endnotes part, with real endnotes in it?- Returns:
-
getFootnotesPart
-
hasFootnotesPart
public boolean hasFootnotesPart() -
getFootnote
Deprecated. -
getFontTablePart
-
getNumberingDefinitionsPart
-
getPeoplePart
-
getStyleDefinitionsPart
-
getStyleDefinitionsPart
-
getThemePart
-
getWebSettingsPart
-
getConditionsPart
-
getXPathsPart
-
getQuestionsPart
-
getComponentsPart
-
getBibliographyPart
-