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

cb.petal.Module 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;
import java.util.Collection;

/**
 * Represents module object
 *
 * @version $Id: Module.java,v 1.9 2001/08/01 14:26:56 dahm Exp $
 * @author  M. Dahm
 */
public class Module extends NamedQuidObject implements StereoTyped {
  public Module(PetalNode parent, Collection params) {
    super(parent, "module", params);
  }

  public Module() {
    super("module");
  }

  public void setTypeParameter(String o) {
    params.set(1, o);
  }

  public String getTypeParameter() {
    return (String)params.get(1);
  }

  public void setSpecificationParameter(String o) {
    params.set(2, o);
  }

  public String getSpecificationParameter() {
    return (String)params.get(2);
  }

  public PetalNodeList getAttributes() {
    return (PetalNodeList)getProperty("attributes");
  }

  public void setAttributes(PetalNodeList o) {
    defineProperty("attributes", o);
  }

  public String getStereotype() {
    return getPropertyAsString("stereotype");
  }

  public void setStereotype(String o) {
    defineProperty("stereotype", o);
  }

  public PetalNodeList getVisibleModules() {
    return (PetalNodeList)getProperty("visible_modules");
  }

  public void setVisibleModules(PetalNodeList o) {
    defineProperty("visible_modules", o);
  }

  public String getPath() {
    return getPropertyAsString("path");
  }

  public void setPath(String o) {
    defineProperty("path", o);
  }

  public String getLanguage() {
    return getPropertyAsString("language");
  }

  public void setLanguage(String o) {
    defineProperty("language", o);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy