public final class ObjectClassInfoBuilder extends Object
ObjectClassInfo
instances.Constructor and Description |
---|
ObjectClassInfoBuilder() |
Modifier and Type | Method and Description |
---|---|
ObjectClassInfoBuilder |
addAllAttributeInfo(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 |
setAuxiliary(boolean isAuxiliary) |
void |
setContainer(boolean container)
Set to true to indicate this is a container type.
|
ObjectClassInfoBuilder |
setType(String type)
Sets the specified
type for the
ObjectClassInfo object that is being built. |
public ObjectClassInfoBuilder setType(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
.)public ObjectClassInfoBuilder addAttributeInfo(AttributeInfo info)
AttributeInfo
object to the
ObjectClassInfo
that is being built.public ObjectClassInfoBuilder addAllAttributeInfo(Collection<AttributeInfo> c)
ObjectClassInfo
that is being built each
AttributeInfo
in the specified collection.public void setContainer(boolean container)
container
- True if this is a container type.public void setAuxiliary(boolean isAuxiliary)
public ObjectClassInfo build()
ObjectClassInfo
with any
characteristics that were previously specified using this builder.ObjectClassInfo
with the characteristics
previously specified.Copyright © 2022. All rights reserved.