net.sourceforge.plantuml.api.ImageDataComplex 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.api;
import net.sourceforge.plantuml.klimt.geom.XDimension2D;
import net.sourceforge.plantuml.url.CMapData;
public class ImageDataComplex extends ImageDataAbstract {
private final CMapData cmap;
private final String warningOrError;
@SuppressWarnings("unused") // available publicly so retained for backwards compatibility
public ImageDataComplex(XDimension2D info, CMapData cmap, String warningOrError) {
super(info);
this.cmap = cmap;
this.warningOrError = warningOrError;
}
public ImageDataComplex(XDimension2D info, CMapData cmap, String warningOrError, int status) {
super(info);
this.cmap = cmap;
this.warningOrError = warningOrError;
setStatus(status);
}
public boolean containsCMapData() {
return cmap != null && cmap.containsData();
}
public String getCMapData(String nameId) {
return cmap.asString(nameId);
}
public String getWarningOrError() {
return warningOrError;
}
}