Direct Known Subclasses:
XJDF20

public class JDFToXJDF extends PackageElementWalker
  • Field Details

  • Constructor Details

    • JDFToXJDF

      public JDFToXJDF()
  • Method Details

    • setDefaultVersion

      public static void setDefaultVersion(JDFElement.EnumVersion v)
    • getDefaultVersion

      public static JDFElement.EnumVersion getDefaultVersion()
    • getResourceAlias

      protected Set<String> getResourceAlias()
      Returns:
      the resourceAlias
    • constructWalker

      protected BaseWalker constructWalker(String name)
      Overrides:
      constructWalker in class PackageElementWalker
      Returns:
      See Also:
    • getClassName

      protected String getClassName(JDFResource r)
      Parameters:
      r -
      Returns:
    • getWalker

      protected WalkResource getWalker(JDFResource r)
      Parameters:
      r -
      Returns:
    • setTrackAudits

      public void setTrackAudits(boolean trackAudits)
      if true, add a modified audit
      Parameters:
      trackAudits -
    • getSchemaURL

      public static String getSchemaURL()
      returns the official JDF schema URI for 2.0
      Returns:
      the URL that fits to majorVersion and minorVersion - null if not supported
    • isExplicitWaste

      public boolean isExplicitWaste()
      Getter for bExplicitWaste attribute.
      Returns:
      the bExplicitWaste
    • setExplicitWaste

      public void setExplicitWaste(boolean bExplicitWaste)
      Setter for bExplicitWaste attribute. if true PartAmount has explicit amounts for good and waste rather than partitions
      Parameters:
      bExplicitWaste - the bExplicitWaste to set
    • isPreprocess

      public boolean isPreprocess()
    • setPreprocess

      public void setPreprocess(boolean bPreprocess)
    • isParameterSet

      public boolean isParameterSet()
      Returns:
      the bParameterSet
    • setParameterSet

      public void setParameterSet(boolean bParameterSet)
      Parameters:
      bParameterSet - the bParameterSet to set
    • isWantProduct

      public boolean isWantProduct()
      Returns:
    • setWantProduct

      public void setWantProduct(boolean wantProduct)
      Parameters:
      wantProduct -
    • getNewVersion

      public JDFElement.EnumVersion getNewVersion()
      Returns:
      the newVersion
    • setNewVersion

      public void setNewVersion(JDFElement.EnumVersion newVersion)
      Parameters:
      newVersion - the newVersion to set
    • setProcessPart

      public void setProcessPart(JDFToXJDF.EnumProcessPartition process)
      Parameters:
      bProcessList - the ProcessList to set
    • isRemoveSignatureName

      public boolean isRemoveSignatureName()
      Returns:
    • setRemoveSignatureName

      public void setRemoveSignatureName(boolean removeSignatureName)
      Parameters:
      removeSignatureName -
    • convertToXJDF

      public XJDFHelper convertToXJDF(KElement root)
      Parameters:
      root -
      Returns:
    • convertToXJMF

      public XJMFHelper convertToXJMF(KElement root)
      Parameters:
      root -
      Returns:
    • convert

      public KElement convert(KElement root)
      Parameters:
      root - the jdf or jmf to transform
      Returns:
      the root of the XJDF document
    • makeNewJMF

      public KElement makeNewJMF(JDFJMF jmf)
      Parameters:
      jmf - the jmf to transform
      Returns:
      the root of the XJDF document
    • makeNewJDF

      public KElement makeNewJDF(JDFNode node, VJDFAttributeMap vMap)
      Parameters:
      node - the node to transform
      vMap - the partmap to transform, null if all
      Returns:
      the root of the XJDF document
    • putComponentProduct

      protected void putComponentProduct(String compID, JDFAttributeMap partMap, String productID)
      Parameters:
      compID -
      jdfAttributeMap -
      productID -
    • getProduct

      protected String getProduct(String compID, JDFAttributeMap partMap)
      Parameters:
      compID -
      Returns:
    • getExtension

      public static String getExtension()
      calculate a file extension name based of rootName
      Returns:
      String
    • saveZip

      public void saveZip(String fileName, JDFNode rootNode, boolean replace)
      Parameters:
      fileName - the filename of the zip file to save to
      rootNode - the root jdf to save
      replace - if true, overwrite existing files
    • writeStream

      public void writeStream(OutputStream os, JDFNode rootNode, JDFJMF jmf)
      Parameters:
      os - the output stream
      rootNode - the root jdf to save
      jmf - the submission or return jmf
    • getXJDFs

      @Deprecated public Vector<XJDFHelper> getXJDFs(JDFNode root)
      Deprecated.
      Parameters:
      root -
      Returns:
    • getXJDFs

      public List<XJDFHelper> getXJDFs(JDFNode root, boolean ordered)
      Parameters:
      root -
      ordered -
      Returns:
    • getPartMapVector

      protected static VJDFAttributeMap getPartMapVector(KElement res)
      Parameters:
      res -
      Returns:
      omaMaps
    • retainAll

      @Deprecated public void retainAll()
      Deprecated.
      set to keep as much of the original structure as possible - used e.g. for xslt display of JDF nodes
    • setUpdateVersion

      public void setUpdateVersion(boolean bUpdateVersion)
      Setter for bUpdateVersion attribute.
      Parameters:
      bUpdateVersion - the bUpdateVersion to set
    • isMergeLayout

      public boolean isMergeLayout()
      Getter for bMergeLayout attribute.
      Returns:
      the bMergeLayout
    • setMergeLayout

      public void setMergeLayout(boolean bMergeLayout)
      Setter for bMergeLayout attribute.
      Parameters:
      bMergeLayout - the bMergeLayout to set
    • isMergeLayoutPrep

      public boolean isMergeLayoutPrep()
      Getter for bMergeLayoutPrep attribute.
      Returns:
      the bMergeLayoutPrep
    • setMergeLayoutPrep

      public void setMergeLayoutPrep(boolean bMergeLayoutPrep)
      Setter for bMergeLayoutPrep attribute.
      Parameters:
      bMergeLayoutPrep - the bMergeLayoutPrep to set
    • isMergeRunList

      public boolean isMergeRunList()
      Getter for bMergeRunList attribute.
      Returns:
      the bMergeRunList
    • setMergeRunList

      public void setMergeRunList(boolean bMergeRunList)
      Setter for bMergeRunList attribute.
      Parameters:
      bMergeRunList - the bMergeRunList to set
    • isRetainSpawnInfo

      public boolean isRetainSpawnInfo()
      Getter for bRetainSpawnInfo attribute.
      Returns:
      the bRetainSpawnInfo
    • setRetainSpawnInfo

      public void setRetainSpawnInfo(boolean bRetainSpawnInfo)
      Setter for bRetainSpawnInfo attribute.
      Parameters:
      bRetainSpawnInfo - the bRetainSpawnInfo to set
    • isSingleNode

      public boolean isSingleNode()
      Getter for bSingleNode attribute.
      Returns:
      the bSingleNode
    • setSingleNode

      public void setSingleNode(boolean bSingleNode)
      Setter for bSingleNode attribute.
      Parameters:
      bSingleNode - the bSingleNode to set
    • isUpdateVersion

      public boolean isUpdateVersion()
      Getter for bUpdateVersion attribute.
      Returns:
      the bUpdateVersion
    • isTypeSafeMessage

      public boolean isTypeSafeMessage()
      Getter for bTypeSafeMessage attribute.
      Returns:
      the bTypeSafeMessage
    • setTypeSafeMessage

      public void setTypeSafeMessage(boolean bTypeSafeMessage)
      Setter for bTypeSafeMessage attribute. also switches the JMF Root element name to XJMF
      Parameters:
      bTypeSafeMessage - the bTypeSafeMessage to set
    • isAbstractMessage

      public boolean isAbstractMessage()
      Getter for bAbstractMessage attribute.
      Returns:
      the bAbstractMessage
    • setAbstractMessage

      public void setAbstractMessage(boolean bAbstractMessage)
      Setter for bAbstractMessage attribute.
      Parameters:
      bAbstractMessage - the bAbstractMessage to set
    • isSpanAsAttribute

      public boolean isSpanAsAttribute()
      Getter for bSpanAsAttribute attribute.
      Returns:
      the bSpanAsAttribute
    • setSpanAsAttribute

      public void setSpanAsAttribute(boolean bSpanAsAttribute)
      Setter for bSpanAsAttribute attribute.
      Parameters:
      bSpanAsAttribute - the bSpanAsAttribute to set
    • isIntentPartition

      public boolean isIntentPartition()
      Getter for bIntentPartition attribute.
      Returns:
      the bIntentPartition
    • setIntentPartition

      public void setIntentPartition(boolean bIntentPartition)
      Setter for bIntentPartition attribute.
      Parameters:
      bIntentPartition - the bIntentPartition to set
    • isHTMLColor

      public boolean isHTMLColor()
      Getter for bHTMLColor attribute.
      Returns:
      the bHTMLColor
    • setHTMLColor

      public void setHTMLColor(boolean bHTMLColor)
      Setter for bHTMLColor attribute.
      Parameters:
      bHTMLColor - the bHTMLColor to set
    • isConvertTilde

      public boolean isConvertTilde()
      Getter for bConvertTilde attribute. if true, we zapp tilde
      Returns:
      the bConvertTilde
    • setConvertTilde

      public void setConvertTilde(boolean bConvertTilde)
      Setter for bConvertTilde attribute.
      Parameters:
      bConvertTilde - the bConvertTilde to set
    • getSetName

      protected String getSetName(JDFResource r)
      Parameters:
      r -
      Returns:
    • isProductResource

      protected boolean isProductResource(JDFResource linkTarget)
      Parameters:
      linkTarget -
      Returns:
    • isRetainAll

      public boolean isRetainAll()
      Returns:
    • setRetainAll

      public void setRetainAll(boolean bRetainAll)
      Parameters:
      bRetainAll -
    • getProcessPart

      public JDFToXJDF.EnumProcessPartition getProcessPart()
      Returns:
    • isWantProcessList

      public boolean isWantProcessList()
      Returns:
    • isCleanup

      public boolean isCleanup()
      Returns:
      the bCleanup
    • setCleanup

      public void setCleanup(boolean bCleanup)
      Parameters:
      bCleanup - the bCleanup to set
    • getCombined

      public XJDFHelper getCombined(JDFNode node)
      Parameters:
      node -
      Returns:
    • wantDependent

      public boolean wantDependent()
    • setWantDependent

      public void setWantDependent(boolean wantDependent)
      Parameters:
      wantDependent - the wantDependent to set
    • toString

      public String toString()
      Overrides:
      toString in class ElementWalker
      See Also:
    • wantImplicit

      public boolean wantImplicit()
    • setwantImplicit

      public void setwantImplicit(boolean wantImplicit)