|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rational.test.ft.domain.DescribedObjectValue
public class DescribedObjectValue
The value class used to persist a DescribedObjectReference/DescribedObject.
Constructor Summary | |
---|---|
DescribedObjectValue()
|
Method Summary | |
---|---|
int |
compare(java.lang.Object left, java.lang.Object right, com.rational.test.ft.value.managers.ICompareValueClass nested)
Compares objects supported by this value class manager and returns a result in the range 0 to 100. |
java.lang.Object |
createValue(java.lang.Object sourceToCopy)
Copies an object of the managed class. |
java.lang.String |
getCanonicalName()
Returns a canonical name for the value class that uniquely identifies the streamed format of the data associated with this class. |
java.lang.String |
getClassName()
Returns the class name of the object that this manager represents. |
java.lang.Object |
persistIn(com.rational.test.ft.value.managers.IPersistIn persist, com.rational.test.ft.value.managers.IAuxiliaryDataManager auxData)
Pulls data from a supplied input object. |
java.lang.Object |
persistIn(com.rational.test.ft.value.managers.IPersistInNamed persist, com.rational.test.ft.value.managers.IAuxiliaryDataManager auxData)
Pulls data from a supplied input object. |
void |
persistOut(java.lang.Object theObject, com.rational.test.ft.value.managers.IPersistOut persist, com.rational.test.ft.value.managers.IAuxiliaryDataManager auxData)
Pushes the significant data associated with an object into the specified output object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DescribedObjectValue()
Method Detail |
---|
public int compare(java.lang.Object left, java.lang.Object right, com.rational.test.ft.value.managers.ICompareValueClass nested)
com.rational.test.ft.value.managers.IManageValueClass
((left.equals(right)) ? 100 : 0 )
).
compare
in interface com.rational.test.ft.value.managers.IManageValueClass
left
- The first object in the comparison.right
- The second object in the comparison.nested
- An object that can perform nested complex
compare actions.
public java.lang.Object createValue(java.lang.Object sourceToCopy)
com.rational.test.ft.value.managers.IManageValueClass
null
if a copy operation is not be performed. The primary use of this method is to shear property methods returning extended instances of the expected class. For instance, if java.awt.Point
is the expected return type, however mycompany.MyPoint
(which extends the AWT
Point class) is actually returned, then the returned object must be sheared before it can be used as a Point
property. To get the MyPoint
object use, an IManageValueClass
must be created for the new class.
createValue
in interface com.rational.test.ft.value.managers.IManageValueClass
sourceToCopy
- An instance of the associated value class.
public java.lang.String getCanonicalName()
com.rational.test.ft.value.managers.IManageValueClass
IManageValueClass
may vary from platform to platform. This method
returns a name that does not vary between platforms.
java.util.hashtable
. On another platform this data may be read into a C++ STL grid type object. The data can be read because a canonical name for the value class has been associated with the data. Note that the name in this example uses the rational
company name so that this value class name for a hashtable does not conflict with another company.
IManageValueClass
mapped object and therefore does not need to be
explicitly added by an implementation of persistOut
.
getCanonicalName
in interface com.rational.test.ft.value.managers.IManageValueClass
public java.lang.String getClassName()
com.rational.test.ft.value.managers.IManageValueClass
IManageValueClass
can only support one value class. This name is used to map Sthe value class to the appropriate value class manager.
getClassName
in interface com.rational.test.ft.value.managers.IManageValueClass
public java.lang.Object persistIn(com.rational.test.ft.value.managers.IPersistIn persist, com.rational.test.ft.value.managers.IAuxiliaryDataManager auxData)
com.rational.test.ft.value.managers.IManageValueClass
persistOut
.
IAuxiliaryDataManager
is supplied that must be used to locate auxiliary data files.
Auxiliary data files has to follow the supplied naming
convention.
persistIn
in interface com.rational.test.ft.value.managers.IManageValueClass
persist
- The input stream that data is pulled
out of.auxData
- The auxiliary data interface used for naming associated data files.
IManageValueClass.persistOut(Object,IPersistOut,IAuxiliaryDataManager)
public java.lang.Object persistIn(com.rational.test.ft.value.managers.IPersistInNamed persist, com.rational.test.ft.value.managers.IAuxiliaryDataManager auxData)
com.rational.test.ft.value.managers.IManageValueClass
persistOut
.
IAuxiliaryDataManager
is uspplied that must be used to locate auxiliary data files.
Auxiliary data files has to follow the supplied naming
convention.
persistIn
in interface com.rational.test.ft.value.managers.IManageValueClass
persist
- The input object that the named data is pulled
out of.auxData
- The auxiliary data interface used for naming associated data files.
IManageValueClass.persistOut(Object,IPersistOut,IAuxiliaryDataManager)
public void persistOut(java.lang.Object theObject, com.rational.test.ft.value.managers.IPersistOut persist, com.rational.test.ft.value.managers.IAuxiliaryDataManager auxData)
com.rational.test.ft.value.managers.IManageValueClass
IManageValueClass
in the value class map to support the data class.
IAuxiliaryDataManager
is supplied that must be used to name auxiliary data files.
persistOut
in interface com.rational.test.ft.value.managers.IManageValueClass
theObject
- The object that is to be inserted
into the supplied output stream.persist
- The output stream to insert data into.auxData
- The auxiliary data interface used for naming associated data files.IManageValueClass.persistIn(IPersistIn,IAuxiliaryDataManager)
,
IManageValueClass.persistIn(IPersistInNamed,IAuxiliaryDataManager)
,
IPersistOut
,
IAuxiliaryDataManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |