|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.jaxb2.helpers.ChangeNamespacePrefixProcessor
public class ChangeNamespacePrefixProcessor
NodeProcessor which alters the namespace prefix for all relevant Nodes within an XML document Node. The ChangeNamespacePrefixProcessor alters namespace prefixes in 3 logical places:
<xs:element ref="oldPrefix:aRequiredElementInTheOldPrefixNamespace"/> is altered to
<xs:element ref="newPrefix:aRequiredElementInTheOldPrefixNamespace"/>
| Constructor Summary | |
|---|---|
ChangeNamespacePrefixProcessor(String oldPrefix,
String newPrefix)
Creates a new ChangeNamespacePrefixProcessor providing the oldPrefix which should be replaced by the newPrefix. |
|
| Method Summary | |
|---|---|
boolean |
accept(Node aNode)
Defines if this visitor should process the provided node. |
void |
process(Node aNode)
Processes the provided DOM Node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeNamespacePrefixProcessor(String oldPrefix,
String newPrefix)
oldPrefix - The old/current namespace prefixnewPrefix - The new/substituted namespace prefix| Method Detail |
|---|
public boolean accept(Node aNode)
accept in interface NodeProcessoraNode - The DOM node to process.
true if the provided Node should be processed by this NodeProcessor.public void process(Node aNode)
process in interface NodeProcessoraNode - The DOM Node to process.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||