public class NamespaceRefactorVisitor extends ChildVisitor
Modifier and Type | Class and Description |
---|---|
static class |
NamespaceRefactorVisitor.NamespaceCheck |
Constructor and Description |
---|
NamespaceRefactorVisitor()
Deprecated.
use constructor with QName-valued attributes map. Prefix refactoring
should not without complete map.
|
NamespaceRefactorVisitor(XDMModel xdmModel) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isDefaultPrefix(String prefix) |
void |
refactor(NodeImpl tree,
String namespace,
String newPrefix,
List<Node> ancestors) |
static List<String> |
refactorAttributeValue(Attribute attr,
String namespace,
String prefix,
List<Node> context,
XDMModel model) |
void |
visit(Attribute attr) |
void |
visit(Element e) |
visitNode
visit, visit
@Deprecated public NamespaceRefactorVisitor()
public NamespaceRefactorVisitor(XDMModel xdmModel)
public void refactor(NodeImpl tree, String namespace, String newPrefix, List<Node> ancestors)
public void visit(Element e)
visit
in interface XMLNodeVisitor
visit
in class DefaultVisitor
public void visit(Attribute attr)
visit
in interface XMLNodeVisitor
visit
in class DefaultVisitor
public static boolean isDefaultPrefix(String prefix)