org.cip4.jdflib.resource.process
Class JDFRunList

java.lang.Object
  extended by org.apache.xerces.dom.NodeImpl
      extended by org.apache.xerces.dom.ChildNode
          extended by org.apache.xerces.dom.ParentNode
              extended by org.apache.xerces.dom.ElementImpl
                  extended by org.apache.xerces.dom.ElementNSImpl
                      extended by org.cip4.jdflib.core.KElement
                          extended by org.cip4.jdflib.core.JDFElement
                              extended by org.cip4.jdflib.resource.JDFResource
                                  extended by org.cip4.jdflib.auto.JDFAutoRunList
                                      extended by org.cip4.jdflib.resource.process.JDFRunList
All Implemented Interfaces:
Serializable, Cloneable, Element, EventTarget, Node, NodeList, TypeInfo

public class JDFRunList
extends JDFAutoRunList

Wrapper around a JDF RunList

See Also:
Serialized Form

Nested Class Summary
 class JDFRunList.JDFRunData
          class that abstracts a RunList Partition so that you can efficiently access the File using RunIndex as a marker
 
Nested classes/interfaces inherited from class org.cip4.jdflib.auto.JDFAutoRunList
JDFAutoRunList.EnumComponentGranularity, JDFAutoRunList.EnumSheetSides
 
Nested classes/interfaces inherited from class org.cip4.jdflib.resource.JDFResource
JDFResource.EnumAmountMerge, JDFResource.EnumLotControl, JDFResource.EnumPartIDKey, JDFResource.EnumPartUsage, JDFResource.EnumResourceClass, JDFResource.EnumResStatus, JDFResource.EnumSpawnStatus, JDFResource.PartitionGetter
 
Nested classes/interfaces inherited from class org.cip4.jdflib.core.JDFElement
JDFElement.EnumBoolean, JDFElement.EnumNamedColor, JDFElement.EnumNodeStatus, JDFElement.EnumOrientation, JDFElement.EnumPoolType, JDFElement.EnumSeparation, JDFElement.EnumSettingsPolicy, JDFElement.EnumValidationLevel, JDFElement.EnumVersion, JDFElement.EnumXYRelation
 
Nested classes/interfaces inherited from class org.cip4.jdflib.core.KElement
KElement.SimpleNodeComparator, KElement.SingleAttributeComparator, KElement.SingleXPathComparator
 
Field Summary
 
Fields inherited from class org.apache.xerces.dom.ElementNSImpl
localName, namespaceURI
 
Fields inherited from class org.apache.xerces.dom.ElementImpl
attributes, name
 
Fields inherited from class org.apache.xerces.dom.ParentNode
firstChild, fNodeListCache, ownerDocument
 
Fields inherited from class org.apache.xerces.dom.ChildNode
nextSibling, previousSibling
 
Fields inherited from class org.apache.xerces.dom.NodeImpl
DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.w3c.dom.TypeInfo
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION
 
Constructor Summary
JDFRunList(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName)
          Constructor for JDFRunList
JDFRunList(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName)
          Constructor for JDFRunList
JDFRunList(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName)
          Constructor for JDFRunList
 
Method Summary
 JDFRunList addPDF(String fileName)
          Deprecated.  
 JDFRunList addPDF(String fileName, int first)
          Deprecated.  
 JDFRunList addPDF(String fileName, int first, int last)
          addPDF add a pdf file to this RunList
 JDFRunList addRun(String fileName)
          Deprecated.  
 JDFRunList addRun(String fileName, int first)
          Deprecated.  
 JDFRunList addRun(String fileName, int first, int last)
          addRun
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, boolean pageMajor, String sep)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, int first)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, int first, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, int first, boolean pageMajor, String sep)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, int first, int n)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, int first, int n, boolean pageMajor, String sep)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, int first, int n, String sep)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, int first, String sep)
          Deprecated.  
 JDFRunList addSepRun(JDFResource fileSpec, String sepNames, String sep)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, boolean pageMajor, String sep)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, int first)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, int first, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, int first, boolean pageMajor, String sep)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, int first, int n)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, int first, int n, boolean pageMajor, String sep)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, int first, int n, String sep)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, int first, String sep)
          Deprecated.  
 JDFRunList addSepRun(String fileNames, String sepNames, String sep)
          Deprecated.  
 JDFRunList addSepRun(Vector fileNames, Vector sepNames)
          Deprecated.  
 JDFRunList addSepRun(Vector fileNames, Vector sepNames, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(Vector fileNames, Vector sepNames, int first)
          Deprecated.  
 JDFRunList addSepRun(Vector fileNames, Vector sepNames, int first, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(Vector fileNames, Vector sepNames, int first, int n)
          Deprecated.  
 JDFRunList addSepRun(Vector fileNames, Vector sepNames, int first, int n, boolean pageMajor)
          add a run separation
 JDFRunList addSepRun(VElement fileSpec, Vector sepNames)
          Deprecated.  
 JDFRunList addSepRun(VElement fileSpec, Vector sepNames, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(VElement fileSpec, Vector sepNames, int first)
          Deprecated.  
 JDFRunList addSepRun(VElement fileSpec, Vector sepNames, int first, boolean pageMajor)
          Deprecated.  
 JDFRunList addSepRun(VElement fileSpec, Vector sepNames, int first, int n)
          Deprecated.  
 JDFRunList addSepRun(VElement fileSpec, Vector sepNames, int first, int n, boolean pageMajor)
          Deprecated. 060503 use the version with VString VString
 void collapse(boolean bCollapseToNode, boolean bCollapseElements)
          collapse all redundant attributes and elements
 void expand(boolean bDeleteFromNode)
          Expand so that each leaf is complete (except for ID)
 void fixNPage()
          write NPage into all leaves with IsPage=true and write the appropriate value into the lower level nodes
 HashMap<String,VJDFAttributeMap> getCommonURLFileSpecMap()
          get a map of VJDFAttributeMap that are sorted by the fileSpec URL key
each url key maps the leaves that share the same URL
 String getFileMimeType()
          get RunList/LayoutElement/FileSpec/@MimeType
 JDFFileSpec getFileSpec()
          get RunList/LayoutElement/FileSpec
 String getFileURL()
          get RunList/LayoutElement/FileSpec/@URL also evaluate RunList/@directory and concatinate Directory + URL in case URL is a relative URL
 int getFirstIndex()
          gets the first logical RunIndex for this partition
protected  int getFirstIndex(JDFRunList.JDFRunData last)
          gets the first logical RunIndex for this partition
 Vector<JDFResource.EnumPartIDKey> getImplicitPartitions()
          get a list of all partition keys that this resource may be implicitly partitioned by e.g.
 JDFRunList getIndexPartition(int index)
          get the Partition that corresponds to a given runIndex
 int getLastIndex()
          gets the last logical RunIndex for this partition
protected  int getLastIndex(JDFRunList.JDFRunData last)
          gets the last logical RunIndex for this partition
 int getNPage()
          (15) get int attribute NPage
 int getPageInFile(int runIndex)
          get the 0 based page number in the specified file
 Iterator<JDFRunList.JDFRunData> getPageIterator()
           
 VElement getPageLeaves()
          get the list of RunList Leaves with IsPage=true
 JDFIntegerRangeList getPageListIndex()
          get the pageListIndex with a reasonable def for number of pages
first try the pagelist, then do for local npage
 JDFIntegerRangeList getPages()
          (20) get JDFIntegerRangeList attribute Pages
protected  AttributeInfo getTheAttributeInfo()
           
 JDFRunList getTruePage()
          get the first matching parent or this with IsPage==true
 boolean isPageLeaf()
          get the first matching parent or this with IsPage==true
 boolean setFileURL(String url)
          set RunList/LayoutElement/FileSpec/@URL
 void setPages(JDFIntegerRangeList value)
          (36) set attribute Pages
 String toString()
          toString
 
Methods inherited from class org.cip4.jdflib.auto.JDFAutoRunList
appendByteMap, appendDisposition, appendDynamicInput, appendInsertSheet, appendInterpretedPDLData, appendLayoutElement, appendMetadataMap, appendPageList, getAllDynamicInput, getAllInsertSheet, getAllMetadataMap, getByteMap, getComponentGranularity, getCreateByteMap, getCreateDisposition, getCreateDynamicInput, getCreateInsertSheet, getCreateInterpretedPDLData, getCreateLayoutElement, getCreateMetadataMap, getCreatePageList, getDirectory, getDisposition, getDocNames, getDocs, getDynamicInput, getEndOfBundleItem, getEndOfDocument, getEndOfSet, getFirstPage, getIgnoreContext, getInsertSheet, getInterpretedPDLData, getIsPage, getLayoutElement, getLogicalPage, getMetadataMap, getNDoc, getNSet, getPageCopies, getPageList, getPageNames, getRunTag, getSetCopies, getSetNames, getSets, getSheetSides, getSkipPage, getSorted, getTheElementInfo, getValidClass, init, refByteMap, refInsertSheet, refInterpretedPDLData, refLayoutElement, refPageList, setComponentGranularity, setDirectory, setDocNames, setDocs, setEndOfBundleItem, setEndOfDocument, setEndOfSet, setFirstPage, setIgnoreContext, setIsPage, setLogicalPage, setNDoc, setNPage, setNSet, setPageCopies, setPageListIndex, setPageNames, setRunTag, setSetCopies, setSetNames, setSets, setSheetSides, setSkipPage, setSorted
 
Methods inherited from class org.cip4.jdflib.resource.JDFResource
addPartIDKey, addPartition, addPartition, addPartitions, addPipePartIDKey, appendContact, appendIdentical, appendIdentificationField, appendLocationElement, appendQualityControlResult, appendSourceResource, appendSpawnIDs, appendUpdate, buildXPath, cleanResourceAttributes, clonePartitions, collapse, consistentPartIDKeys, consistentPartIDKeys, consistentPipePartIDKeys, containsData, createPartitions, createSourceResource, deleteUnLinked, getAgentName, getAgentVersion, getAlternateBrand, getAmount, getAmountProduced, getAmountRequired, getAttribute, getAttributeMap, getAttributePart, getAttributePartVector, getAttributeVector_JDFResource, getAttributeVector, getAuthor, getAutoAgent, getBatchID, getBinderySignatureName, getBlockName, getBrand, getBundleItemIndex, getCatalogDetails, getCatalogID, getCellIndex, getChildElementVector, getCondition, getContact, getCreateContact, getCreateElement_JDFResource, getCreateIdentical, getCreateIdentificationField, getCreateLocationElement, getCreatePartition, getCreatePartition, getCreateQualityControlResult, getCreator, getDeepPart, getDeepPart, getDeepPartVector, getDeliveryUnit, getDirectPartitionVector, getDocCopies, getDocIndex, getDocRunIndex, getDocSheetIndex, getElement, getFountainNumber, getGrossWeight, getIdentical, getIdenticalMap, getIdentificationField, getIDPrefix, getInvalidAttributes, getItemNames, getLayerIDs, getLeaves, getLinks, getLinks, getLinksAndRefs, getLinksAndRefs, getLinkString, getLocalPartitionKey, getLocation, getLocationElement, getLock, getLocked, getLotControl, getManufacturer, getNodesWithSpawnID, getNoOp, getOption, getPageNumber, getParentPartition, getPartIDKeys, getPartition, getPartition, getPartition, getPartitionLeafVector, getPartitionMap, getPartitionVector, getPartitionVector, getPartitionVector, getPartitionVector, getPartMap, getPartMap, getPartMapVector, getPartUsage, getPartValues, getPartVersion, getPipeID, getPipePartIDKeys, getPipePartIDKeysEnum, getPipeProtocol, getPipeURL, getPool, getPreflightRule, getPreviewType, getProductID, getQualityControlResult, getResourceClass, getResourcePool, getResourceRoot, getResourceRoot, getResourceWeight, getResStatus, getRibbonName, getRootPartAtts, getRun, getRunIndex, getRunPage, getRunSet, getRunTags, getSectionIndex, getSeparation, getSetDocIndex, getSetIndex, getSetRunIndex, getSetSheetIndex, getSheetIndex, getSheetName, getSide, getSignatureName, getSortAmount, getSorting, getSourceResource, getSpawnIDs, getSpawnStatus, getStationName, getStatus, getStatusFromLeaves, getTileID, getUnit, getUpdate, getUpdate, getUpdateID, getUpdateName, getUpdateVector, getWebName, getWebProduct, getWebSetup, hasAttribute, hasPipePartIDKey, hasUpdate, isAvailable, isLeaf, isParameter, isPartitioningCompatible, isPartitioningCompatible, isPhysical, isQuantity, isResourceElement, isResourceRoot, isResourceRootRoot, isRootElement, isSpawnAllowed, isValid, lock, makeRootResource, matchesString, mergeCloneResource, mergePartition, mergeSpawnIDs, newModifiedID, numChildElements, numUpdates, reducePartitions, reduceParts, reducePartVector, removeAttribute, removeAttributeFromLeaves, removeFromSpawnIDs, removeInheritedAttributes, removeUpdate, removeUpdate, setAgentName, setAgentVersion, setAlternateBrand, setAmount, setAmountProduced, setAmountRequired, setAuthor, setAutoAgent, setAvailable, setBatchID, setBinderySignatureName, setBlockName, setBrand, setBundleItemIndex, setCatalogDetails, setCatalogID, setCellIndex, setCondition, setDeliveryUnit, setDocCopies, setDocIndex, setDocRunIndex, setDocSheetIndex, setFountainNumber, setGrossWeight, setIdentical, setIdentical, setItemNames, setLayerIDs, setLocation, setLocked, setLotControl, setManufacturer, setNoOp, setOption, setPageNumber, setPartIDKey, setPartIDKeys, setPartUsage, setPartVersion, setPipeID, setPipePartIDKey, setPipeProtocol, setPipeURL, setPreflightRule, setPreviewType, setProductID, setResourceClass, setResourceWeight, setResStatus, setRibbonName, setRun, setRunIndex, setRunPage, setRunSet, setRunTags, setSectionIndex, setSeparation, setSetDocIndex, setSetIndex, setSetRunIndex, setSetSheetIndex, setSheetIndex, setSheetName, setSide, setSignatureName, setSortAmount, setSorting, setSpawnIDs, setSpawnStatus, setStationName, setStatus, setStatus, setTileID, setUnit, setUnpartitiondImplicit, setUpdateID, setWebName, setWebProduct, setWebSetup, spawnPart, unpartition, unSpawnPart, updateAmounts, updateAttributeFromLeaves, validClass, validResourceClass
 
Methods inherited from class org.cip4.jdflib.core.JDFElement
appendAnchor, appendBestEffortExceptions, appendComment, appendElement, appendGeneralID, appendGeneralID, appendHRef, appendHRef, appendMustHonorExceptions, appendOperatorInterventionExceptions, appendPreview, appendrRefs, attributeType, clearTargets, cloneNewDoc, copyInto, deprecatedAttributes, eraseDefaultAttributes, exclusiveOneOfAttribute, exclusiveOneOfElement, fixVersion, getAllRefs, getAtrType, getAttributeInfo, getBestEffortExceptions, getChildElement, getChildElements, getChildElementVector_JDFElement, getChildIds, getChildrenByTagName, getChildrenByTagName, getChildWithAttribute, getChildWithMatchingAttribute, getComment, getComment, getCommentURL, getCreateComment, getCreatePreview, getCreateRefElement, getDeepElementByID, getDefaultAttributeMap, getDefaultJDFVersion, getDeprecatedAttributes, getDeprecatedElements, getDescriptiveName, getElement_JDFElement, getElementIDPrefix, getElementNameVector, getEnumAttribute, getEnumerationsAttribute, getEnumerationsAttribute, getEnumforAttribute, getEnumNodeName, getEnumString, getFirstVersion, getGeneralID, getGeneralID, getGeneralID, getGeneralIDMap, getGeneralIDVectorMap, getHRef, getHRefs, getHRefs, getInsertElements, getInsertElementVector, getInvalidElements_JDFElement, getInvalidElements, getJDFRoot, getJMFRoot, getLastVersion, getLinkRoot, getMaxVersion, getMissingAttributes, getMissingAttributeVector, getMissingElements, getMissingElementVector, getMustHonorExceptions, getNamesVector, getOperatorInterventionExceptions, getOwnerDocument_JDFElement, getParentJDF, getParentJDF, getPartMapVector, getPrereleaseAttributes, getPrereleaseElements, getPreview, getRefElement, getRefElements, getRefString, getrRefs, getSchemaURL, getSchemaURL, getSettingsPolicy, getStatus, getTarget_JDFElement, getTarget, getTarget, getTheAttributeInfo_JDFElement, getTheElementInfo_JDFElement, getTypeForAttribute, getUnknownAttributes, getUnknownAttributeVector, getUnknownElements, getUnknownElementVector, getUnknownPoolElements, getURLDoc, getURLInputStream, getValueForNewAttribute, getVersion, getVersion, getvHRefRes, getvHRefRes, getXMLDocUserData, hasMissingAttributes, hasMissingElements, hasPartMap, hasSettingsPolicy, hasUnknownAttributes, hasUnknownElements, idString, includesMatchingAttribute, inlineRefElements, insertBefore, isComment, isCommentStatic, isDirty, isInJDFNameSpace, isInJDFNameSpaceStatic, isInJDFNameSpaceStatic, isJDFNode, isRefElement, isRefElementStatic, isResource, isResourceLink, isResourceLinkStatic, isResourceStatic, isResourceUpdate, isValid_JDFElement, jdfVersion, knownAttributes, knownElements, matchesPath, newID, numChildElements_JDFElement, optionalAttributes, optionalElements, prereleaseAttributes, prereleaseElements, refElement, removeBestEffortExceptions, removeChild, removeChild, removeChildren, removeExtensions, removeFromBestEffortExceptions, removeFromMustHonorExceptions, removeFromOperatorInterventionExceptions, removeFromrRefs, removeGeneralID, removePartMap, removeRefElement, removeSettingsPolicy, replaceChild, requiredAttributes, requiredElements, requiredLevel, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNameTimeStamp, setAttributes, setBestEffortExceptions, setCommentURL, setDefaultJDFVersion, setDescriptiveName, setDirty, setEnumerationsAttribute, setGeneralID, setLongID, setMustHonorExceptions, setOperatorInterventionExceptions, setPartMap, setPartMapVector, setSettingsPolicy, setStatus, setVersion, setvStringAttribute, stringToVersion, uniqueElements, upDaterRefs, validAttribute, validAttribute, validEnumAttribute, validEnumerationsAttribute, validResourcePosition, version
 
Methods inherited from class org.cip4.jdflib.core.KElement
addAttribute, addAttribute, addNameSpace, ancestorDistance, appendAttribute, appendCData, appendCData, appendChild, appendElement, appendElementN, appendElementRaw, appendEntityReference, appendText, appendTextElement, appendXMLComment, appendXMLComment, buildXPath, buildXPath, clone, copyAttribute, copyAttribute, copyElement, copyElements, copyXPathValue, createRoot, deleteNode, eraseEmptyAttributes, eraseEmptyNodes, fillHashSet, fitsName_KElement, fitsName, flush, generateDotID, getAttribute_KElement, getAttribute_KElement, getAttribute, getAttributeVector_KElement, getBoolAttribute, getCData, getChildAttributeList, getChildByTagName, getChildElementArray, getChildElementVector_KElement, getChildElementVector, getChildElementVector, getChildFromList, getChildFromList, getChildNode, getChildNodes_KElement, getChildNodeVector, getChildrenByClass, getChildrenByTagName_KElement, getChildrenFromList, getChildrenWithAttribute, getCreateElement_KElement, getCreateElement, getCreateElement, getCreateXPathElement, getDeepElement, getDeepParent, getDeepParent, getDeepParentChild, getDeepParentNotName, getDocRoot, getDOMAttr, getElement_KElement, getElement, getElementByClass, getElementHashMap, getElementsByTagName_KElement, getFirstChildElement, getFirstChildElement, getFirstChildElement, getFirstElementNode, getID, getInheritedAttribute, getInheritedElement, getInheritedXPathAttribute, getIntAttribute, getLocalNameStatic, getLongAttribute, getMultipleIDs, getNamespaceURI, getNamespaceURIFromPrefix, getNextElementNode, getNextSiblingElement, getNextSiblingElement, getNextSiblingElement, getNumCDatas, getNumChildNodes, getNumChildText, getNumXMLComments, getOwnerDocument_KElement, getParentNode_KElement, getPreviousSiblingElement, getPreviousSiblingElement, getRealAttribute, getTarget_KElement, getText, getText, getTree, getTreeElement, getXMLComment, getXMLNSNameSpace, getXMLNSPrefix, getXPathAttribute, getXPathAttributeMap, getXPathElement, getXPathElementVector, getXSIType, hasAttribute_KElement, hasAttribute, hasAttributes, hasChildElement, hasChildElements, hasChildNodes, hasChildText, hasXPathNode, includesAttribute, includesAttributes, insertAt, insertBefore, isAncestor, isEqual, isWildCard, matchesPath, matchesPathName, mergeElement, moveAttribute, moveAttribute, moveElement, moveElements, moveMe, normalize, numChildElements_KElement, numChildNodes, numSiblingElements, pushUp, removeAllText, removeAttribute_KElement, removeAttribute, removeAttributeNode, removeAttributeNS, removeAttributes, removeCData, removeChildNode, removeChildren, removeChildText, removeExtensions, removeFromAttribute, removeXMLComment, removeXPathAttribute, removeXPathElement, renameAttribute, renameElement, replaceElement, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setAttributeNSRaw, setAttributeRaw, setAttributes, setAttributes, setAttributes, setAttributesRaw, setBoolAttribute, setDirty, setID, setIntAttribute, setNamespaceURI, setNodeValue, setPrefix, setRealAttribute, setText, setvStringAttribute, setXMLComment, setXPathAttribute, setXPathValue, setXPathValues, setXSIType, sortChild, sortChild, sortChildren, sortChildren, toDisplayXML, toXML, toXML, uniqueID, write2File, write2File, write2Stream, xmlNameSpace, xmlnsLocalName, xmlnsPrefix
 
Methods inherited from class org.apache.xerces.dom.ElementNSImpl
getBaseURI, getLocalName, getPrefix, getTypeName, getTypeNamespace, isDerivedFrom, setType, setValues
 
Methods inherited from class org.apache.xerces.dom.ElementImpl
cloneNode, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getXercesAttribute, hasAttributeNS, isEqualNode, reconcileDefaultAttributes, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOwnerDocument, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData
 
Methods inherited from class org.apache.xerces.dom.ParentNode
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, item, setTextContent, synchronizeChildren
 
Methods inherited from class org.apache.xerces.dom.ChildNode
getNextSibling, getParentNode, getPreviousSibling
 
Methods inherited from class org.apache.xerces.dom.NodeImpl
addEventListener, changed, changes, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getNodeNumber, getNodeValue, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setUserData, setUserData
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Element
getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData
 

Constructor Detail

JDFRunList

public JDFRunList(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                  String qualifiedName)
           throws DOMException
Constructor for JDFRunList

Parameters:
myOwnerDocument -
qualifiedName -
Throws:
DOMException

JDFRunList

public JDFRunList(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                  String myNamespaceURI,
                  String qualifiedName)
           throws DOMException
Constructor for JDFRunList

Parameters:
myOwnerDocument -
myNamespaceURI -
qualifiedName -
Throws:
DOMException

JDFRunList

public JDFRunList(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                  String myNamespaceURI,
                  String qualifiedName,
                  String myLocalName)
           throws DOMException
Constructor for JDFRunList

Parameters:
myOwnerDocument -
myNamespaceURI -
qualifiedName -
myLocalName -
Throws:
DOMException
Method Detail

getTheAttributeInfo

protected AttributeInfo getTheAttributeInfo()
Overrides:
getTheAttributeInfo in class JDFAutoRunList
Returns:

toString

public String toString()
toString

Overrides:
toString in class JDFAutoRunList
Returns:
String
See Also:
Object.toString()

addRun

@Deprecated
public JDFRunList addRun(String fileName)
Deprecated. 

addRun

Parameters:
fileName -
Returns:
JDFRunList

addRun

@Deprecated
public JDFRunList addRun(String fileName,
                                    int first)
Deprecated. 

addRun

Parameters:
fileName -
first -
Returns:
JDFRunList

addRun

public JDFRunList addRun(String fileName,
                         int first,
                         int last)
addRun

Parameters:
fileName -
first -
last -
Returns:
JDFRunList

addPDF

@Deprecated
public JDFRunList addPDF(String fileName)
Deprecated. 

addPDF

Parameters:
fileName -
Returns:
JDFRunList

addPDF

@Deprecated
public JDFRunList addPDF(String fileName,
                                    int first)
Deprecated. 

addPDF

Parameters:
fileName -
first -
Returns:
JDFRunList

addPDF

public JDFRunList addPDF(String fileName,
                         int first,
                         int last)
addPDF add a pdf file to this RunList

Parameters:
fileName - the URL (!) of the file
first - 0 based first page in the file
last - 0 based last page in the file
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(Vector fileNames,
                                       Vector sepNames)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(Vector fileNames,
                                       Vector sepNames,
                                       int first)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(Vector fileNames,
                                       Vector sepNames,
                                       int first,
                                       int n)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
n -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(Vector fileNames,
                                       Vector sepNames,
                                       int first,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(Vector fileNames,
                                       Vector sepNames,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
pageMajor -
Returns:
JDFRunList

addSepRun

public JDFRunList addSepRun(Vector fileNames,
                            Vector sepNames,
                            int first,
                            int n,
                            boolean pageMajor)
add a run separation

Parameters:
fileNames - vector of file names for the URL attribute of the FileSpec in the LayoutElement
sepNames - parallel vector of separation names.
first - index of the first page in the file - Sets the RunList FirstPage attribute
n - the number of logical pages in this run
pageMajor - if true, separations are ordered as page Major, i.e CMYKCMYK
if false, ordering is CCMMYYKK
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(VElement fileSpec,
                                       Vector sepNames)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(VElement fileSpec,
                                       Vector sepNames,
                                       int first)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(VElement fileSpec,
                                       Vector sepNames,
                                       int first,
                                       int n)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
n -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(VElement fileSpec,
                                       Vector sepNames,
                                       int first,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(VElement fileSpec,
                                       Vector sepNames,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(VElement fileSpec,
                                       Vector sepNames,
                                       int first,
                                       int n,
                                       boolean pageMajor)
Deprecated. 060503 use the version with VString VString

addSepRun

Parameters:
fileSpec -
sepNames -
first -
n -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       int first)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       int first,
                                       int n)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
n -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       int first,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       int first,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       int first,
                                       int n,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
n -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       int first,
                                       boolean pageMajor,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
pageMajor -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       boolean pageMajor,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
pageMajor -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(JDFResource fileSpec,
                                       String sepNames,
                                       int first,
                                       int n,
                                       boolean pageMajor,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileSpec -
sepNames -
first -
n -
pageMajor -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       int first)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       int first,
                                       int n)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
n -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       int first,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       boolean pageMajor)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
pageMajor -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       int first,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       int first,
                                       int n,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
n -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       int first,
                                       boolean pageMajor,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
pageMajor -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       boolean pageMajor,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
pageMajor -
sep -
Returns:
JDFRunList

addSepRun

@Deprecated
public JDFRunList addSepRun(String fileNames,
                                       String sepNames,
                                       int first,
                                       int n,
                                       boolean pageMajor,
                                       String sep)
Deprecated. 

addSepRun

Parameters:
fileNames -
sepNames -
first -
n -
pageMajor -
sep -
Returns:
JDFRunList

setFileURL

public boolean setFileURL(String url)
set RunList/LayoutElement/FileSpec/@URL

Parameters:
url - the url to set
Returns:
true if ok

getFileURL

public String getFileURL()
get RunList/LayoutElement/FileSpec/@URL also evaluate RunList/@directory and concatinate Directory + URL in case URL is a relative URL

Returns:
URL if a URL or Directory attribute exists, else null

setPages

public void setPages(JDFIntegerRangeList value)
(36) set attribute Pages

Overrides:
setPages in class JDFAutoRunList
Parameters:
value - : the value to set the attribute to

getFileMimeType

public String getFileMimeType()
get RunList/LayoutElement/FileSpec/@MimeType

Returns:
MIMEType if it exists, else null

getFileSpec

public JDFFileSpec getFileSpec()
get RunList/LayoutElement/FileSpec

Returns:
JDFFileSpec FileSpec if it exists, else null

getCommonURLFileSpecMap

public HashMap<String,VJDFAttributeMap> getCommonURLFileSpecMap()
get a map of VJDFAttributeMap that are sorted by the fileSpec URL key
each url key maps the leaves that share the same URL

Returns:
fileSpecMap a map of VJDFAttributeMap

getImplicitPartitions

public Vector<JDFResource.EnumPartIDKey> getImplicitPartitions()
get a list of all partition keys that this resource may be implicitly partitioned by e.g. RunIndex for RunList...

Overrides:
getImplicitPartitions in class JDFResource
Returns:
vector of EnumPartIDKey

getPageIterator

public Iterator<JDFRunList.JDFRunData> getPageIterator()
Returns:

getFirstIndex

public int getFirstIndex()
gets the first logical RunIndex for this partition

Returns:
the first RunIndex that this RunList partition specifies

getFirstIndex

protected int getFirstIndex(JDFRunList.JDFRunData last)
gets the first logical RunIndex for this partition

Parameters:
last -
Returns:
the first RunIndex that this RunList partition specifies

getPageLeaves

public VElement getPageLeaves()
get the list of RunList Leaves with IsPage=true

Returns:

getLastIndex

public int getLastIndex()
gets the last logical RunIndex for this partition

Returns:
the last RunIndex that this RunList partition specifies

getLastIndex

protected int getLastIndex(JDFRunList.JDFRunData last)
gets the last logical RunIndex for this partition

Parameters:
last -
Returns:
the last RunIndex that this RunList partition specifies

getNPage

public int getNPage()
Description copied from class: JDFAutoRunList
(15) get int attribute NPage

Overrides:
getNPage in class JDFAutoRunList
Returns:
int the value of the attribute
See Also:
JDFAutoRunList.getNPage()

getIndexPartition

public JDFRunList getIndexPartition(int index)
get the Partition that corresponds to a given runIndex

Parameters:
index - the runIndex to search for
Returns:
JDFRunList the partition that contains this index. use @see getPageInFile to find the correct page warning blindly calling this from inside a loop may cause performance issues - use the getPageIterator if you need performance optimized access

getPageInFile

public int getPageInFile(int runIndex)
get the 0 based page number in the specified file

Parameters:
runIndex -
Returns:
the page number in the file; -1 if ot of range

collapse

public void collapse(boolean bCollapseToNode,
                     boolean bCollapseElements)
collapse all redundant attributes and elements

Overrides:
collapse in class JDFResource
Parameters:
bCollapseToNode - only collapse redundant attriutes and elements that pre-exist in the nodes
bCollapseElements - if true, collapse elements, else only collapse attributes

expand

public void expand(boolean bDeleteFromNode)
Description copied from class: JDFResource
Expand so that each leaf is complete (except for ID)

Overrides:
expand in class JDFResource
Parameters:
bDeleteFromNode - if true, removes all intermediate elements and attributes
See Also:
JDFResource.expand(boolean)

fixNPage

public void fixNPage()
write NPage into all leaves with IsPage=true and write the appropriate value into the lower level nodes


getTruePage

public JDFRunList getTruePage()
get the first matching parent or this with IsPage==true

Returns:

isPageLeaf

public boolean isPageLeaf()
get the first matching parent or this with IsPage==true

Returns:

getPages

public JDFIntegerRangeList getPages()
Description copied from class: JDFAutoRunList
(20) get JDFIntegerRangeList attribute Pages

Overrides:
getPages in class JDFAutoRunList
Returns:
JDFIntegerRangeList the value of the attribute, null if a the attribute value is not a valid to create a JDFIntegerRangeList
See Also:
JDFAutoRunList.getPages()

getPageListIndex

public JDFIntegerRangeList getPageListIndex()
get the pageListIndex with a reasonable def for number of pages
first try the pagelist, then do for local npage

Overrides:
getPageListIndex in class JDFAutoRunList
Returns:
JDFIntegerRangeList the value of the attribute, null if a the attribute value is not a valid to create a JDFIntegerRangeList
See Also:
JDFAutoRunList.getPageListIndex()


Copyright © 2013. All Rights Reserved.