|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.identityconnectors.framework.common.objects.ObjectClassInfoBuilder
public final class ObjectClassInfoBuilder
Simplifies the construction of ObjectClassInfo
instances.
Constructor Summary | |
---|---|
ObjectClassInfoBuilder() |
Method Summary | |
---|---|
ObjectClassInfoBuilder |
addAllAttributeInfo(java.util.Collection<AttributeInfo> c) Add to the ObjectClassInfo that is being built each AttributeInfo in the specified collection. |
ObjectClassInfoBuilder |
addAttributeInfo(AttributeInfo info) Add the specified AttributeInfo object to the ObjectClassInfo that is being built. |
ObjectClassInfo |
build() Constructs an instance of ObjectClassInfo with any characteristics that were previously specified using this builder. |
void |
setContainer(boolean container) Set to true to indicate this is a container type. |
void |
setEmbedded(boolean embedded) Set to true to indicate that this is an embedded object class, i.e., that objects of this class are embedded in other objects. |
ObjectClassInfoBuilder |
setType(java.lang.String type) Sets the specified type for the ObjectClassInfo object that is being built. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectClassInfoBuilder()
Method Detail |
---|
public ObjectClassInfoBuilder setType(java.lang.String type)
type
for the ObjectClassInfo
object that is being built. (If this method is not called, the ObjectClassInfo
that is being built will default to ObjectClass.ACCOUNT_NAME
-- that is, its type
will default to to a String value of ObjectClass.ACCOUNT_NAME
.)ObjectClassInfo.getType()
, ObjectClass.ACCOUNT_NAME
public ObjectClassInfoBuilder addAttributeInfo(AttributeInfo info)
AttributeInfo
object to the ObjectClassInfo
that is being built.public ObjectClassInfoBuilder addAllAttributeInfo(java.util.Collection<AttributeInfo> c)
ObjectClassInfo
that is being built each AttributeInfo
in the specified collection.public void setContainer(boolean container)
container
- True iff this is a container type.public void setEmbedded(boolean embedded)
true
to indicate that this is an embedded object class, i.e., that objects of this class are embedded in other objects.embedded
- True iff this is an embedded object class.public ObjectClassInfo build()
ObjectClassInfo
with any characteristics that were previously specified using this builder.ObjectClassInfo
with the characteristics previously specified.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |