org.eclipse.net4j.util.properties
Class Property<RECEIVER>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.