Examples of TagData


Examples of javax.servlet.jsp.tagext.TagData

                                                                  attr
                                                              }
                                                              ));
        }
       
        tagData = new TagData(attribs);
        if (!ti.isValid(tagData))
            throw new CompileException(start,
               Constants.getString("jsp.error.invalid_attributes"));
    }
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagData

            Hashtable<String, Object> tagDataAttrs = new Hashtable<String, Object>(attrsSize);

            checkXmlAttributes(n, jspAttrs, tagDataAttrs);
            checkNamedAttributes(n, jspAttrs, attrsSize, tagDataAttrs);

            TagData tagData = new TagData(tagDataAttrs);

            // JSP.C1: It is a (translation time) error for an action that
            // has one or more variable subelements to have a TagExtraInfo
            // class that returns a non-null object.
            TagExtraInfo tei = tagInfo.getTagExtraInfo();
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagData

        err.jspError(n, "jsp.error.bad_attribute",
         attrs.getQName(i));
    }
      }

      TagData tagData = new TagData(tagDataAttrs);
      n.setTagData(tagData);
      n.setJspAttributes(jspAttrs);

      visitBody(n);
  }
View Full Code Here

Examples of net.sourceforge.processdash.data.TagData

    }

    private static SimpleDataContext getContextTags(boolean filterInEffect,
            boolean isRollup, boolean hideNames) {
        SimpleDataContext ctx = new SimpleDataContext();
        TagData tag = TagData.getInstance();

        ctx.put(EVSnippetEnvironment.EV_CONTEXT_KEY, tag);
        if (isRollup)
            ctx.put(EVSnippetEnvironment.ROLLUP_EV_CONTEXT_KEY, tag);
        if (filterInEffect)
View Full Code Here

Examples of org.cfeclipse.cfml.editors.partitioner.TagData

    fDblQuotesOpen = false;
    fSnglQuotesOpen = false;
    if (resume) {
     
      if (endSequenceDetected(scanner, tagString)) {
          TagData data = null;
          if (fStartSequence[1] != '/') {
              data = new TagData(fPartitionType + "_begin",tagString.toString(), fMidPartitionType,fPartitionType +"_end", new String(fStartSequence).substring(1) );
          } else {
              data = new TagData(fPartitionType,tagString.toString(), fMidPartitionType,fPartitionType, new String(fStartSequence).substring(2));
          }
        return new Token(data);
      }
   
    } else {
     
      int c= scanner.read();
      if (c == fStartSequence[0]) {
          tagString.append((char)c);
        if (sequenceDetected(scanner, fStartSequence, false, tagString)) {
          if (endSequenceDetected(scanner, tagString)) {
              TagData data = null;
              if (fStartSequence[1] != '/') {
                  data = new TagData(fPartitionType + "_begin",tagString.toString(), fMidPartitionType,fPartitionType +"_end", new String(fStartSequence).substring(1) );
              } else {
                  data = new TagData(fPartitionType,tagString.toString(), fMidPartitionType,fPartitionType, new String(fStartSequence).substring(2));
              }
            return new Token(data);
          }
        }
      }
View Full Code Here

Examples of org.htmlparser.tags.data.TagData

     * This is the reproduction of a bug which causes a null pointer exception
     */
    public void testExtractLinkInvertedCommasBug() throws ParserException
    {
        String tagContents = "a href=r/anorth/top.html";
        Tag tag = new Tag(new TagData(0, 0, tagContents, ""));
        String url = "c:\\cvs\\html\\binaries\\yahoo.htm";
        LinkScanner scanner = new LinkScanner("-l");
        assertEquals(
            "Extracted Link",
            "r/anorth/top.html",
View Full Code Here

Examples of org.htmlparser.tags.data.TagData

    public void testReplaceFaultyTagWithEndTag() throws ParserException
    {
        String currentLine =
            "<p>Site Comments?<br><a href=\"mailto:sam@neurogrid.com?subject=Site Comments\">Mail Us<a></p>";
        Tag tag = new Tag(new TagData(85, 87, "a", currentLine));
        LinkScanner linkScanner = new LinkScanner();
        String newLine =
            linkScanner.replaceFaultyTagWithEndTag(tag, currentLine);
        assertEquals(
            "Expected replacement",
View Full Code Here

Examples of org.htmlparser.tags.data.TagData

    }

    public void testInsertEndTagBeforeTag() throws ParserException
    {
        String currentLine = "<a href=s/7509><b>Yahoo! Movies</b></a>";
        Tag tag = new Tag(new TagData(0, 14, "a href=s/7509", currentLine));
        LinkScanner linkScanner = new LinkScanner();
        String newLine = linkScanner.insertEndTagBeforeNode(tag, currentLine);
        assertEquals(
            "Expected insertion",
            "</A><a href=s/7509><b>Yahoo! Movies</b></a>",
View Full Code Here

Examples of org.htmlparser.tags.data.TagData

            new StringNode(new StringBuffer("Script Code"), 0, 0);
        NodeList childVector = new NodeList();
        childVector.add(stringNode);
        ScriptTag scriptTag =
            new ScriptTag(
                new TagData(0, 10, "Tag Contents", "tagline"),
                new CompositeTagData(null, null, childVector));

        assertNotNull("Script Tag object creation", scriptTag);
        assertEquals("Script Tag Begin", 0, scriptTag.elementBegin());
        assertEquals("Script Tag End", 10, scriptTag.elementEnd());
View Full Code Here

Examples of org.htmlparser.tags.data.TagData

        char ch;
        char[] ignorechar = new char[1];
        // holds the character we're looking for when in TAG_IGNORE_DATA_STATE
        Tag tag =
            new Tag(
                new TagData(
                    position,
                    0,
                    reader.getLastLineNumber(),
                    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.