Examples of removeAttribute()


Examples of org.apache.xindice.core.meta.MetaData.removeAttribute()

                attrValue = "";
            }
        } else if (deleteAttr != null && deleteAttr.length() > 0 && col.isMetaEnabled()) {
            try {
                MetaData delMeta = col.getCollectionMeta();
                delMeta.removeAttribute(deleteAttr);
                col.setCollectionMeta(delMeta);
            } catch (DBException e) {
                log.error(e);
                printError("Cannot delete Attribute " + deleteAttr + ": " + e.getMessage(), output);
            }
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.removeAttribute()

    static void rectifyPlan(GerConnectorType gerConnector) {
        boolean updated = false;
        XmlCursor cursor = gerConnector.newCursor();
        try {
            updated = cursor.removeAttribute(VERSION_QNAME);
        } finally {
            cursor.dispose();
        }
        GerResourceadapterType[] resourceAdapters = gerConnector.getResourceadapterArray();
        for (int i = 0; i < resourceAdapters.length; i++) {
View Full Code Here

Examples of org.atmosphere.cpr.AtmosphereRequest.removeAttribute()

        RemoteEndpointImpl remoteEndpoint = (RemoteEndpointImpl) request.getAttribute(RemoteEndpointImpl.class.getName());

        if (remoteEndpoint != null) {
            if (event.isCancelled() || event.isClosedByClient()) {
                remoteEndpoint.status().status(event.isCancelled() ? Status.STATUS.UNEXPECTED_CLOSE : Status.STATUS.CLOSED_BY_CLIENT);
                request.removeAttribute(RemoteEndpointImpl.class.getName());
                trackedUUID.remove(r.uuid());

                invokeOpenOrClose(onCloseMethod, remoteEndpoint);
            } else if (event.isResumedOnTimeout() || event.isResuming()) {
                remoteEndpoint.status().status(Status.STATUS.CLOSED_BY_TIMEOUT);
View Full Code Here

Examples of org.cometd.bayeux.client.ClientSessionChannel.removeAttribute()

        {
        }

        try
        {
            channel.removeAttribute("foo");
            Assert.fail();
        }
        catch (IllegalStateException expected)
        {
        }
View Full Code Here

Examples of org.cometd.bayeux.server.LocalSession.removeAttribute()

        Assert.assertTrue(local.getAttributeNames().contains("foo"));
        Assert.assertFalse(local.getAttributeNames().contains("bar"));
        Assert.assertFalse(session.getAttributeNames().contains("foo"));
        Assert.assertTrue(session.getAttributeNames().contains("bar"));

        Assert.assertEquals("bar",local.removeAttribute("foo"));
        Assert.assertEquals(null,local.removeAttribute("foo"));
        Assert.assertEquals("foo",session.removeAttribute("bar"));
        Assert.assertEquals(null,local.removeAttribute("bar"));
    }
View Full Code Here

Examples of org.cometd.bayeux.server.ServerSession.removeAttribute()

        Assert.assertFalse(session.getAttributeNames().contains("foo"));
        Assert.assertTrue(session.getAttributeNames().contains("bar"));

        Assert.assertEquals("bar",local.removeAttribute("foo"));
        Assert.assertEquals(null,local.removeAttribute("foo"));
        Assert.assertEquals("foo",session.removeAttribute("bar"));
        Assert.assertEquals(null,local.removeAttribute("bar"));
    }

    @Test
    public void testLocalSessions() throws Exception
View Full Code Here

Examples of org.directwebremoting.ScriptSession.removeAttribute()

        ScriptSession session = webContext.getScriptSession();
        ConverterManager converterManager = webContext.getContainer().getBean(ConverterManager.class);

        Map<String, Class<T>> typeMap = (Map<String, Class<T>>) session.getAttribute(KEY_TYPE);
        Class<T> type = typeMap.remove(key);
        session.removeAttribute(KEY_TYPE);
        session.setAttribute(KEY_TYPE, typeMap);

        try
        {
            Method method = Callback.class.getMethod("dataReturned", type);
View Full Code Here

Examples of org.drools.brms.client.modeldriven.brl.RuleModel.removeAttribute()

        assertEquals( 2,
                      m.attributes.length );
        assertEquals( at2,
                      m.attributes[1] );

        m.removeAttribute( 0 );
        assertEquals( 1,
                      m.attributes.length );
        assertEquals( at2,
                      m.attributes[0] );
    }
View Full Code Here

Examples of org.drools.guvnor.client.modeldriven.brl.RuleModel.removeAttribute()

    final RuleAttribute at2 = new RuleAttribute("agenda-group", "x");
    m.addAttribute(at2);
    assertEquals(2, m.attributes.length);
    assertEquals(at2, m.attributes[1]);

    m.removeAttribute(0);
    assertEquals(1, m.attributes.length);
    assertEquals(at2, m.attributes[0]);
  }

  public void testBindingList() {
View Full Code Here

Examples of org.drools.guvnor.models.commons.shared.rule.RuleModel.removeAttribute()

        assertEquals( 2,
                m.attributes.length );
        assertEquals( at2,
                m.attributes[1] );

        m.removeAttribute( 0 );
        assertEquals( 1,
                m.attributes.length );
        assertEquals( at2,
                m.attributes[0] );
    }
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.