org.netbeans.modules.xml.xdm.visitor
Class NamespaceRefactorVisitor
java.lang.Object
org.netbeans.modules.xml.xdm.visitor.DefaultVisitor
org.netbeans.modules.xml.xdm.visitor.ChildVisitor
org.netbeans.modules.xml.xdm.visitor.NamespaceRefactorVisitor
- All Implemented Interfaces:
- XMLNodeVisitor
public class NamespaceRefactorVisitor
- extends ChildVisitor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespaceRefactorVisitor
public NamespaceRefactorVisitor()
- Deprecated. use constructor with QName-valued attributes map. Prefix refactoring
should not without complete map.
NamespaceRefactorVisitor
public NamespaceRefactorVisitor(XDMModel xdmModel)
refactor
public void refactor(NodeImpl tree,
String namespace,
String newPrefix,
List<Node> ancestors)
visit
public void visit(Element e)
- Specified by:
visit in interface XMLNodeVisitor- Overrides:
visit in class DefaultVisitor
visit
public void visit(Attribute attr)
- Specified by:
visit in interface XMLNodeVisitor- Overrides:
visit in class DefaultVisitor
isDefaultPrefix
public static boolean isDefaultPrefix(String prefix)
refactorAttributeValue
public static List<String> refactorAttributeValue(Attribute attr,
String namespace,
String prefix,
List<Node> context,
XDMModel model)