Modifier | Constructor and Description |
---|---|
protected |
XMPValidator(com.pdfunit.internal.spi.IDocument pdfDocument) |
Modifier and Type | Method and Description |
---|---|
void |
hasNoXMPData()
Validating that the current PDF document has no XMP data.
|
XMPValidator |
hasXMPData()
Validating that the current PDF document has XMP data.
|
XMPValidator |
matchingXML(java.io.File xmlFile)
This method compares the content of the given file with the XMP data,
stored inside the current PDF document.
|
XMPValidator |
matchingXML(java.lang.String filenameXML)
This method compares the content of the file, named by the given
parameter, with the XMP data, stored inside the current PDF document.
|
XMPValidator |
matchingXPath(XPathExpression xpath)
This method prcesses the given XPath expression against the XMP data
of the current PDF document.
|
XMPValidator |
withNode(XMLNode node)
This method validates the node name and value, covered by the instance
of XMLNode, against the current PDF document.
|
createXPathExpression, getNodeValue, process
protected XMPValidator(com.pdfunit.internal.spi.IDocument pdfDocument)
public XMPValidator hasXMPData()
public void hasNoXMPData()
The returncode is void. It makes sense, not to return self, because there are no data to analyze further.
@Guarded public XMPValidator matchingXPath(XPathExpression xpath)
The XPath expression must result in a type boolean.
@Guarded public XMPValidator matchingXML(java.lang.String filenameXML)
@Guarded public XMPValidator matchingXML(java.io.File xmlFile)
@Guarded public XMPValidator withNode(XMLNode node)
Copyright (C) PDFUnit.com. See here for license.