info.sswap.api.input
Interface UnionInput

All Superinterfaces:
Input, NaryInput
All Known Implementing Classes:
UnionInputImpl

public interface UnionInput
extends NaryInput

Represents a union type where valid input values should satisfy the one of the nested input types.

Author:
Evren Sirin

Method Summary
 java.net.URI getType()
          Returns owl:unionOf
 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)
           
 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)
           
 
Methods inherited from interface info.sswap.api.input.NaryInput
getInputs
 
Methods inherited from interface info.sswap.api.input.Input
accept, getDescription, getLabel, getPropertyInput, getValue, isUnrestricted, setDescription, setLabel, setPropertyInput, setValue
 

Method Detail

getType

java.net.URI getType()
Returns owl:unionOf

Specified by:
getType in interface Input

getValueIndex

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.


setValueIndex

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.


getValueType

java.net.URI getValueType(int valueIndex)

setValueType

void setValueType(int valueIndex,
                  java.net.URI valueType)


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.