All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cb.petal.UseCaseCategory Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2001 Markus Dahm
 * Copyright (C) 2015-2018 BITPlan GmbH http://www.bitplan.com
 *
 * This source is part of
 * https://github.com/BITPlan/CrazyBeans
 * and the license as outlined there applies
 */
package cb.petal;

/**
 * Use case class category.
 *
 * @version $Id: UseCaseCategory.java,v 1.6 2001/07/17 14:38:36 dahm Exp $
 * @author  M. Dahm
 */
public class UseCaseCategory extends ClassCategory {
  static final long serialVersionUID = 824437667323709051L;

  public UseCaseCategory(PetalObject parent) {
    super(parent, "Use Case View");
  }

  public UseCaseCategory() {
    super(null, "Use Case View");
  }

  public void addToModel(UseCaseCategory cat) {
    add(cat);
  }

  public void removeFromModel(UseCaseCategory cat) {
    remove(cat);
  }

  /** Add a use case to the model. Sets parent and calls init() on use case.
   */
  public void addToModel(UseCase caze) {
    add(caze);
  }

  public void removeFromModel(UseCase caze) {
    remove(caze);
  }

  /** Typically every Use Case view has just one "Main" use case diagram
   */
  public UseCaseDiagram getFirstUseCaseDiagram() {
    return (UseCaseDiagram)lookupDiagram(UseCaseDiagram.class);
  }

  public void accept(Visitor v) {
    v.visit(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy