|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModelConfiguration
Method Summary | |
---|---|
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 |
java.lang.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(java.lang.String parID)
|
void |
loadParameters(java.io.File propertyFile)
invokes 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 value Note 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 properties)
invokes 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 |
Method Detail |
---|
java.util.Collection<java.lang.String> getConfigurationParameters()
ModelConfigurationParameter
java.lang.Object getParameterValue(java.lang.String id) throws ConfParameterNotFoundException
id
-
ConfParameterNotFoundException
void setParameter(java.lang.String id, java.lang.Object value) throws BadConfigurationException
value
id
- value
-
BadConfigurationException
void loadParameters(java.io.File propertyFile) throws BadConfigurationException, java.io.IOException
setParameter(String, Object)
on each of the parameter/value pairs found in
propertyFile
propertyFile
-
BadConfigurationException
java.io.IOException
void setParameters(java.util.Properties properties) throws BadConfigurationException
setParameter(String, Object)
on each of the parameter/value pairs found in
properties
properties
-
BadConfigurationException
void storeParameters(java.io.File propertyFile) throws java.io.IOException, BadConfigurationException
propertyFile
propertyFile
-
java.io.IOException
BadConfigurationException
java.lang.String getParameterContentType(java.lang.String parID) throws ConfParameterNotFoundException
parID
-
ConfParameterNotFoundException
boolean hasRequiredParameters()
boolean isRequiredParameter(java.lang.String parID) throws ConfParameterNotFoundException
ConfParameterNotFoundException
java.lang.String getParameterDescription(java.lang.String id) throws ConfParameterNotFoundException
id
-
ConfParameterNotFoundException
java.lang.String getShortName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |