Example usage for org.jdom2 Namespace equals

List of usage examples for org.jdom2 Namespace equals

Introduction

In this page you can find the example usage for org.jdom2 Namespace equals.

Prototype

@Override
public boolean equals(final Object ob) 

Source Link

Document

This tests for equality - Two Namespaces are equal if and only if their URIs are byte-for-byte equals.

Usage

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;
}