java.lang.Object
org.cip4.jdflib.elementwalker.BaseWalker
org.cip4.jdflib.extensions.xjdfwalker.jdftoxjdf.WalkElement
All Implemented Interfaces:
Comparable<BaseWalker>, IWalker
Direct Known Subclasses:
WalkForeignElement, WalkIgnore, WalkJDFElement

public class WalkElement extends BaseWalker
  • Field Details

  • Constructor Details

    • WalkElement

      public WalkElement()
  • Method Details

    • setParent

      public void setParent(JDFToXJDF parent)
      fills this into the factory
      Parameters:
      parent -
    • walk

      public KElement walk(KElement jdf, KElement xjdf)
      Description copied from class: BaseWalker
      the mother routine for walking....
      Specified by:
      walk in interface IWalker
      Overrides:
      walk in class BaseWalker
      Parameters:
      xjdf -
      jdf - the element to walk
      Returns:
      true if must continue
      See Also:
    • getXJDFName

      protected String getXJDFName(KElement jdf)
      the new name
      Parameters:
      jdf -
      Returns:
    • setAttributes

      protected void setAttributes(KElement jdf, KElement eNew)
      Parameters:
      jdf -
      eNew -
    • updateAttributes

      protected void updateAttributes(JDFAttributeMap map)
      Parameters:
      map -
    • mustInline

      protected boolean mustInline(String refLocalName)
      Parameters:
      refLocalName -
      Returns:
      true if must inline refLocalName
    • removeUnusedElements

      protected void removeUnusedElements(KElement jdf)
      zapp unused elements
      Parameters:
      jdf -
    • safeRename

      protected KElement safeRename(KElement original, String newName)
      Parameters:
      original - the original element
      newName - the new name
      Returns: