cb.petal.UseCaseCategory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.crazybeans Show documentation
Show all versions of org.crazybeans Show documentation
Java library to read, modify or create Rational Rose petal files
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);
}
}