Package org.docx4j.openpackaging.parts
Class DocPropsCustomPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<Properties>
org.docx4j.openpackaging.parts.DocPropsCustomPart
- Author:
- jharrop
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintFind the first available PidgetProperty(String propName) voidinit()voidsetMarkAsFinal(boolean val) voidsetProperty(String propName, boolean propValue) voidsetProperty(String propName, String propValue) unmarshal(InputStream is) Unmarshal XML data from the specified InputStream and return the resulting content tree.Methods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
addMcChoiceNamespace, getConfiguredUnmarshaller, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, inputStreamToXSR, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, preprocess, setContents, setJAXBContext, setJaxbElement, setJaxbElement, setMceIgnorable, transform, transformToDom, unmarshal, variableReplaceMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, 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
-
fmtidValLpwstr
- See Also:
-
MARK_AS_FINAL
- See Also:
-
-
Constructor Details
-
DocPropsCustomPart
- Throws:
InvalidFormatException
-
DocPropsCustomPart
- Throws:
InvalidFormatException
-
-
Method Details
-
init
public void init() -
unmarshal
Unmarshal XML data from the specified InputStream and return the resulting content tree. Validation event location information may be incomplete when using this form of the unmarshal API.Implements Unmarshal Global Root Element.
- Overrides:
unmarshalin classJaxbXmlPart<Properties>- Parameters:
is- the InputStream to unmarshal XML data from- Returns:
- the newly created root object of the java content tree
- Throws:
jakarta.xml.bind.JAXBException- If any unexpected errors occur while unmarshalling
-
getProperty
-
setProperty
-
setProperty
- Parameters:
propName-propValue-- Since:
- 3.3.0
-
getNextPid
public int getNextPid()Find the first available Pid- Returns:
-
getMarkAsFinal
public boolean getMarkAsFinal()- Since:
- 3.3.0
-
setMarkAsFinal
public void setMarkAsFinal(boolean val) - Since:
- 3.3.0
-