Package com.denodo.configuration
Class CompoundParameter
- All Implemented Interfaces:
Serializable
An implementation of the Parameter interface.
The type of
CompoundParameter values is a
ParameterStructure which contains Parameter
objects.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty CompoundParameter object.CompoundParameter(String name, Collection<ParameterStructure> values) Creates a CompoundParameter with the given name and the given values.CompoundParameter(String name, Collection<ParameterStructure> values, Boolean encrypted) Creates a SimpleParameter with the given name and the given values (encrypted). -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(ParameterStructure value) Adds a new value to the parameter.booleangetValue()Obtains the first value of the parameter if it is a multivalued parameter or the unique value if it is a single-valued parameter.Obtains the values of the parameter.inthashCode()booleanvoidsetEncrypted(boolean encrypted) voidsetValues(Collection<ParameterStructure> values) Sets the values of the parameter.toString()Methods inherited from class com.denodo.configuration.Parameter
getInstances, getName, setInstances, setName
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Constructor Details
-
CompoundParameter
public CompoundParameter()Creates an empty CompoundParameter object. -
CompoundParameter
Creates a CompoundParameter with the given name and the given values.- Parameters:
name- the name of the parametervalues- a Collection ofParameterStructure
-
CompoundParameter
Creates a SimpleParameter with the given name and the given values (encrypted).- Parameters:
name- the name of the parametervalues- a Collection ofParameterStructureencrypted- if the values are encrypted
-
-
Method Details
-
getValue
Obtains the first value of the parameter if it is a multivalued parameter or the unique value if it is a single-valued parameter.- Specified by:
getValuein classParameter<ParameterStructure>- Returns:
- the first
ParameterStructureof the parameter if it is multivalued; the uniqueParameterStructureif it is single-valued.
-
getValues
Obtains the values of the parameter.- Specified by:
getValuesin classParameter<ParameterStructure>- Returns:
- the collection of
ParameterStructure.
-
setValues
Sets the values of the parameter.- Specified by:
setValuesin classParameter<ParameterStructure>- Parameters:
values- the Collection ofParameterStructureto set.
-
addValue
Adds a new value to the parameter.- Specified by:
addValuein classParameter<ParameterStructure>- Parameters:
value- theParameterStructureto add.
-
isEncrypted
public boolean isEncrypted()- Overrides:
isEncryptedin classParameter<ParameterStructure>
-
setEncrypted
public void setEncrypted(boolean encrypted) - Overrides:
setEncryptedin classParameter<ParameterStructure>
-
toString
-
equals
- Overrides:
equalsin classParameter<ParameterStructure>
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameter<ParameterStructure>
-