org.vfny.geoserver.config.validation
Class TestSuiteConfig

java.lang.Object
  extended byorg.vfny.geoserver.config.validation.TestSuiteConfig

public class TestSuiteConfig
extends java.lang.Object

TestSuiteConfig purpose.

Used to represent a copy of the config information required for the UI.


Field Summary
static java.lang.String CONFIG_KEY
           
static java.lang.String CURRENTLY_SELECTED_KEY
           
 
Constructor Summary
TestSuiteConfig()
          TestSuiteConfig constructor.
TestSuiteConfig(TestSuiteConfig ts)
          TestSuiteConfig constructor.
TestSuiteConfig(TestSuiteDTO ts)
          TestSuiteConfig constructor.
 
Method Summary
 void addTest(TestConfig test)
           
 java.lang.Object clone()
          Implementation of clone.
 boolean equals(java.lang.Object obj)
          Implementation of equals.
 java.lang.String getDescription()
          Access description property.
 java.lang.String getName()
          Access name property.
 java.util.Map getTests()
          Access tests property.
 int hashCode()
           
 java.lang.Object removeTest(java.lang.String name)
           
 void setDescription(java.lang.String description)
          Set description to description.
 void setName(java.lang.String name)
          Set name to name.
 void setTests(java.util.Map tests)
          Set tests to tests.
 TestSuiteDTO toDTO(java.util.Map plugIns)
          toDTO purpose.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_KEY

public static final java.lang.String CONFIG_KEY
See Also:
Constant Field Values

CURRENTLY_SELECTED_KEY

public static final java.lang.String CURRENTLY_SELECTED_KEY
See Also:
Constant Field Values
Constructor Detail

TestSuiteConfig

public TestSuiteConfig()
TestSuiteConfig constructor.

Creates a blank HashMap for tests


TestSuiteConfig

public TestSuiteConfig(TestSuiteConfig ts)
TestSuiteConfig constructor.

Creates a copy of the TestSuiteConfig passed in.

Parameters:
ts - The Test Suite to copy

TestSuiteConfig

public TestSuiteConfig(TestSuiteDTO ts)
TestSuiteConfig constructor.

Creates a copy of the TestSuiteConfig passed in.

Parameters:
ts - The Test Suite to copy
Method Detail

clone

public java.lang.Object clone()
Implementation of clone.

Returns:
An instance of TestSuiteConfig.
See Also:
Object.clone()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object obj)
Implementation of equals.

Parameters:
obj - An object to compare for equality.
Returns:
true when the objects have the same data in the same order.
See Also:
Object.equals(java.lang.Object)

toDTO

public TestSuiteDTO toDTO(java.util.Map plugIns)
toDTO purpose.

Clones this config as a DTO.

Parameters:
plugIns - Map of PlugInDTO objects
Returns:
TestSuiteDTO
See Also:
Object.clone()

getDescription

public java.lang.String getDescription()
Access description property.

Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Set description to description.

Parameters:
description - The description to set.

getName

public java.lang.String getName()
Access name property.

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Set name to name.

Parameters:
name - The name to set.

getTests

public java.util.Map getTests()
Access tests property.

Returns:
Returns the tests.

removeTest

public java.lang.Object removeTest(java.lang.String name)

addTest

public void addTest(TestConfig test)

setTests

public void setTests(java.util.Map tests)
Set tests to tests.

Parameters:
tests - The tests to set.