public interface ModelConfiguration
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getConfigurationParameters()
returns all the parameters of the implementing ModelConfiguration subclass, which have been annotated
as
ModelConfigurationParameter |
String |
getParameterContentType(String parID)
get the expected type of content for the parameter.
|
String |
getParameterDescription(String id)
this method is useful when OWL ART API are embedded inside tools presenting list of configuration
parameters for being set by the users, to provide hints for the user on which kind of values should be
used to fill them
|
Object |
getParameterValue(String id)
gets the value of a parameter previously set on this configuration
|
String |
getShortName() |
boolean |
hasRequiredParameters()
tells if this ModelConfiguration needs to be explicitly set by the user or if it can be used in its
default settings
|
boolean |
isRequiredParameter(String parID) |
void |
loadParameters(File propertyFile)
invokes
setParameter(String, Object) on each of the parameter/value pairs found in
propertyFile |
void |
setParameter(String id,
Object value)
sets the value of the Configuration Parameter to
valueNote that it is possible to pass the value both with the proper type, if it is known in advance, as well with a generic String, which will be evaluated and converted to the appropriate type. |
void |
setParameters(Properties properties)
invokes
setParameter(String, Object) on each of the parameter/value pairs found in
properties |
void |
storeParameters(File propertyFile)
stores the parameters of this configuration in file
propertyFile |
Collection<String> getConfigurationParameters()
ModelConfigurationParameterObject getParameterValue(String id) throws ConfParameterNotFoundException
id - ConfParameterNotFoundExceptionvoid setParameter(String id, Object value) throws BadConfigurationException
valueid - value - BadConfigurationExceptionvoid loadParameters(File propertyFile) throws BadConfigurationException, IOException
setParameter(String, Object) on each of the parameter/value pairs found in
propertyFilepropertyFile - BadConfigurationExceptionIOExceptionvoid setParameters(Properties properties) throws BadConfigurationException
setParameter(String, Object) on each of the parameter/value pairs found in
propertiesproperties - BadConfigurationExceptionvoid storeParameters(File propertyFile) throws IOException, BadConfigurationException
propertyFilepropertyFile - IOExceptionBadConfigurationExceptionString getParameterContentType(String parID) throws ConfParameterNotFoundException
parID - ConfParameterNotFoundExceptionboolean hasRequiredParameters()
boolean isRequiredParameter(String parID) throws ConfParameterNotFoundException
ConfParameterNotFoundExceptionString getParameterDescription(String id) throws ConfParameterNotFoundException
id - ConfParameterNotFoundExceptionString getShortName()
Copyright © 2014 ART Group, University of Rome, Tor Vergata. All Rights Reserved.