Class AttributeReplacer

    • Constructor Detail

      • AttributeReplacer

        public AttributeReplacer​(java.lang.String attributeName,
                                 java.lang.String newValue,
                                 java.lang.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,
                                 java.lang.String elementExpression)
        Parameters:
        setMap - the map of attributes to set
        elementExpression - the elements to match, if null all match
    • Method Detail

      • 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