|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.util.JDFMerge
public class JDFMerge
| Field Summary | |
|---|---|
boolean |
bAddMergeToProcessRun
set this to true if you want to update the ProcessRun(s) timestamps for this merge |
boolean |
bUpdateStati
set this to true if you want to update the stati of the relevant parent nodes based on the new Stati of the merged node |
| Constructor Summary | |
|---|---|
JDFMerge(JDFNode parentNode)
|
|
| Method Summary | |
|---|---|
protected void |
findSpawnAudit()
|
JDFResource.EnumAmountMerge |
getAmountPolicy()
|
JDFNode.EnumCleanUpMerge |
getCleanPolicy()
|
JDFNode |
mergeJDF(JDFNode _toMerge)
merge a previously spawned JDF into a node that is a child of, or this root |
JDFNode |
mergeJDF(JDFNode _toMerge,
String urlMerge,
JDFNode.EnumCleanUpMerge cleanPolicy,
JDFResource.EnumAmountMerge amountPolicy)
merge a previously spawned JDF into a node that is a child of, or this root default: mergeJDF(subJDFNode, null, JDFNode.EnumCleanUpMerge.None, JDFResource.EnumAmountMerge.None) |
protected void |
mergeLocalResourcePool(JDFNode overwriteLocalNode,
JDFNode toMergeLocalNode)
|
static JDFResource |
mergePartition(JDFResource targetRes,
JDFResource resToMerge,
String spawnID,
JDFResource.EnumAmountMerge amountPolicy,
boolean bLocalResource)
Merges partitioned resources into this resource uses PartIDKey to identify the correct resources |
protected void |
remergeAuditPools()
|
JDFNode |
remergeJDF(JDFNode _toMerge)
merge a previously spawned and previously merged JDF into a node that is a child of, or this root |
void |
setAmountPolicy(JDFResource.EnumAmountMerge amountPolicy)
|
void |
setCleanPolicy(JDFNode.EnumCleanUpMerge cleanPolicy)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean bUpdateStati
public boolean bAddMergeToProcessRun
| Constructor Detail |
|---|
public JDFMerge(JDFNode parentNode)
parentNode - the parent node to merge into. MAY be the actual node to be replace or any Parent thereof| Method Detail |
|---|
public JDFNode mergeJDF(JDFNode _toMerge,
String urlMerge,
JDFNode.EnumCleanUpMerge cleanPolicy,
JDFResource.EnumAmountMerge amountPolicy)
default: mergeJDF(subJDFNode, null, JDFNode.EnumCleanUpMerge.None, JDFResource.EnumAmountMerge.None)
_toMerge - the previously spawned jdf nodeurlMerge - the url of the ???cleanPolicy - policy how to clean up the spawn and merge audits after mergingamountPolicy - policy how to clean up the Resource amounts after merging
true always.
JDFException - if subJDFNode has already been merged
JDFException - if subJDFNode was not spawned from this
JDFException - if subJDFNode has no AncestorPool
default: mergeJDF(subJDFNode, null, JDFNode.EnumCleanUpMerge.None, JDFResource.EnumAmountMerge.None)public JDFNode mergeJDF(JDFNode _toMerge)
_toMerge - the previously spawned jdf node
true always.
JDFException - if subJDFNode has already been merged
JDFException - if subJDFNode was not spawned from this
JDFException - if subJDFNode has no AncestorPoolpublic JDFNode remergeJDF(JDFNode _toMerge)
_toMerge - the previously spawned jdf node
true always.
JDFException - if subJDFNode has no AncestorPoolprotected void remergeAuditPools()
protected void findSpawnAudit()
protected void mergeLocalResourcePool(JDFNode overwriteLocalNode,
JDFNode toMergeLocalNode)
public static JDFResource mergePartition(JDFResource targetRes,
JDFResource resToMerge,
String spawnID,
JDFResource.EnumAmountMerge amountPolicy,
boolean bLocalResource)
targetRes - resToMerge - the resource leaf to merge into thisspawnID - the spawnID of the spawning that will now be mergedamountPolicy - how to clean up the Resource amounts after mergingbLocalResource - must be true for the local resources in a spawned node and its subnodes, which default to RW
JDFException - if here is an attempt to merge incompatible resources
JDFException - if here is an attempt to merge incompatible partitionspublic String toString()
toString in class ObjectObject.toString()public JDFNode.EnumCleanUpMerge getCleanPolicy()
public void setCleanPolicy(JDFNode.EnumCleanUpMerge cleanPolicy)
cleanPolicy - public JDFResource.EnumAmountMerge getAmountPolicy()
public void setAmountPolicy(JDFResource.EnumAmountMerge amountPolicy)
amountPolicy -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||