@Generated(value="config_generator.py") public class GraphPropertyConfig extends AbstractGraphPropertyConfig
Modifier and Type | Class and Description |
---|---|
static class |
GraphPropertyConfig.Field
Fields of PGX Engine Graph Property Config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
static GraphPropertyConfig.Field[] |
getConfigFields() |
java.lang.Object |
getDefault()
default value to be assigned to this property if datasource does not provide it.
|
java.lang.Integer |
getDimension()
dimension of property
|
java.util.List<java.lang.String> |
getFormat()
array of formats of property
|
java.lang.String |
getName()
name of property
|
PropertyType |
getType()
type of property (Note: date is deprecated, use one of local_date / time / timestamp / time_with_timezone / timestamp_with_timezone instead).
|
java.util.Map<GraphPropertyConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<GraphPropertyConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(GraphPropertyConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
static GraphPropertyConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static GraphPropertyConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static GraphPropertyConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hashSensitiveData) |
getParsedDefaultValue
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public static GraphPropertyConfig.Field[] getConfigFields()
public java.lang.Object getDefault()
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 java.lang.Integer getDimension()
public java.util.List<java.lang.String> getFormat()
public java.lang.String getName()
public PropertyType getType()
public java.util.Map<GraphPropertyConfig.Field,java.lang.Object> getValues()
public java.util.Map<GraphPropertyConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(GraphPropertyConfig.Field field)
field
- the fieldpublic boolean isEmpty()
public static GraphPropertyConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathjava.io.IOException
- Signals that an I/O exception has occurred.public static GraphPropertyConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathpublic static GraphPropertyConfig parse(java.util.Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean hashSensitiveData)
Copyright © 2017 Oracle Corp. All Rights Reserved.