org.netbeans.modules.xml.xdm/1 1.19.0 1

org.netbeans.modules.xml.xdm.visitor
Class NamespaceRefactorVisitor

java.lang.Object
  extended by org.netbeans.modules.xml.xdm.visitor.DefaultVisitor
      extended by org.netbeans.modules.xml.xdm.visitor.ChildVisitor
          extended by org.netbeans.modules.xml.xdm.visitor.NamespaceRefactorVisitor
All Implemented Interfaces:
XMLNodeVisitor

public class NamespaceRefactorVisitor
extends ChildVisitor


Nested Class Summary
static class NamespaceRefactorVisitor.NamespaceCheck
           
 
Constructor Summary
NamespaceRefactorVisitor()
          Deprecated. use constructor with QName-valued attributes map. Prefix refactoring should not without complete map.
NamespaceRefactorVisitor(XDMModel xdmModel)
           
 
Method Summary
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)
           
 
Methods inherited from class org.netbeans.modules.xml.xdm.visitor.ChildVisitor
visitNode
 
Methods inherited from class org.netbeans.modules.xml.xdm.visitor.DefaultVisitor
visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceRefactorVisitor

public NamespaceRefactorVisitor()
Deprecated. use constructor with QName-valued attributes map. Prefix refactoring should not without complete map.


NamespaceRefactorVisitor

public NamespaceRefactorVisitor(XDMModel xdmModel)
Method Detail

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)

org.netbeans.modules.xml.xdm/1 1.19.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.