public interface SchemaObjectDefiner
SchemaObjectDefiner
interface defines a contract for implementing objects
that can reverse engineer a schema object instance back into a definition of the schema object.SchemaObjectDefinition
,
SchemaObjectType
Modifier and Type | Method and Description |
---|---|
default boolean |
canDefine(Class<?> schemaObjectType)
Determines whether this definer is able to define schema objects of the given
type . |
default boolean |
canDefine(Object schemaObject)
Determines whether this definer is able to define the given
schema object instance. |
default boolean |
canDefine(SchemaObjectType schemaObjectType)
Determines whether this definer is able to define schema objects of the given
enumerated schema object type . |
Optional<? extends SchemaObjectDefinition> |
define(Object schemaObject)
|
default Set<SchemaObjectType> |
getSchemaObjectTypes()
Returns a
Set of schema object types definable by this definer. |
default Set<SchemaObjectType> getSchemaObjectTypes()
Set
of schema object types
definable by this definer.Set
of schema object types
definable by this definer.SchemaObjectType
,
Set
default boolean canDefine(Object schemaObject)
schema object
instance.schemaObject
- Object
to evaluate.schema object
instance.Object.getClass()
,
canDefine(Class)
default boolean canDefine(Class<?> schemaObjectType)
type
.schemaObjectType
- type
of the schema object
instance to evaluate.schema objects
of the given type
.SchemaObjectType.from(Class)
,
canDefine(SchemaObjectType)
default boolean canDefine(SchemaObjectType schemaObjectType)
enumerated schema object type
.schemaObjectType
- SchemaObjectType
to evaluate.enumerated schema object type
.SchemaObjectType
Optional<? extends SchemaObjectDefinition> define(Object schemaObject)
schemaObject
- schema object
to define.Optional
definition
for the given
schema object
instance.SchemaObjectDefinition
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.