public class JDFToXJDF extends PackageElementWalker
| Modifier and Type | Class and Description |
|---|---|
static class |
JDFToXJDF.EnumProcessPartition |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<java.lang.String> |
first |
protected KElement |
newRoot |
protected JDFNode |
oldRoot |
static java.lang.String |
rootJMF
the root JMF name
|
static java.lang.String |
rootName
the root node name if NOT typesafe
|
log, theFactory| Constructor and Description |
|---|
JDFToXJDF() |
| Modifier and Type | Method and Description |
|---|---|
protected BaseWalker |
constructWalker(java.lang.String name) |
KElement |
convert(KElement root) |
protected java.lang.String |
getClassName(JDFResource r) |
XJDFHelper |
getCombined(JDFNode node) |
static JDFElement.EnumVersion |
getDefaultVersion() |
static java.lang.String |
getExtension()
calculate a file extension name based of rootName
|
JDFElement.EnumVersion |
getNewVersion() |
protected static VJDFAttributeMap |
getPartMapVector(KElement res) |
JDFToXJDF.EnumProcessPartition |
getProcessPart() |
protected java.lang.String |
getProduct(java.lang.String compID) |
protected java.util.Set<java.lang.String> |
getResourceAlias() |
static java.lang.String |
getSchemaURL()
returns the official JDF schema URI for 2.0
|
protected java.lang.String |
getSetName(JDFResource r) |
protected WalkResource |
getWalker(JDFResource r) |
java.util.Vector<XJDFHelper> |
getXJDFs(JDFNode root)
Deprecated.
|
java.util.List<XJDFHelper> |
getXJDFs(JDFNode root,
boolean ordered) |
boolean |
isAbstractMessage()
Getter for bAbstractMessage attribute.
|
boolean |
isCleanup() |
boolean |
isConvertTilde()
Getter for bConvertTilde attribute.
|
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() |
boolean |
isPreprocess() |
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(java.lang.String compID,
java.lang.String productID) |
void |
retainAll()
Deprecated.
|
void |
saveZip(java.lang.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.
|
static void |
setDefaultVersion(JDFElement.EnumVersion v) |
void |
setExplicitWaste(boolean bExplicitWaste)
Setter for bExplicitWaste attribute.
|
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 |
setNewVersion(JDFElement.EnumVersion newVersion) |
void |
setParameterSet(boolean bParameterSet) |
void |
setPreprocess(boolean bPreprocess) |
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 |
setWantDependent(boolean wantDependent) |
void |
setWantProduct(boolean wantProduct) |
java.lang.String |
toString() |
boolean |
wantDependent() |
void |
writeStream(java.io.OutputStream os,
JDFNode rootNode,
JDFJMF jmf) |
getFactorywalkTree, walkTreeKidsFirstpublic static final java.lang.String rootName
public static final java.lang.String rootJMF
protected KElement newRoot
protected JDFNode oldRoot
protected java.util.Set<java.lang.String> first
public static void setDefaultVersion(JDFElement.EnumVersion v)
public static JDFElement.EnumVersion getDefaultVersion()
protected java.util.Set<java.lang.String> getResourceAlias()
protected BaseWalker constructWalker(java.lang.String name)
constructWalker in class PackageElementWalkerPackageElementWalker.constructWalker(java.lang.String)protected java.lang.String getClassName(JDFResource r)
r - protected WalkResource getWalker(JDFResource r)
r - public void setTrackAudits(boolean trackAudits)
trackAudits - public static java.lang.String getSchemaURL()
public boolean isExplicitWaste()
public void setExplicitWaste(boolean bExplicitWaste)
bExplicitWaste - the bExplicitWaste to setpublic boolean isPreprocess()
public void setPreprocess(boolean bPreprocess)
public boolean isParameterSet()
public void setParameterSet(boolean bParameterSet)
bParameterSet - the bParameterSet to setpublic boolean isWantProduct()
public void setWantProduct(boolean wantProduct)
wantProduct - public JDFElement.EnumVersion getNewVersion()
public void setNewVersion(JDFElement.EnumVersion newVersion)
newVersion - the newVersion to setpublic 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(java.lang.String compID,
java.lang.String productID)
compID - productID - protected java.lang.String getProduct(java.lang.String compID)
compID - public static java.lang.String getExtension()
public void saveZip(java.lang.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(java.io.OutputStream os,
JDFNode rootNode,
JDFJMF jmf)
os - the output streamrootNode - the root jdf to savejmf - the submission or return jmf@Deprecated public java.util.Vector<XJDFHelper> getXJDFs(JDFNode root)
root - public java.util.List<XJDFHelper> getXJDFs(JDFNode root, boolean ordered)
root - ordered - 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 java.lang.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 - public boolean wantDependent()
public void setWantDependent(boolean wantDependent)
wantDependent - the wantDependent to setpublic java.lang.String toString()
toString in class ElementWalkerObject.toString()