info.sswap.api.input.impl
Class UnionInputImpl
java.lang.Object
info.sswap.api.input.impl.AbstractInput
info.sswap.api.input.impl.UnionInputImpl
- All Implemented Interfaces:
- Input, NaryInput, UnionInput, java.io.Serializable
public class UnionInputImpl
- extends AbstractInput
- implements UnionInput
- Author:
- Evren Sirin
- See Also:
- Serialized Form
Method Summary |
void |
accept(InputVisitor visitor)
Visitor function. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<Input> |
getInputs()
|
int |
getValueIndex()
Returns the index of the nested input which will determine the value of this union or -1 if no value is
provided for this union. |
java.net.URI |
getValueType(int valueIndex)
|
int |
hashCode()
|
void |
setValueIndex(int valueIndex)
Returns the index of the input where value of this union should be read or -1 if no value is
provided for this union. |
void |
setValueType(int valueIndex,
java.net.URI valueType)
|
java.lang.String |
toString()
|
Methods inherited from class info.sswap.api.input.impl.AbstractInput |
genericEqualTo, getDescription, getLabel, getPropertyInput, getType, getValue, isUnrestricted, setDescription, setLabel, setPropertyInput, setValue, toStringLabel |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
inputs
private final com.google.common.collect.ImmutableList<Input> inputs
valueTypes
private final java.net.URI[] valueTypes
valueIndex
private int valueIndex
UnionInputImpl
public UnionInputImpl(java.util.Collection<Input> inputs)
accept
public void accept(InputVisitor visitor)
- Visitor function.
- Specified by:
accept
in interface Input
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getInputs
public java.util.List<Input> getInputs()
- Specified by:
getInputs
in interface NaryInput
getValueIndex
public int getValueIndex()
- Description copied from interface:
UnionInput
- Returns the index of the nested input which will determine the value of this union or
-1
if no value is
provided for this union.
- Specified by:
getValueIndex
in interface UnionInput
setValueIndex
public void setValueIndex(int valueIndex)
- Description copied from interface:
UnionInput
- Returns the index of the input where value of this union should be read or
-1
if no value is
provided for this union.
- Specified by:
setValueIndex
in interface UnionInput
getValueType
public java.net.URI getValueType(int valueIndex)
- Specified by:
getValueType
in interface UnionInput
setValueType
public void setValueType(int valueIndex,
java.net.URI valueType)
- Specified by:
setValueType
in interface UnionInput
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.