Class ObjectClassInfoBuilder
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.ObjectClassInfoBuilder
-
public final class ObjectClassInfoBuilder extends java.lang.Object
Simplifies the construction ofObjectClassInfo
instances.
-
-
Constructor Summary
Constructors Constructor Description ObjectClassInfoBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectClassInfoBuilder
addAllAttributeInfo(java.util.Collection<AttributeInfo> c)
Add to theObjectClassInfo
that is being built eachAttributeInfo
in the specified collection.ObjectClassInfoBuilder
addAttributeInfo(AttributeInfo info)
Add the specifiedAttributeInfo
object to theObjectClassInfo
that is being built.ObjectClassInfo
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.ObjectClassInfoBuilder
setType(java.lang.String type)
Sets the specifiedtype
for theObjectClassInfo
object that is being built.
-
-
-
Method Detail
-
setType
public ObjectClassInfoBuilder setType(java.lang.String type)
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
public ObjectClassInfoBuilder addAttributeInfo(AttributeInfo info)
Add the specifiedAttributeInfo
object to theObjectClassInfo
that is being built.
-
addAllAttributeInfo
public ObjectClassInfoBuilder addAllAttributeInfo(java.util.Collection<AttributeInfo> c)
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
public ObjectClassInfo 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.
-
-