Class WalkResource
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.BaseWalker
-
- org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
-
- org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkJDFElement
-
- org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkResource
-
- All Implemented Interfaces:
java.lang.Comparable<BaseWalker>,IWalker
- Direct Known Subclasses:
WalkApprovalParams,WalkApprovalSuccess,WalkAssembly,WalkBinderySignature,WalkChannelBindingParams,WalkCoilBindingParams,WalkColor,WalkColorantControl,WalkColorCorrectionParams,WalkColorSpaceConversionParams,WalkCompany,WalkComponent,WalkContact,WalkConventionalPrintingParams,WalkCustomerInfo,WalkCuttingParams,WalkDeliveryIntent,WalkDevice,WalkDieLayout,WalkDigitalPrintingParams,WalkEmbossingParams,WalkEmployee,WalkExposeMedia,WalkFileSpec,WalkHoleMakingParams,WalkImageSetterParams,WalkInk,WalkInkZoneCalculationParams,WalkIntentResource,WalkLabelingParams,WalkLaminatingParams,WalkLayout,WalkLayoutElement,WalkMiscConsumable,WalkNodeInfo,WalkPageData,WalkPreview,WalkPreviewGenerationParams,WalkRunList,WalkShapeCuttingParams,WalkStrippingParams,WalkTransferCurve,WalkUsageCounter,WalkVarnishingParams
public class WalkResource extends WalkJDFElement
-
-
Field Summary
-
Fields inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
jdfToXJDF
-
Fields inherited from class org.cip4.jdflib.elementwalker.BaseWalker
depth, log
-
-
Constructor Summary
Constructors Constructor Description WalkResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetClassName(JDFResource r)protected booleanisProductResource(JDFResource linkTarget)booleanmatches(KElement toCheck)this is the check whether or not to use this walker for a given element should be overwrittenprotected voidmoveAttribsToBase(KElement xjdf, KElement newResLeaf)protected voidmoveToDetails(KElement eNew, java.lang.String details, java.lang.String key, java.lang.String oldKey)protected voidupdateAttributes(JDFAttributeMap map)KElementwalk(KElement jdf, KElement xjdf)the mother routine for walking....-
Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkJDFElement
checkAllLeaves, getLeaves, getRefName, getResID, getSet, matchesRootID, moveToAmountPool, setAmountPool, setBaseResource, setLeafAttributes, setResource, setSetAttributes, updateModule
-
Methods inherited from class org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
getXJDFName, mustInline, removeUnusedElements, safeRename, setAttributes, setParent
-
Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, getElementNames, prepareWalk, toString
-
-
-
-
Method Detail
-
walk
public KElement walk(KElement jdf, KElement xjdf)
Description copied from class:BaseWalkerthe mother routine for walking....- Specified by:
walkin interfaceIWalker- Overrides:
walkin classWalkJDFElement- Parameters:
jdf-xjdf-- Returns:
- the created resource
- See Also:
IWalker.walk(KElement, KElement)
-
updateAttributes
protected void updateAttributes(JDFAttributeMap map)
- Overrides:
updateAttributesin classWalkJDFElement- See Also:
WalkJDFElement.updateAttributes(org.cip4.jdflib.datatypes.JDFAttributeMap)
-
moveAttribsToBase
protected void moveAttribsToBase(KElement xjdf, KElement newResLeaf)
- Parameters:
xjdf-newResLeaf-
-
moveToDetails
protected void moveToDetails(KElement eNew, java.lang.String details, java.lang.String key, java.lang.String oldKey)
- Parameters:
eNew-details-key-oldKey-
-
getClassName
protected java.lang.String getClassName(JDFResource r)
- Parameters:
r-- Returns:
-
matches
public boolean matches(KElement toCheck)
Description copied from class:BaseWalkerthis is the check whether or not to use this walker for a given element should be overwritten- Overrides:
matchesin classWalkJDFElement- Parameters:
toCheck-- Returns:
- true if it matches
- See Also:
BaseWalker.matches(org.cip4.jdflib.core.KElement)
-
isProductResource
protected boolean isProductResource(JDFResource linkTarget)
- Parameters:
linkTarget-- Returns:
-
-