public class XJdfNavigator extends XmlNavigator
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AMOUNT
XPath to attribute 'Amount' of Product Node in XJDF Document.
|
static java.lang.String |
CATEGORY
XPath to attribute 'Category' in XJDF Document.
|
static java.lang.String |
COLOR_NUM_COLORS
XPath to attribute 'NumColors' of ColorIntent Node in XJDF Document.
|
static java.lang.String |
CUSTOMER_ID
XPath to attribute 'CustomerID' of CustomerInfo Node in XJDF Document.
|
static java.lang.String |
FILE_SPEC_URL
XPath to attribute 'URL' of a single RunList/FileSpec definition in XJDF Document.
|
static java.lang.String |
FOLD_CATALOG
XPath to attribute 'FoldCatalog' of FoldingIntent Node in XJDF Document.
|
static java.lang.String |
GENERAL_CATALOG_ID
XPath to attribute 'IDValue' of GeneralID 'CatalogID' in XJDF Document.
|
static java.lang.String |
GENERAL_LINE_ID
XPath to attribute 'IDValue' of GeneralID 'LineID' in XJDF Document.
|
static java.lang.String |
JOB_ID
XPath to attribute 'JobID' in XJDF Document.
|
static java.lang.String |
LAYOUT_DIMENSIONS
XPath to attribute 'Dimensions' of LayoutIntent Node in XJDF Document.
|
static java.lang.String |
LAYOUT_FINISHED_DIMENSIONS
XPath to attribute 'FinishedDimensions' of LayoutIntent Node in XJDF Document.
|
static java.lang.String |
MEDIA_QUALITY
XPath to attribute 'MediaQuality' of MediaIntent Node in XJDF Document.
|
static java.lang.String |
MIN_APPROVALS
XPath to attribute 'MinApprovals' of ApprovalParams Node in XJDF Document.
|
static java.lang.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(java.io.File xjdfFile)
Custom constructor.
|
XJdfNavigator(java.io.File xjdfFile,
boolean namespaceAware)
Custom constructor.
|
XJdfNavigator(java.io.InputStream xJdfStream)
Custom constructor.
|
XJdfNavigator(java.io.InputStream xJdfStream,
boolean namespaceAware)
Custom constructor.
|
XJdfNavigator(java.lang.String xjdfPath)
Custom constructor.
|
XJdfNavigator(java.lang.String xjdfPath,
boolean namespaceAware)
Custom constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
extractNode(java.lang.String xPath)
Evaluates an XPath expression on XML Document and returns a parsed Node object as result.
|
void |
replaceNode(java.lang.String xPath,
java.lang.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 java.lang.String JOB_ID
public static final java.lang.String CATEGORY
public static final java.lang.String GENERAL_CATALOG_ID
public static final java.lang.String GENERAL_LINE_ID
public static final java.lang.String FILE_SPEC_URL
public static final java.lang.String MIN_APPROVALS
public static final java.lang.String CUSTOMER_ID
public static final java.lang.String AMOUNT
public static final java.lang.String MEDIA_QUALITY
public static final java.lang.String LAYOUT_FINISHED_DIMENSIONS
public static final java.lang.String LAYOUT_DIMENSIONS
public static final java.lang.String PRODUCTION_PRINT_PROCESS
public static final java.lang.String FOLD_CATALOG
public static final java.lang.String COLOR_NUM_COLORS
public XJdfNavigator(java.io.InputStream xJdfStream)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
xJdfStream - The XJDF Input Stream.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public XJdfNavigator(java.io.InputStream xJdfStream,
boolean namespaceAware)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xJdfStream - The XJDF Input Stream.namespaceAware - True if navigator should be XML Namespace aware.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public XJdfNavigator(java.lang.String xjdfPath)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xjdfPath - The path to the XJDF Document.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public XJdfNavigator(java.lang.String xjdfPath,
boolean namespaceAware)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
xjdfPath - The path to the XJDF Document.namespaceAware - True if navigator should be XML Namespace aware.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public XJdfNavigator(java.io.File xjdfFile)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xjdfFile - The file of the XJDF Document.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public XJdfNavigator(java.io.File xjdfFile,
boolean namespaceAware)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
xjdfFile - The file of the XJDF Document.namespaceAware - True if navigator should be XML Namespace aware.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public XJdfNavigator(byte[] xJdfBytes)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xJdfBytes - The XJDF as byte array.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public XJdfNavigator(byte[] xJdfBytes,
boolean namespaceAware)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
xJdfBytes - The XJDF as byte array.namespaceAware - True if navigator should be XML Namespace aware.javax.xml.parsers.ParserConfigurationException - if a DocumentBuilder cannot be created
which satisfies the configuration requested.org.xml.sax.SAXException - - If any parse errors occur.java.io.IOException - - If any IO errors occur.public java.lang.Object extractNode(java.lang.String xPath)
throws javax.xml.xpath.XPathExpressionException,
javax.xml.bind.JAXBException
xPath - XPath expression to execute to.javax.xml.xpath.XPathExpressionExceptionjavax.xml.bind.JAXBExceptionpublic void replaceNode(java.lang.String xPath,
java.lang.Object replacement)
throws javax.xml.xpath.XPathExpressionException,
javax.xml.bind.JAXBException,
javax.xml.parsers.ParserConfigurationException
xPath - Location of the node to be replaced.replacement - The new node.javax.xml.parsers.ParserConfigurationExceptionjavax.xml.bind.JAXBExceptionjavax.xml.xpath.XPathExpressionException