package at.gv.egiz.pdfas.placeholder; import at.knowcenter.wag.egov.egiz.pdf.TablePos; /** * This class represents all the data which can be extracted from a placeholder image. * * @author exthex * */ public class SignaturePlaceholderData { public static final String ID_KEY = "id"; public static final String PROFILE_KEY = "profile"; public static final String TYPE_KEY = "type"; public static final String SIG_KEY_KEY = "key"; private String profile; private String type; private String key; private String id; private TablePos tablePos; private String placeholderName; /** * * @param profile * @param type * @param sigKey * @param id */ public SignaturePlaceholderData(String profile, String type, String sigKey, String id) { this.profile = profile; this.type = type; this.key = sigKey; this.id = id; } /** * Get the table position for the signature block.
* The table position is created from the page number, the upper left corner and the width of the placeholder image. * * @return */ public TablePos getTablePos() { return tablePos; } void setTablePos(TablePos tablePos) { this.tablePos = tablePos; } /** * The profile name. Might be null if not included in the qr-code. * * @return */ public String getProfile() { return profile; } void setProfile(String profile) { this.profile = profile; } /** * The signature type: "textual" or "binary". Might be null if not included in the qr-code. * @return */ public String getType() { return type; } void setType(String type) { this.type = type; } /** * The key identifier for MOA signature. Might be null if not included in the qr-code. * * @return */ public String getKey() { return key; } void setKey(String key) { this.key = key; } public String toString() { return getClass().toString() + ": profile=" + profile + "; type=" + type + "; sigKey=" + key + "; table pos=" + tablePos; } void setPlaceholderName(String name) { this.placeholderName = name; } /** * The name of the placeholder image. * * @return */ public String getPlaceholderName() { return placeholderName; } /** * The id associated with this placeholder. * * @return */ public String getId() { return id; } void setId(String id) { this.id = id; } }