Example usage for javax.xml.namespace NamespaceContext interface-usage

List of usage examples for javax.xml.namespace NamespaceContext interface-usage

Introduction

In this page you can find the example usage for javax.xml.namespace NamespaceContext interface-usage.

Usage

From source file Main.java

class MyNamespaceContext implements NamespaceContext {
    public String getNamespaceURI(String prefix) {
        if ("ns".equals(prefix)) {
            return "http://www.w3.org/2005/Atom";
        }
        return null;

From source file org.wso2.carbon.humantask.core.utils.HumanTaskNamespaceContext.java

public class HumanTaskNamespaceContext implements javax.xml.namespace.NamespaceContext {
    private static final Log log = LogFactory.getLog(HumanTaskNamespaceContext.class);

    private Map<String, String> prefixToUriMap = new HashMap<String, String>();

    public HumanTaskNamespaceContext() {

From source file MainClass.java

class SimpleNamespaceContext implements NamespaceContext {
    private Map<String, String> urisByPrefix = new HashMap<String, String>();

    private Map<String, Set> prefixesByURI = new HashMap<String, Set>();

    public SimpleNamespaceContext() {

From source file org.wso2.carbon.humantask.core.api.rendering.NamespaceResolver.java

public class NamespaceResolver implements NamespaceContext {

    private static Log log = LogFactory.getLog(NamespaceResolver.class);
    private Document refDomDocument;

    public NamespaceResolver(Document referenceDoc) {

From source file org.wso2.carbon.bpel.common.NSContext.java

/**
 * Map of namespace prefixes and corresponding namespaces.
 * Used in XPath evaluations as well
 */
public class NSContext implements NamespaceContext {
    private static final Log log = LogFactory.getLog(NSContext.class);

From source file com.jkoolcloud.tnt4j.streams.utils.NamespaceMap.java

/**
 * Implements {@link NamespaceContext}, where every namespace prefix and URI relation is resolved from internally stored
 * {@link Map}.
 *
 * @version $Revision: 1 $
 */

From source file nz.co.testamation.common.util.PrefixMapNamespaceContext.java

public class PrefixMapNamespaceContext implements NamespaceContext {

    final Map<String, String> prefixNamespaceMap;

    public PrefixMapNamespaceContext(Map<String, String> prefixNamespaceMap) {
        this.prefixNamespaceMap = prefixNamespaceMap;

From source file Main.java

class UniversalNamespaceResolver implements NamespaceContext {
    private Document sourceDocument;

    public UniversalNamespaceResolver(Document document) {
        sourceDocument = document;
    }

From source file org.xchain.framework.digester.DigesterNamespaceContext.java

/**
 * @author Christian Trimble
 */
public class DigesterNamespaceContext implements NamespaceContext {
    private Map<String, String> xmlns = null;

From source file sf.net.experimaestro.utils.JSNamespaceContext.java

/**
 * A namespace context built from the current scope
 *
 * @author B. Piwowarski <benjamin@bpiwowar.net>
 * @date 6/3/13
 */