Example usage for javax.xml.namespace QName valueOf

List of usage examples for javax.xml.namespace QName valueOf

Introduction

In this page you can find the example usage for javax.xml.namespace QName valueOf.

Prototype

public static QName valueOf(String qNameAsString) 

Source Link

Document

<p><code>QName</code> derived from parsing the formatted <code>String</code>.</p> <p>If the <code>String</code> is <code>null</code> or does not conform to #toString() QName.toString() formatting, an <code>IllegalArgumentException</code> is thrown.</p> <p><em>The <code>String</code> <strong>MUST</strong> be in the form returned by #toString() QName.toString() .</em></p> <p>The commonly accepted way of representing a <code>QName</code> as a <code>String</code> was <a href="http://jclark.com/xml/xmlns.htm">defined</a> by James Clark.

Usage

From source file:org.apache.ode.bpel.elang.xpath20.runtime.XsdTypesTest.java

public void testEmptyDateTime() throws Exception {
    XPathFactoryImpl xpf = new XPathFactoryImpl();
    JaxpVariableResolver jvr = new JaxpVariableResolver(null, null, xpf.getConfiguration());
    Object o = jvr.getSimpleContent(
            DOMUtils.stringToDOM("<temporary-simple-type-wrapper></temporary-simple-type-wrapper>"),
            QName.valueOf("{http://www.w3.org/2001/XMLSchema}dateTime"));
    __log.debug(o);/*  w w  w .j a v a2s  . c  om*/
    assertTrue(o.toString().equals(""));
}

From source file:org.apache.ode.dao.jpa.bpel.MessageDAOImpl.java

public QName getType() {
    return _type == null ? null : QName.valueOf(_type);
}

From source file:org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl.java

public QName getCallee() {
    return _callee == null ? null : QName.valueOf(_callee);
}

From source file:org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl.java

public QName getFault() {
    return _fault == null ? null : QName.valueOf(_fault);
}

From source file:org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl.java

public QName getPortType() {
    return _portType == null ? null : QName.valueOf(_portType);
}

From source file:org.apache.ode.dao.jpa.bpel.ProcessDAOImpl.java

public QName getProcessId() {
    return QName.valueOf(_processId);
}

From source file:org.apache.ode.dao.jpa.bpel.ProcessDAOImpl.java

public QName getType() {
    return QName.valueOf(_processType);
}

From source file:org.apache.ode.daohib.bpel.MessageExchangeDaoImpl.java

public QName getPortType() {
    return _hself.getPortType() == null ? null : QName.valueOf(_hself.getPortType());
}

From source file:org.apache.ode.daohib.bpel.MessageExchangeDaoImpl.java

public QName getFault() {
    return _hself.getFault() == null ? null : QName.valueOf(_hself.getFault());
}

From source file:org.apache.ode.daohib.bpel.MessageExchangeDaoImpl.java

public QName getCallee() {
    String callee = _hself.getCallee();
    return callee == null ? null : QName.valueOf(callee);
}