Examples of clone()


Examples of javax.servlet.sip.SipURI.clone()

  protected SipURI getOwnUri()
  {
    @SuppressWarnings("unchecked")
    List<SipURI> l = (List<SipURI>) getServletContext().getAttribute(OUTBOUND_INTERFACES);
    SipURI uri = l.get(0);
    uri = (SipURI) uri.clone();
    uri.setUser("cipango-servlet-test");
    uri.setLrParam(true);
    return uri;
  }
 
View Full Code Here

Examples of javax.servlet.sip.TelURL.clone()

    try { readOnly.setParameter("foo", "bar"); fail();} catch (IllegalStateException e) {}
    try { readOnly.removeParameter("user");   fail();} catch (IllegalStateException e) {}
    assertEquals(orig, readOnly);
    assertEquals(readOnly, orig);
    assertEquals(orig.toString(), readOnly.toString());
    URI clone = (URI) readOnly.clone();
    clone.setParameter("a", "b");
    testSerializable(readOnly);
  }

  @Test
View Full Code Here

Examples of javax.servlet.sip.URI.clone()

            } catch (ServletParseException e) {
                throw new IllegalStateException(e);
            }
        }

        return (URI) remoteTarget.clone();
    }

    public void setCharacterEncoding(String enc) {
        _setCharacterEncoding(enc);
    }
View Full Code Here

Examples of javax.sip.header.Header.clone()

  protected final SIPHeaderList<HDR> clonehlist(List<HDR> hlistToClone) {
    if (hlistToClone != null) {
      for (Iterator<HDR> it = (Iterator<HDR>) hlistToClone.iterator(); it.hasNext();) {
        Header h = it.next();
        this.hlist.add((HDR)h.clone());
      }
    }
    return this;
  }
View Full Code Here

Examples of javax.sip.message.Response.clone()

                throw new TckInternalError(
                        "Failed to regiest a SipListener with an RI SipProvider",
                        ex);
            }
            try {
                riSipProvider.sendResponse((Response) busyHere.clone());
            } catch (Throwable ex) {
                throw new TckInternalError(
                        "The TCK could not send a BUSY HERE response back to the TI",
                        ex);
            }
View Full Code Here

Examples of javax.sound.midi.MetaMessage.clone()

    /**
     * Test method clone() of class MetaMessage.
     */
    public void test_clone1() {
        MetaMessage meta = new MetaMessage();
        assertTrue(meta.clone() != meta);
        assertEquals(meta.clone().getClass(), meta.getClass());
        MetaMessage tmeta;
        tmeta = (MetaMessage) meta.clone();
        assertEquals(meta.getLength(), tmeta.getLength());
        assertEquals(meta.getMessage().length, tmeta.getMessage().length);
View Full Code Here

Examples of javax.sound.midi.ShortMessage.clone()

     * tests method clone() of class ShortMessage
     *
     */
    public void test_clone1() {
        ShortMessage message = new ShortMessage();
        assertTrue(message.clone() != message);
        assertEquals(message.clone().getClass(), message.getClass());
        ShortMessage tmessage;
        tmessage = (ShortMessage) message.clone();
        assertEquals(message.getLength(), tmessage.getLength());
        assertEquals(message.getMessage().length, tmessage.getMessage().length);
View Full Code Here

Examples of javax.sound.midi.SysexMessage.clone()

    /**
     * Test method clone() of class SysexMessage.
     */
    public void test_clone1() {
        SysexMessage message = new SysexMessage();
        assertTrue(message.clone() != message);
        assertEquals(message.clone().getClass(), message.getClass());
        SysexMessage tmessage;
        tmessage = (SysexMessage) message.clone();
        assertEquals(message.getLength(), tmessage.getLength());
        assertEquals(message.getMessage().length, tmessage.getMessage().length);
View Full Code Here

Examples of javax.swing.JTree.DynamicUtilTreeNode.clone()

    }

    public void testClone() {
        Object obj = new Object();
        DynamicUtilTreeNode t = new DynamicUtilTreeNode(obj, obj);
        Object cl = t.clone();
        assertEquals(t.getClass(), cl.getClass());
    }

    public void testChildren() throws Exception {
        DynamicUtilTreeNode node = new DynamicUtilTreeNode("value", new Object[] { "1", "2" });
View Full Code Here

Examples of javax.swing.text.EditorKit.clone()

        }

        // create a copy of the prototype or null if there
        // is no prototype.
        if (k != null) {
            return (EditorKit) k.clone();
        } else {
      // null, check the JEditorPane registry
      k = JEditorPane.createEditorKitForContentType(type);
  }
        return k;
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.