Interface RepositoryData

    • Method Detail

      • getString

        default String getString​(String name)
        Retrieves the value of the string data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value of the data
      • getString

        String getString​(String name,
                         String prefix)
        Retrieves the value of the string data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value of the data
      • getStrings

        default String[] getStrings​(String name)
        Retrieves the values of the multiple string data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the values of the data as a string array
      • getStrings

        String[] getStrings​(String name,
                            String prefix)
        Retrieves the values of the multiple string data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the values of the data as a string array
      • getDate

        default Calendar getDate​(String name)
        Retrieves the value of the date data stored as calendar in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value of the data
      • getDate

        Calendar getDate​(String name,
                         String prefix)
        Retrieves the value of the date data stored as calendar in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value of the data
      • getDates

        default Calendar[] getDates​(String name)
        Retrieves the values of the multiple date data as calendar stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the values of the data as a date array
      • getDates

        Calendar[] getDates​(String name,
                            String prefix)
        Retrieves the values of the multiple date data as calendar stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the values of the data as a date array
      • getLong

        default Long getLong​(String name)
        Retrieves the value of the long data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value of the data
      • getLong

        Long getLong​(String name,
                     String prefix)
        Retrieves the value of the long data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value of the data
      • getLongs

        default Long[] getLongs​(String name)
        Retrieves the values of the multiple long data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the values of the data as a long array
      • getLongs

        Long[] getLongs​(String name,
                        String prefix)
        Retrieves the values of the multiple long data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the values of the data as a long array
      • getDouble

        default Double getDouble​(String name)
        Retrieves the value of the double data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value of the data
      • getDouble

        Double getDouble​(String name,
                         String prefix)
        Retrieves the value of the double data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value of the data
      • getDoubles

        default Double[] getDoubles​(String name)
        Retrieves the values of the multiple double data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the values of the data as a double array
      • getDoubles

        Double[] getDoubles​(String name,
                            String prefix)
        Retrieves the values of the multiple double data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the values of the data as a double array
      • getBoolean

        default Boolean getBoolean​(String name)
        Retrieves the value of the boolean data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value of the data
      • getBoolean

        Boolean getBoolean​(String name,
                           String prefix)
        Retrieves the value of the boolean data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value of the data
      • getBooleans

        default Boolean[] getBooleans​(String name)
        Retrieves the values of the multiple boolean data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the values of the data as a boolean array
      • getBooleans

        Boolean[] getBooleans​(String name,
                              String prefix)
        Retrieves the values of the multiple boolean data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the values of the data as a boolean array
      • getRepositoryData

        default RepositoryData getRepositoryData​(String name)
        Retrieves the value of the repository data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value of the data
      • getRepositoryData

        RepositoryData getRepositoryData​(String name,
                                         String prefix)
        Retrieves the value of the repository data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value of the data
      • getAllRepositoryData

        default RepositoryData[] getAllRepositoryData​(String name)
        Retrieves the values of all the repository data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the values of the data
      • getAllRepositoryData

        RepositoryData[] getAllRepositoryData​(String name,
                                              String prefix)
        Retrieves the values of all the repository data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the values of the data
      • getStream

        default InputStream getStream​(String name)
        Retrieves the value of the stream data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value of the data
      • getStream

        InputStream getStream​(String name,
                              String prefix)
        Retrieves the value of the stream data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value of the data
      • getStreamLength

        default Long getStreamLength​(String name)
        Retrieves the length of the value of the stream data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the length of the value of the data
      • getStreamLength

        Long getStreamLength​(String name,
                             String prefix)
        Retrieves the length of the value of the stream data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the length of the value of the data
      • getStreams

        default InputStream[] getStreams​(String name)
        Retrieves the values of the multiple stream data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the values of the data as an input stream array
      • getStreams

        InputStream[] getStreams​(String name,
                                 String prefix)
        Retrieves the values of the multiple stream data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the values of the data as an input stream array
      • getAllDataNames

        default Set<StringgetAllDataNames()
        Retrieves the names of all data in this repository data
        Returns:
        the names of all data in this repository data
      • getDataNames

        default Set<StringgetDataNames()
        Retrieves the names of data in this repository data with the default prefix
        Returns:
        the names of data by this repository data
      • getDataNames

        Set<StringgetDataNames​(String prefix)
        Retrieves the names of data in this repository data with the given prefix
        Parameters:
        prefix - prefix of the data names to retrieve. If null, retrieves all the data names of this repository data
        Returns:
        the names of data by this repository data
      • getName

        String getName()
        Retrieves the name of the current repository data, excluding its prefix
        Returns:
        the name of the current repository data
      • hasValue

        default boolean hasValue​(String name)
        Checks if there is a value for the data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        true if there is value for the data, false otherwise
      • hasValue

        boolean hasValue​(String name,
                         String prefix)
        Checks if there is a value for the data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        true if there is value for the data, false otherwise
      • getType

        default String getType​(String name)
                        throws UnknownDataException
        Retrieves the type of the value for the data stored in the repository with the given name
        Parameters:
        name - name of the data
        Returns:
        the value's type of the data
        Throws:
        UnknownDataException - if there is no data stored with the given name
      • getType

        String getType​(String name,
                       String prefix)
                throws UnknownDataException
        Retrieves the type of the value for the data stored in the repository with the given name
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        the value's type of the data
        Throws:
        UnknownDataException - if there is no data stored with the given name
      • isMultiple

        default boolean isMultiple​(String name)
                            throws UnknownDataException
        Checks if the value for the data stored in the repository with the given name is multiple
        Parameters:
        name - name of the data
        Returns:
        true if the value for the data is multiple, false otherwise
        Throws:
        UnknownDataException - if there is no data stored with the given name
      • isMultiple

        boolean isMultiple​(String name,
                           String prefix)
                    throws UnknownDataException
        Checks if the value for the data stored in the repository with the given name is multiple
        Parameters:
        name - name of the data
        prefix - prefix of the data name, to use instead of the default one.
        Returns:
        true if the value for the data is multiple, false otherwise
        Throws:
        UnknownDataException - if there is no data stored with the given name