Example usage for org.dom4j DocumentHelper createQName

List of usage examples for org.dom4j DocumentHelper createQName

Introduction

In this page you can find the example usage for org.dom4j DocumentHelper createQName.

Prototype

public static QName createQName(String localName, Namespace namespace) 

Source Link

Usage

From source file:org.jivesoftware.xmpp.workgroup.request.UserRequest.java

License:Open Source License

@Override
public Element getSessionElement() {
    QName qName = DocumentHelper.createQName("session",
            DocumentHelper.createNamespace("", "http://jivesoftware.com/protocol/workgroup"));
    Element sessionElement = DocumentHelper.createElement(qName);
    sessionElement.addAttribute("id", requestID);
    sessionElement.addAttribute("workgroup", getWorkgroup().getJID().toString());
    return sessionElement;
}

From source file:org.neuclear.asset.contracts.AssetGlobals.java

License:Open Source License

public static QName createQName(final String name) {
    return DocumentHelper.createQName(name, NS_ASSET);
}

From source file:org.neuclear.asset.orders.TransferGlobals.java

License:Open Source License

public static QName createQName(final String name) {
    return DocumentHelper.createQName(name, createNameSpace());
}

From source file:org.neuclear.exchange.contracts.ExchangeAgentGlobals.java

License:Open Source License

public static QName createQName(final String name) {
    return DocumentHelper.createQName(name, NS_EXAGENT);
}

From source file:org.neuclear.id.builders.AuthenticationTicketBuilder.java

License:Open Source License

public AuthenticationTicketBuilder(final Date validto, final String site) throws InvalidNamedObjectException {
    super(DocumentHelper.createQName(AuthenticationTicket.TAG_NAME, AuthenticationTicket.NS_NSAUTH));
    createAttribute("validto", TimeTools.formatTimeStamp(validto));
    createAttribute("sitehref", site);
}

From source file:org.neuclear.xml.AbstractElementProxy.java

License:LGPL

protected AbstractElementProxy(final String name, final Namespace ns) {
    this(DocumentHelper.createQName(name, ns));
}

From source file:org.neuclear.xml.AbstractElementProxy.java

License:LGPL

/**
 * Creates a QName in this object namespace
 * /*from  w w  w.  j a v a  2s . co m*/
 * @param child 
 * @return 
 */
protected final QName createQName(final String child) {
    return DocumentHelper.createQName(child, this.element.getNamespace());
}