Examples of Reference


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

    // except the last one.
    assertTrue(refs.size() > 1);

    int last = refs.size() - 1;
    for (int i = 0; i < refs.size(); i++) {
      Reference ref = refs.get(i);
      assertEquals(i != last, ref.getNode().isFromExterns());
      if (!ref.getNode().isFromExterns()) {
        assertEquals("in1", ref.getNode().getSourceFileName());
      }
    }
  }

Examples of com.google.storage.onestore.v3.OnestoreEntity.Reference

    return parentKey;
  }

  public static Reference convertToPb(Key key) {
    Reference reference = new Reference();

    reference.setApp(key.getAppId());
    String nameSpace = key.getNamespace();
    if (!nameSpace.isEmpty()) {
      reference.setNameSpace(nameSpace);
    }

    Path path = reference.getMutablePath();
    while (key != null) {
      Element pathElement = new Element();
      pathElement.setType(key.getKind());
      if (key.getName() != null) {
        pathElement.setName(key.getName());

Examples of com.jcabi.github.Reference

     * MkReference can fetch json.
     * @throws Exception - If something goes wrong.
     */
    @Test
    public void fetchesJson() throws Exception {
        final Reference ref = this.reference();
        final JsonObject json = ref.json();
        MatcherAssert.assertThat(
            json.getString("ref"),
            Matchers.is("refs/tags/hello")
        );
        MatcherAssert.assertThat(

Examples of com.psddev.dari.db.Reference

                } else if (item instanceof Reference) {
                    Object oldReferenceAttribute = null;
                    Map<String, Object> oldAttributes = new LinkedHashMap<String, Object>();

                    try {
                        Reference itemReference = (Reference) item;
                        Object object = itemReference.getObject();

                        if (object != null && !(object instanceof ReferentialTextMarker)) {
                            oldReferenceAttribute = request.getAttribute(REFERENCE_ATTRIBUTE);
                            request.setAttribute(REFERENCE_ATTRIBUTE, itemReference);

                            // For backward compatibility, ensure these field values are set directly as request attributes
                            for (ObjectField field : ObjectType.getInstance(RichTextReference.class).getFields()) {
                                String fieldName = field.getInternalName();
                                String fieldNamePc = StringUtils.toCamelCase(fieldName);

                                oldAttributes.put(fieldName, request.getAttribute(fieldName));
                                oldAttributes.put(fieldNamePc, request.getAttribute(fieldNamePc));
                                request.setAttribute(fieldName, itemReference.getState().get(fieldName));
                                request.setAttribute(fieldNamePc, itemReference.getState().get(fieldName));
                            }

                            PageFilter.renderObject(request, response, writer, object);
                        }

Examples of com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.Reference

            methods.clear();
            final DetailAST nameAST = (DetailAST) it.next();
            // find methods using the field
            final Iterator refIt = getReferences(nameAST);
            while (refIt.hasNext()) {
                final Reference ref = (Reference) refIt.next();
                final SymTabAST refNode = ref.getTreeNode();
                final DetailAST refDetail = refNode.getDetailNode();
                // don't need to check a self-reference
                if (refDetail == nameAST) {
                    continue;
                }

Examples of com.sun.tools.internal.xjc.api.Reference

            }

            for (Pattern pattern : includeRegexList) {
                boolean match = checkPatternMatch(qualifiedName, pattern);
                if (match) {
                    classesToBeIncluded.add(new Reference(typeDecl,env));
                    break;
                }
            }
        }
    }

Examples of com.sun.tools.xjc.api.Reference

    private synchronized XmlSchemaGenerator<TypeMirror, TypeDeclaration, FieldDeclaration, MethodDeclaration> getSchemaGenerator() {
        if(xsdgen==null) {
            xsdgen = new XmlSchemaGenerator<TypeMirror,TypeDeclaration,FieldDeclaration,MethodDeclaration>( types.getNavigator(), types );

            for (Map.Entry<QName, Reference> e : additionalElementDecls.entrySet()) {
                Reference value = e.getValue();
                if(value!=null) {
                    NonElement<TypeMirror, TypeDeclaration> typeInfo = refMap.get(value);
                    if(typeInfo==null)
                        throw new IllegalArgumentException(e.getValue()+" was not specified to JavaCompiler.bind");
                    xsdgen.add(e.getKey(),!(value.type instanceof PrimitiveType),typeInfo);

Examples of com.sun.xml.ws.security.opt.api.reference.Reference

            }

            //SecurityTokenReference str = new com.sun.xml.ws.opt.security.impl.keyinfo.SecurityTokenReference(
            //        (SecurityTokenReferenceType)securityTokenReference.getValue());
            SecurityTokenReference str = (SecurityTokenReference) securityTokenReference.getValue();
            Reference reference = str.getReference();
            //HashMap tokenCache = wssContext.getTokenCache();
            //HashMap insertedX509Cache = wssContext.getInsertedX509Cache();

            Key returnKey = null;
            if (reference instanceof KeyIdentifier) {

Examples of com.sun.xml.ws.security.opt.crypto.dsig.Reference

                    //no - op
                }
                }
            }
           
            ReferenceType rt = new Reference();
            DigestMethod digestMethod = new DigestMethod();
            digestMethod.setAlgorithm(dm);
            rt.setDigestMethod(digestMethod);
            if(bd != null){
                rt.setDigestValue(bd.getExact());
            }else{
                try{
                    rt.setDigestValue(Base64.decode(digestValue));
                }catch(Base64DecodingException dec){
                    logger.log(Level.SEVERE, LogStringsMessages.WSS_1719_ERROR_DIGESTVAL_REFERENCE(uri),dec);
                    throw new XWSSecurityException(LogStringsMessages.WSS_1719_ERROR_DIGESTVAL_REFERENCE(uri));
                }
            }
           
            rt.setURI(uri);
            TransformsType transforms= new Transforms();
            transforms.setTransform(tList);
            rt.setTransforms((Transforms) transforms);
           
            // policy creation
            Target target = new Target(Target.TARGET_TYPE_VALUE_URI, uri);
            SignatureTarget signTarget = new SignatureTarget(target);
            signTarget.setDigestAlgorithm(dm);

Examples of com.sun.xml.ws.security.trust.elements.str.Reference

        setReference(ref);
    }
   
    public SecurityTokenReferenceImpl(final SecurityTokenReferenceType strType)
    {
        final Reference ref = getReference(strType);
        setReference(ref);
        this.getOtherAttributes().putAll(strType.getOtherAttributes());
    }
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.