Class Property<RECEIVER>

java.lang.Object
org.eclipse.net4j.util.properties.Property<RECEIVER>
Direct Known Subclasses:
Property.WithArguments

public abstract class Property<RECEIVER> extends Object
Describes a property of a receiver object and extracts its value.
Since:
3.2
Author:
Eike Stepper
  • Constructor Details

  • Method Details

    • getName

      public final String getName()
    • getLabel

      public final String getLabel()
    • getDescription

      public final String getDescription()
    • getCategory

      public final String getCategory()
    • getValue

      public final Object getValue(RECEIVER receiver)
    • testValue

      public boolean testValue(RECEIVER receiver, Object[] args, Object expectedValue)
    • eval

      protected abstract Object eval(RECEIVER receiver)
      Returns the receiver's value for this property, either a String or a boxed primitive type. Return values of all other types are converted with toString() in eval(Object).
    • toString

      public String toString()
      Overrides:
      toString in class Object