@DataElement has trouble with enums
Created by: jayjaybillings
This is probably low priority, but here's an example of using an @DataElement annotated class with an enumerated value for a member.
@DataElement(name="TaskStateData")
public class TaskStateDataSpec {
/**
* The state of the task
*/
@DataField.Default(value = "org.eclipse.ice.tasks.TaskState.INITIALIZED")
@DataField
private TaskState taskState;
}
Note that the full org.eclipse.ice.tasks.TaskState.INITIALIZED
declaration is required because the value
tag is a pass through and import org.eclipse.ice.tasks.TaskState;
is not included.