Package it.bancaditalia.oss.vtl.config
Enum VTLGeneralProperties
- java.lang.Object
-
- java.lang.Enum<VTLGeneralProperties>
-
- it.bancaditalia.oss.vtl.config.VTLGeneralProperties
-
- All Implemented Interfaces:
VTLProperty
,Serializable
,Comparable<VTLGeneralProperties>
public enum VTLGeneralProperties extends Enum<VTLGeneralProperties> implements VTLProperty
This enum exposes the main configuration properties for the VTL Engine. Each property enables you to choose an implementation for each of the modules of which the VTL Engine is composed.- Author:
- Valentino Pinna
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIG_MANAGER
This property allows to choose how to manage the VTL configuration.ENGINE_IMPLEMENTATION
This property allows to choose whichcomputing engine
should be used.ENVIRONMENT_IMPLEMENTATION
This property allows to choose whichenvironments
should be used by the Engine.METADATA_REPOSITORY
This property allows to choose whichmetadata repository
should be used by the Engine.SESSION_IMPLEMENTATION
This property allows to choose whichVTL session
should be used by the Engine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getName()
String
getPlaceholder()
String
getValue()
boolean
hasValue()
boolean
isMultiple()
boolean
isRequired()
void
setValue(String newValue)
Change the value for this propertystatic VTLGeneralProperties
valueOf(String name)
Returns the enum constant of this type with the specified name.static VTLGeneralProperties[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface it.bancaditalia.oss.vtl.config.VTLProperty
addValues, getValues, setValues
-
-
-
-
Enum Constant Detail
-
CONFIG_MANAGER
public static final VTLGeneralProperties CONFIG_MANAGER
This property allows to choose how to manage the VTL configuration. The default value may be changed by using thevtl.config.impl.class
system property.
-
METADATA_REPOSITORY
public static final VTLGeneralProperties METADATA_REPOSITORY
This property allows to choose whichmetadata repository
should be used by the Engine. The default value may be changed by setting thevtl.metadatarepository.class
system property.
-
ENGINE_IMPLEMENTATION
public static final VTLGeneralProperties ENGINE_IMPLEMENTATION
This property allows to choose whichcomputing engine
should be used. The default value may be changed by setting thevtl.engine.implementation.class
system property.
-
SESSION_IMPLEMENTATION
public static final VTLGeneralProperties SESSION_IMPLEMENTATION
This property allows to choose whichVTL session
should be used by the Engine. The default value may be changed by using thevtl.session.implementation.class
system property.
-
ENVIRONMENT_IMPLEMENTATION
public static final VTLGeneralProperties ENVIRONMENT_IMPLEMENTATION
This property allows to choose whichenvironments
should be used by the Engine. The default value may be changed by using thevtl.environment.implementation.classes
system property to a sequence of class names separated by comma.
-
-
Method Detail
-
values
public static VTLGeneralProperties[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VTLGeneralProperties c : VTLGeneralProperties.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VTLGeneralProperties valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
- Specified by:
getName
in interfaceVTLProperty
- Returns:
- The name of the system property that provides a starting value
-
getValue
public String getValue()
- Specified by:
getValue
in interfaceVTLProperty
- Returns:
- The current value for this property
-
setValue
public void setValue(String newValue)
Description copied from interface:VTLProperty
Change the value for this property- Specified by:
setValue
in interfaceVTLProperty
- Parameters:
newValue
- The new value for this property
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceVTLProperty
- Returns:
- A description of the property
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiple
in interfaceVTLProperty
- Returns:
true
if the property allows multiple values
-
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interfaceVTLProperty
- Returns:
true
if the property must have a value set before using the component
-
getPlaceholder
public String getPlaceholder()
- Specified by:
getPlaceholder
in interfaceVTLProperty
- Returns:
- A placeholder for the property that can be used as a hint for the property contents
-
hasValue
public boolean hasValue()
- Specified by:
hasValue
in interfaceVTLProperty
- Returns:
true
if a value was set for this property or it has a default value
-
-