Examples of Tag


Examples of org.osgi.service.indexer.impl.util.Tag

      indent = Indent.NONE;
      pw = new PrintWriter(new GZIPOutputStream(out, Deflater.BEST_COMPRESSION));
    }
   
    pw.print(Schema.XML_PROCESSING_INSTRUCTION);
    Tag repoTag = new Tag(Schema.ELEM_REPOSITORY);
   
    String repoName = config.get(REPOSITORY_NAME);
    if (repoName == null)
      repoName = REPOSITORYNAME_DEFAULT;
    repoTag.addAttribute(Schema.ATTR_NAME, repoName);
   
    String increment = config.get(REPOSITORY_INCREMENT_OVERRIDE);
    if (increment == null)
      increment = Long.toString(System.currentTimeMillis());
    repoTag.addAttribute(Schema.ATTR_INCREMENT, increment);
   
    repoTag.addAttribute(Schema.ATTR_XML_NAMESPACE, Schema.NAMESPACE);
   
    repoTag.printOpen(indent, pw, false);
    for (File file : files) {
      Tag resourceTag = generateResource(file, config);
      resourceTag.print(indent.next(), pw);
    }
    repoTag.printClose(indent, pw);
    pw.flush(); pw.close();
  }
View Full Code Here

Examples of org.platformlayer.conductor.Tag

    public void doOperation(Managed<MemcachedService> managed) throws OpsException, IOException {
        String key = managed.getConductorId();

        SshKey sshKey = service.getSshKey();

        Tag tag = new Tag(Tag.CONDUCTOR_ID, key);

        DiskImageRecipe recipe = imageFactory.loadDiskImageResource(getClass(), "DiskImageRecipe.xml");
        String securityGroup = service.getSecurityGroupName();

        // TODO: This needs to be configurable. Use tags?
View Full Code Here

Examples of org.platformlayer.core.model.Tag

        tagsObject.put("tags", tagsArray);
      }

      if (parent != null) {
        parentKey = parent.resolve(getContext());
        Tag parentTag = Tag.buildParentTag(parentKey);

        JSONObject jsonTag = new JSONObject();
        jsonTag.put("key", parentTag.getKey());
        jsonTag.put("value", parentTag.getValue());

        tagsArray.put(jsonTag);
      }

      for (String tag : tags) {
View Full Code Here

Examples of org.red5.io.flv.impl.Tag

       
        int timeStamp = streampacket.getTimestamp();
       
        timeStamp -= startTimeStamp;
       
              ITag tag = new Tag();
              tag.setDataType(streampacket.getDataType());
             
              //log.debug("data.limit() :: "+data.limit());
        tag.setBodySize(data.limit());
        tag.setTimestamp(timeStamp);
        tag.setBody(data);
       
       
        if (this.isInterview) {
          if (timeStamp <= 500) {
            //We will cut the first 0.5 seconds
View Full Code Here

Examples of org.restlet.data.Tag

  protected void addCacheableMediaTypes(Collection<MediaType> mediaTypes) {
    CacheInfo cacheInfo = getCacheInfo();

    if (cacheInfo != null) {
      Date lastModified = cacheInfo.getLastModified();
      Tag entityTag = cacheInfo.getEntityTag();

      for (MediaType mediaType : mediaTypes) {
        getVariants().add(new RepresentationInfo(mediaType, lastModified, entityTag));
      }
    }
View Full Code Here

Examples of org.rhq.core.domain.tagging.Tag

    public void addFilterTagNamespace(String filterTagNamespace) {
        if (filterTagNamespace == null) {
            return; // do nothing if the filter is empty
        }
        if (this.filterTag == null) {
            this.filterTag = new Tag();
        }
        this.filterTag.setNamespace(filterTagNamespace);
    }
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.core.BeansTags.Tag

    NamedNodeMap attrs = node.getAttributes();
    Node attr;
    String text = "";

    // Root elements (alias, import and bean)
    Tag tag = BeansTags.getTag(node);
    if (tag == Tag.IMPORT) {
      attr = attrs.getNamedItem("resource");
      if (attr != null) {
        text = attr.getNodeValue();
      }
View Full Code Here

Examples of org.springframework.social.alfresco.api.entities.Tag

    public void getNamedTag()
        throws JsonParseException,
            JsonMappingException,
            IOException
    {
        Tag tag = alfresco.getTag(network, "test");

        assertEquals("test", tag.getTag());
    }
View Full Code Here

Examples of org.structr.rest.serialization.html.Tag

  @Override
  public RestWriter beginDocument(final String baseUrl, final String propertyView) throws IOException {

    String currentType = baseUrl.replace(restPath + "/", "").replace("/" + propertyView, "");

    Tag head = doc.block("head");
    head.empty("link").attr(new Rel("stylesheet"), new Type("text/css"), new Href("//structr.org/rest.css"));
    head.inline("script").attr(new Type("text/javascript"), new Src("//structr.org/CollapsibleLists.js"));
    head.inline("title").text(baseUrl);

    Tag body = doc.block("body").attr(new Onload("CollapsibleLists.apply(true);"));
    Tag top  = body.block("div").id("top");

    final App app  = StructrApp.getInstance(securityContext);
    final Tag left = body.block("div").id("left");

    try (final Tx tx = app.tx()) {

      for (SchemaNode node : app.nodeQuery(SchemaNode.class).getAsList()) {

        final String rawType = node.getName();
        top.inline("a").attr(new Href(restPath + "/" + rawType), new If(rawType.equals(currentType), new Css("active"))).text(rawType);
      }

    } catch (Throwable t) {
      t.printStackTrace();
    }

    for (String view : StructrApp.getConfiguration().getPropertyViews()) {

      if (!hiddenViews.contains(view)) {
        left.inline("a").attr(new Href(restPath + "/" + currentType + "/" + view), new If(view.equals(propertyView), new Css("active"))).text(view);
      }
    }

    // main div
    currentElement = body.block("div").id("right");
View Full Code Here

Examples of org.wso2.carbon.registry.api.Tag

     * @param tagCounts the tag count.
     */
    public void setTagCounts(Map<String, String> tagCounts) {
        tags = new ArrayList<Tag>(tagCounts.size());
        for (Map.Entry<String, String> tagEntry : tagCounts.entrySet()) {
            Tag tag = new Tag();
            tag.setTagName(tagEntry.getKey());
            tag.setTagCount(Long.parseLong(tagEntry.getValue()));
            tags.add(tag);
        }
    }
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.