public class CompoundParameter extends Parameter<ParameterStructure>
CompoundParameter
values is a
ParameterStructure
which contains Parameter
objects.Modifier and Type | Field and Description |
---|---|
protected static long |
serialVersionUID
For interoperability with possible future changes.
|
Constructor and Description |
---|
CompoundParameter()
Creates 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).
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(ParameterStructure value)
Adds a new value to the parameter.
|
boolean |
equals(Object obj) |
ParameterStructure |
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.
|
Collection<ParameterStructure> |
getValues()
Obtains the values of the parameter.
|
int |
hashCode() |
boolean |
isEncrypted() |
void |
setEncrypted(boolean encrypted) |
void |
setValues(Collection<ParameterStructure> values)
Sets the values of the parameter.
|
String |
toString() |
getInstances, getName, setInstances, setName
protected static final long serialVersionUID
public CompoundParameter()
public CompoundParameter(String name, Collection<ParameterStructure> values)
name
- the name of the parametervalues
- a Collection of ParameterStructure
public CompoundParameter(String name, Collection<ParameterStructure> values, Boolean encrypted)
name
- the name of the parametervalues
- a Collection of ParameterStructure
encrypted
- if the values are encryptedpublic ParameterStructure getValue()
getValue
in class Parameter<ParameterStructure>
ParameterStructure
of the
parameter if it is multivalued; the unique
ParameterStructure
if it is single-valued.public Collection<ParameterStructure> getValues()
getValues
in class Parameter<ParameterStructure>
ParameterStructure
.public void setValues(Collection<ParameterStructure> values)
setValues
in class Parameter<ParameterStructure>
values
- the Collection of ParameterStructure
to set.public void addValue(ParameterStructure value)
addValue
in class Parameter<ParameterStructure>
value
- the ParameterStructure
to add.public boolean isEncrypted()
isEncrypted
in class Parameter<ParameterStructure>
public void setEncrypted(boolean encrypted)
setEncrypted
in class Parameter<ParameterStructure>
public boolean equals(Object obj)
equals
in class Parameter<ParameterStructure>
public int hashCode()
hashCode
in class Parameter<ParameterStructure>
Copyright © 2021 Denodo Technologies. All rights reserved.