Examples of addProperty()


Examples of org.more.classcode.delegate.property.PropertyClassConfig.addProperty()

    public static void main(String[] args) throws Exception {
        AopClassConfig aCC = new AopClassConfig(Bean.class);
        aCC.addAopInterceptor(new TestAopInterceptor());
        //
        PropertyClassConfig pCC = new PropertyClassConfig(aCC.toClass());
        pCC.addProperty("name", new TestSimplePropertyDelegate(String.class));
        //
        MethodClassConfig mCC = new MethodClassConfig(pCC.toClass());
        mCC.addDelegate(List.class, new DefaultMethodDelegate());
        //
        write(aCC);

Examples of org.ngrinder.common.util.PropertiesWrapper.addProperty()

  protected void initDevModeProperties() {
    if (!isDevMode()) {
      initLogger(false);
    } else {
      final PropertiesWrapper controllerProperties = getControllerProperties();
      controllerProperties.addProperty(PROP_CONTROLLER_AGENT_FORCE_UPDATE, "true");
      controllerProperties.addProperty(PROP_CONTROLLER_ENABLE_AGENT_AUTO_APPROVAL, "true");
      controllerProperties.addProperty(PROP_CONTROLLER_ENABLE_SCRIPT_CONSOLE, "true");
    }
  }

Examples of org.openbp.cockpit.plugins.finder.treemodel.LeafNode.addProperty()

      LeafNode node = new LeafNode();
      node.setNodeMapper(coreMapper);
      node.setLeafData(leafObject);

      // Add properties for the comparator and the renderer.
      node.addProperty(PRIORITY_KEY, new Integer(3));
      node.addProperty(REFERENCE_ITEMTYPE_KEY, referenceItemType);

      ModelQualifier qualifier = leafObject.getQualifier();
      if (qualifier.getObjectPath() == null)
        node.addProperty(ITEMTYPE_KEY, qualifier.getItemType());

Examples of org.openbp.cockpit.plugins.finder.treemodel.PropertyNode.addProperty()

        modelNode.setNodeMapper(stringMapper);
        modelNode.setPropertyData(modelQualifier.toString());
      }

      // Add properties for the comparator and the renderer
      modelNode.addProperty(ITEMTYPE_KEY, ItemTypes.MODEL);
      modelNode.addProperty(PRIORITY_KEY, new Integer(1));
      list.add(modelNode);

      // If the found references is no item, then add the item the
      // model object belongs to a part of the 'tree path'

Examples of org.openengsb.core.workflow.api.model.ProcessBag.addProperty()

       
        assertThat(taskboxService.getOpenTasks().size(), is(0));
        authenticateAsAdmin();

        ProcessBag processBag = new ProcessBag();
        processBag.addProperty("test", "test");
        Map<String, Object> parameterMap = new HashMap<String, Object>();
        parameterMap.put("processBag", processBag);

        assertThat(taskboxService.getOpenTasks().size(), is(0));

Examples of org.openmrs.module.webservices.rest.web.resource.impl.DelegatingResourceDescription.addProperty()

 
  @Override
  public DelegatingResourceDescription getRepresentationDescription(Representation rep) {
    if (rep instanceof DefaultRepresentation) {
      DelegatingResourceDescription description = new DelegatingResourceDescription();
      description.addProperty("uuid");
      description.addProperty("display", findMethod("getDisplayString"));
      description.addProperty("name");
      description.addProperty("price");
      description.addProperty("cost");
      description.addProperty("description");

Examples of org.openrdf.model.BNode.addProperty()

            myGraph.add(mySubject, predicateScopeNote, definitionObj );
           
        }
        myGraph.add(mySubject, predicateBoundedBy, gmlNode);

        gmlNode.addProperty(rdfType, predicateEnvelope);
        myGraph.add(gmlNode, predicateLowerCorner, lowerCorner);
        myGraph.add(gmlNode, predicateUpperCorner, upperCorner);
        myGraph.add(gmlNode, predicateSrsName, srsNameURI);

        repository.addGraph(myGraph);

Examples of org.openrdf.model.Resource.addProperty()

      bn.addProperty(Concepts.HAS_TYPE.get(gToAdd), vf.createLiteral(this.name.getName(), vf.createURI("http://www.w3.org/2001/XMLSchema#string")));
      bn.addProperty(Concepts.HAS_LIMIT.get(gToAdd), vf.createLiteral(String.valueOf(this.limit), uint));
      if(this.weight != null)
        bn.addProperty(Concepts.HAS_WEIGHT.get(gToAdd), vf.createLiteral(String.valueOf(this.weight), uint));
     
      r.addProperty(Concepts.HAS_RECOMMENDATION.get(gToAdd), bn);

      SesameWrapper.addGraph(Repository.FOAFREALM_REPOSITORY.getLocalRepository(), gToAdd);
    } catch (GraphException e) {
      Logger.getLogger("org.corrib.s3b.recommendations").log(Level.SEVERE, e.toString(), e);
    }

Examples of org.palo.viewapi.AxisHierarchy.addProperty()

      axisHierarchy.getLocalFilter().getVisibleElements();
    if (visibleElements != null && visibleElements.length > 0) {
//      String path = xAxisHierarchy.getProperty("filterPaths");     
      updateLocalFilter(axisHierarchy, visibleElements);
      if (filterPaths != null) {
        axisHierarchy.addProperty(new Property<String>("filterPaths", filterPaths));
      } else {
        axisHierarchy.removeProperty(new Property<String>("filterPaths", ""));
      }
    }
    if (axisHierarchy.getLocalFilter() == null) {

Examples of org.playorm.cron.api.PlayOrmCronJob.addProperty()

    mon.setEpochOffset(monitor.getEpochOffset());
    String props = monitor.getRawProperties();
    String[] propsArray = props.split("\\|");
    for(String prop : propsArray) {
      String[] kv = prop.split("=");
      mon.addProperty(kv[0], kv[1]);
    }
    return mon;
  }

}
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.