Package org.cip4.jdflib.extensions
Class AbstractXJDFSplit
- java.lang.Object
-
- org.cip4.jdflib.extensions.AbstractXJDFSplit
-
- All Implemented Interfaces:
IXJDFSplit
- Direct Known Subclasses:
ProcessXJDFSplit
public abstract class AbstractXJDFSplit extends java.lang.Object implements IXJDFSplit
-
-
Constructor Summary
Constructors Constructor Description AbstractXJDFSplit()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected SetHelpercheckCPI(SetHelper set, VString types, VString allTypes)protected SetHelpercheckProcessUsage(SetHelper set, VString types)protected SetHelpercheckProduct(SetHelper set, VString types)protected voidconsolidateExchangeResource(XJDFHelper h0, SetHelper set0, XJDFHelper h1, SetHelper set1)remove all but the last exchange resource and replace internal links with dummiesprotected voidconsolidateExchangeResources(java.util.Vector<XJDFHelper> v)protected voidfixCPI(SetHelper set, LinkInfo li)fix the combinedprocessindex - initial implementation is delete onlyprotected voidfixInOutLink(SetHelper set, LinkInfoMap map)protected voidfixInOutLinks(XJDFHelper xjdf)Deprecated.protected voidfixInOutLinks(XJDFHelper xjdf, VString allTypes)update the Usage of resource links according to the value of typesprotected voidfixUsage(SetHelper set, LinkInfo li)protected LinkInfoMapgetLinkInfoMap(XJDFHelper xjdf)protected java.lang.StringgetName(SetHelper set)we need to map to jdf names in order to use linkmapprotected VStringgetProductResources()protected SetHelpermatchesType(SetHelper set, VString types)Deprecated.protected SetHelpermatchesType(SetHelper set, VString types, VString allTypes)abstract java.util.Collection<XJDFHelper>splitXJDF(XJDFHelper root)
-
-
-
Method Detail
-
splitXJDF
public abstract java.util.Collection<XJDFHelper> splitXJDF(XJDFHelper root)
- Specified by:
splitXJDFin interfaceIXJDFSplit- Parameters:
root- the main or root XJDF to split- Returns:
- See Also:
IXJDFSplit.splitXJDF(org.cip4.jdflib.extensions.XJDFHelper)
-
fixInOutLinks
@Deprecated protected void fixInOutLinks(XJDFHelper xjdf)
Deprecated.update the Usage of resource links according to the value of types- Parameters:
xjdf-
-
fixInOutLinks
protected void fixInOutLinks(XJDFHelper xjdf, VString allTypes)
update the Usage of resource links according to the value of types- Parameters:
xjdf-
-
matchesType
@Deprecated protected SetHelper matchesType(SetHelper set, VString types)
Deprecated.- Parameters:
set- the set to keep or zapptypes- from the xjdf rootallTypes-- Returns:
- null if deleted or no further processing is required
-
matchesType
protected SetHelper matchesType(SetHelper set, VString types, VString allTypes)
- Parameters:
set- the set to keep or zapptypes- from the xjdf rootallTypes-- Returns:
- null if deleted or no further processing is required
-
checkProduct
protected SetHelper checkProduct(SetHelper set, VString types)
- Parameters:
set-types-- Returns:
-
getProductResources
protected VString getProductResources()
- Returns:
-
checkCPI
protected SetHelper checkCPI(SetHelper set, VString types, VString allTypes)
- Parameters:
set-types-allTypes-- Returns:
-
getLinkInfoMap
protected LinkInfoMap getLinkInfoMap(XJDFHelper xjdf)
- Parameters:
xjdf-- Returns:
-
fixInOutLink
protected void fixInOutLink(SetHelper set, LinkInfoMap map)
- Parameters:
set-map-
-
getName
protected java.lang.String getName(SetHelper set)
we need to map to jdf names in order to use linkmap- Parameters:
set-- Returns:
-
fixCPI
protected void fixCPI(SetHelper set, LinkInfo li)
fix the combinedprocessindex - initial implementation is delete only- Parameters:
set-li-
-
consolidateExchangeResources
protected void consolidateExchangeResources(java.util.Vector<XJDFHelper> v)
- Parameters:
v-
-
consolidateExchangeResource
protected void consolidateExchangeResource(XJDFHelper h0, SetHelper set0, XJDFHelper h1, SetHelper set1)
remove all but the last exchange resource and replace internal links with dummies- Parameters:
h0-set0-h1-set1-
-
-