diff --git a/webcal/src/main/java/cn/org/codecrafters/webcal/WebCalendar.java b/webcal/src/main/java/cn/org/codecrafters/webcal/WebCalendar.java index f36603f..5d739da 100644 --- a/webcal/src/main/java/cn/org/codecrafters/webcal/WebCalendar.java +++ b/webcal/src/main/java/cn/org/codecrafters/webcal/WebCalendar.java @@ -56,19 +56,45 @@ public final class WebCalendar { */ private final static String TAG = "VCALENDAR"; - // Calendar properties + /** + * The name of this calendar. + */ private String name; + /** + * The company who produces this calendar. + * + *

+ * This property will be used in {@code PRODID}. + */ private String companyName; + /** + * The product name. + * + *

+ * This property will be used in {@code PRODID} + */ private String productName; + /** + * The producer's domain name. + */ private String domainName; + /** + * Scale of this calendar. + */ private final String scale = "GREGORIAN"; + /** + * The method of this calendar. + */ private String method; + /** + * The version of this calendar. + */ private final String version = "2.0"; /** diff --git a/webcal/src/main/java/cn/org/codecrafters/webcal/config/Classification.java b/webcal/src/main/java/cn/org/codecrafters/webcal/config/Classification.java index 102a0c1..6b45c5f 100644 --- a/webcal/src/main/java/cn/org/codecrafters/webcal/config/Classification.java +++ b/webcal/src/main/java/cn/org/codecrafters/webcal/config/Classification.java @@ -17,6 +17,8 @@ package cn.org.codecrafters.webcal.config; +import lombok.Getter; + /** * The Classification enum represents the classification levels of calendar * content based on RFC 5545. @@ -43,6 +45,7 @@ package cn.org.codecrafters.webcal.config; * @version 1.0.0 * @since 1.0.0 */ +@Getter public enum Classification { /** @@ -73,6 +76,12 @@ public enum Classification { CONFIDENTIAL("CONFIDENTIAL"), ; + /** + * -- GETTER -- + * Get the string representation of the classification level. + * + * @return the string representation of the classification level + */ private final String classification; /** @@ -84,12 +93,4 @@ public enum Classification { this.classification = classification; } - /** - * Get the string representation of the classification level. - * - * @return the string representation of the classification level - */ - public String getClassification() { - return classification; - } }