List of usage examples for org.jdom2 Namespace equals
@Override public boolean equals(final Object ob)
Namespaces
are equal if and only if their URIs are byte-for-byte equals. From source file:se.miun.itm.input.util.xml.XPathProcessor.java
License:Open Source License
public static String correctNamespaceInPUT(String expression, Namespace nameSpace) { if (!nameSpace.equals(Namespace.NO_NAMESPACE)) { for (int i = 0; i < Q.DESIGN_SPACE_ELEMENT_IDS.length; i++) { expression = expression.replace(Q.DESIGN_SPACE_ELEMENT_IDS[i], Q.DESIGN_SPACE_NAMESPACE.getPrefix() + ":" + Q.DESIGN_SPACE_ELEMENT_IDS[i]); }//w w w . jav a2s. c om } return expression; }