@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 | 
setFormat(java.lang.String... format)
array of formats of property 
 | 
GraphPropertyConfigBuilder | 
setName(java.lang.String name)
name of property 
 | 
GraphPropertyConfigBuilder | 
setType(PropertyType type)
type of property (Note: date is deprecated, use one of local_date / time / timestamp / time_with_timezone / timestamp_with_timezone instead). 
 | 
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 GraphPropertyConfigpublic 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 setFormat(java.lang.String... format)
format - possible format for propertypublic 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.ObjectCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.