Tabnine Logo
Configuration.getSubConfigurations
Code IndexAdd Tabnine to your IDE (free)

How to use
getSubConfigurations
method
in
de.jollyday.config.Configuration

Best Java code snippets using de.jollyday.config.Configuration.getSubConfigurations (Showing top 7 results out of 315)

origin: stanfordnlp/CoreNLP

public static void getAllHolidays(Configuration config, Set<de.jollyday.config.Holiday> allHolidays) {
 Holidays holidays = config.getHolidays();
 getAllHolidays(holidays, allHolidays);
 List<Configuration> subConfigs = config.getSubConfigurations();
 for (Configuration c:subConfigs) {
  getAllHolidays(c, allHolidays);
 }
}
origin: de.jollyday/jollyday

Map<String, Integer> hierarchyMap = new HashMap<>();
Set<String> multipleHierarchies = new HashSet<>();
for (Configuration subConfig : c.getSubConfigurations()) {
  String hierarchy = subConfig.getHierarchy();
  if (!hierarchyMap.containsKey(hierarchy)) {
for (Configuration subConfig : c.getSubConfigurations()) {
  validateConfigurationHierarchy(subConfig);
origin: de.jollyday/jollyday

/**
 * Logs the hierarchy structure.
 *
 * @param c
 *            Configuration to log hierarchy for.
 * @param level
 *            a int.
 */
protected static void logHierarchy(final Configuration c, int level) {
  if (LOG.isLoggable(Level.FINER)) {
    StringBuilder space = new StringBuilder();
    for (int i = 0; i < level; i++) {
      space.append("-");
    }
    LOG.finer(space + " " + c.getDescription() + "(" + c.getHierarchy() + ").");
    for (Configuration sub : c.getSubConfigurations()) {
      logHierarchy(sub, level + 1);
    }
  }
}
origin: com.guokr/stan-cn-com

public static void getAllHolidays(Configuration config, Set<de.jollyday.config.Holiday> allHolidays)
{
 Holidays holidays = config.getHolidays();
 getAllHolidays(holidays, allHolidays);
 List<Configuration> subConfigs = config.getSubConfigurations();
 for (Configuration c:subConfigs) {
  getAllHolidays(c, allHolidays);
 }
}
origin: edu.stanford.nlp/stanford-corenlp

public static void getAllHolidays(Configuration config, Set<de.jollyday.config.Holiday> allHolidays) {
 Holidays holidays = config.getHolidays();
 getAllHolidays(holidays, allHolidays);
 List<Configuration> subConfigs = config.getSubConfigurations();
 for (Configuration c:subConfigs) {
  getAllHolidays(c, allHolidays);
 }
}
origin: de.jollyday/jollyday

/**
 * Parses the provided configuration for the provided year and fills the
 * list of holidays.
 *
 * @param year the year to get the holidays for
 * @param c the holiday configuration
 * @param holidaySet the set of holidays
 * @param args the arguments to descend down the configuration tree
 */
private void getHolidays(int year, final Configuration c, Set<Holiday> holidaySet, final String... args) {
  if (LOG.isLoggable(Level.FINER)) {
    LOG.finer("Adding holidays for " + c.getDescription());
  }
  parseHolidays(year, holidaySet, c.getHolidays());
  if (args != null && args.length > 0) {
    String hierarchy = args[0];
    for (Configuration config : c.getSubConfigurations()) {
      if (hierarchy.equalsIgnoreCase(config.getHierarchy())) {
        getHolidays(year, config, holidaySet, copyOfRange(args, 1, args.length));
        break;
      }
    }
  }
}
origin: de.jollyday/jollyday

/**
 * Creates the configuration hierarchy for the provided configuration.
 *
 * @param c the full configuration
 * @param h the calendars hierarchy
 * @return configuration hierarchy
 */
private static CalendarHierarchy createConfigurationHierarchy(final Configuration c, CalendarHierarchy h) {
  h = new CalendarHierarchy(h, c.getHierarchy());
  h.setFallbackDescription(c.getDescription());
  for (Configuration sub : c.getSubConfigurations()) {
    CalendarHierarchy subHierarchy = createConfigurationHierarchy(sub, h);
    h.getChildren().put(subHierarchy.getId(), subHierarchy);
  }
  return h;
}
de.jollyday.configConfigurationgetSubConfigurations

Javadoc

Gets the value of the subConfigurations property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the subConfigurations property.

For example, to add a new item, do as follows:

 
getSubConfigurations().add(newItem); 

Objects of the following type(s) are allowed in the list Configuration

Popular methods of Configuration

  • getHolidays
    Ruft den Wert der holidays-Eigenschaft ab.
  • <init>
  • getDescription
    Ruft den Wert der description-Eigenschaft ab.
  • getHierarchy
    Ruft den Wert der hierarchy-Eigenschaft ab.

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getResourceAsStream (ClassLoader)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top Sublime Text plugins
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