Class ObjectClassInfoBuilder
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.ObjectClassInfoBuilder
-
public final class ObjectClassInfoBuilder extends 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(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
setAuxiliary(boolean isAuxiliary)
void
setContainer(boolean container)
Set to true to indicate this is a container type.ObjectClassInfoBuilder
setEmbedded(boolean embedded)
ObjectClassInfoBuilder
setType(String type)
Sets the specifiedtype
for theObjectClassInfo
object that is being built.
-
-
-
Method Detail
-
setType
public ObjectClassInfoBuilder setType(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(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.
-
setAuxiliary
public void setAuxiliary(boolean isAuxiliary)
-
setEmbedded
public ObjectClassInfoBuilder setEmbedded(boolean embedded)
-
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.
-
-