public class ChangeFilenameProcessor extends Object implements NodeProcessor
NodeProcessor which alters the filename for generated XML schema files. The ChangeNamespacePrefixProcessor alters the following:
Constructor and Description |
---|
ChangeFilenameProcessor(Map<String,String> namespaceUriToNewFilenameMap)
Creates a new ChangeFilenameProcessor using the provided map relating namespace URIs
to desired new file names.
|
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 ChangeFilenameProcessor(Map<String,String> namespaceUriToNewFilenameMap)
Creates a new ChangeFilenameProcessor using the provided map relating namespace URIs to desired new file names.
namespaceUriToNewFilenameMap
- A map relating namespace URIs [key] to
new/desired schema filenames [value].public 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–2015 MojoHaus. All rights reserved.