diff --git a/src/main/java/biweekly/component/ICalComponent.java b/src/main/java/biweekly/component/ICalComponent.java index 20818996..ca5e9677 100644 --- a/src/main/java/biweekly/component/ICalComponent.java +++ b/src/main/java/biweekly/component/ICalComponent.java @@ -52,7 +52,7 @@ public abstract class ICalComponent { protected final ListMultimap, ICalComponent> components; protected final ListMultimap, ICalProperty> properties; - public ICalComponent() { + protected ICalComponent() { components = new ListMultimap, ICalComponent>(); properties = new ListMultimap, ICalProperty>(); } diff --git a/src/main/java/biweekly/io/scribe/component/ICalComponentScribe.java b/src/main/java/biweekly/io/scribe/component/ICalComponentScribe.java index f6d88309..18c0dcfa 100644 --- a/src/main/java/biweekly/io/scribe/component/ICalComponentScribe.java +++ b/src/main/java/biweekly/io/scribe/component/ICalComponentScribe.java @@ -52,7 +52,7 @@ public abstract class ICalComponentScribe { * @param clazz the component's class * @param componentName the component's name (e.g. "VEVENT") */ - public ICalComponentScribe(Class clazz, String componentName) { + protected ICalComponentScribe(Class clazz, String componentName) { this.clazz = clazz; this.componentName = componentName; } diff --git a/src/main/java/biweekly/io/scribe/property/BinaryPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/BinaryPropertyScribe.java index 462b0a22..d61ed4bf 100644 --- a/src/main/java/biweekly/io/scribe/property/BinaryPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/BinaryPropertyScribe.java @@ -43,7 +43,7 @@ * @author Michael Angstadt */ public abstract class BinaryPropertyScribe extends ICalPropertyScribe { - public BinaryPropertyScribe(Class clazz, String propertyName) { + protected BinaryPropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName, ICalDataType.URI); } diff --git a/src/main/java/biweekly/io/scribe/property/DateOrDateTimePropertyScribe.java b/src/main/java/biweekly/io/scribe/property/DateOrDateTimePropertyScribe.java index 78fe9cff..62978c94 100644 --- a/src/main/java/biweekly/io/scribe/property/DateOrDateTimePropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/DateOrDateTimePropertyScribe.java @@ -44,7 +44,7 @@ * @author Michael Angstadt */ public abstract class DateOrDateTimePropertyScribe extends ICalPropertyScribe { - public DateOrDateTimePropertyScribe(Class clazz, String propertyName) { + protected DateOrDateTimePropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName, ICalDataType.DATE_TIME); } diff --git a/src/main/java/biweekly/io/scribe/property/DateTimePropertyScribe.java b/src/main/java/biweekly/io/scribe/property/DateTimePropertyScribe.java index d309d11e..0b471d4c 100644 --- a/src/main/java/biweekly/io/scribe/property/DateTimePropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/DateTimePropertyScribe.java @@ -46,7 +46,7 @@ * @author Michael Angstadt */ public abstract class DateTimePropertyScribe extends ICalPropertyScribe { - public DateTimePropertyScribe(Class clazz, String propertyName) { + protected DateTimePropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName, ICalDataType.DATE_TIME); } diff --git a/src/main/java/biweekly/io/scribe/property/ICalPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/ICalPropertyScribe.java index f07c570a..c22d5b40 100644 --- a/src/main/java/biweekly/io/scribe/property/ICalPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/ICalPropertyScribe.java @@ -84,7 +84,7 @@ public abstract class ICalPropertyScribe { * @param clazz the property class * @param propertyName the property name (e.g. "VERSION") */ - public ICalPropertyScribe(Class clazz, String propertyName) { + protected ICalPropertyScribe(Class clazz, String propertyName) { this(clazz, propertyName, null); } @@ -95,7 +95,7 @@ public ICalPropertyScribe(Class clazz, String propertyName) { * @param defaultDataType the property's default data type (e.g. "text") or * null if unknown */ - public ICalPropertyScribe(Class clazz, String propertyName, ICalDataType defaultDataType) { + protected ICalPropertyScribe(Class clazz, String propertyName, ICalDataType defaultDataType) { this(clazz, propertyName, defaultDataType, new QName(XCAL_NS, propertyName.toLowerCase())); } @@ -109,7 +109,7 @@ public ICalPropertyScribe(Class clazz, String propertyName, ICalDataType defa * (by default, the XML element name is set to the lower-cased property * name, and the element namespace is set to the xCal namespace) */ - public ICalPropertyScribe(Class clazz, String propertyName, ICalDataType defaultDataType, QName qname) { + protected ICalPropertyScribe(Class clazz, String propertyName, ICalDataType defaultDataType, QName qname) { this.clazz = clazz; this.propertyName = propertyName; this.defaultDataType = defaultDataType; diff --git a/src/main/java/biweekly/io/scribe/property/IntegerPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/IntegerPropertyScribe.java index 591db1da..142c5768 100644 --- a/src/main/java/biweekly/io/scribe/property/IntegerPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/IntegerPropertyScribe.java @@ -42,7 +42,7 @@ * @author Michael Angstadt */ public abstract class IntegerPropertyScribe extends ICalPropertyScribe { - public IntegerPropertyScribe(Class clazz, String propertyName) { + protected IntegerPropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName, ICalDataType.INTEGER); } diff --git a/src/main/java/biweekly/io/scribe/property/ListPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/ListPropertyScribe.java index b454a94b..d45f850b 100644 --- a/src/main/java/biweekly/io/scribe/property/ListPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/ListPropertyScribe.java @@ -45,11 +45,11 @@ * @author Michael Angstadt */ public abstract class ListPropertyScribe, V> extends ICalPropertyScribe { - public ListPropertyScribe(Class clazz, String propertyName) { + protected ListPropertyScribe(Class clazz, String propertyName) { this(clazz, propertyName, ICalDataType.TEXT); } - public ListPropertyScribe(Class clazz, String propertyName, ICalDataType dataType) { + protected ListPropertyScribe(Class clazz, String propertyName, ICalDataType dataType) { super(clazz, propertyName, dataType); } diff --git a/src/main/java/biweekly/io/scribe/property/RecurrencePropertyScribe.java b/src/main/java/biweekly/io/scribe/property/RecurrencePropertyScribe.java index 245ad729..1777905d 100644 --- a/src/main/java/biweekly/io/scribe/property/RecurrencePropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/RecurrencePropertyScribe.java @@ -80,7 +80,7 @@ public abstract class RecurrencePropertyScribe ext private static final String BYSETPOS = "BYSETPOS"; private static final String WKST = "WKST"; - public RecurrencePropertyScribe(Class clazz, String propertyName) { + protected RecurrencePropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName); } diff --git a/src/main/java/biweekly/io/scribe/property/TextListPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/TextListPropertyScribe.java index cdfe264d..68de956d 100644 --- a/src/main/java/biweekly/io/scribe/property/TextListPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/TextListPropertyScribe.java @@ -38,7 +38,7 @@ * @author Michael Angstadt */ public abstract class TextListPropertyScribe> extends ListPropertyScribe { - public TextListPropertyScribe(Class clazz, String propertyName) { + protected TextListPropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName); } diff --git a/src/main/java/biweekly/io/scribe/property/TextPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/TextPropertyScribe.java index 0822933e..af42c59c 100644 --- a/src/main/java/biweekly/io/scribe/property/TextPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/TextPropertyScribe.java @@ -42,11 +42,11 @@ * @author Michael Angstadt */ public abstract class TextPropertyScribe extends ICalPropertyScribe { - public TextPropertyScribe(Class clazz, String propertyName) { + protected TextPropertyScribe(Class clazz, String propertyName) { this(clazz, propertyName, ICalDataType.TEXT); } - public TextPropertyScribe(Class clazz, String propertyName, ICalDataType dataType) { + protected TextPropertyScribe(Class clazz, String propertyName, ICalDataType dataType) { super(clazz, propertyName, dataType); } diff --git a/src/main/java/biweekly/io/scribe/property/UtcOffsetPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/UtcOffsetPropertyScribe.java index 4b7086cd..70953e4e 100644 --- a/src/main/java/biweekly/io/scribe/property/UtcOffsetPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/UtcOffsetPropertyScribe.java @@ -43,7 +43,7 @@ * @author Michael Angstadt */ public abstract class UtcOffsetPropertyScribe extends ICalPropertyScribe { - public UtcOffsetPropertyScribe(Class clazz, String propertyName) { + protected UtcOffsetPropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName, ICalDataType.UTC_OFFSET); } diff --git a/src/main/java/biweekly/io/scribe/property/VCalAlarmPropertyScribe.java b/src/main/java/biweekly/io/scribe/property/VCalAlarmPropertyScribe.java index 3efbf4b7..980ce2ce 100644 --- a/src/main/java/biweekly/io/scribe/property/VCalAlarmPropertyScribe.java +++ b/src/main/java/biweekly/io/scribe/property/VCalAlarmPropertyScribe.java @@ -52,11 +52,11 @@ * @author Michael Angstadt */ public abstract class VCalAlarmPropertyScribe extends ICalPropertyScribe { - public VCalAlarmPropertyScribe(Class clazz, String propertyName) { + protected VCalAlarmPropertyScribe(Class clazz, String propertyName) { super(clazz, propertyName); } - public VCalAlarmPropertyScribe(Class clazz, String propertyName, ICalDataType defaultDataType) { + protected VCalAlarmPropertyScribe(Class clazz, String propertyName, ICalDataType defaultDataType) { super(clazz, propertyName, defaultDataType); } diff --git a/src/main/java/biweekly/parameter/ICalParameters.java b/src/main/java/biweekly/parameter/ICalParameters.java index 53f3b7f2..13719b60 100644 --- a/src/main/java/biweekly/parameter/ICalParameters.java +++ b/src/main/java/biweekly/parameter/ICalParameters.java @@ -1557,7 +1557,7 @@ public boolean equals(Object obj) { * @param the enum parameter class */ public abstract class EnumParameterList extends ICalParameterList { - public EnumParameterList(String parameterName) { + protected EnumParameterList(String parameterName) { super(parameterName); } @@ -1589,7 +1589,7 @@ public abstract class ICalParameterList extends AbstractList { /** * @param parameterName the name of the parameter (case insensitive) */ - public ICalParameterList(String parameterName) { + protected ICalParameterList(String parameterName) { this.parameterName = parameterName; parameterValues = ICalParameters.this.get(parameterName); } diff --git a/src/main/java/biweekly/property/EnumProperty.java b/src/main/java/biweekly/property/EnumProperty.java index 81b377e0..9e3225f8 100644 --- a/src/main/java/biweekly/property/EnumProperty.java +++ b/src/main/java/biweekly/property/EnumProperty.java @@ -44,7 +44,7 @@ public abstract class EnumProperty extends TextProperty { * Creates an enum property. * @param value the property value */ - public EnumProperty(String value) { + protected EnumProperty(String value) { super(value); } @@ -52,7 +52,7 @@ public EnumProperty(String value) { * Copy constructor. * @param original the property to make a copy of */ - public EnumProperty(EnumProperty original) { + protected EnumProperty(EnumProperty original) { super(original); } diff --git a/src/main/java/biweekly/property/ICalProperty.java b/src/main/java/biweekly/property/ICalProperty.java index 919dd986..a9a46015 100644 --- a/src/main/java/biweekly/property/ICalProperty.java +++ b/src/main/java/biweekly/property/ICalProperty.java @@ -49,7 +49,7 @@ public abstract class ICalProperty { */ protected ICalParameters parameters; - public ICalProperty() { + protected ICalProperty() { parameters = new ICalParameters(); } diff --git a/src/main/java/biweekly/util/CaseClasses.java b/src/main/java/biweekly/util/CaseClasses.java index e69e1027..f21c6e99 100644 --- a/src/main/java/biweekly/util/CaseClasses.java +++ b/src/main/java/biweekly/util/CaseClasses.java @@ -51,7 +51,7 @@ public abstract class CaseClasses { * Creates a new case class collection. * @param clazz the case class */ - public CaseClasses(Class clazz) { + protected CaseClasses(Class clazz) { this.clazz = clazz; }