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) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html