Class SuggestedValuesBuilder
java.lang.Object
org.identityconnectors.framework.common.objects.SuggestedValuesBuilder
Builder for instances of
SuggestedValues
.- Since:
- 1.5.2.0
- Author:
- Radovan Semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd each of the specified objects as a value for SuggestedValues instance that is being built.addValues
(Collection<?> obj) Adds each object in the collection as a value for SuggestedValues instance that is being built.build()
static SuggestedValues
Creates closed suggested values with the specified values.static SuggestedValues
build
(Collection<?> collection) Creates closed suggested values with the specified values from a collection.static SuggestedValues
Creates open suggested values with the specified values.Returns openness of value list.Return current values of the SuggestedValues instance that is being built.void
setOpenness
(ValueListOpenness openness) Sets openness of value list.
-
Constructor Details
-
SuggestedValuesBuilder
public SuggestedValuesBuilder()
-
-
Method Details
-
build
Creates closed suggested values with the specified values.- Parameters:
values
- variable number of arguments that are used as values for the attribute.- Returns:
- instance of
SuggestedValues
with the specified values that includes the arguments provided.
-
buildOpen
Creates open suggested values with the specified values.- Parameters:
values
- variable number of arguments that are used as values for the attribute.- Returns:
- instance of
SuggestedValues
with the specified values that includes the arguments provided.
-
build
Creates closed suggested values with the specified values from a collection.- Parameters:
collection
- a collection of objects that are used as suggested values.- Returns:
- instance of
SuggestedValues
with values from the provided collection.
-
getValues
Return current values of the SuggestedValues instance that is being built.- Returns:
- current values of the SuggestedValues instance that is being built.
-
addValues
Add each of the specified objects as a value for SuggestedValues instance that is being built.- Parameters:
objs
- the values to add- Throws:
NullPointerException
- if any of the values is null.
-
addValues
Adds each object in the collection as a value for SuggestedValues instance that is being built.- Parameters:
obj
- the values to add- Throws:
NullPointerException
- if any of the values is null.
-
build
- Returns:
- a new SuggestedValues instance with the values that have been provided to the builder.
-
getOpenness
Returns openness of value list. Closed lists (the default) can accept only specified values. Open lists can accept any value.- See Also:
-
setOpenness
Sets openness of value list. Closed lists (the default) can accept only specified values. Open lists can accept any value.- See Also:
-