Class FeatureValue<V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    @Deprecated
    public class FeatureValue<V>
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    Deprecated.
    since ages - useFeatureValue instead.
    This class defines value objects for reading and writing classification attribute values instead of handling ProductFeature items directly.
    See Also:
    Serialized Form
    • Method Detail

      • getParent

        public Feature<V> getParent()
        Deprecated.
      • writeToDatabase

        protected PK writeToDatabase​(Language lang,
                                     int featurePosition,
                                     int valuePosition)
        Deprecated.
      • getDatabaseItem

        protected ProductFeature getDatabaseItem()
        Deprecated.
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • equalsValue

        public boolean equalsValue​(FeatureValue<? extends java.lang.Number> other,
                                   double maxDifference)
        Deprecated.
        Special compare method for Number features values only: this methods compares the actual number value and checks it agains a given allowed difference. If the feature values own different units which are convertible the values are converted automatically.
        Parameters:
        other - the other feature value to compare its value to
        maxDifference - the allowed difference
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • clone

        public FeatureValue clone()
                           throws java.lang.CloneNotSupportedException
        Deprecated.
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • getDescription

        public java.lang.String getDescription()
        Deprecated.
      • setDescription

        public void setDescription​(java.lang.String description)
        Deprecated.
      • getValue

        public V getValue()
        Deprecated.
      • getValueFormatted

        public java.lang.String getValueFormatted()
        Deprecated.
      • getValueFormatted

        public java.lang.String getValueFormatted​(SessionContext ctx)
        Deprecated.
      • createNumber

        protected java.lang.Number createNumber​(java.lang.Number original,
                                                double newValue)
        Deprecated.
      • setValue

        public void setValue​(V value)
        Deprecated.