Examples of Tag


Examples of ru.org.linux.util.bbcode.tags.Tag

   */
  private Node pushTagNode(ParserAutomatonState automatonState, Node currentNode, String name, String parameter) {
    if (!currentNode.allows(name)) {
      Map<String, Tag> allTagsDict = parserParameters.getAllTagsDict();
      Set<String> blockLevelTags = parserParameters.getBlockLevelTags();
      Tag newTag = allTagsDict.get(name);

      if (newTag.isDiscardable()) {
        return currentNode;
      } else if (currentNode == automatonState.getRootNode()
              || blockLevelTags.contains(((TagNode) currentNode).getBbtag().getName()) && newTag.getImplicitTag() != null) {
        if (currentNode != automatonState.getRootNode() && TagNode.class.isInstance(currentNode)) {
          TagNode currentTagNode = (TagNode) currentNode;
          if ("p".equals(currentTagNode.getBbtag().getName())) {
            currentNode = currentNode.getParent();
            return pushTagNode(automatonState, currentNode, name, parameter);
          }
        }
        currentNode = pushTagNode(automatonState, currentNode, newTag.getImplicitTag(), "");
        currentNode = pushTagNode(automatonState, currentNode, name, parameter);
      } else {
        currentNode = currentNode.getParent();
        currentNode = pushTagNode(automatonState, currentNode, name, parameter);
      }
View Full Code Here

Examples of soot.tagkit.Tag

            Scene.v().setPointsToAnalysis(onDemandAnalysis);
        }
    }
   
    protected void addTags( PAG pag ) {
        final Tag unknown = new StringTag( "Untagged Spark node" );
        final Map<Node, Tag> nodeToTag = pag.getNodeTags();
        for( Iterator cIt = Scene.v().getClasses().iterator(); cIt.hasNext(); ) {
            final SootClass c = (SootClass) cIt.next();
            for( Iterator mIt = c.methodIterator(); mIt.hasNext(); ) {
                SootMethod m = (SootMethod) mIt.next();
View Full Code Here

Examples of springblog.pojo.Tag

  private TagManager tagManager = null;
 
 
  @RequestMapping(value = "/add", method = RequestMethod.GET)
  public String addTag(Model model) {
    model.addAttribute("tag", new Tag());
    return "tag-form";
  }
View Full Code Here

Examples of tagRecommendation.folksonomyDatatypes.Tag

        }
        filterString = filterString.substring(0, filterString.length()-4) + ")";

        for(String tag: allTags.keySet()){
            if(allTags.get(tag)>=tLim){
                Tag t = new Tag(tag);
                for(String r : Metrics.getResources(tag, filterString, c))
                    t.setItem(Item.RESOURCE, r);
                for(int u : Metrics.getUsers(tag, filterString, c)){
                    if(allUsers.get(u+"")>=uLim)
                        t.setItem(Item.USER, u+"");
                }
                ff.setTag(tag, t);
            }
        }
View Full Code Here

Examples of tv.porst.swfretools.parser.tags.Tag

  /**
   * Creates the child nodes of the node.
   */
  private void createChildren() {

    final Tag tag = getUserObject();

    addNode("Header", tag.getHeader());

    if (tag instanceof CSMTextSettingsTag) {
      final CSMTextSettingsTag ctag = (CSMTextSettingsTag) tag;

      addNode("TextID", ctag.getTextId());
View Full Code Here

Examples of util.XMLTools.Tag

            }

            // Action for constructor Tag(TagName, attrName, attrValue)
            if (oTag.length == 3) {
                if ((oTag[1] instanceof String)&&(oTag[2] instanceof String)) {
                    allTags.add(new Tag(oTagName,
                                    (String) oTag[1], (String) oTag[2]));
                } else {
                    throw new com.sun.star.uno.Exception("Error: invalid tag '"+
                                    oTagName+"' received from basic test!");
                }

            // Action for constructors:
            // Tag(TagName, String[][] attrValues )
            // Tag(TagName, String[] attrNames)
            // Tag(TagName, String attrName)
            //
            } else if (oTag.length == 2) {
                if (oTag[1] instanceof String[][]) {
                    allTags.add(new Tag(oTagName, (String[][]) oTag[1]));
                } else if (oTag[1] instanceof String[]) {
                    allTags.add(new Tag(oTagName, (String[]) oTag[1]));
                } else if (oTag[1] instanceof String) {
                    allTags.add(new Tag(oTagName, (String) oTag[1]));
                } else {
                    throw new com.sun.star.uno.Exception("Error: invalid tag '"+
                    oTagName+"' received from basic test!");
                }

            // Action for constructor Tag(TagName)
            } else if (oTag.length == 1) {
                if (oTag[0] instanceof String) {
                    allTags.add(new Tag(oTagName));
                } else {
                    throw new com.sun.star.uno.Exception("Error: invalid tag '"+
                    oTagName+"' received from basic test!");
                }
            } else {
View Full Code Here

Examples of vmcreative.htmlparser.Tag

  }
 
  private void parse(HTMLParser htmlparser) throws ParseException {
      List tagList;
      int size;
      Tag lastTag;
   
    tagList = htmlparser.getTagList();
    size = tagList.size();
   
    if(size == 0) {
      this.trailingData = htmlparser.getText(0, htmlparser.getHTMLLength()-1);
      return;
    }
    // Add all the fields to the html tree as tags
    for(int i = 0; i < size; i++) { 
      parseTag(htmlparser, (Tag)tagList.get(i));
    }
   
    // Convert the html tags into injection targets
    size = tagList.size();
    Tag tag;
    for(int i = 0; i < size; i++) { 
      tag = (Tag)tagList.get(i);
        if(tag.getName().equalsIgnoreCase("irow")) {
          this.positionsList.add(new HTMLTargetRow(htmlparser, null, tag));
      } else if(tag.getName().equalsIgnoreCase("iwindow")) {
        this.positionsList.add(new HTMLTargetWindow(htmlparser, null, tag));
      } else {
        this.positionsList.add(new HTMLTargetGroup(htmlparser, null, tag));
      }
    }
View Full Code Here

Examples of weka.core.Tag

  }

  private void setUpFileFormatComboBox() {
    m_fileFormatBox = new JComboBox();
    for (int i = 0; i < SerializedModelSaver.s_fileFormatsAvailable.size(); i++) {
      Tag temp = SerializedModelSaver.s_fileFormatsAvailable.get(i);
      m_fileFormatBox.addItem(temp);
    }

    Tag result = m_smSaver.validateFileFormat(m_smSaver.getFileFormat());
    if (result == null) {
      m_fileFormatBox.setSelectedIndex(0);
    } else {
      m_fileFormatBox.setSelectedItem(result);
    }

    m_fileFormatBox.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          Tag selected = (Tag)m_fileFormatBox.getSelectedItem();
          if (selected != null) {
            m_smSaver.setFileFormat(selected);
          }
        }
      });
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.