Tabnine Logo
TagModel.setPseudo
Code IndexAdd Tabnine to your IDE (free)

How to use
setPseudo
method
in
org.jboss.windup.reporting.model.TagModel

Best Java code snippets using org.jboss.windup.reporting.model.TagModel.setPseudo (Showing top 2 results out of 315)

origin: org.jboss.windup.reporting/windup-reporting-api

/**
 * Creates and returns the TagModel in a graph as per given Tag;
 * recursively creates the designated ("contained") tags.
 * <p>
 * If the Tag was already processed exists, returns the corresponding TagModel.
 * Doesn't check if the TagModel for given tag name already exists, assuming this method is only called once.
 */
private TagModel feedTagStructureToGraph(Tag tag, Set<Tag> visited, int level)
{
  if (visited.contains(tag))
    return this.getUniqueByProperty(TagModel.PROP_NAME, tag.getName(), true);
  visited.add(tag);
  LOG.fine(String.format("Creating TagModel for Tag: %s%s(%d)   '%s'  traits: %s", StringUtils.repeat(' ', level*2),
      tag.getName(), tag.getContainedTags().size(), tag.getTitle(), tag.getTraits()));
  TagModel tagModel = this.create();
  tagModel.setName(tag.getName());
  tagModel.setTitle(tag.getTitle());
  tagModel.setColor(tag.getColor());
  tagModel.setRoot(tag.isPrime());
  tagModel.setPseudo(tag.isPseudo());
  if (null != tag.getTraits())
    tagModel.putAllTraits(tag.getTraits());
  tag.getContainedTags().forEach(tag2 -> {
    TagModel tag2model = feedTagStructureToGraph(tag2, visited, level+1);
    tagModel.addDesignatedTag(tag2model);
  });
  return tagModel;
}
origin: windup/windup

/**
 * Creates and returns the TagModel in a graph as per given Tag;
 * recursively creates the designated ("contained") tags.
 * <p>
 * If the Tag was already processed exists, returns the corresponding TagModel.
 * Doesn't check if the TagModel for given tag name already exists, assuming this method is only called once.
 */
private TagModel feedTagStructureToGraph(Tag tag, Set<Tag> visited, int level)
{
  if (visited.contains(tag))
    return this.getUniqueByProperty(TagModel.PROP_NAME, tag.getName(), true);
  visited.add(tag);
  LOG.fine(String.format("Creating TagModel for Tag: %s%s(%d)   '%s'  traits: %s", StringUtils.repeat(' ', level*2),
      tag.getName(), tag.getContainedTags().size(), tag.getTitle(), tag.getTraits()));
  TagModel tagModel = this.create();
  tagModel.setName(tag.getName());
  tagModel.setTitle(tag.getTitle());
  tagModel.setColor(tag.getColor());
  tagModel.setRoot(tag.isPrime());
  tagModel.setPseudo(tag.isPseudo());
  if (null != tag.getTraits())
    tagModel.putAllTraits(tag.getTraits());
  tag.getContainedTags().forEach(tag2 -> {
    TagModel tag2model = feedTagStructureToGraph(tag2, visited, level+1);
    tagModel.addDesignatedTag(tag2model);
  });
  return tagModel;
}
org.jboss.windup.reporting.modelTagModelsetPseudo

Popular methods of TagModel

  • getDesignatedByTags
    Which tags is this tag designated by; for instance, "seam" is designated by "web" and "framework:".
  • getDesignatedTags
    Which tags this designates; for instance, "java-ee" designates "ejb" and "jms".
  • getName
    Tag name (ID), preferably kebab-style, e.g "java-ee-6".
  • addDesignatedTag
  • getTitle
    Human readable title of technology this tag represents, e.g "Java EE 6".
  • putAllTraits
    A map of traits - custom tag key-value pairs.
  • setColor
  • setName
  • setRoot
  • setTitle

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now