Class ChangeFilenameProcessor
java.lang.Object
org.codehaus.mojo.jaxb2.schemageneration.postprocessing.schemaenhancement.ChangeFilenameProcessor
- All Implemented Interfaces:
NodeProcessor
NodeProcessor which alters the filename for generated XML schema files. The ChangeNamespacePrefixProcessor alters the following:
- Schema Import Definitions
- <xs:import namespace="http://some/namespace" schemaLocation="schema2.xsd"/> is altered to <xs:import namespace="http://some/namespace" schemaLocation="anotherFile.xsd"/>
- Since:
- 1.4
- Author:
- Lennart Jörelid
-
Constructor Summary
ConstructorsConstructorDescriptionChangeFilenameProcessor(Map<String, String> namespaceUriToNewFilenameMap) Creates a new ChangeFilenameProcessor using the provided map relating namespace URIs to desired new file names. -
Method Summary
-
Constructor Details
-
ChangeFilenameProcessor
Creates a new ChangeFilenameProcessor using the provided map relating namespace URIs to desired new file names.
- Parameters:
namespaceUriToNewFilenameMap- A map relating namespace URIs [key] to new/desired schema filenames [value].
-
-
Method Details
-
accept
Defines if this visitor should process the provided node.- Specified by:
acceptin interfaceNodeProcessor- Parameters:
aNode- The DOM node to process.- Returns:
trueif the provided Node should be processed by this NodeProcessor.
-
process
Processes the provided DOM Node.- Specified by:
processin interfaceNodeProcessor- Parameters:
aNode- The DOM Node to process.
-