Package org.gedcomx.test
Class Recipe
java.lang.Object
org.gedcomx.test.Recipe
A recipe for doing something specific with the model.
- Author:
- Mike Gardiner, Ryan Heaton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSnippet(Snippet snippet) Add a code snippet.applicableTo(Class<?> type) Add a type for which this recipe is applicable.The set of fully-qualified names of types to which this recipe is applicable.Code snippets for the recipe.getTitle()voidsetDescription(String description) voidwithDescription(String description)
-
Constructor Details
-
Recipe
public Recipe()
-
-
Method Details
-
getTitle
- Returns:
- Title of the recipe
-
setTitle
- Parameters:
title- - The recipe title
-
withDescription
- Parameters:
description- - A description to associate with the recipe- Returns:
- The associated recipe
-
getDescription
- Returns:
- Description of the recipe
-
setDescription
- Parameters:
description- - Description to assign to the recipe
-
addSnippet
Add a code snippet.- Parameters:
snippet- The code snippet to add.
-
getSnippets
Code snippets for the recipe.- Returns:
- The code snippets.
-
applicableTo
Add a type for which this recipe is applicable.- Parameters:
type- The type for which this recipe is applicable.- Returns:
- this recipe.
-
getApplicableTypes
The set of fully-qualified names of types to which this recipe is applicable.- Returns:
- The set of fully-qualified names of types to which this recipe is applicable.
-