Package ch.galinet.xml.xmlmerge.mapper
Class NamespaceFilterMapper
java.lang.Object
ch.galinet.xml.xmlmerge.mapper.NamespaceFilterMapper
Filters out elements and attributes with a specified namespace.
- Author:
- Laurent Bovet (LBO), Alex Mathey (AMA)
-
Constructor Summary
ConstructorsConstructorDescriptionNamespaceFilterMapper(String filteredNamespace) Creates a new NamespaceFilterMapper. -
Method Summary
Modifier and TypeMethodDescriptionorg.jdom2.Elementmap(org.jdom2.Element patchElement) Transforms the given element to another element by changing some nested content or attributes.voidsetFilteredNamespace(org.jdom2.Namespace namespace) Sets the namespace defining the elements and attributes to be filtered out.
-
Constructor Details
-
NamespaceFilterMapper
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. -
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.
-