Codota Logo
ResourceFile$Finder.result
Code IndexAdd Codota to your IDE (free)

How to use
result
method
in
it.tidalwave.northernwind.core.model.ResourceFile$Finder

Best Java code snippets using it.tidalwave.northernwind.core.model.ResourceFile$Finder.result (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

/*******************************************************************************************************************
 *
 ******************************************************************************************************************/
private List<ResourceFile> getFiles (final @Nonnull String prefix,
                   final @Nonnull String propertyFileName,
                   final @Nonnull ResourceFile folder,
                   final @Nonnull List<String> suffixes)
 {
  final List<ResourceFile> files = new ArrayList<>();
  for (final String localeSuffix : suffixes)
   {
    final String fileName = prefix + propertyFileName + localeSuffix + ".xml";
    log.trace(">>>> probing {} ...", folder.getPath().asString() + "/" + fileName);
    try
     {
      files.add(folder.findChildren().withName(fileName).result());
     }
    catch (NotFoundException e)
     {
      // ok. do nothing
     }
   }
  return files;
 }
origin: it.tidalwave.northernwind.rca/it-tidalwave-northernwind-rca-model

return folder.findChildren().withName(localizedFileName).result();
origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

return folder.findChildren().withName(localizedFileName).result();
origin: it.tidalwave.northernwind.rca/it-tidalwave-northernwind-rca-model

 /*******************************************************************************************************************
  *
  *
  ******************************************************************************************************************/
 @Nonnull
 private ResourceProperties loadProperties()
  throws IOException
  {
   final ResourceFile file = getFile();
   log.debug("loadProperties() for {}", file.getPath().asString());
   ResourceProperties properties = modelFactory.createProperties().withPropertyResolver(propertyResolver).build();
   try
    {
     final ResourceFile propertyFile = file.findChildren().withName("Properties.xml").result(); // FIXME reuse the inheritance helper
 //        log.trace(">>>> reading properties from {} ({})...", propertyFile.getPath().asString(), locale);
     @Cleanup final InputStream is = propertyFile.getInputStream();
     final ResourceProperties tempProperties =
 //            modelFactory.createProperties().build().as(Unmarshallable).unmarshal(is);
         modelFactory.createProperties().withPropertyResolver(propertyResolver).build().as(Unmarshallable).unmarshal(is);
 //        log.trace(">>>>>>>> read properties: {} ({})", tempProperties, locale);
     properties = properties.merged(tempProperties);
    }
   catch (NotFoundException e)
    {
     // ok, no properties
    }
   return properties;
  }
}
it.tidalwave.northernwind.core.modelResourceFile$Finderresult

Popular methods of ResourceFile$Finder

  • results
  • withName
  • withRecursion

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • runOnUiThread (Activity)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Collectors (java.util.stream)
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