Class AttributeReplacer


public class AttributeReplacer extends BaseElementWalker
  • Field Details

  • Constructor Details

    • AttributeReplacer

      public AttributeReplacer(String attributeName, String newValue, String elementExpression)
      Parameters:
      attributeName - the attribute to replace
      newValue - the new value, if null the attribute is removed
      elementExpression - the elements to match, if null all match
    • AttributeReplacer

      public AttributeReplacer(JDFAttributeMap setMap, String elementExpression)
      Parameters:
      setMap - the map of attributes to set
      elementExpression - the elements to match, if null all match
  • Method Details

    • replace

      public void replace(KElement root)
      erase all unlinked resources that are in n
      Parameters:
      root - the element to clean
    • setMap

      public void setMap(JDFAttributeMap map)
      Parameters:
      map - the attribute map to set