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, 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 Exception
xJdfStream - The XJDF Input Stream.Exceptionpublic XJdfNavigator(InputStream xJdfStream, boolean namespaceAware) throws Exception
xJdfStream - The XJDF Input Stream.namespaceAware - True if navigator should be XML Namespace aware.Exceptionpublic XJdfNavigator(String xjdfPath) throws Exception
xjdfPath - The path to the XJDF Document.Exceptionpublic XJdfNavigator(String xjdfPath, boolean namespaceAware) throws Exception
xjdfPath - The path to the XJDF Document.namespaceAware - True if navigator should be XML Namespace aware.Exceptionpublic XJdfNavigator(File xjdfFile) throws Exception
xjdfPath - The file of the XJDF Document.Exceptionpublic XJdfNavigator(File xjdfFile, boolean namespaceAware) throws Exception
xjdfPath - The file of the XJDF Document.namespaceAware - True if navigator should be XML Namespace aware.Exceptionpublic XJdfNavigator(byte[] xJdfBytes)
throws Exception
xJdfBytes - The XJDF as byte array.Exceptionpublic 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 © 2014. All Rights Reserved.