Class XPathsPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<E>
org.docx4j.openpackaging.parts.opendope.JaxbCustomXmlDataStoragePart<Xpaths>
org.docx4j.openpackaging.parts.opendope.XPathsPart
- All Implemented Interfaces:
CustomXmlPart
public class XPathsPart extends JaxbCustomXmlDataStoragePart<Xpaths>
-
Field Summary
Fields inherited from class org.docx4j.openpackaging.parts.opendope.JaxbCustomXmlDataStoragePart
docFields 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 Constructor Description XPathsPart(PartName partName)XPathsPart(PartName partName, jakarta.xml.bind.JAXBContext jc) -
Method Summary
Modifier and Type Method Description Xpaths.XpathgetXPathById(java.lang.String id)For performance reasons, avoid using this if you have a lot of xpathsstatic Xpaths.XpathgetXPathById(Xpaths xpaths, java.lang.String id)For performance reasons, avoid using this if you have a lot of xpathsXpaths.XpathgetXPathByQuestionId(java.lang.String id)static Xpaths.XpathgetXPathByQuestionId(Xpaths xpaths, java.lang.String id)Methods inherited from class org.docx4j.openpackaging.parts.opendope.JaxbCustomXmlDataStoragePart
cachedXPathGetString, discardCacheXPathObject, getItemId, init, readyXPath, remove, setNodeValueAtXPath, setXML, updateJaxbElementFromDocument, xpathGetNodes, xpathGetStringMethods 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, unmarshal, variableReplaceMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, 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, setUserDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.docx4j.openpackaging.parts.CustomXmlPart
getXML
-
Constructor Details
-
XPathsPart
- Throws:
InvalidFormatException
-
XPathsPart
public XPathsPart(PartName partName, jakarta.xml.bind.JAXBContext jc) throws InvalidFormatException- Throws:
InvalidFormatException
-
-
Method Details
-
getXPathById
For performance reasons, avoid using this if you have a lot of xpaths- Parameters:
id-- Returns:
- Since:
- 3.0.0
-
getXPathById
For performance reasons, avoid using this if you have a lot of xpaths- Parameters:
xpaths-id-- Returns:
-
getXPathByQuestionId
- Parameters:
id-- Returns:
- Since:
- 3.0.0
-
getXPathByQuestionId
-