Examples of Tag


Examples of org.cfeclipse.cfmledit.dictionary.Tag

   * TODO: Create language/tag/function scope tests for each language version
   */
  @Test
  public void testGetTag() throws IOException, JDOMException {
    Grammar g = new Grammar("railo3.xml");
    Tag tag = g.getTag("cfabort");
    assertEquals(tag.getName(), "cfabort");
    assertTrue(tag.getHelp().length()>0);
    assertTrue(tag.isSingle());
    assertFalse(tag.isXMLStyle());
   
    Tag tag1 = g.getTag("cfif");
    assertFalse("CFFIF should allow any tag", tag1.isCanHaveAttributeCollection());
    assertFalse("CFFIF needs a closing CFIF", tag1.isSingle());
   
   
  }
View Full Code Here

Examples of org.corrib.jonto.thesaurus.tags.Tag

     
      //if(st != null){
       
     
       
          Tag t = Tag.getTag(statement.getObject().toString(),null, null, null);
          keyword=t;
     
     
     
//        keyword = ThesaurusStorage.getInstance().LocalizedWord.createLocalizedWord(st.next().getObject().asLiteral().toString(), new Locale(st.next().getObject().asLanguageTagLiteral().toString()), null);
View Full Code Here

Examples of org.crank.crud.model.Tag

    return "crankWebExample";
  }
 
  @BeforeClass (groups="setup", dependsOnGroups="class-init")
  public void setupTags(){
    testTags = getTagRepo().store(Arrays.asList(new Tag [] {new Tag("one"), new Tag("two"), new Tag("three")}));
    testEmployee  = getEmployeeRepo().store(new Employee("Rick", "Hightower", 5));
    otherEmployee = getEmployeeRepo().store(new Employee("Foo", "Bar", 5));
    loadForm();
    availableTags = tagController.getAvailableChoices();
  }
View Full Code Here

Examples of org.damour.base.client.objects.Tag

import org.junit.Test;

public class TagTest {

  public Tag createTag(String name, String desc, Tag parent) {
    Tag tag = new Tag();
    tag.setName(name);
    tag.setDescription(desc);
    tag.setParentTag(parent);
    return tag;
  }
View Full Code Here

Examples of org.docx4j.wml.Tag

      SdtPr sdtPr = sdt.getSdtPr();
     
      if (sdtPr.getDataBinding()==null ) {
       
        // Identify xpathId
        Tag tag = sdtPr.getTag();
        HashMap<String, String> map = QueryString.parseQueryString(tag.getVal(), true);
        String xpathId= map.get(OpenDoPEHandler.BINDING_ROLE_XPATH);
       
        // Look up - throws InputIntegrityException if not found
        Xpath xp = xPathsPart.getXPathById(xpathId);
         
View Full Code Here

Examples of org.eclipse.jgit.lib.Tag

   * @param walk
   *            revision walker owning this reference.
   * @return parsed tag.
   */
  public Tag asTag(final RevWalk walk) {
    return new Tag(walk.repository, this, tagName, buffer);
  }
View Full Code Here

Examples of org.eclipse.orion.server.git.objects.Tag

        String tagName = gitSegment;
        URI cloneLocation = BaseToCloneConverter.getCloneLocation(getURI(request), BaseToCloneConverter.TAG);

        Ref ref = db.getRefDatabase().getRef(Constants.R_TAGS + tagName);
        if (ref != null) {
          Tag tag = new Tag(cloneLocation, db, ref);
          OrionServlet.writeJSONResponse(request, response, tag.toJSON(), JsonURIUnqualificationStrategy.ALL_NO_GIT);
          return true;
        } else {
          String msg = NLS.bind("Tag not found: {0}", tagName);
          return statusHandler.handleRequest(request, response, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_NOT_FOUND, msg, null));
        }
View Full Code Here

Examples of org.encog.parse.tags.Tag

    while (count < this.page.getDataSize()) {
      final DataUnit du = this.page.getDataUnit(count);

      if (du instanceof TagDataUnit) {
        final Tag nextTag = ((TagDataUnit) du).getTag();
        if (tag.getName().equalsIgnoreCase(nextTag.getName())) {
          if (nextTag.getType() == Tag.Type.END) {
            if (depth == 0) {
              return count;
            } else {
              depth--;
            }
          } else if (nextTag.getType() == Tag.Type.BEGIN) {
            depth++;
          }
        }
      }
      count++;
View Full Code Here

Examples of org.freehep.util.io.Tag

     */
    public EMFRenderer(EMFInputStream is) throws IOException {
        this.header = is.readHeader();

        // read all tags
        Tag tag;
        while ((tag = is.readTag()) != null) {
            tags.add(tag);
        }
        is.close();
    }
View Full Code Here

Examples of org.htmlparser.Tag

            Node node = e.nextNode();
            // a url is always in a Tag.
            if (!(node instanceof Tag)) {
                continue;
            }
            Tag tag = (Tag) node;
            String tagname=tag.getTagName();
            String binUrlStr = null;

            // first we check to see if body tag has a
            // background set
            if (tag instanceof BodyTag) {
                binUrlStr = tag.getAttribute(ATT_BACKGROUND);
            } else if (tag instanceof BaseHrefTag) {
                BaseHrefTag baseHref = (BaseHrefTag) tag;
                String baseref = baseHref.getBaseUrl();
                try {
                    if (!baseref.equals(""))// Bugzilla 30713
                    {
                        baseUrl.url = ConversionUtils.makeRelativeURL(baseUrl.url, baseHref.getBaseUrl());
                    }
                } catch (MalformedURLException e1) {
                    throw new HTMLParseException(e1);
                }
            } else if (tag instanceof ImageTag) {
                ImageTag image = (ImageTag) tag;
                binUrlStr = image.getImageURL();
            } else if (tag instanceof AppletTag) {
                // look for applets

                // This will only work with an Applet .class file.
                // Ideally, this should be upgraded to work with Objects (IE)
                // and archives (.jar and .zip) files as well.
                AppletTag applet = (AppletTag) tag;
                binUrlStr = applet.getAppletClass();
            } else if (tag instanceof InputTag) {
                // we check the input tag type for image
                if (ATT_IS_IMAGE.equalsIgnoreCase(tag.getAttribute(ATT_TYPE))) {
                    // then we need to download the binary
                    binUrlStr = tag.getAttribute(ATT_SRC);
                }
            } else if (tag instanceof LinkTag) {
                LinkTag link = (LinkTag) tag;
                if (link.getChild(0) instanceof ImageTag) {
                    ImageTag img = (ImageTag) link.getChild(0);
                    binUrlStr = img.getImageURL();
                }
            } else if (tag instanceof ScriptTag) {
                binUrlStr = tag.getAttribute(ATT_SRC);
                // Bug 51750
            } else if (tag instanceof FrameTag || tagname.equalsIgnoreCase(TAG_IFRAME)) {
                binUrlStr = tag.getAttribute(ATT_SRC);
            } else if (tagname.equalsIgnoreCase(TAG_EMBED)
                || tagname.equalsIgnoreCase(TAG_BGSOUND)){
                binUrlStr = tag.getAttribute(ATT_SRC);
            } else if (tagname.equalsIgnoreCase(TAG_LINK)) {
                // Putting the string first means it works even if the attribute is null
                if (STYLESHEET.equalsIgnoreCase(tag.getAttribute(ATT_REL))) {
                    binUrlStr = tag.getAttribute(ATT_HREF);
                }
            } else {
                binUrlStr = tag.getAttribute(ATT_BACKGROUND);
            }

            if (binUrlStr != null) {
                urls.addURL(binUrlStr, baseUrl.url);
            }

            // Now look for URLs in the STYLE attribute
            String styleTagStr = tag.getAttribute(ATT_STYLE);
            if(styleTagStr != null) {
                HtmlParsingUtils.extractStyleURLs(baseUrl.url, urls, styleTagStr);
            }

            // second, if the tag was a composite 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.