Package org.apache.axiom.om.impl.llom.factory

Examples of org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMNamespace()


public class AttributeImplTest extends TestCase {
    public void testQNames() throws Exception {
        String ATTR = "attr";
        String NSURI = "http://ns1";
        OMFactory fac = new OMLinkedListImplFactory();
        OMNamespace ns = fac.createOMNamespace(NSURI, null);
        OMAttribute attr = new OMAttributeImpl(ATTR, ns, "value", fac);
        QName qname = attr.getQName();
        assertEquals("Wrong namespace", NSURI, qname.getNamespaceURI());
        assertEquals("Wrong localPart", ATTR, qname.getLocalPart());
        assertEquals("Wrong prefix", "", qname.getPrefix());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.