Java XML QName Create createQName(String localPart)

Here you can find the source of createQName(String localPart)

Description

create Q Name

License

Open Source License

Declaration

public static QName createQName(String localPart) 

Method Source Code

//package com.java2s;
/**/*w w w. ja va2s  . c om*/
 * Copyright (c) 2013, 2014 Denis Nikiforov.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *    Denis Nikiforov - initial API and implementation
 */

import javax.xml.namespace.QName;

public class Main {
    public static QName createQName(String localPart) {
        return new QName(localPart);
    }

    public static QName createQName(String namespaceURI, String localPart) {
        return new QName(namespaceURI, localPart);
    }

    public static QName createQName(String namespaceURI, String localPart, String prefix) {
        return new QName(namespaceURI, localPart, prefix);
    }
}

Related

  1. convertJavaTypeToQName(Type type)
  2. convertStringsToQNames(List expandedQNames)
  3. convertStringToQName(String expandedQName)
  4. createQName(Node node)
  5. createQName(String namespaceUri, String localPart, String prefix)
  6. createQName(String qnameString)
  7. createQName(String qualifiedName, Node node)
  8. createQNameWithCustomNamespace(String key)