- java.lang.Object
-
- de.focus_shift.jollyday.core.CalendarHierarchy
-
public class CalendarHierarchy extends Object
Bean class for describing the configuration hierarchy.
-
-
Constructor Summary
Constructors Constructor Description CalendarHierarchy(CalendarHierarchy parent, String id)Constructor which takes a eventually existing parent hierarchy node and the ID of this hierarchy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Map<String,CalendarHierarchy>getChildren()Getter for the fieldchildren.StringgetDescription()Returns the country description for the default locale.StringgetDescription(Locale locale)Returns the hierarchies description text from the resource bundle.StringgetId()Getter for the fieldid.inthashCode()voidsetChildren(Map<String,CalendarHierarchy> children)Setter for the fieldchildren.voidsetFallbackDescription(String description)
-
-
-
Constructor Detail
-
CalendarHierarchy
public CalendarHierarchy(CalendarHierarchy parent, String id)
Constructor which takes a eventually existing parent hierarchy node and the ID of this hierarchy.- Parameters:
parent- aCalendarHierarchyobject.id- aStringobject.
-
-
Method Detail
-
getId
public String getId()
Getter for the field
id.- Returns:
- the id
-
getDescription
public String getDescription()
Returns the country description for the default locale.- Returns:
- the description
-
getDescription
public String getDescription(Locale locale)
Returns the hierarchies description text from the resource bundle.- Parameters:
locale- Locale to return the description text for.- Returns:
- Description text
-
equals
public boolean equals(Object obj)
Compares Hierarchies by id.
-
setChildren
public void setChildren(Map<String,CalendarHierarchy> children)
Setter for the field
children.- Parameters:
children- the children to set
-
getChildren
public Map<String,CalendarHierarchy> getChildren()
Getter for the field
children.- Returns:
- the children
-
setFallbackDescription
public void setFallbackDescription(String description)
- Parameters:
description- the fallback description
-
-