org.cip4.jdflib.elementwalker
Class FixVersion.WalkState

java.lang.Object
  extended by org.cip4.jdflib.elementwalker.BaseWalker
      extended by org.cip4.jdflib.elementwalker.FixVersion.WalkElement
          extended by org.cip4.jdflib.elementwalker.FixVersion.WalkState
All Implemented Interfaces:
Comparable<BaseWalker>, IWalker
Enclosing class:
FixVersion

public class FixVersion.WalkState
extends FixVersion.WalkElement

Author:
Dr. Rainer Prosi, Heidelberger Druckmaschinen AG June 7, 2009

Field Summary
 
Fields inherited from class org.cip4.jdflib.elementwalker.BaseWalker
depth, log
 
Constructor Summary
FixVersion.WalkState()
           
 
Method Summary
 boolean matches(KElement toCheck)
          this is the check whether or not to use this walker for a given element should be overwritten
 KElement walk(KElement e1, KElement trackElem)
          the mother routine for walking....
 
Methods inherited from class org.cip4.jdflib.elementwalker.BaseWalker
compareTo, finalizeWalk, getDepth, prepareWalk, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FixVersion.WalkState

public FixVersion.WalkState()
Method Detail

matches

public boolean matches(KElement toCheck)
Description copied from class: BaseWalker
this is the check whether or not to use this walker for a given element should be overwritten

Overrides:
matches in class FixVersion.WalkElement
Parameters:
toCheck -
Returns:
true if matches
See Also:
BaseWalker.matches(org.cip4.jdflib.core.KElement)

walk

public KElement walk(KElement e1,
                     KElement trackElem)
Description copied from class: BaseWalker
the mother routine for walking....

Specified by:
walk in interface IWalker
Overrides:
walk in class FixVersion.WalkElement
Parameters:
e1 - - the element to track
trackElem - - always null
Returns:
the element to continue walking
See Also:
version fixing routine for JDF uses heuristics to modify this element and its children to be compatible with a given version in general, it will be able to move from low to high versions but potentially fail when attempting to move from higher to lower versions


Copyright © 2013. All Rights Reserved.