ariba.util.test
Class TestValidationParameterList

java.lang.Object
  extended by ariba.util.test.TestValidationParameterList
All Implemented Interfaces:
Iterable

public class TestValidationParameterList
extends Object
implements Iterable


Field Summary
 String _currentKey
           
 Map<String,TestValidationParameter> _currentParameterMap
           
 
Method Summary
 boolean add(String name, String value)
           
 boolean add(String name, String key, String value)
           
 boolean add(String name, String key, TestValidationParameterList value)
           
 boolean add(String name, TestValidationParameterList value)
           
 boolean add(TestValidationParameter testValidationParameter)
           
 TestValidationParameter[] createFlatValidationParameterList()
           
static TestValidationParameterList createFromListOfParameters(List<TestValidationParameter> list)
           
static TestValidationParameterList createList()
           
 TestValidationParameter getParameter(int i)
           
 TestValidationParameter[] getValidationParameters()
           
 boolean highlightCurrentValue()
           
 Iterator<TestValidationParameter> iterator()
           
 List<String> listOfKeys()
           
 List<Map<String,TestValidationParameter>> listOfParameterMaps()
           
 String nameForCurrentKey()
           
 int size()
           
 String valueForCurrentMapAndKey()
           
 List<String> verifyUniqueKeys()
          Validates that all of the keys are unique including keys within nested lists.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_currentKey

public String _currentKey

_currentParameterMap

public Map<String,TestValidationParameter> _currentParameterMap
Method Detail

createList

public static TestValidationParameterList createList()

add

public boolean add(TestValidationParameter testValidationParameter)

add

public boolean add(String name,
                   String value)

add

public boolean add(String name,
                   String key,
                   String value)

add

public boolean add(String name,
                   TestValidationParameterList value)

add

public boolean add(String name,
                   String key,
                   TestValidationParameterList value)

getValidationParameters

public TestValidationParameter[] getValidationParameters()

createFlatValidationParameterList

public TestValidationParameter[] createFlatValidationParameterList()

iterator

public Iterator<TestValidationParameter> iterator()
Specified by:
iterator in interface Iterable

size

public int size()

getParameter

public TestValidationParameter getParameter(int i)

verifyUniqueKeys

public List<String> verifyUniqueKeys()
Validates that all of the keys are unique including keys within nested lists. Note that the nested lists keys can collide with keys in the parent or other lists, however the keys must all be unique for each entry in that list.

Returns:
a list of Strings which are the names of the non-unique keys (including parent path delimited by ::. The list will be empty if no problems were found.

createFromListOfParameters

public static TestValidationParameterList createFromListOfParameters(List<TestValidationParameter> list)

listOfKeys

public List<String> listOfKeys()

listOfParameterMaps

public List<Map<String,TestValidationParameter>> listOfParameterMaps()

nameForCurrentKey

public String nameForCurrentKey()

valueForCurrentMapAndKey

public String valueForCurrentMapAndKey()

highlightCurrentValue

public boolean highlightCurrentValue()


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.