Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * OfficeFloor -
  * Copyright (C) 2005-2011 Daniel Sagenschneider
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation, either version 3 of the License, or
  * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <>.
Provides means for the WorkSource to provide a type definition of a possible net.officefloor.frame.internal.structure.Flow instigated by the net.officefloor.frame.api.execute.Task.

Daniel Sagenschneider
public interface TaskFlowTypeBuilder<F extends Enum<F>> {

Specifies the java.lang.Enum for this TaskFlowTypeBuilder. This is required to be set if F is not or

key java.lang.Enum for this TaskFlowTypeBuilder.
	void setKey(F key);

Specifies the type of the argument passed by the net.officefloor.frame.api.execute.Task to the net.officefloor.frame.internal.structure.Flow.

Should there be no argument, do not call this method.

parameterType Type of argument passed to net.officefloor.frame.internal.structure.Flow.
	void setArgumentType(Class<?> argumentType);

Provides means to specify a display label for the net.officefloor.frame.internal.structure.Flow.

This need not be set as is only an aid to better identify the net.officefloor.frame.internal.structure.Flow. If not set the TaskTypeBuilder will use the following order to get a display label:

  1. java.lang.Enum key name
  2. index value

label Display label for the net.officefloor.frame.internal.structure.Flow.
	void setLabel(String label);
New to GrepCode? Check out our FAQ X