@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
|
| Modifier and Type | Method and Description |
|---|---|
Charset |
getCharset()
Gets the charset.
|
Object |
getDefault()
default value to be assigned to this property if datasource does not provide it.
|
String |
getName()
name of property
|
PropertyType |
getType()
type of property.
|
Map<GraphPropertyConfig.Field,Object> |
getValues()
Gets the parsed values.
|
Map<GraphPropertyConfig.Field,Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(GraphPropertyConfig.Field field)
Checks for default value.
|
static GraphPropertyConfig |
parse(InputStream is, boolean strict, File parent)
Parses an input stream.
|
static GraphPropertyConfig |
parse(Map<String,Object> raw, boolean strict, File parent)
Parses a raw key/value mapping.
|
static GraphPropertyConfig |
parse(Properties props, boolean strict)
Parses a properties file.
|
String |
toString() |
getParsedDefaultValuesetSerializablepublic Charset getCharset()
public 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 String getName()
public PropertyType getType()
public Map<GraphPropertyConfig.Field,Object> getValues()
public Map<GraphPropertyConfig.Field,Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(GraphPropertyConfig.Field field)
field - the fieldpublic static GraphPropertyConfig parse(InputStream is, boolean strict, File parent) throws IOException
is - the input streamstrict - if true, parses in strict modeparent - if not null, resolves relative paths against this parentIOException - Signals that an I/O exception has occurred.public static GraphPropertyConfig parse(Map<String,Object> raw, boolean strict, File parent)
raw - the raw key/value mapping to parsestrict - if true, parses in strict modeparent - if not null, resolves relative paths against this parentpublic static GraphPropertyConfig parse(Properties props, boolean strict)
props - the properties to parsestrict - if true, parses in strict modeCopyright © 2015. All rights reserved.