Package org.docx4j.openpackaging.parts
Class DocPropsExtendedPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<Properties>
org.docx4j.openpackaging.parts.DocPropsExtendedPart
public class DocPropsExtendedPart extends JaxbXmlPart<Properties>
-
Field Summary
Fields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_Error -
Constructor Summary
Constructors Constructor Description DocPropsExtendedPart()DocPropsExtendedPart(PartName partName) -
Method Summary
Modifier and Type Method Description voidinit()voidsetDocSecurity(int val)Propertiesunmarshal(java.io.InputStream is)Unmarshal XML data from the specified InputStream and return the resulting content tree.java.lang.StringxpathGetString(java.lang.String xpathString, java.lang.String prefixMappings)Methods 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, setJaxbElement, setMceIgnorable, transform, 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
-
Constructor Details
-
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:
javax.xml.bind.JAXBException- If any unexpected errors occur while unmarshalling
-
xpathGetString
public java.lang.String xpathGetString(java.lang.String xpathString, java.lang.String prefixMappings) throws Docx4JException- Throws:
Docx4JException
-
setDocSecurity
public void setDocSecurity(int val)- Parameters:
val-- Since:
- 3.3.0
-