/*
 * Copyright 2021 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.drools.mvel;

import java.util.Collection;

public class Foo {
  private Bar bar = new Bar();
  public String register;
  public String aValue = "";
  public String bValue = "";
  private String name = "dog";
  private int countTest = 0;
  private boolean boolTest = true;
  private char charTest;
  public char charTestFld;
  private Collection collectionTest;
  private SampleBean sampleBean = new SampleBean();
  public Bar publicBar = new Bar();
  public static final Bar STATIC_BAR = new Bar();
  
  private char[] charArray;

  private char[][] charArrayMulti;

  public void abc() {
  }

  public Bar getBar() {
    return bar;
  }

  public void setBar(Bar bar) {
    this.bar = bar;
  }

  public String happy() {
    return "happyBar";
  }

  public String toUC(String s) {
    register = s;
    return s.toUpperCase();
  }

  public int getNumber() {
    return 4;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Collection getCollectionTest() {
    return collectionTest;
  }

  public void setCollectionTest(Collection collectionTest) {
    this.collectionTest = collectionTest;
  }

  public SampleBean getSampleBean() {
    return sampleBean;
  }

  public void setSampleBean(SampleBean sampleBean) {
    this.sampleBean = sampleBean;
  }

  public int getCountTest() {
    return countTest;
  }

  public void setCountTest(int countTest) {
    this.countTest = countTest;
  }

  public boolean isBoolTest() {
    return boolTest;
  }

  public void setBoolTest(boolean boolTest) {
    this.boolTest = boolTest;
  }

  public char getCharTest() {
    return charTest;
  }

  public void setCharTest(char charTest) {
    this.charTest = charTest;
  }

  public char[] getCharArray() {
    return charArray;
  }

  public void setCharArray(char[] charArray) {
    this.charArray = charArray;
  }

  public char[][] getCharArrayMulti() {
    return charArrayMulti;
  }

  public void setCharArrayMulti(char[][] charArrayMulti) {
    this.charArrayMulti = charArrayMulti;
  }

  public boolean equals(Object o) {
    return o instanceof Foo;
  }
}
