Class ICUResourceBundleImpl.ResourceTable

Enclosing class:
ICUResourceBundleImpl

static class ICUResourceBundleImpl.ResourceTable extends ICUResourceBundleImpl.ResourceContainer
  • Constructor Details

  • Method Details

    • getType

      public int getType()
      Description copied from class: UResourceBundle
      Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
      Overrides:
      getType in class UResourceBundle
      Returns:
      type of the given resource.
    • getKey

      protected String getKey(int index)
    • handleKeySet

      protected Set<String> handleKeySet()
      Description copied from class: UResourceBundle
      Returns a Set of the keys contained only in this ResourceBundle. This does not include further keys from parent bundles.
      Overrides:
      handleKeySet in class UResourceBundle
      Returns:
      a Set of the keys contained only in this ResourceBundle, which is empty if this is not a bundle or a table resource
    • handleGet

      protected UResourceBundle handleGet(String resKey, HashMap<String,String> aliasesVisited, UResourceBundle requested)
      Description copied from class: UResourceBundle
      Actual worker method for fetching a resource based on the given key. Sub classes must override this method if they support resources with keys.
      Overrides:
      handleGet in class UResourceBundle
      Parameters:
      resKey - the key string of the resource to be fetched
      aliasesVisited - hashtable object to hold references of resources already seen
      requested - the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
      Returns:
      UResourceBundle a resource associated with the key
    • handleGet

      protected UResourceBundle handleGet(int index, HashMap<String,String> aliasesVisited, UResourceBundle requested)
      Description copied from class: UResourceBundle
      Actual worker method for fetching a resource based on the given index. Sub classes must override this method if they support arrays of resources.
      Overrides:
      handleGet in class UResourceBundle
      Parameters:
      index - the index of the resource to be fetched
      aliasesVisited - hashtable object to hold references of resources already seen
      requested - the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
      Returns:
      UResourceBundle a resource associated with the index
    • handleGetObject

      protected Object handleGetObject(String key)
      Description copied from class: UResourceBundle
      Overrides:
      handleGetObject in class UResourceBundle
    • findString

      String findString(String key)
      Returns a String if found, or null if not found or if the key item is not a string.