Package com.ibm.icu.text
Class DateFormatSymbols.CalendarDataSink
- java.lang.Object
-
- com.ibm.icu.impl.UResource.Sink
-
- com.ibm.icu.text.DateFormatSymbols.CalendarDataSink
-
- Enclosing class:
- DateFormatSymbols
private static final class DateFormatSymbols.CalendarDataSink extends UResource.Sink
Sink to enumerate the calendar data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DateFormatSymbols.CalendarDataSink.AliasType
Enum which specifies the type of alias received, or no alias
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>
aliasPathPairs
private java.lang.String
aliasRelativePath
(package private) java.util.Map<java.lang.String,java.lang.String[]>
arrays
private static java.lang.String
CALENDAR_ALIAS_PREFIX
(package private) java.lang.String
currentCalendarType
(package private) java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
maps
(package private) java.lang.String
nextCalendarType
private java.util.Set<java.lang.String>
resourcesToVisit
-
Constructor Summary
Constructors Constructor Description CalendarDataSink()
Initializes CalendarDataSink with default values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
preEnumerate(java.lang.String calendarType)
Actions to be done before enumeratingprivate DateFormatSymbols.CalendarDataSink.AliasType
processAliasFromValue(java.lang.String currentRelativePath, UResource.Value value)
Populates an AliasIdentifier with the alias information contained on the UResource.Value.protected void
processResource(java.lang.String path, UResource.Key key, UResource.Value value)
Process the nested resource bundle tablesvoid
put(UResource.Key key, UResource.Value value, boolean noFallback)
Called once for each bundle (child-parent-...-root).(package private) void
visitAllResources()
Configure the CalendarSink to visit all the resources
-
-
-
Field Detail
-
arrays
java.util.Map<java.lang.String,java.lang.String[]> arrays
-
maps
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> maps
-
aliasPathPairs
java.util.List<java.lang.String> aliasPathPairs
-
currentCalendarType
java.lang.String currentCalendarType
-
nextCalendarType
java.lang.String nextCalendarType
-
resourcesToVisit
private java.util.Set<java.lang.String> resourcesToVisit
-
aliasRelativePath
private java.lang.String aliasRelativePath
-
CALENDAR_ALIAS_PREFIX
private static final java.lang.String CALENDAR_ALIAS_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
visitAllResources
void visitAllResources()
Configure the CalendarSink to visit all the resources
-
preEnumerate
void preEnumerate(java.lang.String calendarType)
Actions to be done before enumerating
-
put
public void put(UResource.Key key, UResource.Value value, boolean noFallback)
Description copied from class:UResource.Sink
Called once for each bundle (child-parent-...-root). The value is normally an array or table resource, and implementations of this method normally iterate over the tree of resource items stored there.- Specified by:
put
in classUResource.Sink
- Parameters:
key
- Initially the key string of the enumeration-start resource. Empty if the enumeration starts at the top level of the bundle. Reuse for output values from Array and Table getters.value
- Call getArray() or getTable() as appropriate. Then reuse for output values from Array and Table getters.noFallback
- true if the bundle has no parent; that is, its top-level table has the nofallback attribute, or it is the root bundle of a locale tree.
-
processResource
protected void processResource(java.lang.String path, UResource.Key key, UResource.Value value)
Process the nested resource bundle tables- Parameters:
path
- Table's relative path to the calendarkey
- Resource bundle keyvalue
- Resource bundle value (has to have the table to read)
-
processAliasFromValue
private DateFormatSymbols.CalendarDataSink.AliasType processAliasFromValue(java.lang.String currentRelativePath, UResource.Value value)
Populates an AliasIdentifier with the alias information contained on the UResource.Value.- Parameters:
currentRelativePath
- Relative path of this alias' resourcevalue
- Value which contains the alias- Returns:
- The AliasType of the alias found on Value
-
-