public abstract class Property<RECEIVER> extends Object
Constructor and Description |
---|
Property(String name) |
Property(String name,
String label,
String description) |
Property(String name,
String label,
String description,
String category) |
Modifier and Type | Method and Description |
---|---|
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) |
public Property(String name)
public final String getName()
public final String getLabel()
public final String getDescription()
public final String getCategory()
protected abstract Object eval(RECEIVER receiver)
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.