public interface TypedAccess
Modifier and Type | Method and Description |
---|---|
<T> T |
get(String itemName,
Class<T> valueType,
T defaultValue)
Returns an item value converted to the specified data type.
We currently support the following value types out of the box: String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor (returned as DominoDateTime )
Additional value types are supported by implementing and registering DocumentValueConverter as Java services . |
<T> List<T> |
getAsList(String itemName,
Class<T> valueType,
List<T> defaultValue)
Returns a list of item values converted to the specified data type.
We currently support the following value types out of the box: String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor (returned as DominoDateTime )
Additional value types are supported by implementing and registering DocumentValueConverter as Java services . |
List<String> |
getItemNames()
Returns the names of all available items
|
boolean |
hasItem(String itemName)
Checks if an item is available
|
boolean hasItem(String itemName)
itemName
- item name<T> T get(String itemName, Class<T> valueType, T defaultValue)
String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor
(returned as DominoDateTime
)DocumentValueConverter
as Java services
.T
- type of return valueitemName
- item name, case insensitivevalueType
- class of return valuedefaultValue
- default value returned of object does not contain propertyIllegalArgumentException
- if the specified value type is unsupported<T> List<T> getAsList(String itemName, Class<T> valueType, List<T> defaultValue)
String
Integer
Long
Double
DominoDateTime
LocalDate
LocalTime
OffsetDateTime
TemporalAccessor
(returned as DominoDateTime
)DocumentValueConverter
as Java services
.T
- type of return valueitemName
- item name, case insensitivevalueType
- class of return valuedefaultValue
- default value returned of object does not contain propertyIllegalArgumentException
- if the specified value type is unsupportedCopyright © 2019–2021 HCL. All rights reserved.