org.neo4j.graphdb.factory
Class GraphDatabaseSetting<T>
java.lang.Object
org.neo4j.graphdb.factory.GraphDatabaseSetting<T>
- Direct Known Subclasses:
- GraphDatabaseSetting.BaseOptionsSetting, GraphDatabaseSetting.ListSetting, GraphDatabaseSetting.NumberOfBytesSetting, GraphDatabaseSetting.NumberSetting, GraphDatabaseSetting.StringSetting, GraphDatabaseSetting.TimeSpanSetting, GraphDatabaseSetting.URISetting
public abstract class GraphDatabaseSetting<T>
- extends Object
Setting types for Neo4j. Actual settings are in GraphDatabaseSettings
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
FALSE
public static final String FALSE
- See Also:
- Constant Field Values
ANY
public static final String ANY
- See Also:
- Constant Field Values
GraphDatabaseSetting
protected GraphDatabaseSetting(String name,
String validationMessage)
name
public String name()
validationMessage
public String validationMessage()
validate
public void validate(String value)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
validate
public abstract void validate(Locale locale,
String value)
- Validate a raw string value, called when configuration is set.
Throws IllegalArgumentException if the provided value is not valid.
- Parameters:
locale - value -
valueOf
public abstract T valueOf(String rawValue,
Config config)
- Create a typed value from a raw string value. This is to be called
when a value is fetched from configuration.
- Parameters:
rawValue - The raw string value stored in configurationconfig - The config instance, allows having config values that depend on each other.
- Returns:
getMessage
protected String getMessage(Locale locale,
String defaultMessage)
illegalValue
protected IllegalArgumentException illegalValue(Locale locale,
String value,
Object... args)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
illegalValue
protected IllegalArgumentException illegalValue(Locale locale,
String value,
String rawMessage,
Object[] args)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
osIsWindows
public static boolean osIsWindows()
osIsMacOS
public static boolean osIsMacOS()
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.