Class ObjectClassInfoBuilder
java.lang.Object
org.identityconnectors.framework.common.objects.ObjectClassInfoBuilder
Simplifies the construction of
ObjectClassInfo
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd to theObjectClassInfo
that is being built eachAttributeInfo
in the specified collection.Add the specifiedAttributeInfo
object to theObjectClassInfo
that is being built.build()
Constructs an instance ofObjectClassInfo
with any characteristics that were previously specified using this builder.void
setContainer
(boolean container) Set to true to indicate this is a container type.Sets the specifiedtype
for theObjectClassInfo
object that is being built.
-
Constructor Details
-
ObjectClassInfoBuilder
public ObjectClassInfoBuilder()
-
-
Method Details
-
setType
Sets the specifiedtype
for theObjectClassInfo
object that is being built. (If this method is not called, theObjectClassInfo
that is being built will default toObjectClass.ACCOUNT_NAME
-- that is, itstype
will default to to a String value ofObjectClass.ACCOUNT_NAME
.) -
addAttributeInfo
Add the specifiedAttributeInfo
object to theObjectClassInfo
that is being built. -
addAllAttributeInfo
Add to theObjectClassInfo
that is being built eachAttributeInfo
in the specified collection. -
setContainer
public void setContainer(boolean container) Set to true to indicate this is a container type.- Parameters:
container
- True if this is a container type.
-
build
Constructs an instance ofObjectClassInfo
with any characteristics that were previously specified using this builder.- Returns:
- an instance of
ObjectClassInfo
with the characteristics previously specified.
-