Skip navigation links


org.identityconnectors.framework.common.objects
Class ObjectClassInfoBuilder

java.lang.Object
  extended by org.identityconnectors.framework.common.objects.ObjectClassInfoBuilder


public final class ObjectClassInfoBuilder
extends java.lang.Object

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

ObjectClassInfoBuilder

public ObjectClassInfoBuilder()

Method Detail

setType

public ObjectClassInfoBuilder setType(java.lang.String type)
Sets the specified 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.)
See Also:
ObjectClassInfo.getType(), ObjectClass.ACCOUNT_NAME

addAttributeInfo

public ObjectClassInfoBuilder addAttributeInfo(AttributeInfo info)
Add the specified AttributeInfo object to the ObjectClassInfo that is being built.

addAllAttributeInfo

public ObjectClassInfoBuilder addAllAttributeInfo(java.util.Collection<AttributeInfo> c)
Add to the ObjectClassInfo that is being built each AttributeInfo in the specified collection.

setContainer

public void setContainer(boolean container)
Set to true to indicate this is a container type.
Parameters:
container - True iff this is a container type.

setEmbedded

public 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.
Parameters:
embedded - True iff this is an embedded object class.
Since:
1.2

build

public ObjectClassInfo build()
Constructs an instance of ObjectClassInfo with any characteristics that were previously specified using this builder.
Returns:
an instance of ObjectClassInfo with the characteristics previously specified.

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.