@Generated(value={"common/src/templates/ConfigBuilder.stg","common/common.gradle"})
public final class GraphPropertyConfigBuilder
extends java.lang.Object
GraphPropertyConfig
.Constructor and Description |
---|
GraphPropertyConfigBuilder()
Constructs an empty GraphPropertyConfigBuilder
|
GraphPropertyConfigBuilder(GraphPropertyConfig config)
Constructs a GraphPropertyConfigBuilder initialized with the values from the given config
|
GraphPropertyConfigBuilder(GraphPropertyConfigBuilder builder)
Constructs a GraphPropertyConfigBuilder initialized with the values from the given builder
|
GraphPropertyConfigBuilder(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
Constructs a GraphPropertyConfigBuilder initialized with the values from the given map
|
Modifier and Type | Method and Description |
---|---|
GraphPropertyConfig |
build()
Builds the GraphPropertyConfig with a
parentPath of null . |
GraphPropertyConfig |
build(java.lang.String parentPath)
Builds the GraphPropertyConfig.
|
static GraphPropertyConfig |
buildGraphPropertyConfig(java.util.function.Consumer<GraphPropertyConfigBuilder> builderSetup)
Builds a
GraphPropertyConfig in-place |
GraphPropertyConfigBuilder |
clear()
Clears all values from the builder
|
java.util.Map<GraphPropertyConfig.Field,java.lang.Object> |
getValues() |
GraphPropertyConfigBuilder |
putAll(GraphPropertyConfig config)
Puts all values from the given config into this builder
|
GraphPropertyConfigBuilder |
putAll(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.
|
GraphPropertyConfigBuilder |
setDefault(java.lang.Object defaultVal)
default value to be assigned to this property if datasource does not provide it.
|
GraphPropertyConfigBuilder |
setDimension(int dimension)
dimension of property
|
GraphPropertyConfigBuilder |
setName(java.lang.String name)
name of property
|
GraphPropertyConfigBuilder |
setType(PropertyType type)
type of property.
|
java.io.InputStream |
toInputStream() |
java.lang.String |
toString() |
public GraphPropertyConfigBuilder()
public GraphPropertyConfigBuilder(GraphPropertyConfig config)
config
- the configuration to take the values frompublic GraphPropertyConfigBuilder(GraphPropertyConfigBuilder builder)
builder
- the builder to take the values frompublic GraphPropertyConfigBuilder(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
values
- a map containing configuration valuespublic GraphPropertyConfig build()
parentPath
of null
.build(String)
public GraphPropertyConfig build(java.lang.String parentPath)
parentPath
- if not null, resolves relative paths against this parentPathpublic static GraphPropertyConfig buildGraphPropertyConfig(java.util.function.Consumer<GraphPropertyConfigBuilder> builderSetup)
GraphPropertyConfig
in-placebuilderSetup
- a consumer to setup a newly created GraphPropertyConfig
public GraphPropertyConfigBuilder clear()
public java.util.Map<GraphPropertyConfig.Field,java.lang.Object> getValues()
public GraphPropertyConfigBuilder putAll(GraphPropertyConfig config)
config
- the config to take the values frompublic GraphPropertyConfigBuilder putAll(java.util.Map<GraphPropertyConfig.Field,java.lang.Object> values)
values
- the values to put in the builderpublic GraphPropertyConfigBuilder setDefault(java.lang.Object defaultVal)
yyyy-MM-dd HH:mm:ss
. If no default is present (null
), non-existent properties will contain default Java types (primitives) or empty string (string) or 01.01.1970 00:00
(date).public GraphPropertyConfigBuilder setDimension(int dimension)
public GraphPropertyConfigBuilder setName(java.lang.String name)
public GraphPropertyConfigBuilder setType(PropertyType type)
public java.io.InputStream toInputStream()
InputStream
representing the configpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 Oracle Corp. All Rights Reserved.