T - the type of the engine propertypublic class EngineProperty<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> EngineProperty<T> |
defineProperty(String propertyName,
String description,
Class<T> propertyClass,
T defaultValue)
Creates a new engine property
|
static List<EngineProperty<?>> |
discoverProperties(Class<?> clazz)
Finds all
public static final EngineProperty declarations
of the given class and its inner classes. |
static EngineProperty<?> |
discoverProperty(Class<?> clazz,
String name)
Looks up engine properties by their property file keys.
|
boolean |
equals(Object o) |
T |
getDefaultValue()
Gets the default value for the property.
|
String |
getDescription()
Gets a description of the property.
|
String |
getProperty()
Gets the property key for use in properties files.
|
Class<T> |
getPropertyClass()
Returns the class of values of this property
|
int |
hashCode() |
T |
parseValue(String value)
Parses the given value from its text representation to the type of
the property
|
String |
toString() |
public static <T> EngineProperty<T> defineProperty(String propertyName, String description, Class<T> propertyClass, T defaultValue)
T - the type of propertypropertyName - the name of the propertydescription - the description of the propertypropertyClass - the type of the propertydefaultValue - the default value of the propertypublic T parseValue(String value) throws com.pervasive.datarush.graphs.physical.InvalidPropertyValueException
value - the next valuecom.pervasive.datarush.graphs.physical.InvalidPropertyValueException - if a parse error occurspublic final String getProperty()
public final String getDescription()
public T getDefaultValue()
public final Class<T> getPropertyClass()
public static List<EngineProperty<?>> discoverProperties(Class<?> clazz)
public static final EngineProperty declarations
of the given class and its inner classes.clazz - the class, usually EngineConfigpublic static EngineProperty<?> discoverProperty(Class<?> clazz, String name)
clazz - the class containing property declarationsname - the key from the property filenull
if no such property can be found.Copyright © 2020 Actian Corporation. All rights reserved.