Java XML QName copyQName(QName inName)

Here you can find the source of copyQName(QName inName)

Description

copy Q Name

License

Open Source License

Declaration

public static QName copyQName(QName inName) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2006-2010 eBay Inc. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *******************************************************************************/

import javax.xml.namespace.QName;

public class Main {
    public static QName copyQName(QName inName) {
        if (inName == null) {
            return null;
        }//w  w  w .j  a va 2 s . com
        return new QName(inName.getNamespaceURI(), inName.getLocalPart());
    }
}

Related

  1. concatAttributes(List startElements, QName attrName)
  2. contains(final QName[] qnames, final QName qname, final String defaultNamespace)
  3. convertQNameListToNamespaceToLocalNameList( List list)
  4. convertQNameToFullname(QName qn)
  5. convertToQName(String source, String nameSpaceuri)
  6. crackQName(String qName)
  7. createCollection(QName... qnames)
  8. createRootElement(T value, QName q_name, Class elementClass)
  9. extract(final List anyList, final Class classType, final QName eltName)

    HOME | Copyright © www.java2s.com 2016