![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.skin.Pragma Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.skin;
import java.util.LinkedHashMap;
import java.util.Map;
public class Pragma {
private final Map values = new LinkedHashMap();
public void define(String name, String value) {
values.put(name, value);
}
public boolean isDefine(String name) {
return values.containsKey(name);
}
public void undefine(String name) {
values.remove(name);
}
public String getValue(String name) {
return values.get(name);
}
public boolean horizontalLineBetweenDifferentPackageAllowed() {
return isDefine("horizontallinebetweendifferentpackageallowed");
}
public boolean backToLegacyPackage() {
return isDefine("backtolegacypackage");
}
public boolean useNewPackage() {
return isDefine("usenewpackage");
}
private boolean isTrue(final String s) {
return "true".equalsIgnoreCase(s) || "on".equalsIgnoreCase(s);
}
private boolean isFalse(final String s) {
return "false".equalsIgnoreCase(s) || "off".equalsIgnoreCase(s);
}
public boolean useVerticalIf() {
return isTrue(getValue("useverticalif"));
}
public boolean useTeozLayout() {
return isTrue(getValue("teoz"));
}
public boolean useKermor() {
return isTrue(getValue("kermor"));
}
public boolean useIntermediatePackages() {
return !isFalse(getValue("useintermediatepackages"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy