Package | Description |
---|---|
messif.objects.extraction |
Support for
object extraction. |
messif.utility |
Various utilities that does not fit anywhere else including
a main class for executing batch files.
|
Modifier and Type | Method and Description |
---|---|
static Extractor<MetaObjectParametricMap> |
Extractors.createCombinedExtractorFromProperties(ExtendedProperties properties,
java.lang.String[] extractorPropertyKeys,
java.lang.String contentParameter,
boolean expandMetaObjects)
Creates extractor that combines multiple extractors defined in properties
into one
MetaObjectParametricMap object. |
static <T extends LocalAbstractObject> |
Extractors.createExtractorFromProperties(java.lang.Class<? extends T> objectClass,
ExtendedProperties properties,
java.lang.String key)
Creates an instance of
Extractor from property values. |
static Extractor<?> |
Extractors.createExtractorFromProperties(ExtendedProperties properties,
java.lang.String key)
Creates an instance of
Extractor from property values. |
static <T extends LocalAbstractObject> |
Extractors.createMultiExtractorFromProperties(java.lang.Class<? extends T> objectClass,
ExtendedProperties properties,
java.lang.String key)
Creates an instance of
MultiExtractor from property values. |
Modifier and Type | Method and Description |
---|---|
int |
ExtendedProperties.fillByMultiProperty(java.lang.String key,
java.lang.Object[] parameters,
java.lang.Class<?>[] parameterTypes)
Fill the specified array with property values converted to appropriate types.
|
boolean |
ExtendedProperties.getBoolProperty(java.lang.String key,
boolean defaultValue)
Returns a boolean value from the given property.
|
java.lang.Class<?> |
ExtendedProperties.getClassProperty(java.lang.String key,
boolean required)
Returns a class from the given property.
|
<E> java.lang.Class<E> |
ExtendedProperties.getClassProperty(java.lang.String key,
boolean required,
java.lang.Class<E> checkClass)
Returns a generic-safe class from the given property.
|
<E> java.lang.reflect.Constructor<E> |
ExtendedProperties.getConstructor(java.lang.Class<E> objectClass,
java.lang.Class<?>... prototype)
Returns a constructor for a class.
|
<E> java.lang.reflect.Constructor<E> |
ExtendedProperties.getConstructor(java.lang.Class<E> checkClass,
java.lang.String classKeyName,
java.lang.Class<?>... prototype)
Returns a constructor for a class.
|
java.lang.reflect.Constructor<?> |
ExtendedProperties.getConstructor(java.lang.String classKeyName,
java.lang.Class<?>... prototype)
Returns a constructor for a class.
|
java.sql.Connection |
ExtendedProperties.getDatabaseConnection(java.lang.String key)
Returns a data source using either JNDI or
DriverManager using the
URL specified in the value of the property key . |
java.lang.reflect.Method |
ExtendedProperties.getFactoryMethod(java.lang.Class<?> factoryClass,
java.lang.Class<?> returnType,
java.lang.String methodName,
java.lang.Class<?>... prototype)
Returns a
className 's factory method with the specified name and prototype. |
java.lang.reflect.Method |
ExtendedProperties.getFactoryMethod(java.lang.Class<?> returnType,
java.lang.String classKeyName,
java.lang.String methodKeyName,
java.lang.Class<?>... prototype)
Returns a factory method for a class.
|
java.lang.reflect.Method |
ExtendedProperties.getFactoryMethod(java.lang.String classKeyName,
java.lang.String methodKeyName,
java.lang.Class<?>... prototype)
Returns a factory method for a class.
|
java.net.InetAddress |
ExtendedProperties.getInetAddressProperty(java.lang.String key,
boolean required)
Returns an
InetAddress from the given property. |
int |
ExtendedProperties.getIntProperty(java.lang.String key,
int defaultValue)
Returns an integer value from the given property.
|
int |
ExtendedProperties.getIntProperty(java.lang.String key,
int defaultValue,
int minValue,
int maxValue)
Returns an integer value from the given property.
|
java.lang.String[] |
ExtendedProperties.getMultiProperty(java.lang.String key)
Returns an array of property values.
|
java.lang.Object[] |
ExtendedProperties.getMultiProperty(java.lang.String key,
java.lang.Class<?>... parameterTypes)
Returns an array of property values converted to appropriate types.
|
static ExtendedProperties |
ExtendedProperties.getProperties(java.lang.Class<?> clazz)
Returns a cached instance of ExtendedProperties for the specified class.
|
static ExtendedProperties |
ExtendedProperties.getProperties(java.lang.String file)
Returns a cached instance of ExtendedProperties for the specified file.
|
boolean |
ExtendedProperties.getRequiredBoolProperty(java.lang.String key)
Returns a boolean value from the given property.
|
int |
ExtendedProperties.getRequiredIntProperty(java.lang.String key)
Returns an integer value from the given property.
|
java.lang.String |
ExtendedProperties.getRequiredProperty(java.lang.String key)
Searches for the property with the specified key in this property list.
|
java.lang.Object |
ExtendedProperties.getSerializedObject(java.lang.String fileNameProperty,
boolean required)
Reads a serialized object from the file specified by the given property.
|
java.sql.PreparedStatement |
ExtendedProperties.getSQLStatement(java.lang.String connectionKey,
java.lang.String sqlStatementKey)
Prepare an SQL statement from the configuration.
|