Package com.saperion.ngc.util.property
Class PropertyToStringConverter
- java.lang.Object
- 
- com.saperion.ngc.util.property.PropertyToStringConverter
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class PropertyToStringConverter extends java.lang.Object implements java.io.SerializableClass that is responsible for property type conversion and comparison.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description PropertyToStringConverter(com.saperion.intf.DDC ddc)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(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 providedSaPropertyValueobject values to String array.
 
- 
- 
- 
Method Detail- 
returnStringValuespublic java.lang.String[] returnStringValues(com.saperion.intf.SaPropertyValue value) throws SystemException, AuthenticationExceptionConverts the providedSaPropertyValueobject 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
 
 - 
compareTopublic 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
 
 
- 
 
-