Class PropertyToStringConverter

  • All Implemented Interfaces:
    java.io.Serializable

    public final class PropertyToStringConverter
    extends java.lang.Object
    implements java.io.Serializable
    Class that is responsible for property type conversion and comparison.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyToStringConverter​(com.saperion.intf.DDC ddc)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(com.saperion.intf.SaPropertyValue first, com.saperion.intf.SaPropertyValue second)
      Compares tow SaPropertyValue instances.
      java.lang.String[] returnStringValues​(com.saperion.intf.SaPropertyValue value)
      Converts the provided SaPropertyValue object values to String array.
      • Methods inherited from class java.lang.Object

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

      • PropertyToStringConverter

        public PropertyToStringConverter​(com.saperion.intf.DDC ddc)
        Constructor.
        Parameters:
        ddc - the DDC that contains the properties that will be converted
    • Method Detail

      • returnStringValues

        public java.lang.String[] returnStringValues​(com.saperion.intf.SaPropertyValue value)
                                              throws SystemException,
                                                     AuthenticationException
        Converts the provided SaPropertyValue object values to String array. Used for UI representation.
        Parameters:
        value - the value to convert
        Returns:
        Property values as String array.
        Throws:
        AuthenticationException - authentication exception
        SystemException - system exception
      • compareTo

        public int compareTo​(com.saperion.intf.SaPropertyValue first,
                             com.saperion.intf.SaPropertyValue second)
        Compares tow SaPropertyValue instances.
        Parameters:
        first - first property
        second - second property
        Returns:
        -1 if first property's value < second property's value, 0 if first property's value = second property's value, 1 if first property's value > second property's value