congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Configuration
Code IndexAdd Tabnine to your IDE (free)

How to use
Configuration
in
de.jollyday.config

Best Java code snippets using de.jollyday.config.Configuration (Showing top 8 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

/**
 * 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

/**
 * 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: 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)) {
    hierarchyMap.put(hierarchy, 1);
  msg.append("Configuration for ").append(c.getHierarchy())
      .append(" contains  multiple SubConfigurations with the same hierarchy id. ");
  for (String hierarchy : multipleHierarchies) {
for (Configuration subConfig : c.getSubConfigurations()) {
  validateConfigurationHierarchy(subConfig);
origin: de.jollyday/jollyday

/**
 * Create an instance of {@link Configuration }
 * 
 */
public Configuration createConfiguration() {
  return new Configuration();
}
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;
}
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);
 }
}
de.jollyday.configConfiguration

Javadoc

Java-Klasse für Configuration complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

 
<complexType name="Configuration"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="Holidays" type="{http://www.example.org/Holiday}Holidays"/> 
<element name="SubConfigurations" type="{http://www.example.org/Holiday}Configuration" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
<attribute name="hierarchy" type="{http://www.w3.org/2001/XMLSchema}string" /> 
<attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • getHolidays
    Ruft den Wert der holidays-Eigenschaft ab.
  • getSubConfigurations
    Gets the value of the subConfigurations property. This accessor method returns a reference to the li
  • <init>
  • getDescription
    Ruft den Wert der description-Eigenschaft ab.
  • getHierarchy
    Ruft den Wert der hierarchy-Eigenschaft ab.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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