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_Error -
Constructor Summary
Constructors Constructor Description XPathsPart(PartName partName)XPathsPart(PartName partName, javax.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, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, setContents, setJAXBContext, setJaxbElement, setJaxbElement, setMceIgnorable, transform, 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, setUserData
-
Constructor Details
-
XPathsPart
- Throws:
InvalidFormatException
-
XPathsPart
- 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
-