public class Timezone extends UtcOffsetProperty
value
parameters
Constructor and Description |
---|
Timezone(Timezone original)
Copy constructor.
|
Timezone(UtcOffset offset)
Creates a timezone property.
|
Modifier and Type | Method and Description |
---|---|
Timezone |
copy()
Creates a copy of this property object.
|
protected void |
validate(List<ICalComponent> components,
ICalVersion version,
List<ValidationWarning> warnings)
Checks the property for data consistency problems or deviations from the
specifications.
|
equals, getValue, getValue, hashCode, setValue, toStringValues, valueEquals, valueHashCode
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validate
public Timezone(UtcOffset offset)
offset
- the UTC offsetprotected void validate(List<ICalComponent> components, ICalVersion version, List<ValidationWarning> warnings)
ICalProperty
Checks the property for data consistency problems or deviations from the specifications.
This method should be overridden by child classes that wish to provide validation logic. The default implementation of this method does nothing.
validate
in class ValuedProperty<UtcOffset>
components
- the hierarchy of components that the property belongs
toversion
- the version to validate againstwarnings
- the list to add the warnings topublic Timezone copy()
ICalProperty
Creates a copy of this property object.
The default implementation of this method uses reflection to look for a copy constructor. Child classes SHOULD override this method to avoid the performance overhead involved in using reflection.
The child class's copy constructor, if present, MUST invoke the
ICalProperty.ICalProperty(ICalProperty)
super constructor to ensure that the
parameters are also copied.
This method MUST be overridden by the child class if the child class does
not have a copy constructor. Otherwise, an
UnsupportedOperationException
will be thrown when an attempt is
made to copy the property (such as in the
ICalendar class's copy constructor
).
copy
in class ICalProperty
Copyright © 2013–2024 Michael Angstadt. All rights reserved.