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(java.lang.String name,
java.util.Collection<ParameterStructure> values)
Creates a CompoundParameter with the given name and the given values.
|
CompoundParameter(java.lang.String name,
java.util.Collection<ParameterStructure> values,
java.lang.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(java.lang.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.
|
java.util.Collection<ParameterStructure> |
getValues()
Obtains the values of the parameter.
|
int |
hashCode() |
boolean |
isEncrypted() |
void |
setEncrypted(boolean encrypted) |
void |
setValues(java.util.Collection<ParameterStructure> values)
Sets the values of the parameter.
|
java.lang.String |
toString() |
getInstances, getName, setInstances, setNameprotected static final long serialVersionUID
public CompoundParameter()
public CompoundParameter(java.lang.String name,
java.util.Collection<ParameterStructure> values)
name - the name of the parametervalues - a Collection of ParameterStructurepublic CompoundParameter(java.lang.String name,
java.util.Collection<ParameterStructure> values,
java.lang.Boolean encrypted)
name - the name of the parametervalues - a Collection of ParameterStructureencrypted - 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 java.util.Collection<ParameterStructure> getValues()
getValues in class Parameter<ParameterStructure>ParameterStructure.public void setValues(java.util.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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class Parameter<ParameterStructure>public int hashCode()
hashCode in class Parameter<ParameterStructure>Copyright © 2024 Denodo Technologies. All rights reserved.