Examples of Tag


Examples of org.apache.ivory.Tag

    protected T getEntity() {
        return entity;
    }

    protected Path getCoordPath(Path bundlePath, String coordName) {
        Tag tag = EntityUtil.getWorkflowNameTag(coordName, getEntity());
        return new Path(bundlePath, tag.name());
    }
View Full Code Here

Examples of org.apache.jetspeed.rewriter.rules.Tag

              
        tagMap.clear();       
        it = tags.iterator();
        while (it.hasNext())                   
        {
            Tag tag = (Tag)it.next();
            tagMap.put(tag.getId(), tag);
            Iterator attributes = tag.getAttributes().iterator();
            while (attributes.hasNext())
            {               
                Attribute attribute = (Attribute)attributes.next();               
                if (attribute instanceof AttributeImpl)
                {
View Full Code Here

Examples of org.apache.myfaces.tobago.apt.annotation.Tag

      IOUtils.closeQuietly(writer);
    }
  }

  protected void appendTag(ClassDeclaration decl, Element parent, Document document) {
    Tag annotationTag = decl.getAnnotation(Tag.class);
    checkDuplicates(annotationTag.name());
    resetAttributeDuplicateList();
    String className = decl.getQualifiedName();
    TagGeneration tagGeneration = decl.getAnnotation(TagGeneration.class);
    if (tagGeneration != null) {
      className = tagGeneration.className();
    }
    Element tag = createTag(decl, annotationTag, className, document, false);
    addAttributes(decl, tag, document);
    parent.appendChild(tag);
    if (annotationTag.deprecatedName() != null&&annotationTag.deprecatedName().length() > 0) {
      Element deprecatedTag = createTag(decl, annotationTag, className, document, true);
      addAttributes(decl, deprecatedTag, document);
      parent.appendChild(deprecatedTag);
    }
  }
View Full Code Here

Examples of org.apache.portals.applications.webcontent.rewriter.rules.Tag

        if (null == ruleset)
        {
            return false;
        }
       
        Tag tag = ruleset.getTag(tagid.toUpperCase());
        if (null == tag)
        {
            return false;
        }
        return tag.getStrip();       
    }
View Full Code Here

Examples of org.apache.rave.model.Tag

    }

    @Test
    public void getByKeyword() {
        String keyword = "key";
        Tag t = new TagImpl("1", keyword);
        expect(tagTemplate.findOne(Query.query(Criteria.where("keyword").is(keyword)))).andReturn(t);
        replay(tagTemplate);

        Tag fromRepo = repo.getByKeyword(keyword);
        assertThat(fromRepo.getKeyword(), is(equalTo(keyword)));
    }
View Full Code Here

Examples of org.apache.rave.portal.model.Tag

        assertEquals(repository.getType(), JpaTag.class);
    }

    @Test
    public void getById_validId() {
        final Tag tag = repository.get(VALID_ID);
        assertNotNull(tag);
        assertEquals(VALID_ID, ((JpaTag)tag).getEntityId());
        assertEquals(tag.getKeyword(), "news");
    }
View Full Code Here

Examples of org.apache.wicket.protocol.http.documentvalidation.Tag

   * @return The validation result
   */
  private boolean validatePage1(String document)
  {
    HtmlDocumentValidator validator = new HtmlDocumentValidator();
    Tag html = new Tag("html");
    Tag head = new Tag("head");
    html.addExpectedChild(head);
    Tag title = new Tag("title");
    head.addExpectedChild(title);
    title.addExpectedChild(new TextContent("Paged Table Page"));
    Tag body = new Tag("body");
    html.addExpectedChild(body);

    Tag ulTable = new Tag("ul");
    ulTable.addExpectedChild(new Tag("li").addExpectedChild(new Tag("span").addExpectedChild(new TextContent(
      "one"))));
    ulTable.addExpectedChild(new Tag("li").addExpectedChild(new Tag("span").addExpectedChild(new TextContent(
      "two"))));
    // note that we DO NOT expect the third element as this is not on the current page
    body.addExpectedChild(ulTable);

    Tag ulNav = new Tag("ul");
    ulNav.addExpectedChild(new Tag("li").addExpectedChild(new Tag("a").addExpectedChild(new Tag(
      "span").addExpectedChild(new TextContent("1")))));
    ulNav.addExpectedChild(new Tag("li").addExpectedChild(new Tag("a").addExpectedChild(new Tag(
      "span").addExpectedChild(new TextContent("2")))));

    body.addExpectedChild(ulNav);

    validator.addRootElement(html);
View Full Code Here

Examples of org.aspectj.apache.bcel.generic.Tag

      Iterator<InstructionTargeter> tIter = src.getTargeters().iterator();
      while (tIter.hasNext()) {
        InstructionTargeter old = tIter.next();
        if (old instanceof Tag) {
          Tag oldTag = (Tag) old;
          Tag fresh = tagMap.get(oldTag);
          if (fresh == null) {
            fresh = oldTag.copy();
            if (old instanceof LocalVariableTag) {
              // LocalVariable
              LocalVariableTag lvTag = (LocalVariableTag) old;
View Full Code Here

Examples of org.brixcms.markup.tag.Tag

    private List<Item> filter(List<Item> items) {
        List<Item> result = new ArrayList<Item>();

        for (Item i : items) {
            if (i instanceof Tag) {
                Tag tag = (Tag) i;
                if (shouldFilter(tag.getName())) {
                    continue;
                }
            }
            result.add(i);
        }
View Full Code Here

Examples of org.cfeclipse.cfml.dictionary.Tag

        String display = "";
        String help = "";
       
        if(obj[i] instanceof Tag)
        { 
          Tag ptr_tg = (Tag)obj[i];
         
          //get the full on name
          name = ptr_tg.getName();
          display = ptr_tg.toString();
          help = ptr_tg.getHelp();
          boolean hasParams = ptr_tg.hasParameters();
          boolean isXmlStyle = ptr_tg.isXMLStyle();
          boolean isSingle = ptr_tg.isSingle();
          boolean takesCFScriptExp = false;
         
          // Bodge job for cfif, cfelse, cfelseif, cfset, and cfreturn
          if(name.compareToIgnoreCase("cfif") == 0
            || name.compareToIgnoreCase("cfelse") == 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.