ch.elca.el4j.services.xmlmerge.mapper
Class NamespaceFilterMapper

java.lang.Object
  extended by ch.elca.el4j.services.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)
File-location:
NamespaceFilterMapper
Last check-in date:
2009-08-04 15:22:05 +0200 (Di, 04. Aug 2009) by swismer for revision 3881

Constructor Summary
NamespaceFilterMapper(String filteredNamespace)
          Creates a new NamespaceFilterMapper.
 
Method Summary
 org.jdom.Element map(org.jdom.Element patchElement)
          Transforms the given element to another element by changing some nested content or attributes.
 void setFilteredNamespace(org.jdom.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 Detail

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 Detail

map

public org.jdom.Element map(org.jdom.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.jdom.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.


Copyright © 2005-2011 ELCA. All Rights Reserved.