Examples of removeAttribute()


Examples of org.drools.ide.common.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.workbench.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

Examples of org.drools.workbench.models.datamodel.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

Examples of org.eclipse.debug.core.ILaunchConfigurationWorkingCopy.removeAttribute()

      else {
        copy = config.getWorkingCopy();
      }

      getViewer().setCustomEntries(new IRuntimeClasspathEntry[0]);
      copy.removeAttribute(customAttributeName);

    }
    catch (CoreException e) {return;}
  }
View Full Code Here

Examples of org.eclipse.jetty.util.Attributes.removeAttribute()

   
    @ManagedOperation(value="Remove context attribute", impact="ACTION")
    public void removeContextAttribute(@Name(value = "name", description="attribute name") String name)
    {
        Attributes attrs = ((ContextHandler)_managed).getAttributes();
        attrs.removeAttribute(name);
    }
}
View Full Code Here

Examples of org.eclipse.persistence.jpa.rs.PersistenceContext.removeAttribute()

            return Response.status(Status.NOT_FOUND).type(StreamingOutputMarshaller.getResponseMediaType(hh)).build();
        }

        Map<String, String> discriminators = getMatrixParameters(ui, persistenceUnit);
        Object entity = app.find(discriminators, type, id, getQueryParameters(ui));
        Object result = app.removeAttribute(getMatrixParameters(ui, persistenceUnit), type, id, attribute, listItemId, entity, partner);

        if (result == null) {
            JPARSLogger.fine("jpars_could_not_update_attribute", new Object[] { attribute, type, key, persistenceUnit });
            return Response.status(Status.NOT_FOUND).type(StreamingOutputMarshaller.getResponseMediaType(hh)).build();
        } else {
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement.removeAttribute()

    comboMode.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent evt){
        IDOMElement mode = ClickUtils.getElement(clickApp, ClickPlugin.TAG_MODE);
        if(comboMode.getText().equals("")){
          if(mode!=null){
            mode.removeAttribute(ClickPlugin.ATTR_VALUE);
            if(mode.getAttributes().getLength()==0){
              clickApp.removeChild(mode);
            }
          }
        } else {
View Full Code Here

Examples of org.exist.http.servlets.SessionWrapper.removeAttribute()

    {
      final SessionWrapper sessionWrapper = (SessionWrapper)session.getObject();
      for(final Enumeration<String> e = sessionWrapper.getAttributeNames(); e.hasMoreElements();)
      {
        final String attribName = (String) e.nextElement();
        sessionWrapper.removeAttribute(attribName);
      }
      return Sequence.EMPTY_SEQUENCE;
    }
    else
      {throw new XPathException(this, "Type error: variable $session is not bound to a session object");}
View Full Code Here

Examples of org.freeplane.n3.nanoxml.XMLElement.removeAttribute()

      }
      final Enumeration<String> attributeNames = lastBuiltElement.enumerateAttributeNames();
      while (attributeNames.hasMoreElements()) {
        final String atName = (String) attributeNames.nextElement();
        if (addAttribute(atName, lastBuiltElement.getAttribute(atName, null))) {
          lastBuiltElement.removeAttribute(atName);
        }
      }
    }
    else {
      currentElement = null;
View Full Code Here

Examples of org.grails.web.servlet.mvc.GrailsWebRequest.removeAttribute()

        // Clear the request attributes that affect view rendering. Otherwise
        // whatever we forward to may render the wrong thing! Note that we
        // don't care about the return value because we're delegating
        // responsibility for rendering the response.
        final GrailsWebRequest webRequest = GrailsWebRequest.lookup(request);
        webRequest.removeAttribute(GrailsApplicationAttributes.MODEL_AND_VIEW, 0);
        info.configure(webRequest);
        webRequest.removeAttribute(GrailsApplicationAttributes.GRAILS_CONTROLLER_CLASS_AVAILABLE, WebRequest.SCOPE_REQUEST);
        dispatcher.forward(request, response);
        return forwardUrl;
    }
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.