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

cb.petal.AccessQualified 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;

/**
 * Denote that a petal object may have an attribute "exportControl", e.g. classes,
 * methods, ..., which refers to a qualifier like "public", "protected", ...
 *
 * @version $Id: AccessQualified.java,v 1.5 2001/07/09 07:48:52 dahm Exp $
 * @author  M. Dahm
 */
public interface AccessQualified {
  public String getExportControl();
  public void setExportControl(String o);
  /**
   * get the visibility of this access object
   * @return the visibilty
   */
  public default Visibility getVisibility() {
    String exportControl=this.getExportControl();
    Visibility visibility=Visibility.valueOf(exportControl==null?"UNDEFINED":exportControl.toUpperCase());
    return visibility;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy