public class XJdfNavigator extends XmlNavigator
| Modifier and Type | Field and Description |
|---|---|
static String |
AMOUNT
XPath to attribute 'Amount' of Product Node in XJDF Document.
|
static String |
CATEGORY
XPath to attribute 'Category' in XJDF Document.
|
static String |
COLOR_NUM_COLORS
XPath to attribute 'NumColors' of ColorIntent Node in XJDF Document.
|
static String |
CUSTOMER_ID
XPath to attribute 'CustomerID' of CustomerInfo Node in XJDF Document.
|
static String |
FILE_SPEC_URL
XPath to attribute 'URL' of a single RunList/FileSpec definition in XJDF Document.
|
static String |
FOLDING_CATALOG
XPath to attribute 'FoldingCatalog' of FoldingIntent Node in XJDF Document.
|
static String |
GENERAL_CATALOG_ID
XPath to attribute 'IDValue' of GeneralID 'CatalogID' in XJDF Document.
|
static String |
GENERAL_LINE_ID
XPath to attribute 'IDValue' of GeneralID 'LineID' in XJDF Document.
|
static String |
JOB_ID
XPath to attribute 'JobID' in XJDF Document.
|
static String |
LAYOUT_DIMENSIONS
XPath to attribute 'Dimensions' of LayoutIntent Node in XJDF Document.
|
static String |
LAYOUT_FINISHED_DIMENSIONS
XPath to attribute 'FinishedDimensions' of LayoutIntent Node in XJDF Document.
|
static String |
MEDIA_QUALITY
XPath to attribute 'MediaQuality' of MediaIntent Node in XJDF Document.
|
static String |
MIN_APPROVALS
XPath to attribute 'MinApprovals' of ApprovalParams Node in XJDF Document.
|
static String |
PRODUCTION_PRINT_PROCESS
XPath to attribute 'PrintProcess' of ProductionIntent Node in XJDF Document.
|
nsManager, xmlDocument, xPath| Constructor and Description |
|---|
XJdfNavigator(byte[] xJdfBytes)
Custom constructor.
|
XJdfNavigator(byte[] xJdfBytes,
boolean namespaceAware)
Custom constructor.
|
XJdfNavigator(File xjdfFile)
Custom constructor.
|
XJdfNavigator(File xjdfFile,
boolean namespaceAware)
Custom constructor.
|
XJdfNavigator(InputStream xJdfStream)
Custom constructor.
|
XJdfNavigator(InputStream xJdfStream,
boolean namespaceAware)
Custom constructor.
|
XJdfNavigator(String xjdfPath)
Custom constructor.
|
XJdfNavigator(String xjdfPath,
boolean namespaceAware)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
extractNode(String xPath)
Evaluates an XPath expression on XML Document and returns a parsed Node object as result.
|
void |
replaceNode(String xPath,
Object replacement)
Replace a node in XML Document located by the XPath expression.
|
addNamespace, evaluate, evaluateBoolean, evaluateDouble, evaluateInt, evaluateLong, evaluateNode, evaluateNodeList, evaluateString, extractNode, getXmlBytes, getXmlDocument, getXmlStream, readAttribute, readAttribute, removeNode, replaceNode, updateAttribute, updateAttributepublic static final String JOB_ID
public static final String CATEGORY
public static final String GENERAL_CATALOG_ID
public static final String GENERAL_LINE_ID
public static final String FILE_SPEC_URL
public static final String MIN_APPROVALS
public static final String CUSTOMER_ID
public static final String AMOUNT
public static final String MEDIA_QUALITY
public static final String LAYOUT_FINISHED_DIMENSIONS
public static final String LAYOUT_DIMENSIONS
public static final String PRODUCTION_PRINT_PROCESS
public static final String FOLDING_CATALOG
public static final String COLOR_NUM_COLORS
public XJdfNavigator(InputStream xJdfStream) throws ParserConfigurationException, SAXException, IOException
xJdfStream - The XJDF Input Stream.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public XJdfNavigator(InputStream xJdfStream, boolean namespaceAware) throws IOException, SAXException, ParserConfigurationException
xJdfStream - The XJDF Input Stream.namespaceAware - True if navigator should be XML Namespace aware.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public XJdfNavigator(String xjdfPath) throws IOException, SAXException, ParserConfigurationException
xjdfPath - The path to the XJDF Document.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public XJdfNavigator(String xjdfPath, boolean namespaceAware) throws IOException, ParserConfigurationException, SAXException
xjdfPath - The path to the XJDF Document.namespaceAware - True if navigator should be XML Namespace aware.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public XJdfNavigator(File xjdfFile) throws IOException, SAXException, ParserConfigurationException
xjdfFile - The file of the XJDF Document.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public XJdfNavigator(File xjdfFile, boolean namespaceAware) throws IOException, ParserConfigurationException, SAXException
xjdfFile - The file of the XJDF Document.namespaceAware - True if navigator should be XML Namespace aware.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public XJdfNavigator(byte[] xJdfBytes)
throws IOException,
SAXException,
ParserConfigurationException
xJdfBytes - The XJDF as byte array.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public XJdfNavigator(byte[] xJdfBytes,
boolean namespaceAware)
throws ParserConfigurationException,
SAXException,
IOException
xJdfBytes - The XJDF as byte array.namespaceAware - True if navigator should be XML Namespace aware.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.SAXException - - If any parse errors occur.IOException - - If any IO errors occur.public Object extractNode(String xPath) throws XPathExpressionException, JAXBException
xPath - XPath expression to execute to.XPathExpressionExceptionJAXBExceptionpublic void replaceNode(String xPath, Object replacement) throws XPathExpressionException, JAXBException, ParserConfigurationException
xPath - Location of the node to be replaced.replacement - The new node.ParserConfigurationExceptionJAXBExceptionXPathExpressionExceptionCopyright © 2016. All rights reserved.