public final class ConnectorObjectBuilder extends Object
ConnectorObject
.
The developer of a Connector will construct a ConnectorObjectBuilder, and
then call the ConnectorObjectBuilder to set a Uid
, add attributes,
and then finally to build()
the actual ConnectorObject
.Constructor and Description |
---|
ConnectorObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
ConnectorObjectBuilder |
add(ConnectorObject obj)
Takes all the attribute from a
ConnectorObject and add/overwrite
the current attributes. |
ConnectorObjectBuilder |
addAttribute(Attribute... attrs)
Adds one or many attributes to the
ConnectorObject . |
ConnectorObjectBuilder |
addAttribute(String name,
Collection<?> obj)
Adds each object in the collection.
|
ConnectorObjectBuilder |
addAttribute(String name,
Object... objs)
Adds values to the attribute.
|
ConnectorObjectBuilder |
addAttributes(Collection<Attribute> attrs)
Add all the
Attribute s of a Collection . |
ConnectorObject |
build()
Builds a 'ConnectorObject' based on the attributes and Uid provided.
|
ConnectorObjectBuilder |
setName(Name name) |
ConnectorObjectBuilder |
setName(String name) |
ConnectorObjectBuilder |
setObjectClass(ObjectClass oclass) |
ConnectorObjectBuilder |
setUid(String uid) |
ConnectorObjectBuilder |
setUid(Uid uid) |
public ConnectorObjectBuilder setUid(String uid)
public ConnectorObjectBuilder setUid(Uid uid)
public ConnectorObjectBuilder setName(String name)
public ConnectorObjectBuilder setName(Name name)
public ConnectorObjectBuilder setObjectClass(ObjectClass oclass)
public ConnectorObjectBuilder add(ConnectorObject obj)
ConnectorObject
and add/overwrite
the current attributes.public ConnectorObjectBuilder addAttribute(Attribute... attrs)
ConnectorObject
.public ConnectorObjectBuilder addAttributes(Collection<Attribute> attrs)
Attribute
s of a Collection
.public ConnectorObjectBuilder addAttribute(String name, Object... objs)
public ConnectorObjectBuilder addAttribute(String name, Collection<?> obj)
public ConnectorObject build()
Copyright © 2022. All rights reserved.