Package org.cip4.jdflib.extensions
Class ProcessXJDFSplit
- java.lang.Object
-
- org.cip4.jdflib.extensions.AbstractXJDFSplit
-
- org.cip4.jdflib.extensions.ProcessXJDFSplit
-
- All Implemented Interfaces:
IXJDFSplit
public class ProcessXJDFSplit extends AbstractXJDFSplit
XJDF splitter that splits based on the types list
-
-
Constructor Summary
Constructors Constructor Description ProcessXJDFSplit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(VString group)add a group to split togetherprotected VStringcalcTypes(XJDFHelper root)ensure that we have the appropriate types setting for the given product listprotected VStringextractTypes(VString types)protected voidfixCategory(XJDFHelper h, VString types, VString allTypes)protected java.util.Vector<VString>getGroups()protected java.lang.StringgetJobPartID(XJDFHelper xjdf, VString types)protected voidprepareRoot(XJDFHelper root)we want IDs to avoid double transformationprotected voidprocessSingle(XJDFHelper h, VString types, VString allTypes)protected java.util.Vector<VString>splitTypes(XJDFHelper root)java.util.Collection<XJDFHelper>splitXJDF(XJDFHelper root)java.lang.StringtoString()-
Methods inherited from class org.cip4.jdflib.extensions.AbstractXJDFSplit
checkCPI, checkProcessUsage, checkProduct, consolidateExchangeResource, consolidateExchangeResources, fixCPI, fixInOutLink, fixInOutLinks, fixInOutLinks, fixUsage, getLinkInfoMap, getName, getProductResources, matchesType, matchesType
-
-
-
-
Method Detail
-
getGroups
protected java.util.Vector<VString> getGroups()
- Returns:
- the groups
-
splitXJDF
public java.util.Collection<XJDFHelper> splitXJDF(XJDFHelper root)
- Specified by:
splitXJDFin interfaceIXJDFSplit- Specified by:
splitXJDFin classAbstractXJDFSplit- Parameters:
root- the main or root XJDF to split- Returns:
- See Also:
AbstractXJDFSplit.splitXJDF(org.cip4.jdflib.extensions.XJDFHelper)
-
prepareRoot
protected void prepareRoot(XJDFHelper root)
we want IDs to avoid double transformation- Parameters:
root-
-
processSingle
protected void processSingle(XJDFHelper h, VString types, VString allTypes)
- Parameters:
h-types-allTypes-
-
fixCategory
protected void fixCategory(XJDFHelper h, VString types, VString allTypes)
- Parameters:
h-types-allTypes-
-
getJobPartID
protected java.lang.String getJobPartID(XJDFHelper xjdf, VString types)
-
splitTypes
protected java.util.Vector<VString> splitTypes(XJDFHelper root)
- Parameters:
root-- Returns:
- the list of types to split into, null is a flag for no split
-
calcTypes
protected VString calcTypes(XJDFHelper root)
ensure that we have the appropriate types setting for the given product list- Parameters:
root-- Returns:
-
addGroup
public void addGroup(VString group)
add a group to split together- Parameters:
group-
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-