// Generated by data binding compiler. Do not edit!
package com.toughra.ustadmobile.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.Bindable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import com.toughra.ustadmobile.R;
import com.ustadmobile.core.controller.OnSortOptionSelected;
import com.ustadmobile.core.util.SortOrderOption;
import java.lang.Deprecated;
import java.lang.Object;

public abstract class ItemSortOptionBinding extends ViewDataBinding {
  @NonNull
  public final ConstraintLayout itemSortLayout;

  @NonNull
  public final TextView itemSortSelectionText;

  @Bindable
  protected OnSortOptionSelected mSortListener;

  @Bindable
  protected SortOrderOption mSortOption;

  @Bindable
  protected SortOrderOption mAlreadySelectedOption;

  protected ItemSortOptionBinding(Object _bindingComponent, View _root, int _localFieldCount,
      ConstraintLayout itemSortLayout, TextView itemSortSelectionText) {
    super(_bindingComponent, _root, _localFieldCount);
    this.itemSortLayout = itemSortLayout;
    this.itemSortSelectionText = itemSortSelectionText;
  }

  public abstract void setSortListener(@Nullable OnSortOptionSelected sortListener);

  @Nullable
  public OnSortOptionSelected getSortListener() {
    return mSortListener;
  }

  public abstract void setSortOption(@Nullable SortOrderOption sortOption);

  @Nullable
  public SortOrderOption getSortOption() {
    return mSortOption;
  }

  public abstract void setAlreadySelectedOption(@Nullable SortOrderOption alreadySelectedOption);

  @Nullable
  public SortOrderOption getAlreadySelectedOption() {
    return mAlreadySelectedOption;
  }

  @NonNull
  public static ItemSortOptionBinding inflate(@NonNull LayoutInflater inflater,
      @Nullable ViewGroup root, boolean attachToRoot) {
    return inflate(inflater, root, attachToRoot, DataBindingUtil.getDefaultComponent());
  }

  /**
   * This method receives DataBindingComponent instance as type Object instead of
   * type DataBindingComponent to avoid causing too many compilation errors if
   * compilation fails for another reason.
   * https://issuetracker.google.com/issues/116541301
   * @Deprecated Use DataBindingUtil.inflate(inflater, R.layout.item_sort_option, root, attachToRoot, component)
   */
  @NonNull
  @Deprecated
  public static ItemSortOptionBinding inflate(@NonNull LayoutInflater inflater,
      @Nullable ViewGroup root, boolean attachToRoot, @Nullable Object component) {
    return ViewDataBinding.<ItemSortOptionBinding>inflateInternal(inflater, R.layout.item_sort_option, root, attachToRoot, component);
  }

  @NonNull
  public static ItemSortOptionBinding inflate(@NonNull LayoutInflater inflater) {
    return inflate(inflater, DataBindingUtil.getDefaultComponent());
  }

  /**
   * This method receives DataBindingComponent instance as type Object instead of
   * type DataBindingComponent to avoid causing too many compilation errors if
   * compilation fails for another reason.
   * https://issuetracker.google.com/issues/116541301
   * @Deprecated Use DataBindingUtil.inflate(inflater, R.layout.item_sort_option, null, false, component)
   */
  @NonNull
  @Deprecated
  public static ItemSortOptionBinding inflate(@NonNull LayoutInflater inflater,
      @Nullable Object component) {
    return ViewDataBinding.<ItemSortOptionBinding>inflateInternal(inflater, R.layout.item_sort_option, null, false, component);
  }

  public static ItemSortOptionBinding bind(@NonNull View view) {
    return bind(view, DataBindingUtil.getDefaultComponent());
  }

  /**
   * This method receives DataBindingComponent instance as type Object instead of
   * type DataBindingComponent to avoid causing too many compilation errors if
   * compilation fails for another reason.
   * https://issuetracker.google.com/issues/116541301
   * @Deprecated Use DataBindingUtil.bind(view, component)
   */
  @Deprecated
  public static ItemSortOptionBinding bind(@NonNull View view, @Nullable Object component) {
    return (ItemSortOptionBinding)bind(component, view, R.layout.item_sort_option);
  }
}
