/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE @UMPLE_VERSION@ modeling language!*/

package example;

public class OneToMany
{

  //------------------------
  // MEMBER VARIABLES
  //------------------------

  //OneToMany Associations
  private OneToMany oneToMany;

  //------------------------
  // CONSTRUCTOR
  //------------------------

  public OneToMany(OneToMany aOneToMany)
  {
    if (!setOneToMany(aOneToMany))
    {
      throw new RuntimeException("Unable to create OneToMany due to aOneToMany. See https://manual.umple.org?RE002ViolationofAssociationMultiplicity.html");
    }
  }

  //------------------------
  // INTERFACE
  //------------------------

  public OneToMany getOneToMany()
  {
    return oneToMany;
  }

  public boolean setOneToMany(OneToMany aNewOneToMany)
  {
    boolean wasSet = false;
    if (aNewOneToMany != null)
    {
      oneToMany = aNewOneToMany;
      wasSet = true;
    }
    return wasSet;
  }

  public void delete()
  {
    oneToMany = null;
  }

}
