Class VTLPropertyImpl
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.types.config.VTLPropertyImpl
-
- All Implemented Interfaces:
VTLProperty
public class VTLPropertyImpl extends Object implements VTLProperty
-
-
Constructor Summary
Constructors Constructor Description VTLPropertyImpl(String name, String description, String placeholder, boolean required)
VTLPropertyImpl(String name, String description, String placeholder, boolean required, boolean multiple, String... defaultValue)
-
Method Summary
All 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 property-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.bancaditalia.oss.vtl.config.VTLProperty
addValues, getValues, setValues
-
-
-
-
Method Detail
-
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
-
-