Examples of removeElement()


Examples of org.apache.commons.collections.primitives.IntCollection.removeElement()

        assertEquals(0,proxied.getRetainAllCount());
        collection.retainAll(null);
        assertEquals(1,proxied.getRetainAllCount());

        assertEquals(0,proxied.getRemoveElementCount());
        collection.removeElement(1);
        assertEquals(1,proxied.getRemoveElementCount());

        assertEquals(0,proxied.getSizeCount());
        collection.size();
        assertEquals(1,proxied.getSizeCount());
View Full Code Here

Examples of org.apache.commons.collections.primitives.LongCollection.removeElement()

        assertEquals(0,proxied.getRetainAllCount());
        collection.retainAll(null);
        assertEquals(1,proxied.getRetainAllCount());

        assertEquals(0,proxied.getRemoveElementCount());
        collection.removeElement(1);
        assertEquals(1,proxied.getRemoveElementCount());

        assertEquals(0,proxied.getSizeCount());
        collection.size();
        assertEquals(1,proxied.getSizeCount());
View Full Code Here

Examples of org.apache.commons.collections.primitives.ShortCollection.removeElement()

        assertEquals(0,proxied.getRetainAllCount());
        collection.retainAll(null);
        assertEquals(1,proxied.getRetainAllCount());

        assertEquals(0,proxied.getRemoveElementCount());
        collection.removeElement((short)1);
        assertEquals(1,proxied.getRemoveElementCount());

        assertEquals(0,proxied.getSizeCount());
        collection.size();
        assertEquals(1,proxied.getSizeCount());
View Full Code Here

Examples of org.apache.isis.core.metamodel.spec.feature.OneToManyAssociation.removeElement()

        final Consent consent = collection.isValidToRemove(objectAdapter, argAdapter);
        if (consent.isVetoed()) {
            throw RestfulObjectsApplicationException.createWithMessage(HttpStatusCode.UNAUTHORIZED, consent.getReason());
        }

        collection.removeElement(objectAdapter, argAdapter);

        return helper.collectionDetails(collectionId, MemberMode.MUTATING, Caching.NONE, getResourceContext().getWhere());
    }

    // //////////////////////////////////////////////////////////
View Full Code Here

Examples of org.cyberneko.html.filters.ElementRemover.removeElement()

        StringReader contentReader = new StringReader(node.getTextContent());
        /*
         * remove all elements and script parts
         */
        ElementRemover remover = new ElementRemover();
        remover.removeElement(REMOVE_SCRIPT);
        StringWriter contentWriter = new StringWriter();
        Writer writer = new Writer(contentWriter, CHAR_ENCODING);
        XMLDocumentFilter[] filters = { remover, writer, };
        XMLParserConfiguration parser = new HTMLConfiguration();
        parser.setProperty("http://cyberneko.org/html/properties/filters",
View Full Code Here

Examples of org.fao.geonet.kernel.Thesaurus.removeElement()

            List<?> keywords = searcher.getSelectedKeywordsInList();

            Iterator<?> iter = keywords.iterator();
            while (iter.hasNext()) {
                KeywordBean keyword = (KeywordBean) iter.next();
                thesaurus.removeElement(keyword);
            }

        } else {
            thesaurus.removeElement(code);
        }
View Full Code Here

Examples of org.freeplane.core.ui.MenuBuilder.removeElement()

        final MenuBuilder menuBuilder = modeController.getUserInputListenerFactory()
            .getMenuBuilder(MenuBuilder.class);
        if (lastVersion == null || lastVersion.compareTo(FreeplaneVersion.getVersion()) <= 0) {
          ResourceController.getResourceController().setProperty(LAST_UPDATE_VERSION, "");
          if (menuBuilder.get(UPDATE_BUTTON_PATH) != null) {
            menuBuilder.removeElement(UPDATE_BUTTON_PATH);
          }
          continue;
        }
        ResourceController.getResourceController().setProperty(LAST_UPDATE_VERSION, lastVersion.toString());
        final String updateAvailable = TextUtils.format("new_version_available", lastVersion.toString());
View Full Code Here

Examples of org.geotools.xml.handlers.ComplexElementHandler.removeElement()

            if (parent instanceof ComplexElementHandler){
                ComplexElementHandler complexParent = (ComplexElementHandler)parent;
              String typename = complexParent.getType().getClass().getName();
              // TODO: HACK The required Type is not in this Module
              if(typename.equals("org.geotools.xml.wfs.WFSBasicComplexTypes$FeatureCollectionType")){
                complexParent.removeElement(handler);
              }
            }
          }
        }
    }
View Full Code Here

Examples of org.hsqldb.lib.FileAccess.removeElement()

    static void deleteFile(Database database, String fileName) {

        FileAccess fileAccess = database.logger.getFileAccess();

        // first attemp to delete
        fileAccess.removeElement(fileName);

        if (database.logger.isStoredFileAccess()) {
            return;
        }
View Full Code Here

Examples of org.jgroups.util.Queue.removeElement()

        }
        catch(org.jgroups.util.QueueClosedException qc) {
        }

        int size=queue.size();
        queue.removeElement("Q5");
        assert queue.size() == size -1;
        assert queue.peek().equals("Q3");
        assert queue.remove().equals("Q3");
        assert queue.closed();
    }
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.