Examples of Attributes


Examples of org.apache.wicket.request.resource.IResource.Attributes

   * @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle)
   */
  @Override
  public void respond(IRequestCycle requestCycle)
  {
    Attributes attributes = new Attributes(requestCycle.getRequest(),
      requestCycle.getResponse());

    ResourceStreamResource resource = new ResourceStreamResource(resourceStream);

    configure(resource);
View Full Code Here

Examples of org.asciidoctor.Attributes

                    }
                }
            }

            // Process the unzipped guide through asciidoctor, rendering HTML content
            Attributes attributes = new Attributes();
            attributes.setAllowUriRead(true);
            attributes.setSkipFrontMatter(true);
            File readmeAdocFile = new File(unzippedRoot.getAbsolutePath() + File.separator + "README.adoc");
            String rawHtmlContent = asciidoctor.renderFile(
                    readmeAdocFile,
                    OptionsBuilder.options().safe(SafeMode.SAFE).attributes(attributes).headerFooter(true));
View Full Code Here

Examples of org.bouncycastle.asn1.cms.Attributes

        byte[] token = tsaClient.getTimeStampToken(signer.getSignature());
        ASN1ObjectIdentifier oid = PKCSObjectIdentifiers.id_aa_signatureTimeStampToken;
        ASN1Encodable signatureTimeStamp = new Attribute(oid, new DERSet(byteToASN1Object(token)));

        vector.add(signatureTimeStamp);
        Attributes signedAttributes = new Attributes(vector);

        SignerInformation newSigner = SignerInformation.replaceUnsignedAttributes(
                signer, new AttributeTable(signedAttributes));

        // TODO can this actually happen?
View Full Code Here

Examples of org.dcm4che3.data.Attributes

        String codeMeaning = codes.getProperty(codeValue);
        if (codeMeaning == null)
            throw new IllegalArgumentException("undefined code value: "
                        + codeValue);
        int endDesignator = codeValue.indexOf('-');
        Attributes attrs = new Attributes(3);
        attrs.setString(Tag.CodeValue, VR.SH,
                endDesignator >= 0
                    ? codeValue.substring(endDesignator + 1)
                    : codeValue);
        attrs.setString(Tag.CodingSchemeDesignator, VR.SH,
                endDesignator >= 0
                    ? codeValue.substring(0, endDesignator)
                    : "DCM");
        attrs.setString(Tag.CodeMeaning, VR.LO, codeMeaning);
        return attrs;
    }
View Full Code Here

Examples of org.eclipse.jetty.util.Attributes

    @ManagedAttribute("Map of context attributes")
    public Map<String,Object> getContextAttributes()
    {
        Map<String,Object> map = new HashMap<String,Object>();
        Attributes attrs = ((ContextHandler)_managed).getAttributes();
        Enumeration<String> en = attrs.getAttributeNames();
        while (en.hasMoreElements())
        {
            String name = (String)en.nextElement();
            Object value = attrs.getAttribute(name);
            map.put(name,value);
        }
        return map;
    }
View Full Code Here

Examples of org.eclipse.jgit.util.FS.Attributes

          .getFileSystem()
          .provider()
          .getFileAttributeView(nioPath,
              BasicFileAttributeView.class,
              LinkOption.NOFOLLOW_LINKS).readAttributes();
      Attributes attributes = new FileUtil.Java7BasicAttributes(fs, path,
          true,
          readAttributes.isDirectory(),
          fs.supportsExecute() ? path.canExecute() : false,
          readAttributes.isSymbolicLink(),
          readAttributes.isRegularFile(), //
          readAttributes.creationTime().toMillis(), //
          readAttributes.lastModifiedTime().toMillis(),
          readAttributes.isSymbolicLink() ? Constants
              .encode(FileUtils.readSymLink(path)).length
              : readAttributes.size());
      return attributes;
    } catch (NoSuchFileException e) {
      return new FileUtil.Java7BasicAttributes(fs, path, false, false,
          false, false, false, 0L, 0L, 0L);
    } catch (IOException e) {
      return new Attributes(path, fs);
    }
  }
View Full Code Here

Examples of org.exoplatform.services.token.attribute.Attributes

      node = NodePathUtil.lookFor(document.getRoot(), path);
      assertNotNull(node);

      //Gets all the attributes of the Node object in the HTML document.
      //simultaneously checks the existing of an Attribute of this Node.
      Attributes attributes = AttributeParser.getAttributes(node);
      assertEquals(attributes.get("size").getValue(), "4");

      //Removes an Attribute of a Node.
      //and then checks the existing of this Attribute in the attribute collection of the Node.
      attributes.remove("size");
      System.out.println(node.getTextValue());
      //assertNotNull(attributes.get("size"));  
   }
View Full Code Here

Examples of org.freeplane.plugin.script.proxy.Proxy.Attributes

    return ProxyUtils.attributeValueToConvertible(getDelegate(), getScriptContext(), value);
  }

  // Node: R/W
  public Object putAt(final String attributeName, final Object value) {
    final Attributes attributes = getAttributes();
    if (value == null) {
      final int index = attributes.findFirst(attributeName);
      if (index != -1)
        attributes.remove(index);
      // else: ignore request
    }
    else {
      attributes.set(attributeName, value);
    }
    return value;
  }
View Full Code Here

Examples of org.gatein.api.common.Attributes

    public SiteImpl(SiteId id, String templateName) {
        this.id = id;
        SiteKey siteKey = Util.from(id);
        this.portalConfig = new PortalConfig(siteKey.getTypeName(), siteKey.getName());
        this.attributes = new Attributes();
        this.create = true;
        this.templateName = templateName;
    }
View Full Code Here

Examples of org.gatein.mop.api.Attributes

      //
      Navigation defaultNav = rootNavigation.getChild("default");

      //
      Attributes defaultAttrs = defaultNav.getAttributes();
      assertEquals(1, (int)defaultAttrs.getInteger("priority"));

      //
      Collection<? extends Navigation> childrenNavigations = defaultNav.getChildren();
      assertNotNull(childrenNavigations);
      assertEquals(2, childrenNavigations.size());
      Iterator<? extends Navigation> i = childrenNavigations.iterator();

      //
      assertTrue(i.hasNext());
      Navigation nodeNavigation = i.next();
      assertNotNull(nodeNavigation);
      assertEquals(0, nodeNavigation.getChildren().size());
      assertEquals("node_name", nodeNavigation.getName());
      Described nodeDescribed = nodeNavigation.adapt(Described.class);
      assertEquals("node_label", nodeDescribed.getName());
      Attributes nodeAttrs = nodeNavigation.getAttributes();
      assertEquals("node_uri", nodeAttrs.getString("uri"));
      assertEquals("node_icon", nodeAttrs.getString("icon"));

      //
      assertTrue(nodeNavigation.isAdapted(Visible.class));
      Visible visible = nodeNavigation.adapt(Visible.class);
      GregorianCalendar start = new GregorianCalendar(2000, 2, 21, 1, 33, 0);
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.