Codota Logo
PackageNameMappingWithPackagePattern.toOrganization
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

    • Making http post requests using okhttp
    • notifyDataSetChanged (ArrayAdapter)
    • scheduleAtFixedRate (Timer)
      Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
    • setRequestProperty (URLConnection)
      Sets the general request property. If a property with the key already exists, overwrite its value wi
    • String (java.lang)
    • Timestamp (java.sql)
      A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
    • Random (java.util)
      This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • JList (javax.swing)
    • Response (javax.ws.rs.core)
      Defines the contract between a returned instance and the runtime when an application needs to provid
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now