public final class ComposableSchemaObjectDefiner extends Object implements SchemaObjectDefiner, Iterable<SchemaObjectDefiner>
ComposableSchemaObjectDefiner
is an implementation of SchemaObjectDefiner
as well as a composition of SchemaObjectInstanceHandlers
composed
using the Composite Software Design Pattern.Iterable
,
SchemaObjectDefiner
Modifier and Type | Method and Description |
---|---|
static SchemaObjectDefiner |
compose(Iterable<SchemaObjectDefiner> schemaObjectDefiners) |
static SchemaObjectDefiner |
compose(SchemaObjectDefiner... schemaObjectDefiners) |
Optional<? extends SchemaObjectDefinition> |
define(Object schemaObject)
|
Set<SchemaObjectType> |
getSchemaObjectTypes()
Returns a
Set of schema object types definable by this definer. |
Iterator<SchemaObjectDefiner> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canDefine, canDefine, canDefine
forEach, spliterator
@Nullable public static SchemaObjectDefiner compose(SchemaObjectDefiner... schemaObjectDefiners)
@Nullable public static SchemaObjectDefiner compose(Iterable<SchemaObjectDefiner> schemaObjectDefiners)
public Set<SchemaObjectType> getSchemaObjectTypes()
SchemaObjectDefiner
Set
of schema object types
definable by this definer.getSchemaObjectTypes
in interface SchemaObjectDefiner
Set
of schema object types
definable by this definer.SchemaObjectType
,
Set
public Optional<? extends SchemaObjectDefinition> define(Object schemaObject)
SchemaObjectDefiner
define
in interface SchemaObjectDefiner
schemaObject
- schema object
to define.Optional
definition
for the given
schema object
instance.SchemaObjectDefinition
public Iterator<SchemaObjectDefiner> iterator()
iterator
in interface Iterable<SchemaObjectDefiner>
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.