Package org.docx4j.openpackaging.parts
Class DocPropsCorePart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<CoreProperties>
org.docx4j.openpackaging.parts.DocPropsCorePart
public class DocPropsCorePart extends JaxbXmlPart<CoreProperties>
-
Field Summary
Fields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_Error -
Constructor Summary
Constructors Constructor Description DocPropsCorePart()DocPropsCorePart(PartName partName) -
Method Summary
Modifier and Type Method Description voidinit()CorePropertiesunmarshal(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
-
DocPropsCorePart
- Throws:
InvalidFormatException
-
DocPropsCorePart
- 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<CoreProperties>- 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
-