csdk.v1_0.helper.command.parameters
Class ListParameterValue<T>

java.lang.Object
  extended by csdk.v1_0.helper.command.parameters.AbstractParameterValue<List<T>>
      extended by csdk.v1_0.helper.command.parameters.ListParameterValue<T>
Type Parameters:
T - tipo do valor da lista.
All Implemented Interfaces:
IParameterValue<List<T>>
Direct Known Subclasses:
DoubleListParameterValue, EnumerationListParameterValue, IntegerListParameterValue, TextListParameterValue

public abstract class ListParameterValue<T>
extends AbstractParameterValue<List<T>>

Valor genérico para parâmetros do tipo List de um tipo .


Constructor Summary
ListParameterValue()
          Construtor.
ListParameterValue(List<T> values)
          Construtor.
ListParameterValue(T[] values)
          Construtor.
 
Method Summary
 void addValue(T value)
          Adiciona um novo valor à lista.
protected  ParameterValueConverter<T> getSingleValueConverter()
          Obtém o conversor de uma unidade do tipo para string.
protected  ParameterValueConverter<List<T>> getValueConverter()
          Obtém o conversor do tipo do valor para string.
 
Methods inherited from class csdk.v1_0.helper.command.parameters.AbstractParameterValue
getValue, getValueAsString, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListParameterValue

public ListParameterValue()
Construtor.


ListParameterValue

public ListParameterValue(List<T> values)
Construtor.

Parameters:
values - lista de valores.

ListParameterValue

public ListParameterValue(T[] values)
Construtor.

Parameters:
values - array de valores.
Method Detail

addValue

public void addValue(T value)
Adiciona um novo valor à lista.

Parameters:
value - o valor.

getValueConverter

protected ParameterValueConverter<List<T>> getValueConverter()
Obtém o conversor do tipo do valor para string.

Overrides:
getValueConverter in class AbstractParameterValue<List<T>>
Returns:
value o conversor.

getSingleValueConverter

protected ParameterValueConverter<T> getSingleValueConverter()
Obtém o conversor de uma unidade do tipo para string.

Returns:
o conversor.


Copyright © 2013–2014 Tecgraf/PUC-Rio. All rights reserved.