diff options
Diffstat (limited to 'pdf-over-commons/src/main/java/at/asit')
-rw-r--r-- | pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java index c15fc225..057b5826 100644 --- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java +++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java @@ -7,7 +7,7 @@ public enum Profile { BASE_LOGO, //$NON-NLS-1$ INVISIBLE; - public static int length = 4; + public static int length = Profile.values().length; public static Profile getProfile(String name) { if (SIGNATURBLOCK_SMALL.name().equals(name)) { @@ -22,5 +22,9 @@ public enum Profile { return null; } + public static String getDefaultProfile(){ + return SIGNATURBLOCK_SMALL.name(); + } + } |