public class ChangeNamespacePrefixProcessor extends Object implements NodeProcessor
<xs:element ref="oldPrefix:aRequiredElementInTheOldPrefixNamespace"/>
is altered to
<xs:element ref="newPrefix:aRequiredElementInTheOldPrefixNamespace"/>
Constructor and Description |
---|
ChangeNamespacePrefixProcessor(String oldPrefix,
String newPrefix)
Creates a new ChangeNamespacePrefixProcessor providing the oldPrefix
which should be replaced by the newPrefix.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Node aNode)
Defines if this visitor should process the provided node.
|
void |
process(Node aNode)
Processes the provided DOM Node.
|
public ChangeNamespacePrefixProcessor(String oldPrefix, String newPrefix)
oldPrefix
- The old/current namespace prefixnewPrefix
- The new/substituted namespace prefixpublic boolean accept(Node aNode)
accept
in interface NodeProcessor
aNode
- The DOM node to process.true
if the provided Node should be processed by this NodeProcessor.public void process(Node aNode)
process
in interface NodeProcessor
aNode
- The DOM Node to process.Copyright © 2005–2014 Codehaus. All rights reserved.