Skip navigation links


org.identityconnectors.framework.common.objects
Class EmbeddedObjectBuilder

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


public final class EmbeddedObjectBuilder
extends java.lang.Object

Builder class to create a EmbeddedObject. The clients and the developer of a Connector will construct a EmbeddedObjectBuilder, and then call the EmbeddedObjectBuilder to add attributes, and then finally to build() the actual EmbeddedObject.

Since:
1.2

Constructor Summary
EmbeddedObjectBuilder()
           

 

Method Summary
 EmbeddedObjectBuilder add(EmbeddedObject obj)
          Takes all the attribute from a EmbeddedObject and add/overwrite the current attributes.
 EmbeddedObjectBuilder addAttribute(Attribute... attrs)
          Adds one or many attributes to the EmbeddedObject.
 EmbeddedObjectBuilder addAttribute(java.lang.String name, java.util.Collection<?> obj)
          Adds each object in the collection.
 EmbeddedObjectBuilder addAttribute(java.lang.String name, java.lang.Object... objs)
          Adds values to the attribute.
 EmbeddedObjectBuilder addAttributes(java.util.Collection<Attribute> attrs)
          Add all the Attributes of a Collection.
 EmbeddedObject build()
          Builds a 'EmbeddedObject' based on the attributes provided.
 EmbeddedObjectBuilder setObjectClass(ObjectClass oclass)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

EmbeddedObjectBuilder

public EmbeddedObjectBuilder()

Method Detail

setObjectClass

public EmbeddedObjectBuilder setObjectClass(ObjectClass oclass)

add

public EmbeddedObjectBuilder add(EmbeddedObject obj)
Takes all the attribute from a EmbeddedObject and add/overwrite the current attributes.

addAttribute

public EmbeddedObjectBuilder addAttribute(Attribute... attrs)
Adds one or many attributes to the EmbeddedObject.

addAttributes

public EmbeddedObjectBuilder addAttributes(java.util.Collection<Attribute> attrs)
Add all the Attributes of a Collection.

addAttribute

public EmbeddedObjectBuilder addAttribute(java.lang.String name,
                                          java.lang.Object... objs)
Adds values to the attribute.

addAttribute

public EmbeddedObjectBuilder addAttribute(java.lang.String name,
                                          java.util.Collection<?> obj)
Adds each object in the collection.

build

public EmbeddedObject build()
Builds a 'EmbeddedObject' based on the attributes provided.

Skip navigation links


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