Skip navigation links
A B C D E F G H I J L M N O P R S T U V Z 

A

addIngredient() - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
Allows a new Ingredient to be added to the list.
addIngredient() - Method in class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter
Allows the user to add a new Ingredient.
addStep() - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
Allows a new Step to be added to the end of the instructions.
addStep() - Method in class com.semartinez.projects.choppit.view.StepRecyclerAdapter
Allows the user to add a new Step
AssemblyRecipe - Class in com.semartinez.projects.choppit.model.entity
AssemblyRecipe is a POJO-ish object used to collect data as a Recipe is being assembled
AssemblyRecipe() - Constructor for class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 

B

bind(Ingredient) - Method in class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter.EditIngredientViewHolder
This method attaches a specific Ingredient to a specific entry in the active Fragment and attaches a reference to the EditingFragment to handle user input.
bind(Ingredient) - Method in class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter.RecipeIngredientViewHolder
This method attaches a single Ingredient to a specific binding and attaches the active Fragment to handle user input.
bind(Step) - Method in class com.semartinez.projects.choppit.view.StepRecyclerAdapter.EditStepViewHolder
This method attaches a specific Step to a specific entry in the active Fragment and attaches a reference to the EditingFragment to handle user input.
bind(Step) - Method in class com.semartinez.projects.choppit.view.StepRecyclerAdapter.RecipeStepViewHolder
This method attaches a single @link Step} to a specific binding and attaches the active Fragment to handle user input.
buildIngredients() - Method in class com.semartinez.projects.choppit.service.JsoupMachine
Creates an Ingredient by separating the ingredient String into a quantity, unit, and name.
buildSteps() - Method in class com.semartinez.projects.choppit.service.JsoupMachine
Creates a Step out of an instruction String and its position (starting at 1) in the list.

C

check() - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
ChoppitApplication - Class in com.semartinez.projects.choppit
The starting point for the app.
ChoppitApplication() - Constructor for class com.semartinez.projects.choppit.ChoppitApplication
 
ChoppitDatabase - Class in com.semartinez.projects.choppit.service
This is my Room Database.
ChoppitDatabase() - Constructor for class com.semartinez.projects.choppit.service.ChoppitDatabase
 
com.semartinez.projects.choppit - package com.semartinez.projects.choppit
 
com.semartinez.projects.choppit.controller - package com.semartinez.projects.choppit.controller
 
com.semartinez.projects.choppit.controller.exception - package com.semartinez.projects.choppit.controller.exception
 
com.semartinez.projects.choppit.controller.ui.cookbook - package com.semartinez.projects.choppit.controller.ui.cookbook
 
com.semartinez.projects.choppit.controller.ui.dialog - package com.semartinez.projects.choppit.controller.ui.dialog
 
com.semartinez.projects.choppit.controller.ui.editing - package com.semartinez.projects.choppit.controller.ui.editing
 
com.semartinez.projects.choppit.controller.ui.home - package com.semartinez.projects.choppit.controller.ui.home
 
com.semartinez.projects.choppit.model.dao - package com.semartinez.projects.choppit.model.dao
 
com.semartinez.projects.choppit.model.entity - package com.semartinez.projects.choppit.model.entity
 
com.semartinez.projects.choppit.model.pojo - package com.semartinez.projects.choppit.model.pojo
 
com.semartinez.projects.choppit.model.repository - package com.semartinez.projects.choppit.model.repository
 
com.semartinez.projects.choppit.service - package com.semartinez.projects.choppit.service
 
com.semartinez.projects.choppit.view - package com.semartinez.projects.choppit.view
 
com.semartinez.projects.choppit.viewmodel - package com.semartinez.projects.choppit.viewmodel
 
connect(String) - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
This is the first step is processing a website.
ConnectionFailureException - Exception in com.semartinez.projects.choppit.controller.exception
ConnectionFailureException handles errors thrown by RecipeRepository.connect(String), which are generated by Jsoup.connect(String)
ConnectionFailureException(String) - Constructor for exception com.semartinez.projects.choppit.controller.exception.ConnectionFailureException
 
Constants - Class in com.semartinez.projects.choppit.service
 
Constants() - Constructor for class com.semartinez.projects.choppit.service.Constants
 
CookbookFragment - Class in com.semartinez.projects.choppit.controller.ui.cookbook
Cookbook Fragment displays the list of Recipes stored in the local database
CookbookFragment() - Constructor for class com.semartinez.projects.choppit.controller.ui.cookbook.CookbookFragment
 
CookbookRecyclerAdapter - Class in com.semartinez.projects.choppit.view
Provides bindings for individual recipes to be displayed in the CookbookFragment
CookbookRecyclerAdapter(Context, List<Recipe>, CookbookFragment) - Constructor for class com.semartinez.projects.choppit.view.CookbookRecyclerAdapter
Handles Data Binding input retrieved from the database and displays the list of Recipes

D

delete(Ingredient...) - Method in interface com.semartinez.projects.choppit.model.dao.IngredientDao
 
delete(Recipe...) - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
delete(Step) - Method in interface com.semartinez.projects.choppit.model.dao.StepDao
 
delete(Recipe) - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
 
DeleteDialog - Class in com.semartinez.projects.choppit.controller.ui.dialog
DeleteDialog is a popup in the CookbookFragment that gives the option to delete a single Recipe.
DeleteDialog(Recipe, MainViewModel) - Constructor for class com.semartinez.projects.choppit.controller.ui.dialog.DeleteDialog
 
deleteIngredient(int) - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
Deletes an Ingredient from the list.
deleteIngredient(int) - Method in class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter
Allows the user to delete a single Ingredient.
deleteRecipe(Recipe) - Method in class com.semartinez.projects.choppit.controller.ui.cookbook.CookbookFragment
Opens a Dialog with an option to delete the recipe
deleteRecipe(Recipe) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
deleteStep(int) - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
Deletes a Step from the list.
deleteStep(int) - Method in class com.semartinez.projects.choppit.view.StepRecyclerAdapter
Allows the user to delete a single Step.

E

EDIT - Static variable in class com.semartinez.projects.choppit.service.Constants
 
EditingFragment - Class in com.semartinez.projects.choppit.controller.ui.editing
EditingFragment is visually similar to the RecipeFragment, but allows the user to edit the fields.
EditingFragment() - Constructor for class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
 
EditIngredientViewHolder(ItemEditIngredientBinding) - Constructor for class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter.EditIngredientViewHolder
The ViewHolder constructor attaches a View to each binding.
EditStepViewHolder(ItemEditStepBinding) - Constructor for class com.semartinez.projects.choppit.view.StepRecyclerAdapter.EditStepViewHolder
The ViewHolder constructor attaches a View to each binding.
equals(Object) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 

F

favList() - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
FAVORITE - Static variable in class com.semartinez.projects.choppit.service.Constants
 
finish(AssemblyRecipe) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
Posts a completed Recipe and the final status value.

G

generateStrings() - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
This method sends the retrieved document to the JsoupMachine to extract String elements.
generateStrings() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
This method is called if MainViewModel.makeItGo(String) completes successfully.
getAll() - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
 
getAllRecipes() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getClass(String, String) - Method in class com.semartinez.projects.choppit.service.JsoupMachine
This method searches the body of the HTML Document for the text of the given String, and returns the "class" HTML attribute of the first element containing that text.
getClassContents(String) - Method in class com.semartinez.projects.choppit.service.JsoupMachine
this method takes an HTML "class" attribute and compiles as Elements the contents of each matching HTML element.
getEmptyRecipe() - Static method in class com.semartinez.projects.choppit.model.entity.Recipe
 
getId() - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
getId() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
getIngredientDao() - Method in class com.semartinez.projects.choppit.service.ChoppitDatabase
 
getIngredients() - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
getIngredients() - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
getIngredients() - Method in class com.semartinez.projects.choppit.model.pojo.RecipePojo
 
getIngredients() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getInstance() - Static method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
 
getInstance() - Static method in class com.semartinez.projects.choppit.service.ChoppitDatabase
 
getInstance() - Static method in class com.semartinez.projects.choppit.service.JsoupMachine
 
getInstructions() - Method in class com.semartinez.projects.choppit.model.entity.Step
 
getItemCount() - Method in class com.semartinez.projects.choppit.view.CookbookRecyclerAdapter
 
getItemCount() - Method in class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter
 
getItemCount() - Method in class com.semartinez.projects.choppit.view.SelectionRecyclerAdapter
 
getItemCount() - Method in class com.semartinez.projects.choppit.view.StepRecyclerAdapter
 
getName() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
getOne(long) - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
getQuantity() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
getRecipe() - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
 
getRecipe() - Method in class com.semartinez.projects.choppit.model.pojo.RecipePojo
 
getRecipe() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getRecipeDao() - Method in class com.semartinez.projects.choppit.service.ChoppitDatabase
 
getRecipeId() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
getRecipeId() - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
getRecipeId() - Method in class com.semartinez.projects.choppit.model.entity.Step
 
getRecipeOrder() - Method in class com.semartinez.projects.choppit.model.entity.Step
 
getReduction() - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
getSharedUrl() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getStatus() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getStepDao() - Method in class com.semartinez.projects.choppit.service.ChoppitDatabase
 
getStepId() - Method in class com.semartinez.projects.choppit.model.entity.Step
 
getSteps() - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
getSteps() - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
getSteps() - Method in class com.semartinez.projects.choppit.model.pojo.RecipePojo
 
getSteps() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getStrings() - Method in class com.semartinez.projects.choppit.view.SelectionRecyclerAdapter
 
getStringsFromDocument() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getThrowable() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
getTitle() - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
getTitle() - Method in class com.semartinez.projects.choppit.model.entity.Recipe
This getter is marked Bindable for Data Binding to the EditingFragment.
getUnit() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
getUnitAlt() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
getUnitText() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
getUrl() - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
getUrl() - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 

H

hashCode() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
head(Node, int) - Method in class com.semartinez.projects.choppit.service.Strainer
 
HomeFragment - Class in com.semartinez.projects.choppit.controller.ui.home
This fragment is the first to load.
HomeFragment() - Constructor for class com.semartinez.projects.choppit.controller.ui.home.HomeFragment
 

I

InfoDialog - Class in com.semartinez.projects.choppit.controller.ui.dialog
InfoDialog displays some help text depending on the active fragment when it's opened.
InfoDialog(int, String) - Constructor for class com.semartinez.projects.choppit.controller.ui.dialog.InfoDialog
 
Ingredient - Class in com.semartinez.projects.choppit.model.entity
Ingredients are child entities of Recipes.
Ingredient() - Constructor for class com.semartinez.projects.choppit.model.entity.Ingredient
 
Ingredient(long, String, Ingredient.Unit, String, String) - Constructor for class com.semartinez.projects.choppit.model.entity.Ingredient
 
Ingredient.Unit - Enum in com.semartinez.projects.choppit.model.entity
This Enum holds values for units of measurement with an "OTHER" option to handle additional values.
INGREDIENT_REGEX - Static variable in class com.semartinez.projects.choppit.service.Constants
 
IngredientDao - Interface in com.semartinez.projects.choppit.model.dao
 
IngredientRecyclerAdapter - Class in com.semartinez.projects.choppit.view
Provides bindings for a list of Ingredients to be displayed in either the EditingFragment or RecipeFragment.
IngredientRecyclerAdapter(Context, Recipe, Fragment) - Constructor for class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter
Handles Data Binding for a list of Ingredients passed by the active Fragment while displaying a Recipe.
IngredientRecyclerAdapter.EditIngredientViewHolder - Class in com.semartinez.projects.choppit.view
The ViewHolder class attaches Ingredient fields to UI components.
IngredientRecyclerAdapter.RecipeIngredientViewHolder - Class in com.semartinez.projects.choppit.view
The ViewHolder class attaches Ingredient fields to UI components.
insert(Ingredient) - Method in interface com.semartinez.projects.choppit.model.dao.IngredientDao
 
insert(Collection<Ingredient>) - Method in interface com.semartinez.projects.choppit.model.dao.IngredientDao
 
insert(Recipe) - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
insert(Collection<Recipe>) - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
insert(Step) - Method in interface com.semartinez.projects.choppit.model.dao.StepDao
 
insert(Collection<Step>) - Method in interface com.semartinez.projects.choppit.model.dao.StepDao
 
isFavorite() - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
isFavorite() - Method in class com.semartinez.projects.choppit.model.entity.Recipe
This getter is marked Bindable for Data Binding to the EditingFragment.

J

JsoupMachine - Class in com.semartinez.projects.choppit.service
JsoupMachine does all the heavy lifting in the backend.

L

list() - Method in interface com.semartinez.projects.choppit.model.dao.IngredientDao
 
list(long) - Method in interface com.semartinez.projects.choppit.model.dao.StepDao
 
loadDetails(long) - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
 
LoadingFragment - Class in com.semartinez.projects.choppit.controller.ui.editing
LoadingFragment takes over the display while the backend works.
LoadingFragment() - Constructor for class com.semartinez.projects.choppit.controller.ui.editing.LoadingFragment
 
loadRecipe(Long) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
On success, posts a retrieved Recipe.
loadRecipeData(long) - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 

M

MainActivity - Class in com.semartinez.projects.choppit.controller
This activity houses the UI Fragments It also establishes MainActivity.onOptionsItemSelected(MenuItem) behavior.
MainActivity() - Constructor for class com.semartinez.projects.choppit.controller.MainActivity
 
MainViewModel - Class in com.semartinez.projects.choppit.viewmodel
Implementation of AndroidViewModel.
MainViewModel(Application) - Constructor for class com.semartinez.projects.choppit.viewmodel.MainViewModel
Initializes the MainViewModel and the variables it contains.
MainViewModel.State - Enum in com.semartinez.projects.choppit.viewmodel
 
makeItGo(String) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
This method is called by the LoadingFragment on navigation from the HomeFragment to begin processing.
markAsIngredient(String) - Method in class com.semartinez.projects.choppit.controller.ui.editing.SelectionFragment
Populates the Ingredient field with text from SelectDialog
markAsStep(String) - Method in class com.semartinez.projects.choppit.controller.ui.editing.SelectionFragment
Populates the Step field with text from SelectDialog
markString(String) - Method in class com.semartinez.projects.choppit.controller.ui.editing.SelectionFragment
Generates a DialogFragment that handles designating a specific string as Step or Ingredient text.

N

NAV_COOK - Static variable in class com.semartinez.projects.choppit.service.Constants
 
NAV_EDIT - Static variable in class com.semartinez.projects.choppit.service.Constants
 
NAV_HOME - Static variable in class com.semartinez.projects.choppit.service.Constants
 
NAV_LOAD - Static variable in class com.semartinez.projects.choppit.service.Constants
 
NAV_REC - Static variable in class com.semartinez.projects.choppit.service.Constants
 
NAV_SEL - Static variable in class com.semartinez.projects.choppit.service.Constants
 
navAfterSave(View) - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
This navigation method takes the user to the Cookbook after saving a recipe.

O

onBackStackChanged() - Method in class com.semartinez.projects.choppit.controller.MainActivity
 
onBindViewHolder(CookbookRecyclerAdapter.CookbookViewHolder, int) - Method in class com.semartinez.projects.choppit.view.CookbookRecyclerAdapter
Attaches each Recipe to a ViewHolder.
onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter
Attaches each Ingredient to a ViewHolder.
onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.semartinez.projects.choppit.view.SelectionRecyclerAdapter
Attaches each String to a ViewHolder.
onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.semartinez.projects.choppit.view.StepRecyclerAdapter
Attaches each Step to a ViewHolder.
onClick(DialogInterface, int) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.SaveDialog
This override of onClick sets button functions to either save a new recipe, overwrite the existing recipe, or back out of the dialog.
onClick(DialogInterface, int) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.SelectDialog
 
onCreate() - Method in class com.semartinez.projects.choppit.ChoppitApplication
 
onCreate(Bundle) - Method in class com.semartinez.projects.choppit.controller.MainActivity
This override of onCreate receives a shared URL and prepares the UI, Navigation components and ViewModel.
onCreate(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
 
onCreate(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.LoadingFragment
This override of onCreate retrieves Navigation arguments which include the url submitted by the user and a boolean indicating whether the page navigating here was HomeFragment or not (which determines what processing methods are called next).
onCreate(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.SelectionFragment
 
onCreate(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.home.HomeFragment
 
onCreateDialog(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.DeleteDialog
 
onCreateDialog(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.InfoDialog
 
onCreateDialog(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.SaveDialog
 
onCreateDialog(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.SelectDialog
 
onCreateOptionsMenu(Menu) - Method in class com.semartinez.projects.choppit.controller.MainActivity
 
onCreateOptionsMenu(Menu, MenuInflater) - Method in class com.semartinez.projects.choppit.controller.ui.cookbook.RecipeFragment
 
onCreateOptionsMenu(Menu, MenuInflater) - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.cookbook.CookbookFragment
This override of onCreateView creates bindings for the fragment UI.
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.cookbook.RecipeFragment
This override of onCreateView creates bindings for the fragment UI.
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.DeleteDialog
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.InfoDialog
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.SaveDialog
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.SelectDialog
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.EditingFragment
This override of onCreateView creates bindings for the fragment UI.
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.LoadingFragment
This override of onCreateView inflates the Fragment using findViewById(), retrieves a reference to the MainViewModel and starts the loading animation.
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.SelectionFragment
This override of onCreateView inflates the Fragment using View Binding, retrieves a reference to the MainViewModel to clear its status field (which the LoadingFragment reads) and display the text elements scraped from the HTML.
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.home.HomeFragment
This override of onCreateView clears all data from the MainViewModel and inflates the Fragment using findViewById().
onCreateViewHolder(ViewGroup, int) - Method in class com.semartinez.projects.choppit.view.CookbookRecyclerAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.semartinez.projects.choppit.view.SelectionRecyclerAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.semartinez.projects.choppit.view.StepRecyclerAdapter
 
onOptionsItemSelected(MenuItem) - Method in class com.semartinez.projects.choppit.controller.MainActivity
 
onSaveInstanceState(Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.home.HomeFragment
 
onSupportNavigateUp() - Method in class com.semartinez.projects.choppit.controller.MainActivity
 
onViewCreated(View, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.dialog.InfoDialog
 
onViewCreated(View, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.LoadingFragment
This override of onViewCreated clears data from the MainViewModel and calls the first method in the data processing flow if Loading was navigated to from the Home Fragment.
onViewCreated(View, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.editing.SelectionFragment
This override of onViewCreated inserts preset text values to simplify development and debugging.
onViewCreated(View, Bundle) - Method in class com.semartinez.projects.choppit.controller.ui.home.HomeFragment
This override of onViewCreated attaches onClickListeners to the two UI buttons and prepares to navigate based on the user's actions.

P

populateData() - Static method in class com.semartinez.projects.choppit.model.entity.Recipe
This array populates the database with dummy Recipes.
prepare(Document) - Method in class com.semartinez.projects.choppit.service.JsoupMachine
This is the first method called in the processing chain.
process(String, String) - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
This method passes the user inputs to the JsoupMachine for processing.
process(String, String) - Method in class com.semartinez.projects.choppit.service.JsoupMachine
This method sets up two threads; one extracts ingredient text and the other extracts instruction text.
processData(String, String) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
This method is called by the SelectionFragment when navigating back to the LoadingFragment.

R

Recipe - Class in com.semartinez.projects.choppit.model.entity
Recipe is the top-level entity in the database.
Recipe() - Constructor for class com.semartinez.projects.choppit.model.entity.Recipe
 
Recipe(RecipePojo) - Constructor for class com.semartinez.projects.choppit.model.entity.Recipe
This constructor recreates a Recipe entity from the RecipePojo data returned by a database query.
Recipe(AssemblyRecipe) - Constructor for class com.semartinez.projects.choppit.model.entity.Recipe
This constructor creates a Recipe Entity from the data gathered and processed by Jsoup
RecipeDao - Interface in com.semartinez.projects.choppit.model.dao
 
RecipeFragment - Class in com.semartinez.projects.choppit.controller.ui.cookbook
RecipeFragment displays a single Recipe.
RecipeFragment() - Constructor for class com.semartinez.projects.choppit.controller.ui.cookbook.RecipeFragment
 
RecipeIngredientViewHolder(ItemRecipeIngredientBinding) - Constructor for class com.semartinez.projects.choppit.view.IngredientRecyclerAdapter.RecipeIngredientViewHolder
The ViewHolder constructor attaches a View to each binding.
RecipePojo - Class in com.semartinez.projects.choppit.model.pojo
RecipePojo exists to facilitate database queries.
RecipePojo() - Constructor for class com.semartinez.projects.choppit.model.pojo.RecipePojo
 
RecipeRepository - Class in com.semartinez.projects.choppit.model.repository
The repository handles requests from the MainViewModel and interacts with the JsoupMachine.
RecipeStepViewHolder(ItemRecipeStepBinding) - Constructor for class com.semartinez.projects.choppit.view.StepRecyclerAdapter.RecipeStepViewHolder
The ViewHolder constructor attaches a View to each binding.
resetData() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
Returns all MutableLiveData values (except Status) to default to clear data from prior activities.
resetStatus() - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
Returns Status to default to clear progress from prior activities.

S

SaveDialog - Class in com.semartinez.projects.choppit.controller.ui.dialog
SaveDialog gives the user the option to save changes to a Recipe
SaveDialog(Recipe, View, MainViewModel) - Constructor for class com.semartinez.projects.choppit.controller.ui.dialog.SaveDialog
 
saveNew(Recipe) - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
This save method adds a new Recipe to the database and applies its generated id to the recipeId field in all of its Steps and Ingredients.
saveRecipe(Recipe) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
select(long) - Method in interface com.semartinez.projects.choppit.model.dao.IngredientDao
 
select() - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
select(String) - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
select(long) - Method in interface com.semartinez.projects.choppit.model.dao.StepDao
 
SelectDialog - Class in com.semartinez.projects.choppit.controller.ui.dialog
SelectDialog takes input from the SelectionFragment and marks it as text from an Ingredient or Step for further processing with Jsoup.
SelectDialog(String, SelectionFragment) - Constructor for class com.semartinez.projects.choppit.controller.ui.dialog.SelectDialog
 
SelectionFragment - Class in com.semartinez.projects.choppit.controller.ui.editing
SelectionFragment displays the list of text elements scraped by Jsoup and prompts the user to select a step and an ingredient from the list so that matching elements can be retrieved.
SelectionFragment() - Constructor for class com.semartinez.projects.choppit.controller.ui.editing.SelectionFragment
 
SelectionRecyclerAdapter - Class in com.semartinez.projects.choppit.view
Provides bindings for a list of Strings extracted from an HTML document to be displayed in the SelectionFragment.
SelectionRecyclerAdapter(Context, List<String>, SelectionFragment) - Constructor for class com.semartinez.projects.choppit.view.SelectionRecyclerAdapter
 
setContext(Application) - Static method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
 
setContext(Application) - Static method in class com.semartinez.projects.choppit.service.ChoppitDatabase
 
setDocument(Document) - Method in class com.semartinez.projects.choppit.service.JsoupMachine
 
setFavorite(boolean) - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
setFavorite(boolean) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
setId(long) - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
setId(long) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
setIngredient(Ingredient) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
setIngredients(List<Ingredient>) - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
setIngredients(List<Ingredient>) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
setIngredients(List<Ingredient>) - Method in class com.semartinez.projects.choppit.model.pojo.RecipePojo
 
setInstructions(String) - Method in class com.semartinez.projects.choppit.model.entity.Step
 
setName(String) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
setQuantity(String) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
setRecipe(Recipe) - Method in class com.semartinez.projects.choppit.model.pojo.RecipePojo
 
setRecipeId(long) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
setRecipeId(long) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
setRecipeId(long) - Method in class com.semartinez.projects.choppit.model.entity.Step
 
setRecipeOrder(int) - Method in class com.semartinez.projects.choppit.model.entity.Step
 
setReduction(List<String>) - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
setSharedUrl(String) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 
setStep(Step) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
setStepId(long) - Method in class com.semartinez.projects.choppit.model.entity.Step
 
setSteps(List<Step>) - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
setSteps(List<Step>) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
setSteps(List<Step>) - Method in class com.semartinez.projects.choppit.model.pojo.RecipePojo
 
setTitle(String) - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
setTitle(String) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
setUnit(Ingredient.Unit) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
setUnitAlt(String) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
setUnitText(String) - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
setUrl(String) - Method in class com.semartinez.projects.choppit.model.entity.AssemblyRecipe
 
setUrl(String) - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
showToast(String) - Method in class com.semartinez.projects.choppit.controller.MainActivity
Useful for displaying error messages.
Step - Class in com.semartinez.projects.choppit.model.entity
Steps are child entities of Recipes.
Step() - Constructor for class com.semartinez.projects.choppit.model.entity.Step
 
Step(long, String, int) - Constructor for class com.semartinez.projects.choppit.model.entity.Step
 
StepDao - Interface in com.semartinez.projects.choppit.model.dao
 
StepRecyclerAdapter - Class in com.semartinez.projects.choppit.view
Provides bindings for a list of Steps to be displayed in either the EditingFragment or RecipeFragment.
StepRecyclerAdapter(Context, Recipe, Fragment) - Constructor for class com.semartinez.projects.choppit.view.StepRecyclerAdapter
Handles Data Binding for a list of Steps passed by the active Fragment while displaying a Recipe.
StepRecyclerAdapter.EditStepViewHolder - Class in com.semartinez.projects.choppit.view
The ViewHolder class attaches Step fields to UI components.
StepRecyclerAdapter.RecipeStepViewHolder - Class in com.semartinez.projects.choppit.view
The ViewHolder class attaches Ingredient fields to UI components.
Strainer - Class in com.semartinez.projects.choppit.service
This class was written before I had any knowledge of HTML structure and basically uses brute force to eliminate anything that doesn't look like potentially useful text.
Strainer() - Constructor for class com.semartinez.projects.choppit.service.Strainer
 

T

tail(Node, int) - Method in class com.semartinez.projects.choppit.service.Strainer
 
TITLE - Static variable in class com.semartinez.projects.choppit.service.Constants
 
TooManyMatchesException - Exception in com.semartinez.projects.choppit.controller.exception
TooManyMatchesException handles errors thrown by JsoupMachine when text selected by the user is found in more than one HTML element.
TooManyMatchesException(String) - Constructor for exception com.semartinez.projects.choppit.controller.exception.TooManyMatchesException
 
toString() - Method in class com.semartinez.projects.choppit.model.entity.Ingredient
 
toString(Ingredient.Unit) - Static method in enum com.semartinez.projects.choppit.model.entity.Ingredient.Unit
 
toString() - Method in class com.semartinez.projects.choppit.model.entity.Recipe
 
toString() - Method in class com.semartinez.projects.choppit.model.entity.Step
 
toUnit(String) - Static method in enum com.semartinez.projects.choppit.model.entity.Ingredient.Unit
This converter essentially replaces common spelling with abbreviated measurement names (i.e.

U

update(Ingredient) - Method in interface com.semartinez.projects.choppit.model.dao.IngredientDao
 
update(Recipe) - Method in interface com.semartinez.projects.choppit.model.dao.RecipeDao
 
update(Step) - Method in interface com.semartinez.projects.choppit.model.dao.StepDao
 
update(Recipe) - Method in class com.semartinez.projects.choppit.model.repository.RecipeRepository
 
updateRecipe(Recipe) - Method in class com.semartinez.projects.choppit.viewmodel.MainViewModel
 

V

valueOf(String) - Static method in enum com.semartinez.projects.choppit.model.entity.Ingredient.Unit
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.semartinez.projects.choppit.viewmodel.MainViewModel.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.semartinez.projects.choppit.model.entity.Ingredient.Unit
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.semartinez.projects.choppit.viewmodel.MainViewModel.State
Returns an array containing the constants of this enum type, in the order they are declared.

Z

ZeroMatchesException - Exception in com.semartinez.projects.choppit.controller.exception
ZeroMatchesException handles errors thrown by JsoupMachine when JsoupMachine.prepare(Document) fails to extract any text elements, or the text selected by the user is not found in the HTML.
ZeroMatchesException() - Constructor for exception com.semartinez.projects.choppit.controller.exception.ZeroMatchesException
The default constructor is used when the initial processing fails to find useful text in the page at the user-provided URL.
ZeroMatchesException(String) - Constructor for exception com.semartinez.projects.choppit.controller.exception.ZeroMatchesException
 
A B C D E F G H I J L M N O P R S T U V Z 
Skip navigation links