
cb.petal.ClassAttribute 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;
import java.util.Collection;
/**
* Represents class attribute (aka field) of class object.
*
* @version $Id: ClassAttribute.java,v 1.12 2001/06/22 09:10:36 dahm Exp $
* @author M. Dahm
*/
public class ClassAttribute extends AccessObject {
static final long serialVersionUID = -5435324245812367476L;
public ClassAttribute(PetalNode parent, Collection params) {
super(parent, "ClassAttribute", params);
}
public ClassAttribute() {
super("ClassAttribute");
}
/**
* change the default visibility to private
*/
@Override
public Visibility getVisibility() {
Visibility lv = super.getVisibility();
switch (lv) {
case UNDEFINED:
return Visibility.PRIVATE;
default:
return lv;
}
}
public String getType() {
return getPropertyAsString("type");
}
public void setType(String o) {
defineProperty("type", o);
}
public String getInitialValue() {
return getPropertyAsString("initv");
}
public void setInitialValue(String o) {
defineProperty("initv", o);
}
public boolean getStatic() {
return getPropertyAsBoolean("static");
}
public void setStatic(boolean s) {
defineProperty("static", s);
}
public boolean getDerived() {
return getPropertyAsBoolean("derived");
}
public void setDerived(boolean s) {
defineProperty("derived", s);
}
public String getContainment() {
return getPropertyAsString("Containment");
}
public void setContainment(String o) {
defineProperty("Containment", o);
}
public void accept(Visitor v) {
v.visit(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy