org.eclipse.net4j.util.properties
Class Property<RECEIVER>

java.lang.Object
  extended by org.eclipse.net4j.util.properties.Property<RECEIVER>

public abstract class Property<RECEIVER>
extends Object

Describes a property of a receiver object and extracts its value.

Since:
3.2

Constructor Summary
Property(String name)
           
Property(String name, String label, String description)
           
Property(String name, String label, String description, String category)
           
 
Method Summary
protected abstract  Object eval(RECEIVER receiver)
          Returns the receiver's value for this property, either a String or a boxed primitive type.
 String getCategory()
           
 String getDescription()
           
 String getLabel()
           
 String getName()
           
 Object getValue(RECEIVER receiver)
           
 boolean testValue(RECEIVER receiver, Object[] args, Object expectedValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property(String name,
                String label,
                String description,
                String category)

Property

public Property(String name,
                String label,
                String description)

Property

public Property(String name)
Method Detail

getName

public final String getName()

getLabel

public final String getLabel()

getDescription

public final String getDescription()

getCategory

public final String getCategory()

testValue

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

getValue

public final Object getValue(RECEIVER receiver)

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 Object.toString() in eval(Object).



Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.