Interface RepositoryData
- All Known Subinterfaces:
ModifiableRepositoryData
- All Known Implementing Classes:
JCRRepositoryData
,MemoryRepositoryData
public interface RepositoryData
Interface for data values management in repository
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant for type booleanstatic final String
Constant for type calendarstatic final String
Constant for type doublestatic final String
Constant for type longstatic final String
Constant for type streamstatic final String
Constant for type string -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the names of all data in this repository datadefault RepositoryData[]
getAllRepositoryData
(String name) Retrieves the values of all the repository data stored in the repository with the given namegetAllRepositoryData
(String name, String prefix) Retrieves the values of all the repository data stored in the repository with the given namedefault Boolean
getBoolean
(String name) Retrieves the value of the boolean data stored in the repository with the given namegetBoolean
(String name, String prefix) Retrieves the value of the boolean data stored in the repository with the given namedefault Boolean[]
getBooleans
(String name) Retrieves the values of the multiple boolean data stored in the repository with the given nameBoolean[]
getBooleans
(String name, String prefix) Retrieves the values of the multiple boolean data stored in the repository with the given nameRetrieves the names of data in this repository data with the default prefixgetDataNames
(String prefix) Retrieves the names of data in this repository data with the given prefixdefault Calendar
Retrieves the value of the date data stored as calendar in the repository with the given nameRetrieves the value of the date data stored as calendar in the repository with the given namedefault Calendar[]
Retrieves the values of the multiple date data as calendar stored in the repository with the given nameCalendar[]
Retrieves the values of the multiple date data as calendar stored in the repository with the given nameRetrieves the default prefixdefault Double
Retrieves the value of the double data stored in the repository with the given nameRetrieves the value of the double data stored in the repository with the given namedefault Double[]
getDoubles
(String name) Retrieves the values of the multiple double data stored in the repository with the given nameDouble[]
getDoubles
(String name, String prefix) Retrieves the values of the multiple double data stored in the repository with the given namedefault Long
Retrieves the value of the long data stored in the repository with the given nameRetrieves the value of the long data stored in the repository with the given namedefault Long[]
Retrieves the values of the multiple long data stored in the repository with the given nameLong[]
Retrieves the values of the multiple long data stored in the repository with the given namegetName()
Retrieves the name of the current repository data, excluding its prefixdefault RepositoryData
getRepositoryData
(String name) Retrieves the value of the repository data stored in the repository with the given namegetRepositoryData
(String name, String prefix) Retrieves the value of the repository data stored in the repository with the given namedefault InputStream
Retrieves the value of the stream data stored in the repository with the given nameRetrieves the value of the stream data stored in the repository with the given namedefault Long
getStreamLength
(String name) Retrieves the length of the value of the stream data stored in the repository with the given namegetStreamLength
(String name, String prefix) Retrieves the length of the value of the stream data stored in the repository with the given namedefault InputStream[]
getStreams
(String name) Retrieves the values of the multiple stream data stored in the repository with the given namegetStreams
(String name, String prefix) Retrieves the values of the multiple stream data stored in the repository with the given namedefault String
Retrieves the value of the string data stored in the repository with the given nameRetrieves the value of the string data stored in the repository with the given namedefault String[]
getStrings
(String name) Retrieves the values of the multiple string data stored in the repository with the given nameString[]
getStrings
(String name, String prefix) Retrieves the values of the multiple string data stored in the repository with the given namedefault String
Retrieves the type of the value for the data stored in the repository with the given nameRetrieves the type of the value for the data stored in the repository with the given namedefault boolean
Checks if there is a value for the data stored in the repository with the given nameboolean
Checks if there is a value for the data stored in the repository with the given namedefault boolean
isMultiple
(String name) Checks if the value for the data stored in the repository with the given name is multipleboolean
isMultiple
(String name, String prefix) Checks if the value for the data stored in the repository with the given name is multiple
-
Field Details
-
STRING_REPOSITORY_DATA_TYPE
Constant for type string- See Also:
-
CALENDAR_REPOSITORY_DATA_TYPE
Constant for type calendar- See Also:
-
LONG_REPOSITORY_DATA_TYPE
Constant for type long- See Also:
-
DOUBLE_REPOSITORY_DATA_TYPE
Constant for type double- See Also:
-
BOOLEAN_REPOSITORY_DATA_TYPE
Constant for type boolean- See Also:
-
STREAM_REPOSITORY_DATA_TYPE
Constant for type stream- See Also:
-
-
Method Details
-
getString
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
Retrieves the value of the string data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
getStrings
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
Retrieves the values of the multiple string data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the values of the data as a string array
-
getDate
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
Retrieves the value of the date data stored as calendar in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
getDates
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
Retrieves the values of the multiple date data as calendar stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the values of the data as a date array
-
getLong
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
Retrieves the value of the long data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
getLongs
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
Retrieves the values of the multiple long data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the values of the data as a long array
-
getDouble
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
Retrieves the value of the double data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
getDoubles
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
Retrieves the values of the multiple double data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the values of the data as a double array
-
getBoolean
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
Retrieves the value of the boolean data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
getBooleans
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
Retrieves the values of the multiple boolean data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the values of the data as a boolean array
-
getRepositoryData
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
Retrieves the value of the repository data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
getAllRepositoryData
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
Retrieves the values of all the repository data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the values of the data
-
getStream
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
Retrieves the value of the stream data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
getStreamLength
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
Retrieves the length of the value of the stream data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the length of the value of the data
-
getStreams
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
Retrieves the values of the multiple stream data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the values of the data as an input stream array
-
getAllDataNames
Retrieves the names of all data in this repository data- Returns:
- the names of all data in this repository data
-
getDataNames
Retrieves the names of data in this repository data with the default prefix- Returns:
- the names of data by this repository data
-
getDataNames
Retrieves the names of data in this repository data with the given prefix- Parameters:
prefix
- prefix of the data names to retrieve. Ifnull
, retrieves all the data names of this repository data- Returns:
- the names of data by this repository data
-
getName
Retrieves the name of the current repository data, excluding its prefix- Returns:
- the name of the current repository data
-
hasValue
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
Checks if there is a value for the data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- true if there is value for the data, false otherwise
-
getType
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
Retrieves the type of the value for the data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- 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
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
Checks if the value for the data stored in the repository with the given name is multiple- Parameters:
name
- name of the dataprefix
- 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
-
getDefaultPrefix
Retrieves the default prefix- Returns:
- the default prefix
-