public final class EmbeddedObjectBuilder
extends java.lang.Object
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
.Constructor and Description |
---|
EmbeddedObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
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
Attribute s of a Collection . |
EmbeddedObject |
build()
Builds a 'EmbeddedObject' based on the attributes provided.
|
EmbeddedObjectBuilder |
setObjectClass(ObjectClass oclass) |
public EmbeddedObjectBuilder setObjectClass(ObjectClass oclass)
public EmbeddedObjectBuilder add(EmbeddedObject obj)
EmbeddedObject
and add/overwrite
the current attributes.public EmbeddedObjectBuilder addAttribute(Attribute... attrs)
EmbeddedObject
.public EmbeddedObjectBuilder addAttributes(java.util.Collection<Attribute> attrs)
Attribute
s of a Collection
.public EmbeddedObjectBuilder addAttribute(java.lang.String name, java.lang.Object... objs)
public EmbeddedObjectBuilder addAttribute(java.lang.String name, java.util.Collection<?> obj)
public EmbeddedObject build()