Interface BeanDatabase

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dumpDatabase()
      Dumps the type and instance names to stderr
      void dumpDatabase​(java.io.PrintStream output)
      Dumps the type and instance names to the given stream
      java.lang.String dumpDatabaseAsString()
      Dumps the type and instance names to a String for debugging
      java.util.Set<Type> getAllTypes()
      Gets an unmodifiable set of all the types in the bean database
      Instance getInstance​(java.lang.String type, java.lang.String instanceKey)
      Returns the instance with the given instanceKey from the type with the given name
      Type getType​(java.lang.String type)
      Gets the type with the given name
    • Method Detail

      • getAllTypes

        java.util.Set<Type> getAllTypes()
        Gets an unmodifiable set of all the types in the bean database
        Returns:
        A non-null unmodifiable and possibly empty set of all the types in the database
      • getType

        Type getType​(java.lang.String type)
        Gets the type with the given name
        Parameters:
        type - The non-null name
        Returns:
        The type corresponding to the given name. May return null
      • getInstance

        Instance getInstance​(java.lang.String type,
                             java.lang.String instanceKey)
        Returns the instance with the given instanceKey from the type with the given name
        Parameters:
        type - The non-null name of the type to get the instance from
        instanceKey - The non-null key of the instance
        Returns:
        The bean from the given type with the given name. Will return null if the type does not exist or an instance with that key does not exist
      • dumpDatabase

        void dumpDatabase()
        Dumps the type and instance names to stderr
      • dumpDatabase

        void dumpDatabase​(java.io.PrintStream output)
        Dumps the type and instance names to the given stream
        Parameters:
        output - - The non-null outut stream to write the database to
      • dumpDatabaseAsString

        java.lang.String dumpDatabaseAsString()
        Dumps the type and instance names to a String for debugging
        Returns:
        A string with all type and instance names