Package org.cip4.jdflib.elementwalker
Class EnsureNSUri
java.lang.Object
org.cip4.jdflib.elementwalker.ElementWalker
org.cip4.jdflib.elementwalker.BaseElementWalker
org.cip4.jdflib.elementwalker.EnsureNSUri
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassthe resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classes -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
getFactoryMethods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
walkTree, walkTreeKidsFirst
-
Field Details
-
nsMap
-
aliasMap
-
-
Constructor Details
-
EnsureNSUri
public EnsureNSUri()
-
-
Method Details
-
addNS
add a prefix / uri pair- Parameters:
prefix- the namespace prefix - may be null for empty namespaceuri- the URI must not be null- Throws:
IllegalArgumentException- if uri is null
-
addAlias
add a an alias- Parameters:
badPrefix- the ns prefix to rename (e.g. ns1)goodPrefix- the destination prefix
-
walk
- Parameters:
root-
-
toString
- Overrides:
toStringin classElementWalker- See Also:
-