Examples of addChildElement()


Examples of org.teiid.query.mapping.xml.MappingElement.addChildElement()

       
        MappingElement n2 = m1.addChildElement(new MappingElement("n2")); //$NON-NLS-1$
        n2.setSource("vm1.g2"); //$NON-NLS-1$
        n2.addStagingTable("tm1.g1"); //$NON-NLS-1$

        n2.addChildElement(new MappingElement("leaf1", "vm1.g1.e1")); //$NON-NLS-1$ //$NON-NLS-2$
       
        return doc;
    }

    private static MappingDocument doc4() {
View Full Code Here

Examples of org.teiid.query.mapping.xml.MappingSequenceNode.addChildElement()

        MappingCriteriaNode crit22 = choice2.addCriteriaNode(new MappingCriteriaNode());
        crit22.addChildElement(new MappingElement("c2_Criteria_2")).setExclude(true); //$NON-NLS-1$
       
        MappingSequenceNode seq1 = root.addSequenceNode(new MappingSequenceNode());
        seq1.addChildElement(new MappingElement("seq1_element1", "nis_seq1_element1")) //$NON-NLS-1$ //$NON-NLS-2$
            .setExclude(true);
        MappingElement seq1_e2 = seq1.addChildElement(new MappingElement("seq1_element2", "nis_seq1_element2")); //$NON-NLS-1$ //$NON-NLS-2$
        seq1_e2.setNillable(true);
               
        MappingElement n2 = root.addChildElement(new MappingElement("element2")); //$NON-NLS-1$
View Full Code Here

Examples of org.teiid.query.mapping.xml.MappingSequenceNode.addChildElement()

        crit22.addChildElement(new MappingElement("c2_Criteria_2")).setExclude(true); //$NON-NLS-1$
       
        MappingSequenceNode seq1 = root.addSequenceNode(new MappingSequenceNode());
        seq1.addChildElement(new MappingElement("seq1_element1", "nis_seq1_element1")) //$NON-NLS-1$ //$NON-NLS-2$
            .setExclude(true);
        MappingElement seq1_e2 = seq1.addChildElement(new MappingElement("seq1_element2", "nis_seq1_element2")); //$NON-NLS-1$ //$NON-NLS-2$
        seq1_e2.setNillable(true);
               
        MappingElement n2 = root.addChildElement(new MappingElement("element2")); //$NON-NLS-1$
        n2.addCommentNode(new MappingCommentNode("this is comment")); //$NON-NLS-1$
        MappingAttribute attr1 = new MappingAttribute("element2_attribute1"); //$NON-NLS-1$
View Full Code Here

Examples of org.teiid.query.mapping.xml.MappingSourceNode.addChildElement()

    public void testTagRoot() {
        MappingDocument doc = new MappingDocument("UTF-16", false); //$NON-NLS-1$
        MappingSourceNode source = new MappingSourceNode("source"); //$NON-NLS-1$
        doc.addSourceNode(source);
        MappingElement tagroot = new MappingElement("test"); //$NON-NLS-1$
        source.addChildElement(tagroot);
       
        assertTrue(doc.getRootNode() == source);
        assertTrue(doc.getTagRootElement() == tagroot);
       
    }   
View Full Code Here

Examples of org.xmpp.muc.Invitation.addChildElement()

            // Invite the Agent to the new room
            Invitation invitation = new Invitation(agent.getJID().toString(), sessionID);
            invitation.setTo(roomName);
            invitation.setFrom(getFullJID());
            // Add workgroup extension that includes the JID of the user that made the request
            Element element = invitation.addChildElement("offer", "http://jabber.org/protocol/workgroup");
            element.addAttribute("jid", userJID);
            // Add custom extension that includes the sessionID
            element = invitation.addChildElement("session", "http://jivesoftware.com/protocol/workgroup");
            element.addAttribute("workgroup", sessionWorkgroup.getJID().toString());
            element.addAttribute("id", sessionID);
View Full Code Here

Examples of org.xmpp.packet.Message.addChildElement()

    // Generate an explicit Message receipt.
    Message response = new Message();
    response.setTo(packet.getFrom());
    response.setID(packet.getID());
    response.setFrom(packet.getTo());
    response.addChildElement("received", XmppNamespace.NAMESPACE_XMPP_RECEIPTS);
    server1.manager.receivePacket(response);

    // Confirm that an error callback is invoked.
    ArgumentCaptor<FederationError> returnedError = ArgumentCaptor.forClass(FederationError.class);
    verify(callback).error(returnedError.capture());
View Full Code Here

Examples of org.xmpp.packet.Presence.addChildElement()

    presence.setShow(Presence.Show.away);
    String servername = host.name.replaceAll("\\^\\d", "");
    presence.setStatus("Playing on server " + servername + " with "
        + host.nrofracers + " other racers. (Servername with colors: "
        + host.name + ")");
    Element x = presence.addChildElement("x",
        "http://goim.sphene.net/gameStatus");
    x.addAttribute("game", "lfss2");
    x.addAttribute("target", "127.0.0.1:100"); // We need to add a dummy
                          // target.
    x.addAttribute("servername", host.name);
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.