public class JDFToXJDF extends PackageElementWalker
Modifier and Type | Class and Description |
---|---|
static class |
JDFToXJDF.EnumProcessPartition |
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
first |
protected KElement |
newRoot |
protected JDFNode |
oldRoot |
static String |
rootJMF
the root JMF name
|
static String |
rootName
the root node name if NOT typesafe
|
log
theFactory
Constructor and Description |
---|
JDFToXJDF() |
Modifier and Type | Method and Description |
---|---|
protected BaseWalker |
constructWalker(String name) |
KElement |
convert(KElement root) |
protected String |
getClassName(JDFResource r) |
XJDFHelper |
getCombined(JDFNode node) |
static String |
getExtension()
calculate a file extension name based of rootName
|
protected static VJDFAttributeMap |
getPartMapVector(KElement res) |
JDFToXJDF.EnumProcessPartition |
getProcessPart() |
protected String |
getProduct(String compID) |
protected Set<String> |
getResourceAlias() |
static String |
getSchemaURL()
returns the official JDF schema URI for 2.0
|
protected String |
getSetName(JDFResource r) |
protected WalkResource |
getWalker(JDFResource r) |
Vector<XJDFHelper> |
getXJDFs(JDFNode root) |
boolean |
isAbstractMessage()
Getter for bAbstractMessage attribute.
|
boolean |
isCleanup() |
boolean |
isConvertTilde()
Getter for bConvertTilde attribute. if true, we zapp tilde
|
boolean |
isExplicitWaste()
Getter for bExplicitWaste attribute.
|
boolean |
isHTMLColor()
Getter for bHTMLColor attribute.
|
boolean |
isIntentPartition()
Getter for bIntentPartition attribute.
|
boolean |
isMergeLayout()
Getter for bMergeLayout attribute.
|
boolean |
isMergeLayoutPrep()
Getter for bMergeLayoutPrep attribute.
|
boolean |
isMergeRunList()
Getter for bMergeRunList attribute.
|
boolean |
isParameterSet() |
protected boolean |
isProductResource(JDFResource linkTarget) |
boolean |
isRemoveSignatureName() |
boolean |
isRetainAll() |
boolean |
isRetainSpawnInfo()
Getter for bRetainSpawnInfo attribute.
|
boolean |
isSingleNode()
Getter for bSingleNode attribute.
|
boolean |
isSpanAsAttribute()
Getter for bSpanAsAttribute attribute.
|
boolean |
isTypeSafeMessage()
Getter for bTypeSafeMessage attribute.
|
boolean |
isUpdateVersion()
Getter for bUpdateVersion attribute.
|
boolean |
isWantProcessList() |
boolean |
isWantProduct() |
KElement |
makeNewJDF(JDFNode node,
VJDFAttributeMap vMap) |
KElement |
makeNewJMF(JDFJMF jmf) |
protected void |
putComponentProduct(String compID,
String productID) |
void |
retainAll()
Deprecated.
|
void |
saveZip(String fileName,
JDFNode rootNode,
boolean replace) |
void |
setAbstractMessage(boolean bAbstractMessage)
Setter for bAbstractMessage attribute.
|
void |
setCleanup(boolean bCleanup) |
void |
setConvertTilde(boolean bConvertTilde)
Setter for bConvertTilde attribute.
|
void |
setExplicitWaste(boolean bExplicitWaste)
Setter for bExplicitWaste attribute. if true PartAmount has explicit amounts for good and waste rather than partitions
|
void |
setHTMLColor(boolean bHTMLColor)
Setter for bHTMLColor attribute.
|
void |
setIntentPartition(boolean bIntentPartition)
Setter for bIntentPartition attribute.
|
void |
setMergeLayout(boolean bMergeLayout)
Setter for bMergeLayout attribute.
|
void |
setMergeLayoutPrep(boolean bMergeLayoutPrep)
Setter for bMergeLayoutPrep attribute.
|
void |
setMergeRunList(boolean bMergeRunList)
Setter for bMergeRunList attribute.
|
void |
setParameterSet(boolean bParameterSet) |
void |
setProcessPart(JDFToXJDF.EnumProcessPartition process) |
void |
setRemoveSignatureName(boolean removeSignatureName) |
void |
setRetainAll(boolean bRetainAll) |
void |
setRetainSpawnInfo(boolean bRetainSpawnInfo)
Setter for bRetainSpawnInfo attribute.
|
void |
setSingleNode(boolean bSingleNode)
Setter for bSingleNode attribute.
|
void |
setSpanAsAttribute(boolean bSpanAsAttribute)
Setter for bSpanAsAttribute attribute.
|
void |
setTrackAudits(boolean trackAudits)
if true, add a modified audit
|
void |
setTypeSafeMessage(boolean bTypeSafeMessage)
Setter for bTypeSafeMessage attribute.
|
void |
setUpdateVersion(boolean bUpdateVersion)
Setter for bUpdateVersion attribute.
|
void |
setWantProduct(boolean wantProduct) |
void |
writeStream(OutputStream os,
JDFNode rootNode,
JDFJMF jmf) |
getFactory
toString, walkTree, walkTreeKidsFirst
public static final String rootName
public static final String rootJMF
protected KElement newRoot
protected JDFNode oldRoot
protected BaseWalker constructWalker(String name)
constructWalker
in class PackageElementWalker
PackageElementWalker.constructWalker(java.lang.String)
protected String getClassName(JDFResource r)
r
- protected WalkResource getWalker(JDFResource r)
r
- public void setTrackAudits(boolean trackAudits)
trackAudits
- public static String getSchemaURL()
public boolean isExplicitWaste()
public void setExplicitWaste(boolean bExplicitWaste)
bExplicitWaste
- the bExplicitWaste to setpublic boolean isParameterSet()
public void setParameterSet(boolean bParameterSet)
bParameterSet
- the bParameterSet to setpublic boolean isWantProduct()
public void setWantProduct(boolean wantProduct)
wantProduct
- public void setProcessPart(JDFToXJDF.EnumProcessPartition process)
bProcessList
- the ProcessList to setpublic boolean isRemoveSignatureName()
public void setRemoveSignatureName(boolean removeSignatureName)
removeSignatureName
- public KElement convert(KElement root)
root
- the jdf or jmf to transformpublic KElement makeNewJMF(JDFJMF jmf)
jmf
- the jmf to transformpublic KElement makeNewJDF(JDFNode node, VJDFAttributeMap vMap)
node
- the node to transformvMap
- the partmap to transform, null if allprotected void putComponentProduct(String compID, String productID)
compID
- productID
- public static String getExtension()
public void saveZip(String fileName, JDFNode rootNode, boolean replace)
fileName
- the filename of the zip file to save torootNode
- the root jdf to savereplace
- if true, overwrite existing filespublic void writeStream(OutputStream os, JDFNode rootNode, JDFJMF jmf)
os
- the output streamrootNode
- the root jdf to savejmf
- the submission or return jmfpublic Vector<XJDFHelper> getXJDFs(JDFNode root)
root
- protected static VJDFAttributeMap getPartMapVector(KElement res)
res
- @Deprecated public void retainAll()
public void setUpdateVersion(boolean bUpdateVersion)
bUpdateVersion
- the bUpdateVersion to setpublic boolean isMergeLayout()
public void setMergeLayout(boolean bMergeLayout)
bMergeLayout
- the bMergeLayout to setpublic boolean isMergeLayoutPrep()
public void setMergeLayoutPrep(boolean bMergeLayoutPrep)
bMergeLayoutPrep
- the bMergeLayoutPrep to setpublic boolean isMergeRunList()
public void setMergeRunList(boolean bMergeRunList)
bMergeRunList
- the bMergeRunList to setpublic boolean isRetainSpawnInfo()
public void setRetainSpawnInfo(boolean bRetainSpawnInfo)
bRetainSpawnInfo
- the bRetainSpawnInfo to setpublic boolean isSingleNode()
public void setSingleNode(boolean bSingleNode)
bSingleNode
- the bSingleNode to setpublic boolean isUpdateVersion()
public boolean isTypeSafeMessage()
public void setTypeSafeMessage(boolean bTypeSafeMessage)
bTypeSafeMessage
- the bTypeSafeMessage to setpublic boolean isAbstractMessage()
public void setAbstractMessage(boolean bAbstractMessage)
bAbstractMessage
- the bAbstractMessage to setpublic boolean isSpanAsAttribute()
public void setSpanAsAttribute(boolean bSpanAsAttribute)
bSpanAsAttribute
- the bSpanAsAttribute to setpublic boolean isIntentPartition()
public void setIntentPartition(boolean bIntentPartition)
bIntentPartition
- the bIntentPartition to setpublic boolean isHTMLColor()
public void setHTMLColor(boolean bHTMLColor)
bHTMLColor
- the bHTMLColor to setpublic boolean isConvertTilde()
public void setConvertTilde(boolean bConvertTilde)
bConvertTilde
- the bConvertTilde to setprotected String getSetName(JDFResource r)
r
- protected boolean isProductResource(JDFResource linkTarget)
linkTarget
- public boolean isRetainAll()
public void setRetainAll(boolean bRetainAll)
bRetainAll
- public JDFToXJDF.EnumProcessPartition getProcessPart()
public boolean isWantProcessList()
public boolean isCleanup()
public void setCleanup(boolean bCleanup)
bCleanup
- the bCleanup to setpublic XJDFHelper getCombined(JDFNode node)
node
- Copyright © 2018. All rights reserved.