com.rational.test.ft.value

Class UnsupportedObject

  • java.lang.Object
    • com.rational.test.ft.value.UnsupportedObject


  • public class UnsupportedObject
    extends java.lang.Object
    Supports compatibility between different versions of the product. As classes are persisted out and back in there is the possibility of variations in the set of supported value classes. These variations are managed by creating instances of this class when an appropriate value manager is not available. The value manager for this class understands how to persist back to the appropriate value and attempts to compare the values even is to the original class.
    Since:
    RFT1.1
    • Constructor Summary

      Constructors 
      Constructor and Description
      UnsupportedObject(java.lang.String canonicalName) 
      UnsupportedObject(java.lang.String canonicalName, com.rational.test.ft.sys.HashtableEx propertySet) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getCanonicalName()
      Returns the canonical name for the original class.
      java.lang.Object getProperty(java.lang.String name)
      Returns the value associated with the specified property.
      java.lang.String[] getPropertyNames()
      Returns the known property names for the unsupported object.
      void setCanonicalName(java.lang.String canonicalName)
      Defines the canonical name for the original class.
      void setProperty(java.lang.String name, java.lang.Object value)
      Returns the known property names for the unsupported object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnsupportedObject

        public UnsupportedObject(java.lang.String canonicalName)
      • UnsupportedObject

        public UnsupportedObject(java.lang.String canonicalName,
                                 com.rational.test.ft.sys.HashtableEx propertySet)
    • Method Detail

      • getCanonicalName

        public java.lang.String getCanonicalName()
        Returns the canonical name for the original class. This name is needed to properly reconstitute this transient instance of the original object.
        Returns:
        The canonical name for the original class
        Since:
        RFT1.1
      • setCanonicalName

        public void setCanonicalName(java.lang.String canonicalName)
        Defines the canonical name for the original class.
        Parameters:
        canonicalName - the canonical name for the original class
        Since:
        RFT1.1
      • getProperty

        public java.lang.Object getProperty(java.lang.String name)
        Returns the value associated with the specified property. Typically the property is a tag from an XML file and the value is the value extracted to go with it.
        Parameters:
        name - the property name to fetch the value for
        Returns:
        The value associated with the specified property name.
        Since:
        RFT1.1
      • getPropertyNames

        public java.lang.String[] getPropertyNames()
        Returns the known property names for the unsupported object. Typically the names are the tags for an unsupported object from an XML file.
        Returns:
        The property names associated with the unsupported object.
        Since:
        RFT1.1
      • setProperty

        public void setProperty(java.lang.String name,
                                java.lang.Object value)
        Returns the known property names for the unsupported object. Typically, the names are the tags for an unsupported object from an XML file.
        Parameters:
        name - the property name being defined
        value - the property value being associated with name
        Since:
        RFT1.1