public interface RepositoryData
Modifier and Type | Field and Description |
---|---|
static String |
BOOLEAN_REPOSITORY_DATA_TYPE
Constant for type boolean
|
static String |
CALENDAR_REPOSITORY_DATA_TYPE
Constant for type calendar
|
static String |
DOUBLE_REPOSITORY_DATA_TYPE
Constant for type double
|
static String |
LONG_REPOSITORY_DATA_TYPE
Constant for type long
|
static String |
STREAM_REPOSITORY_DATA_TYPE
Constant for type stream
|
static String |
STRING_REPOSITORY_DATA_TYPE
Constant for type string
|
Modifier and Type | Method and Description |
---|---|
default Set<String> |
getAllDataNames()
Retrieves the names of all data in this repository data
|
default Boolean |
getBoolean(String name)
Retrieves the value of the boolean data stored in the repository with the given name
|
Boolean |
getBoolean(String name,
String prefix)
Retrieves the value of the boolean data stored in the repository with the given name
|
default Boolean[] |
getBooleans(String name)
Retrieves the values of the multiple boolean data stored in the repository with the given name
|
Boolean[] |
getBooleans(String name,
String prefix)
Retrieves the values of the multiple boolean data stored in the repository with the given name
|
default Set<String> |
getDataNames()
Retrieves the names of data in this repository data with the default prefix
|
Set<String> |
getDataNames(String prefix)
Retrieves the names of data in this repository data with the given prefix
|
default Calendar |
getDate(String name)
Retrieves the value of the date data stored as calendar in the repository with the given name
|
Calendar |
getDate(String name,
String prefix)
Retrieves the value of the date data stored as calendar in the repository with the given name
|
default Calendar[] |
getDates(String name)
Retrieves the values of the multiple date data as calendar stored in the repository with the given name
|
Calendar[] |
getDates(String name,
String prefix)
Retrieves the values of the multiple date data as calendar stored in the repository with the given name
|
String |
getDefaultPrefix()
Retrieves the default prefix
|
default Double |
getDouble(String name)
Retrieves the value of the double data stored in the repository with the given name
|
Double |
getDouble(String name,
String prefix)
Retrieves the value of the double data stored in the repository with the given name
|
default Double[] |
getDoubles(String name)
Retrieves the values of the multiple double data stored in the repository with the given name
|
Double[] |
getDoubles(String name,
String prefix)
Retrieves the values of the multiple double data stored in the repository with the given name
|
String |
getFullName()
Retrieves the full name of the current repository data, including its prefix
|
default Long |
getLong(String name)
Retrieves the value of the long data stored in the repository with the given name
|
Long |
getLong(String name,
String prefix)
Retrieves the value of the long data stored in the repository with the given name
|
default Long[] |
getLongs(String name)
Retrieves the values of the multiple long data stored in the repository with the given name
|
Long[] |
getLongs(String name,
String prefix)
Retrieves the values of the multiple long data stored in the repository with the given name
|
default String |
getName()
Retrieves the name of the current repository data, excluding its prefix
|
String |
getPath()
Retrieves the path of the repository data.
|
default RepositoryData |
getRepositoryData(String name)
Retrieves the value of the repository data stored in the repository with the given name
|
RepositoryData |
getRepositoryData(String name,
String prefix)
Retrieves the value of the repository data stored in the repository with the given name
|
default InputStream |
getStream(String name)
Retrieves the value of the stream data stored in the repository with the given name
|
InputStream |
getStream(String name,
String prefix)
Retrieves the value of the stream data stored in the repository with the given name
|
default Long |
getStreamLength(String name)
Retrieves the length of the value of the stream data stored in the repository with the given name
|
Long |
getStreamLength(String name,
String prefix)
Retrieves the length of the value of the stream data stored in the repository with the given name
|
default InputStream[] |
getStreams(String name)
Retrieves the values of the multiple stream data stored in the repository with the given name
|
InputStream[] |
getStreams(String name,
String prefix)
Retrieves the values of the multiple stream data stored in the repository with the given name
|
default String |
getString(String name)
Retrieves the value of the string data stored in the repository with the given name
|
String |
getString(String name,
String prefix)
Retrieves the value of the string data stored in the repository with the given name
|
default String[] |
getStrings(String name)
Retrieves the values of the multiple string data stored in the repository with the given name
|
String[] |
getStrings(String name,
String prefix)
Retrieves the values of the multiple string data stored in the repository with the given name
|
default String |
getType(String name)
Retrieves the type of the value for the data stored in the repository with the given name
|
String |
getType(String name,
String prefix)
Retrieves the type of the value for the data stored in the repository with the given name
|
default boolean |
hasValue(String name)
Checks if there is a value for the data stored in the repository with the given name
|
boolean |
hasValue(String name,
String prefix)
Checks if there is a value for the data stored in the repository with the given name
|
default boolean |
isMultiple(String name)
Checks if the value for the data stored in the repository with the given name is multiple
|
boolean |
isMultiple(String name,
String prefix)
Checks if the value for the data stored in the repository with the given name is multiple
|
static final String STRING_REPOSITORY_DATA_TYPE
static final String CALENDAR_REPOSITORY_DATA_TYPE
static final String LONG_REPOSITORY_DATA_TYPE
static final String DOUBLE_REPOSITORY_DATA_TYPE
static final String BOOLEAN_REPOSITORY_DATA_TYPE
static final String STREAM_REPOSITORY_DATA_TYPE
default String getString(String name)
name
- name of the dataString getString(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default String[] getStrings(String name)
name
- name of the dataString[] getStrings(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Calendar getDate(String name)
name
- name of the dataCalendar getDate(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Calendar[] getDates(String name)
name
- name of the dataCalendar[] getDates(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Long getLong(String name)
name
- name of the dataLong getLong(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Long[] getLongs(String name)
name
- name of the dataLong[] getLongs(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Double getDouble(String name)
name
- name of the dataDouble getDouble(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Double[] getDoubles(String name)
name
- name of the dataDouble[] getDoubles(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Boolean getBoolean(String name)
name
- name of the dataBoolean getBoolean(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Boolean[] getBooleans(String name)
name
- name of the dataBoolean[] getBooleans(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default RepositoryData getRepositoryData(String name)
name
- name of the dataRepositoryData getRepositoryData(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default InputStream getStream(String name)
name
- name of the dataInputStream getStream(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Long getStreamLength(String name)
name
- name of the dataLong getStreamLength(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default InputStream[] getStreams(String name)
name
- name of the dataInputStream[] getStreams(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default Set<String> getAllDataNames()
default Set<String> getDataNames()
Set<String> getDataNames(String prefix)
prefix
- prefix of the data names to retrieve. If null
, retrieves all the data names of this repository dataString getFullName()
default String getName()
default boolean hasValue(String name)
name
- name of the databoolean hasValue(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default String getType(String name)
name
- name of the dataString getType(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.default boolean isMultiple(String name)
name
- name of the databoolean isMultiple(String name, String prefix)
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.String getDefaultPrefix()
String getPath()
AmetysObject
parent