Class NamespaceFilterMapper

java.lang.Object
ch.galinet.xml.xmlmerge.mapper.NamespaceFilterMapper
All Implemented Interfaces:
Mapper, Operation

public class NamespaceFilterMapper extends Object implements Mapper
Filters out elements and attributes with a specified namespace.
Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
  • Constructor Summary

    Constructors
    Constructor
    Description
    NamespaceFilterMapper(String filteredNamespace)
    Creates a new NamespaceFilterMapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jdom2.Element
    map(org.jdom2.Element patchElement)
    Transforms the given element to another element by changing some nested content or attributes.
    void
    setFilteredNamespace(org.jdom2.Namespace namespace)
    Sets the namespace defining the elements and attributes to be filtered out.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NamespaceFilterMapper

      public NamespaceFilterMapper(String filteredNamespace)
      Creates a new NamespaceFilterMapper.
      Parameters:
      filteredNamespace - String representing the namespace defining the elements and attributes to be filtered out
  • Method Details

    • map

      public org.jdom2.Element map(org.jdom2.Element patchElement)
      Transforms the given element to another element by changing some nested content or attributes.
      Specified by:
      map in interface Mapper
      Parameters:
      patchElement - the element to transform
      Returns:
      the transformed element
    • setFilteredNamespace

      public void setFilteredNamespace(org.jdom2.Namespace namespace)
      Sets the namespace defining the elements and attributes to be filtered out.
      Parameters:
      namespace - The namespace defining the elements and attributes to be filtered out.