Package org.eclipse.steady.goals
Class GoalFactory
- java.lang.Object
-
- org.eclipse.steady.goals.GoalFactory
-
public class GoalFactory extends Object
GoalFactory class.
-
-
Constructor Summary
Constructors Constructor Description GoalFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractGoalcreate(GoalType _type)Creates aAbstractGoalfor the givenGoalType.static AbstractGoalcreate(GoalType _type, GoalClient _client)Creates aAbstractGoalfor the givenGoalTypeand (@link GoalClient}.
-
-
-
Method Detail
-
create
public static AbstractGoal create(@NotNull GoalType _type) throws IllegalStateException, IllegalArgumentException
Creates aAbstractGoalfor the givenGoalType.- Parameters:
_type- aGoalTypeobject.- Returns:
- a
AbstractGoalobject. - Throws:
IllegalStateException- if any.IllegalArgumentException- if any.
-
create
public static AbstractGoal create(@NotNull GoalType _type, @NotNull GoalClient _client) throws IllegalStateException, IllegalArgumentException
Creates aAbstractGoalfor the givenGoalTypeand (@link GoalClient}.- Parameters:
_type- aGoalTypeobject._client- aGoalClientobject.- Returns:
- a
AbstractGoalobject. - Throws:
IllegalStateException- if any.IllegalArgumentException- if any.
-
-