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
public abstract class DocumentPart<E> extends JaxbXmlPartAltChunkHost<E>
-
Field Summary
Fields Modifier and Type Field Description protected CommentsExtendedPartcommentsExtendedPartprotected CommentsIdsPartcommentsIdsPartprotected CommentsPartcommentsPartParts 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 DocumentSettingsPartdocumentSettingsPartprotected EndnotesPartendNotesPartprotected FontTablePartfontTablePartprotected FootnotesPartfootnotesPartprotected static org.slf4j.Loggerlogprotected NumberingDefinitionsPartnumberingDefinitionsPartprotected PeoplePartpeoplePartprotected StyleDefinitionsPartstyleDefinitionsPartprotected ThemePartthemePartprotected WebSettingsPartwebSettingsPartFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_Error -
Constructor Summary
Constructors Constructor Description DocumentPart(PartName partName)Other characteristics which both the Main Document and the Glossary Document have. -
Method Summary
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, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, setContents, setJAXBContext, setJaxbElement, setMceIgnorable, 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
-
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 public static org.w3c.dom.Node getFootnote(WordprocessingMLPackage wmlPackage, java.lang.String id)Deprecated. -
getFontTablePart
-
getNumberingDefinitionsPart
-
getPeoplePart
-
getStyleDefinitionsPart
-
getStyleDefinitionsPart
-
getThemePart
-
getWebSettingsPart
-
getConditionsPart
-
getXPathsPart
-
getQuestionsPart
-
getComponentsPart
-
getBibliographyPart
-