JTR 5.0 API Documentation

jtr.config.enterprise
Class EnterpriseConfig

java.lang.Object
  extended by jtr.config.enterprise.EnterpriseConfig
All Implemented Interfaces:
java.io.Serializable

public class EnterpriseConfig
extends java.lang.Object
implements java.io.Serializable

An EnterpriseConfig provides the JTR framework with information such as the properties needed to correctly perform the lookup of enterprise resources. All these operations can be transparently performed by the ServiceLocator provided implementation on behalf of the IRunners provided by the test developer.
A single TestConfig is allowed to contain 0, 1 or more EnterpriseConfigs, and each of them is required to expose a unique name.
An EnterpriseConfig consists of a set of EnterpriseProperty.

Since:
1.0
Version:
5.0
Author:
Francesco Russo (frusso@dev.java.net)
See Also:
EnterpriseProperty, Serialized Form

Constructor Summary
EnterpriseConfig()
          Constructor.
 
Method Summary
 void addEnterpriseProperty(EnterpriseProperty property)
          Adds a new EnterpriseProperty to the current EnterpriseConfig
 TestConfig getParent()
          Returns the TestConfig instance this EnterpriseConfig is tied to.
 java.lang.String getUniqueName()
          Gets the enterprise configuration's unique name.
 void setParent(TestConfig parent)
          Ties the current EnterpriseConfig with the given TestConfig instance.
 void setUniqueName(java.lang.String uniqueName)
          Sets the enterprise configuration's unique name.
 java.util.Hashtable<java.lang.String,java.lang.String> toHashtable()
          Provides an Hashtable representation of the properties associated with this enterprise configuration.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnterpriseConfig

public EnterpriseConfig()
Constructor.

Method Detail

setUniqueName

public void setUniqueName(java.lang.String uniqueName)
Sets the enterprise configuration's unique name.

Parameters:
uniqueName - String

getUniqueName

public java.lang.String getUniqueName()
Gets the enterprise configuration's unique name.

Returns:
String

addEnterpriseProperty

public void addEnterpriseProperty(EnterpriseProperty property)
Adds a new EnterpriseProperty to the current EnterpriseConfig

Parameters:
property - EnterpriseProperty

setParent

public void setParent(TestConfig parent)
Ties the current EnterpriseConfig with the given TestConfig instance.

Parameters:
parent - TestConfig

getParent

public TestConfig getParent()
Returns the TestConfig instance this EnterpriseConfig is tied to.

Returns:
TestConfig

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

toHashtable

public java.util.Hashtable<java.lang.String,java.lang.String> toHashtable()
Provides an Hashtable representation of the properties associated with this enterprise configuration.

Returns:
Hashtable

The JTR Project is licensed under GPL version 2