Examples of removeValue()


Examples of org.apache.lenya.util.Query.removeValue()

            String requiredExtension = null;
            if (tokenizer.hasMoreTokens()) {
                queryString = tokenizer.nextToken();
                Query query = new Query(queryString);
                requiredExtension = query.getValue(EXTENSION_PARAM);
                query.removeValue(EXTENSION_PARAM);
                queryString = query.toString();
            }

            LinkTarget target;
            if (this.currentDoc != null) {
View Full Code Here

Examples of org.apache.lenya.util.Query.removeValue()

            String requiredExtension = null;
            if (tokenizer.hasMoreTokens()) {
                queryString = tokenizer.nextToken();
                Query query = new Query(queryString);
                requiredExtension = query.getValue(EXTENSION_PARAM);
                query.removeValue(EXTENSION_PARAM);
                queryString = query.toString();
            }

            LinkTarget target;
            try {
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.object.ObjectData.removeValue()

            // update object instance
            ObjectData od = encounter.getObjectInstance().getData().get("participants");
            logger.trace("od: " + od);
            if(od != null) {
                if(ep.getParticipant() instanceof BasicModelObject) {
                    od.removeValue("instance:" + ((BasicModelObject)ep.getParticipant()).getId());
                }
                else {
                    od.removeValue("label:" + ep.getLabel());
                }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.object.ObjectData.removeValue()

            if(od != null) {
                if(ep.getParticipant() instanceof BasicModelObject) {
                    od.removeValue("instance:" + ((BasicModelObject)ep.getParticipant()).getId());
                }
                else {
                    od.removeValue("label:" + ep.getLabel());
                }

                // save
                doSave(null);
            }
View Full Code Here

Examples of org.eclipse.mylyn.tasks.core.data.TaskAttribute.removeValue()

  }
 
  private boolean markForRemove(String userId) {
    TaskAttribute attribute = getTaskAttribute().getAttribute(RedmineAttribute.WATCHERS_ADD.getTaskKey());
    if(attribute!=null && attribute.getValues().contains(userId)) {
      attribute.removeValue(userId);
      return true;
    } else {
      attribute = getTaskAttribute().getAttribute(RedmineAttribute.WATCHERS_REMOVE.getTaskKey());
      if (attribute!=null && !attribute.getValues().contains(userId)) {
        attribute.addValue(userId);
View Full Code Here

Examples of org.glassfish.security.services.api.common.Attribute.removeValue()

  }

  public void removeAttributeValue(String name, String value) {
    Attribute a = attributes.get(name);
    if (a != null) {
      a.removeValue(value);
    }
  }

  public void removeAttributeValues(String name, Set<String> values) {
    Attribute a = attributes.get(name);
View Full Code Here

Examples of org.gridgain.grid.util.GridLongList.removeValue()

     *
     */
    public void testRemove() {
        GridLongList list = asList(1,2,3,4,5,6);

        assertEquals(2, list.removeValue(0, 3));
        assertEquals(asList(1,2,4,5,6), list);

        assertEquals(-1, list.removeValue(1, 1));
        assertEquals(-1, list.removeValue(0, 3));

View Full Code Here

Examples of org.jfree.data.DefaultKeyedValues.removeValue()

    public void testGetIndex2() {
        DefaultKeyedValues v = new DefaultKeyedValues();
        assertEquals(-1, v.getIndex("K1"));
        v.addValue("K1", 1.0);
        assertEquals(0, v.getIndex("K1"));
        v.removeValue("K1");
        assertEquals(-1, v.getIndex("K1"));
    }
    /**
     * Some checks for the addValue() method.
     */
 
View Full Code Here

Examples of org.jfree.data.DefaultKeyedValues2D.removeValue()

    /**
     * Some basic checks for the removeValue() method.
     */
    public void testRemoveValue() {
        DefaultKeyedValues2D d = new DefaultKeyedValues2D();
        d.removeValue("R1", "C1");
        d.addValue(new Double(1.0), "R1", "C1");
        d.removeValue("R1", "C1");
        assertEquals(0, d.getRowCount());
        assertEquals(0, d.getColumnCount());

View Full Code Here

Examples of org.jfree.data.DefaultKeyedValues2D.removeValue()

     */
    public void testRemoveValue() {
        DefaultKeyedValues2D d = new DefaultKeyedValues2D();
        d.removeValue("R1", "C1");
        d.addValue(new Double(1.0), "R1", "C1");
        d.removeValue("R1", "C1");
        assertEquals(0, d.getRowCount());
        assertEquals(0, d.getColumnCount());

        d.addValue(new Double(1.0), "R1", "C1");
        d.addValue(new Double(2.0), "R2", "C1");
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.