Examples of key()


Examples of org.codehaus.jettison.json.JSONWriter.key()

  public String toJson() {
    try {
      JSONWriter writer = new JSONStringer().object();
      if(key != null) {
        writer = writer.key(Jsonable.KEY_STR).value(KeyFactory.keyToString(key));
      }
      JSONWriter value = writer
      .key(Category.NAME).value(getName())
      .key(Category.DESCRIPTION).value(getDescription().getValue())
      .key(Category.PARENT_KEY_STR).value(getParentKeyStr())
View Full Code Here

Examples of org.codehaus.xfire.annotations.ServiceProperty.key()

        ServiceProperty serviceProperty  = props[i];
        if(!"".equals(serviceProperty.value()) && serviceProperty.list().length>0 ){
          throw new XFireRuntimeException("Service property cant have set both value and list values");
        }
        if( !"".equals(serviceProperty.value()) ){
         properties.put(serviceProperty.key(),serviceProperty.value());
        }else{
          properties.put(serviceProperty.key(), Arrays.asList(serviceProperty.list()));   
        }
       
      }
View Full Code Here

Examples of org.conventionsframework.qualifier.PropertyKey.key()

    public String produceKey(InjectionPoint ip) {

        if (ip.getAnnotated().isAnnotationPresent(PropertyKey.class)) {
            PropertyKey property = ip.getAnnotated().getAnnotation(PropertyKey.class);
            this.loadProperties(property.file());
            return currentProps.getProperty(property.key());
        }
        return "";
    }

    @Produces
View Full Code Here

Examples of org.eclipse.sapphire.ElementReference.key()

    {
        final Element element = context( Element.class );
        final ElementReference elementReferenceAnnotation = context( PropertyDef.class ).getAnnotation( ElementReference.class );
       
        this.list = (ElementList<?>) element.property( elementReferenceAnnotation.list() );
        this.key = elementReferenceAnnotation.key();
       
        super.initReferenceService();
    }

    @Override
View Full Code Here

Examples of org.enhydra.shark.api.client.wfmodel.WfActivity.key()

            ai.set_query_expression(aieb.toIteratorExpression(sessionHandle, filter));
            WfActivity[] wfActivityList = ai.get_next_n_sequence(0);

            for (int i = 0; i < wfActivityList.length; ++i) {
                WfActivity wfActivity = wfActivityList[i];
                WorkflowActivity workflowActivity = getActivityById(wfActivity.key());

                WorkflowActivity trackWflowActivity = getRunningActivityInfo(sc, wfActivity, false);
                if (trackWflowActivity != null) {
                    workflowActivity.setCreatedTime(trackWflowActivity.getCreatedTime());
                }
View Full Code Here

Examples of org.enhydra.shark.api.client.wfmodel.WfProcess.key()

                WfProcess wfProcess = wfRunningProcessList[i];
                WfProcessMgr manager = wfProcess.manager();

                WorkflowProcess workflowProcess = new WorkflowProcess();
                workflowProcess.setId(manager.name());
                workflowProcess.setInstanceId(wfProcess.key());
                workflowProcess.setName(wfProcess.name());
                workflowProcess.setState(wfProcess.state());
                workflowProcess.setPackageId(MiscUtilities.getProcessMgrPkgId(manager.name()));
                workflowProcess.setVersion(manager.version());
                workflowProcess.setRequesterId(getUserByProcessIdAndActivityDefId(workflowProcess.getId(), workflowProcess.getInstanceId(), WorkflowUtil.ACTIVITY_DEF_ID_RUN_PROCESS));
View Full Code Here

Examples of org.exoplatform.portal.mop.SiteType.key()

                if (pos2 != -1) {
                    String siteName = s.substring(pos1, pos2);
                    pos2 += 2;
                    if (pos2 > pos1 && pos2 < s.length()) {
                        String pageName = s.substring(pos2);
                        return siteType.key(siteName).page(pageName);
                    }
                }
            }
        }
        throw new IllegalArgumentException("Invalid page reference: " + s);
View Full Code Here

Examples of org.glassfish.admin.rest.composite.metadata.HelpText.key()

        if (annos != null) {
            for (Annotation annotation : annos) {
                if (HelpText.class.isAssignableFrom(annotation.getClass())) {
                    HelpText ht = (HelpText) annotation;
                    ResourceBundle bundle = ResourceBundle.getBundle(ht.bundle(), Locale.getDefault());
                    helpText = bundle.getString(ht.key());
                }
            }
        }

        return helpText;
View Full Code Here

Examples of org.gridgain.grid.kernal.processors.rest.protocols.tcp.GridMemcachedMessage.key()

            else if (i >= HDR_LEN + req.extrasLength() &&
                i < HDR_LEN + req.extrasLength() + req.keyLength()) {
                tmp.write(b);

                if (i == HDR_LEN + req.extrasLength() + req.keyLength() - 1) {
                    req.key(tmp.toByteArray());

                    tmp.reset();
                }
            }
            else if (i >= HDR_LEN + req.extrasLength() + req.keyLength() &&
View Full Code Here

Examples of org.hbase.async.KeyValue.key()

          try {
            assertSizeIs(1, rows);
            final ArrayList<KeyValue> kvs = rows.get(0);
            final KeyValue kv = kvs.get(0);
            assertSizeIs(1, kvs);
            assertEq("s" + n, kv.key());
            assertEq("q", kv.qualifier());
            assertEq("v" + n, kv.value());
            return scanner.nextRows(1).addCallback(this);
          } catch (AssertionError e) {
            // Deferred doesn't catch Errors on purpose, so transform any
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.