Package com.saperion.ngc.util.property
Class PropertyToStringConverter
java.lang.Object
com.saperion.ngc.util.property.PropertyToStringConverter
- All Implemented Interfaces:
Serializable
Class that is responsible for property type conversion and comparison.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(com.saperion.intf.SaPropertyValue first, com.saperion.intf.SaPropertyValue second) Compares tow SaPropertyValue instances.String[]
returnStringValues
(com.saperion.intf.SaPropertyValue value) Converts the providedSaPropertyValue
object values to String array.
-
Constructor Details
-
PropertyToStringConverter
public PropertyToStringConverter(com.saperion.intf.DDC ddc) Constructor.- Parameters:
ddc
- the DDC that contains the properties that will be converted
-
-
Method Details
-
returnStringValues
public String[] returnStringValues(com.saperion.intf.SaPropertyValue value) throws SystemException, AuthenticationException Converts the providedSaPropertyValue
object values to String array. Used for UI representation.- Parameters:
value
- the value to convert- Returns:
- Property values as String array.
- Throws:
AuthenticationException
- authentication exceptionSystemException
- system exception
-
compareTo
public int compareTo(com.saperion.intf.SaPropertyValue first, com.saperion.intf.SaPropertyValue second) Compares tow SaPropertyValue instances.- Parameters:
first
- first propertysecond
- 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
-