congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PackageNameMappingWithPackagePattern.toOrganization
Code IndexAdd Tabnine to your IDE (free)

How to use
toOrganization
method
in
org.jboss.windup.rules.apps.java.scan.operation.packagemapping.PackageNameMappingWithPackagePattern

Best Java code snippets using org.jboss.windup.rules.apps.java.scan.operation.packagemapping.PackageNameMappingWithPackagePattern.toOrganization (Showing top 3 results out of 315)

origin: org.jboss.windup.rules.apps/rules-java

@Override
public Void processElement(ParserContext context, Element element)
{
  String from = $(element).attr(FROM);
  String to = $(element).attr(TO);
  if (StringUtils.isBlank(from))
  {
    throw new WindupException("The '" + ELEM_NAME + "' element must have a non-empty '" + FROM + "' attribute");
  }
  if (StringUtils.isBlank(to))
  {
    throw new WindupException("The '" + ELEM_NAME + "' element must have a non-empty '" + TO + "' attribute");
  }
  context.getBuilder().addRule(PackageNameMapping.fromPackage(from).toOrganization(to));
  return null;
}
origin: windup/windup

@Override
public Void processElement(ParserContext context, Element element)
{
  String id = $(element).attr("id");
  String from = $(element).attr(FROM);
  String to = $(element).attr(TO);
  if (StringUtils.isBlank(from))
  {
    throw new WindupException("The '" + ELEM_NAME + "' element must have a non-empty '" + FROM + "' attribute");
  }
  if (StringUtils.isBlank(to))
  {
    throw new WindupException("The '" + ELEM_NAME + "' element must have a non-empty '" + TO + "' attribute");
  }
  PackageNameMappingWithOrganization withOrganization = PackageNameMapping.fromPackage(from).toOrganization(to);
  Rule rule = StringUtils.isNotBlank(id) ? withOrganization.withId(id) : withOrganization;
  if (rule instanceof Context)
    ((Context) rule).put(RuleMetadataType.RULE_XML, XmlUtil.nodeToString(element));
  context.getBuilder().addRule(rule);
  return null;
}
origin: org.jboss.windup.rules.apps/windup-rules-java-api

@Override
public Void processElement(ParserContext context, Element element)
{
  String id = $(element).attr("id");
  String from = $(element).attr(FROM);
  String to = $(element).attr(TO);
  if (StringUtils.isBlank(from))
  {
    throw new WindupException("The '" + ELEM_NAME + "' element must have a non-empty '" + FROM + "' attribute");
  }
  if (StringUtils.isBlank(to))
  {
    throw new WindupException("The '" + ELEM_NAME + "' element must have a non-empty '" + TO + "' attribute");
  }
  PackageNameMappingWithOrganization withOrganization = PackageNameMapping.fromPackage(from).toOrganization(to);
  Rule rule = StringUtils.isNotBlank(id) ? withOrganization.withId(id) : withOrganization;
  if (rule instanceof Context)
    ((Context) rule).put(RuleMetadataType.RULE_XML, XmlUtil.nodeToString(element));
  context.getBuilder().addRule(rule);
  return null;
}
org.jboss.windup.rules.apps.java.scan.operation.packagemappingPackageNameMappingWithPackagePatterntoOrganization

Javadoc

Sets the package pattern to match against.

Popular methods of PackageNameMappingWithPackagePattern

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • onRequestPermissionsResult (Fragment)
    • setContentView (Activity)
    • getSupportFragmentManager (FragmentActivity)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • Container (java.awt)
      A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • Deque (java.util)
      A linear collection that supports element insertion and removal at both ends. The name deque is shor
    • LinkedHashMap (java.util)
      LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
    • HttpServletRequest (javax.servlet.http)
      Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
    • 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