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() |
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
. This method is needed to preserve backward API
compatibility.public ConnectorObjectBuilder addAttribute(Attribute attr, Attribute... attrs)
ConnectorObject
.public ConnectorObjectBuilder addAttributes(Collection<Attribute> attrs)
Attribute
s of a Collection
.public ConnectorObjectBuilder addAttribute(String name, Object... objs)
public ConnectorObjectBuilder addAttribute(AttributeBuilder builder, String name, Object... objs)
AttributeBuilder
.public ConnectorObjectBuilder addAttribute(String name, Collection<?> obj)
public ConnectorObjectBuilder addAttribute(AttributeBuilder builder, String name, Collection<?> obj)
AttributeBuilder
.public ConnectorObjectBuilder removeAttribute(String name)
name
.public ConnectorObjectBuilder clearAttributes()
Attribute
s, for recycling this ConnectionObjectBuilder
.public ConnectorObject build()
Copyright © 2018–2025. All rights reserved.