Interface Getter

All Known Implementing Classes:
CxfMode, HashGetter, PropertyGetter, SensibleHashGetter, SerialGetter, StringGetter, UIMessage.ControlValues, WebParameters, XMLTree

public interface Getter
Interface that defines a generic collecting tool, that must be implemented by the objects that wants to store informations that in this way becomes easy to extract, or can be used to property setup.
  • Method Details

    • getString

      String getString(String key, String def)
      Extracts a string from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getBoolean

      Boolean getBoolean(String key, Boolean def)
      Extracts a Boolean from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getboolean

      boolean getboolean(String key, boolean def)
      Extracts a boolean from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getLong

      Long getLong(String key, Long def)
      Extracts a Long from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getlong

      long getlong(String key, long def)
      Extracts a long from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getInteger

      Integer getInteger(String key, Integer def)
      Extracts a Integer from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getint

      int getint(String key, int def)
      Extracts a int from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getFloat

      Float getFloat(String key, Float def)
      Extracts a Float from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getfloat

      float getfloat(String key, float def)
      Extracts a float from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getDouble

      Double getDouble(String key, Double def)
      Extracts a Double from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getdouble

      double getdouble(String key, double def)
      Extracts a double from the generic container
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      Returns:
      The object of the specified type, or the default one
    • getDate

      Date getDate(String key, Date def, SimpleDateFormat sdf)
      Extracts a Date from the generic container. The Date must meet the characteristics of the specified SimpleDateFormat
      Parameters:
      key - Name of the object to extract
      def - Default value returned when there isn't a correct object that corresponds to the key
      sdf - The SimpleDateFormat that defines the format of the date to extract
      Returns:
      The object of the specified type, or the default one
    • keyIterator

      Iterator keyIterator()
      Extracts an Iterator used to iterate over all the generic container elements
      Returns:
      The iterator on the elements of the generic container
    • get

      Object get(String key)
      Extracts from the generic container the object that corresponds to the key passed as parameters. In this case there isn't a default value.
      Parameters:
      key - The name of the key
      Returns:
      The object associated to the key passed as parameter, or null if the container contains no mapping for the key
    • get

      Object get(String key, Object def)
      Extracts from the generic container the object that corresponds to the key passed as parameters. If the object is null, or if the container contains no mapping for the key, the default object is returned
      Parameters:
      key - The name of the key
      def - The default value returned if the extracted object is null or the key is not present in the container
      Returns:
      The object associated to the key passed as parameter, or the default one
    • containsKey

      boolean containsKey(String key)
      Checks if the generic container contains an entry with the key passed as parameter
      Parameters:
      key - The name of the key to search
      Returns:
      true if there is an entry with the key passed as parameter, false otherwise