Examples of Tag


Examples of org.wso2.carbon.registry.common.beans.utils.Tag

        try {
            Resource resource = userRegistry.get(path);
            org.wso2.carbon.registry.core.Tag[] t = userRegistry.getTags(path);
            Tag[] tags = new Tag [t.length];
            Tag tag;
            for(int i=0; i<t.length; i++) {
                tag = new Tag();
                tag.setCategory(t[i].getCategory());
                tag.setTagCount(t[i].getTagCount());
                tag.setTagName(t[i].getTagName());
                tags[i] = tag;
            }
           
            tagBean.setTags(tags);
View Full Code Here

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

        Document introspection =
                clientResponse.getDocument();
        Feed feed = (Feed) introspection.getRoot();
        List entries = feed.getEntries();
        Tag tags[] = null;
        if (entries != null) {
            tags = new Tag[entries.size()];
            for (int i = 0; i < entries.size(); i++) {
                Entry entry = (Entry) entries.get(i);
                Tag tag = new Tag();
                tag.setTagCount(Long.parseLong(entry.getSimpleExtension(
                        new QName(APPConstants.NAMESPACE, "taggings"))));
                tag.setTagName(entry.getTitle());
                tags[i] = tag;
            }
        }
        abderaClient.teardown();
        return tags;
View Full Code Here

Examples of org.xulfaces.annotation.taglib.TAG

              }             
            }
          }                 
        }       

        TAG tagAnnotation = typeDeclaration.getAnnotation(TAG.class);
        String name = "no name";
        if (tagAnnotation != null) {
          name = tagAnnotation.name();
        }
        log.debug("\ttag name is " + name);                             
        process(currentClass);
        log.debug("tag processed. ");
      } catch (ClassNotFoundException e) {       
View Full Code Here

Examples of org.xwiki.rest.model.jaxb.Tag

            executeGet(getUriBuilder(PageResource.class).build(getWiki(), TestConstants.TEST_SPACE_NAME,
                TestConstants.TEST_PAGE_NAME).toString());
        Assert.assertEquals(getHttpMethodInfo(getMethod), HttpStatus.SC_OK, getMethod.getStatusCode());

        Tags tags = objectFactory.createTags();
        Tag tag = objectFactory.createTag();
        tag.setName(tagName);
        tags.getTags().add(tag);

        PutMethod putMethod =
            executePutXml(getUriBuilder(PageTagsResource.class).build(getWiki(), TestConstants.TEST_SPACE_NAME,
                TestConstants.TEST_PAGE_NAME).toString(), tags, "Admin", "admin");
View Full Code Here

Examples of org.yaml.snakeyaml.nodes.Tag

        }
    }

    protected class RepresentEnum implements Represent {
        public Node representData(Object data) {
            Tag tag = new Tag(data.getClass());
            return representScalar(getTag(data.getClass(), tag), ((Enum<?>) data).name());
        }
View Full Code Here

Examples of org.ytreza.app.noterex.model.Tag

  public Tag getItem(Integer id) throws ItemException{
    try {
      selectOneStatement.setInt(1, id);
      ResultSet result = selectOneStatement.executeQuery();

      Tag tag = null;
      if (result.next()) {
        tag = new Tag(id, this);
      }
      result.close();
     
      if (tag != null) {
        return tag; 
View Full Code Here

Examples of org.ytreza.app.noterex.tool.lucene.Tag

      refreshAll();
    }
  }

  public void unselectExcludedTag() {
    Tag tag = window.getSelectedExcludedTag();
   
    if (tag != null && ! tag.getName().trim().equals("")) {
      excludedTags.remove(tag);
      refreshAll();
    }
  }
View Full Code Here

Examples of promauto.jroboplc.Tag

      JRoboUtils.addModules(m1);
      JRoboUtils.addModules(m2);
    } catch (Exception e) {
    }
   
    Tag in0 = m1.tagTable.createTag("Input00", 0);
    Tag in1 = m1.tagTable.createTag("Input01", 0);
    Tag in2 = m1.tagTable.createTag("Input02", 0);
    Tag in3 = m1.tagTable.createTag("Input03", 0);
    Tag out0 = m2.tagTable.createTag("Output00", 0);
    Tag out1 = m2.tagTable.createTag("Output01", 0);
    Tag out2 = m2.tagTable.createTag("Output02", 0);
   
   
    // prepare to test "Mchb"
    Mchb m = new Mchb(m0, "333", "test device");
   
View Full Code Here

Examples of rabbit.html.Tag

  List<Token> tokens = block.getTokens ();
  int tsize = tokens.size ();
  for (int i = 0; i < tsize; i++) {
      Token t = tokens.get (i);
      if (t.getType () == TokenType.TAG) {
    Tag tag = t.getTag ();
    TagType tagtype = tag.getTagType ();
    if (tagtype == TagType.A) {
        astart = i;
        Tag atag = tag;
        int ttsize = tokens.size ();
        for (; i < ttsize; i++) {
      Token tk2 = tokens.get (i);
      if (tk2.getType () == TokenType.TAG) {
          Tag tag2 = tk2.getTag ();
          TagType t2tt = tag2.getTagType ();
          if (t2tt != null &&
        t2tt == TagType.SA)
        break;
          else if (t2tt != null &&
             t2tt == TagType.IMG) {
        if (isEvil (atag.getAttribute ("href")))
            tag2.setAttribute ("src", adreplacer);
          }
      }
        }
        if (i == tsize && astart < i) {
      block.setRest ((tokens.get (astart)).getStartIndex ());
View Full Code Here

Examples of railo.transformer.bytecode.statement.tag.Tag

    TagLibTagScript script = tlt.getScript();
    //TagLibTag tlt = CFMLTransformer.getTLT(data.cfml,type);
    if(script.getContext()==CTX_CFC)data.isCFC=true;
    else if(script.getContext()==CTX_INTERFACE)data.isInterface=true;
    //Tag tag=new TagComponent(line);
    Tag tag=getTag(data,parent,tlt, line,null);
    tag.setTagLibTag(tlt);
    tag.setScriptBase(true);
   
    // add component meta data
    if(data.isCFC) {
      addMetaData(data,tag,IGNORE_LIST_COMPONENT);
    }
    if(data.isInterface) {
      addMetaData(data,tag,IGNORE_LIST_INTERFACE);
    }
    //EvaluatorPool.getPool();
    comments(data);
   
    // attributes
    //attributes(func,data);
    Attribute[] attrs = attributes(tag,tlt,data,SEMI_BLOCK,LitString.EMPTY,script.getRtexpr()?Boolean.TRUE:Boolean.FALSE,null,false);
   
    for(int i=0;i<attrs.length;i++){
      tag.addAttribute(attrs[i]);
    }
   
    comments(data);
 
    // body
    if(tlt.getHasBody()){
      Body body=new BodyBase();
      boolean wasSemiColon=statement(data,body,script.getContext());
      if(!wasSemiColon || !tlt.isBodyFree() || body.hasStatements())
        tag.setBody(body);
     
     
     
    }
    else checkSemiColonLineFeed(data,true,true);
   
    tag.setEnd(data.cfml.getPosition());
    eval(tlt,data,tag);
    return 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.