Examples of Reference


Examples of cat.quickdb.complexmodel.Reference

        Assert.assertTrue(value);
    }

    @Test
    public void testQuerySystemSimpleCondition(){
        Reference ref = new Reference();
        ref.setValue("housemd");

        Parent parent = new Parent();
        parent.setDescription("this is a test for parent");
        parent.setReference(ref);

Examples of cn.edu.zju.acm.onlinejudge.bean.Reference

        ReferencePersistence referencePersistence = PersistenceManager.getInstance().getReferencePersistence();
        byte[] data = formFile.getFileData();
        if (data.length == 0) {
            return;
        }
        Reference ref = new Reference();
        ref.setContent(data);
        ref.setReferenceType(type);
        ref.setSize(data.length);

        referencePersistence.createProblemReference(problemId, ref, user);
    }

Examples of com.alibaba.dubbo.config.annotation.Reference

            if (name.length() > 3 && name.startsWith("set")
                    && method.getParameterTypes().length == 1
                    && Modifier.isPublic(method.getModifiers())
                    && ! Modifier.isStatic(method.getModifiers())) {
                try {
                  Reference reference = method.getAnnotation(Reference.class);
                  if (reference != null) {
                    Object value = refer(reference, method.getParameterTypes()[0]);
                    if (value != null) {
                      method.invoke(bean, new Object[] {  });
                    }
                  }
                } catch (Throwable e) {
                    logger.error("Failed to init remote service reference at method " + name + " in class " + bean.getClass().getName() + ", cause: " + e.getMessage(), e);
                }
            }
        }
        Field[] fields = bean.getClass().getDeclaredFields();
        for (Field field : fields) {
            try {
                if (! field.isAccessible()) {
                    field.setAccessible(true);
                }
                Reference reference = field.getAnnotation(Reference.class);
              if (reference != null) {
                  Object value = refer(reference, field.getType());
                  if (value != null) {
                    field.set(bean, value);
                  }

Examples of com.compomics.util.pride.prideobjects.Reference

        if (doiJTextField.getText().length() > 0) {
            tempDoi = doiJTextField.getText();
        }

        if (rowIndex != -1) {
            referenceGroupDialog.editReference(new Reference(referenceJTextArea.getText(), tempPmid, tempDoi), rowIndex);
        } else {
            referenceGroupDialog.insertReference(new Reference(referenceJTextArea.getText(), tempPmid, tempDoi));
        }

        dispose()
    }//GEN-LAST:event_okJButtonActionPerformed

Examples of com.day.cq.wcm.api.reference.Reference

        Design design = designer.getDesign(page);
        if (design == null) {
            return Collections.emptyList();
        }

        return Collections.singletonList(new Reference(TYPE_DESIGN_PAGE,
                String.format("%s (Design)", design.getId()),
                design.getContentResource(),
                getLastModified(design)));
    }

Examples of com.github.jmkgreen.morphia.annotations.Reference

*/
public class LazyReferenceMissingDependencies extends FieldConstraint {

    @Override
    protected void check(MappedClass mc, MappedField mf, Set<ConstraintViolation> ve) {
        Reference ref = mf.getAnnotation(Reference.class);
        if (ref != null) {
            if (ref.lazy()) {
                if (!LazyFeatureDependencies.testDependencyFullFilled())
                    ve.add(new ConstraintViolation(Level.SEVERE, mc, mf, this.getClass(),
                            "Lazy references need CGLib and Proxytoys in the classpath."));
            }
        }

Examples of com.google.caja.parser.js.Reference

        obj, "props",
        mapToJsArray(
            data.properties,
            new Function<CssPropBit, Expression>() {
              public Expression apply(CssPropBit bit) {
                return new Reference(new Identifier(unk, bit.name()));
              }
            }),
        ignoreKeys);
    appendIfNotEmptyOrIgnored(
        obj, "fns",

Examples of com.google.javascript.jscomp.FunctionInjector.Reference

    // can-inline tester
    Method tester = new Method() {
      @Override
      public boolean call(NodeTraversal t, Node n, Node parent) {
        Reference ref = new Reference(n, t.getScope(), t.getModule(), mode);
        CanInlineResult result = injector.canInlineReferenceToFunction(
            ref, fnNode, unsafe,
            NodeUtil.referencesThis(fnNode),
            NodeUtil.containsFunction(NodeUtil.getFunctionBody(fnNode)));
        assertEquals(expectedResult, result);

Examples of com.google.javascript.jscomp.NameReferenceGraph.Reference

        Node n, Node parent) {
      if (isExtern) {
        // Don't count reference in extern as a use.
        return null;
      } else {
        Reference reference = new Reference(n);
        Name name = graph.defineNameIfNotExists(n.getQualifiedName(), isExtern);
        name.setType(getType(n));
        graph.connect(getNamedContainingFunction(), reference, name);
        return reference;
      }

Examples of com.google.javascript.jscomp.ReferenceCollectingCallback.Reference

  /** Changes variable references in second script. */
  public void testUpdateGlobalVarReferences_UpdateScriptNewRefs() {
    Map<Var, ReferenceCollection> scriptMap = Maps.newHashMap();

    ReferenceCollection newVar1Refs = new ReferenceCollection();
    Reference newVar1In2Ref = createRefForTest(INPUT2);
    newVar1Refs.references = Lists.newArrayList(newVar1In2Ref);

    ReferenceCollection newVar2Refs = new ReferenceCollection();
    Reference newVar2In2Ref = createRefForTest(INPUT2);
    newVar2Refs.references = Lists.newArrayList(newVar2In2Ref);

    ReferenceCollection newVar3Refs = new ReferenceCollection();
    Reference newVar3In2Ref = createRefForTest(INPUT2);
    newVar3Refs.references = Lists.newArrayList(newVar3In2Ref);

    scriptMap.put(globalScope.getVar(VAR1), newVar1Refs);
    scriptMap.put(globalScope.getVar(VAR2), newVar2Refs);
    scriptMap.put(globalScope.getVar(VAR3), newVar3Refs);
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.