java.lang.Object
de.focus_shift.jollyday.core.CalendarHierarchy
Bean class for describing the configuration hierarchy.
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarHierarchy(@Nullable CalendarHierarchy parent, @NonNull String id) Constructor which takes a eventually existing parent hierarchy node and the ID of this hierarchy. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NonNull Map<String,CalendarHierarchy> Getter for the fieldchildren.@NonNull StringReturns the country description for the default locale.@NonNull StringgetDescription(Locale locale) Returns the hierarchies description text from the resource bundle.@NonNull StringgetId()Getter for the fieldid.inthashCode()voidsetChildren(Map<String, CalendarHierarchy> children) Setter for the fieldchildren.voidsetFallbackDescription(String description)
-
Constructor Details
-
CalendarHierarchy
Constructor which takes a eventually existing parent hierarchy node and the ID of this hierarchy.- Parameters:
parent- aCalendarHierarchyobject.id- aStringobject.
-
-
Method Details
-
getId
Getter for the field
id.- Returns:
- the id
-
getDescription
Returns the country description for the default locale.- Returns:
- the description
-
getDescription
Returns the hierarchies description text from the resource bundle.- Parameters:
locale- Locale to return the description text for.- Returns:
- Description text
-
equals
Compares Hierarchies by id.
-
hashCode
public int hashCode() -
setChildren
Setter for the field
children.- Parameters:
children- the children to set
-
getChildren
Getter for the field
children.- Returns:
- the children
-
setFallbackDescription
- Parameters:
description- the fallback description
-