public abstract class ModelConfigurationImpl extends java.lang.Object implements ModelConfiguration
| Modifier | Constructor and Description |
|---|---|
protected |
ModelConfigurationImpl() |
protected |
ModelConfigurationImpl(java.io.File propertyFile) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
getConfigurationParameters()
returns all the parameters of the implementing ModelConfiguration subclass, which have been annotated
as
ModelConfigurationParameter |
java.lang.String |
getParameterContentType(java.lang.String parID)
get the expected type of content for the parameter.
|
java.lang.String |
getParameterDescription(java.lang.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
|
java.lang.Object |
getParameterValue(java.lang.String id)
gets the value of a parameter previously set on this configuration
|
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(java.lang.String parID) |
void |
loadParameters(java.io.File propertyFile)
invokes
ModelConfiguration.setParameter(String, Object) on each of the parameter/value pairs found in
propertyFile |
void |
setParameter(java.lang.String id,
java.lang.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(java.util.Properties props)
invokes
ModelConfiguration.setParameter(String, Object) on each of the parameter/value pairs found in
properties |
void |
storeParameters(java.io.File propertyFile)
stores the parameters of this configuration in file
propertyFile |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetShortNameprotected ModelConfigurationImpl()
protected ModelConfigurationImpl(java.io.File propertyFile)
throws java.io.IOException,
BadConfigurationException
java.io.IOExceptionBadConfigurationExceptionpublic java.util.Collection<java.lang.String> getConfigurationParameters()
ModelConfigurationModelConfigurationParametergetConfigurationParameters in interface ModelConfigurationpublic java.lang.Object getParameterValue(java.lang.String id)
throws ConfParameterNotFoundException
ModelConfigurationgetParameterValue in interface ModelConfigurationConfParameterNotFoundExceptionpublic void setParameter(java.lang.String id,
java.lang.Object value)
throws BadConfigurationException
ModelConfigurationvaluesetParameter in interface ModelConfigurationBadConfigurationExceptionpublic void setParameters(java.util.Properties props)
throws BadConfigurationException
ModelConfigurationModelConfiguration.setParameter(String, Object) on each of the parameter/value pairs found in
propertiessetParameters in interface ModelConfigurationBadConfigurationExceptionpublic void loadParameters(java.io.File propertyFile)
throws BadConfigurationException,
java.io.IOException
ModelConfigurationModelConfiguration.setParameter(String, Object) on each of the parameter/value pairs found in
propertyFileloadParameters in interface ModelConfigurationBadConfigurationExceptionjava.io.IOExceptionpublic void storeParameters(java.io.File propertyFile)
throws java.io.IOException,
BadConfigurationException
ModelConfigurationpropertyFilestoreParameters in interface ModelConfigurationjava.io.IOExceptionBadConfigurationExceptionpublic java.lang.String getParameterContentType(java.lang.String parID)
throws ConfParameterNotFoundException
ModelConfigurationgetParameterContentType in interface ModelConfigurationConfParameterNotFoundExceptionpublic boolean isRequiredParameter(java.lang.String parID)
throws ConfParameterNotFoundException
isRequiredParameter in interface ModelConfigurationConfParameterNotFoundExceptionpublic boolean hasRequiredParameters()
ModelConfigurationhasRequiredParameters in interface ModelConfigurationpublic java.lang.String getParameterDescription(java.lang.String id)
throws ConfParameterNotFoundException
ModelConfigurationgetParameterDescription in interface ModelConfigurationConfParameterNotFoundExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013 ART Group, University of Rome, Tor Vergata. All Rights Reserved.