java.lang.Object
net.fortuna.ical4j.model.Content
net.fortuna.ical4j.model.Property
- All Implemented Interfaces:
Serializable,Comparable<Property>,FluentProperty,Prototype<Property>
- Direct Known Subclasses:
Action,Attach,Attendee,BusyType,CalendarAddress,CalScale,Categories,Clazz,Color,Comment,Concept,Conference,Contact,Country,DateListProperty,DateProperty,Description,Duration,ExRule,ExtendedAddress,FreeBusy,Geo,Image,Link,Locality,Location,LocationType,Method,Name,Organizer,ParticipantType,PercentComplete,Postalcode,Priority,ProdId,Proximity,RefId,RefreshInterval,Region,RelatedTo,Repeat,RequestStatus,Resources,ResourceType,RRule,Sequence,Source,Status,StreetAddress,StructuredData,StyledDescription,Summary,Tel,Transp,TzId,TzIdAliasOf,TzName,TzOffsetFrom,TzOffsetTo,TzUrl,Uid,Url,Version,Xml,XProperty
public abstract class Property
extends Content
implements Prototype<Property>, Comparable<Property>, FluentProperty
Defines an iCalendar property. Subclasses of this class provide additional validation and typed values for specific
iCalendar properties.
Note that subclasses must provide a reference to the factory used to create the
property to support property cloning (copy). If no factory is specified an
UnsupportedOperationException will be thrown by the copy() method.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.fortuna.ical4j.model.Content
Content.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAcknowledged Property taken from http://tools.ietf.org/html/draft-daboo-valarm-extensions-04static final StringAlarm action property name.static final StringAttachment property name.static final StringAttendee property name.static final StringBusy type property name.static final StringParticipant cua property name.static final StringCalendar scale property name.static final StringCategories property name.static final StringClassifier property name.static final StringComment property name.static final StringCompleted date property name.static final StringContact property name.static final StringVVENUE country property name.static final StringCreation date property name.static final StringDescription property name.static final StringEnd date property name.static final StringDate-stamp property name.static final StringStart date property name.static final StringDue date property name.static final StringDuration property name.static final StringExclusion date property name.static final StringPrefix for non-standard properties.static final StringExclusion rule property name.static final StringVVENUE extended address property name.static final StringFree/busy property name.static final StringGeographic location property name.static final StringLast modified date property name.static final StringVVENUE locality property name.static final StringLocation property name.static final StringLocation type property name.static final StringiTIP method property name.static final StringVVENUE name property name.static final StringOrganiser property name.static final StringParticipant type.static final StringPercentage complete property name.static final StringVVENUE postal code property name.static final StringPrority property name.static final StringProduct identifier property name.static final Stringstatic final StringRecurrence date property name.static final StringRecurrence identifier property name.static final StringVVENUE region property name.static final StringRelationship property name.static final StringRepeat rule property name.static final StringRequest status property name.static final StringResource type property name.static final StringResources property name.static final StringRecurrence rule property name.static final StringSequence property name.static final StringStatus property name.static final StringVVENUE street address property name.static final StringStructured data property name.static final StringStyled description property name.static final StringSummary property name.static final StringVVENUE telephone property name.static final StringTransparency property name.static final StringAlarm trigger property name.static final StringTimezone identifier property name.static final Stringstatic final StringTimezone name property name.static final StringPrior timezone offset property name.static final StringNew timezone offset property name.static final Stringstatic final StringURL for timezone definition property name.static final StringUnique identifier property name.static final StringUniform resource locator property name.static final StringiCalendar version property name.static final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedProperty(@NotNull Enum<?> name, ParameterList aList) protectedConstructor.protectedProperty(String aName, ParameterList aList) -
Method Summary
Modifier and TypeMethodDescription<T extends Property>
TAdd a parameter to the property's parameter list.intfinal Propertycopy()Create a (deep) copy of this property.booleanfinal StringgetName()getParameter(@NotNull Enum<?> name) getParameter(String name) Convenience method for retrieving a single parameter.final ParameterListgetParameters(String... name) Convenience method for retrieving a list of named parameters.Returns the property prefix for applicable property types.final <P extends Parameter>
PgetRequiredParameter(@NotNull Enum<?> name) final <P extends Parameter>
PgetRequiredParameter(String name) Retrieve a single required parameter.inthashCode()protected abstract PropertyFactory<?>Returns a new property factory used to create deep copies.<T extends Property>
TRemove a parameter from the property's parameter list.<T extends Property>
TRemove all parameters with the specified name from the property's parameter list.<T extends Property>
TAdd a parameter to the property's parameter list whilst removing all other parameters with the same name.protected voidsetParameters(ParameterList parameters) voidabstract voidSets the current value of the property.toString()abstract ValidationResultvalidate()Perform validation on a property.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fortuna.ical4j.model.FluentProperty
withParameter
-
Field Details
-
PRODID
Product identifier property name.- See Also:
-
VERSION
iCalendar version property name.- See Also:
-
CALSCALE
Calendar scale property name.- See Also:
-
METHOD
iTIP method property name.- See Also:
-
BUSYTYPE
Busy type property name.- See Also:
-
CLASS
Classifier property name.- See Also:
-
CREATED
Creation date property name.- See Also:
-
DESCRIPTION
Description property name.- See Also:
-
DTSTART
Start date property name.- See Also:
-
GEO
Geographic location property name.- See Also:
-
LAST_MODIFIED
Last modified date property name.- See Also:
-
LOCATION
Location property name.- See Also:
-
ORGANIZER
Organiser property name.- See Also:
-
PERCENT_COMPLETE
Percentage complete property name.- See Also:
-
PRIORITY
Prority property name.- See Also:
-
DTSTAMP
Date-stamp property name.- See Also:
-
SEQUENCE
Sequence property name.- See Also:
-
STATUS
Status property name.- See Also:
-
SUMMARY
Summary property name.- See Also:
-
TRANSP
Transparency property name.- See Also:
-
UID
Unique identifier property name.- See Also:
-
URL
Uniform resource locator property name.- See Also:
-
RECURRENCE_ID
Recurrence identifier property name.- See Also:
-
COMPLETED
Completed date property name.- See Also:
-
DUE
Due date property name.- See Also:
-
FREEBUSY
Free/busy property name.- See Also:
-
TZID
Timezone identifier property name.- See Also:
-
TZNAME
Timezone name property name.- See Also:
-
TZOFFSETFROM
Prior timezone offset property name.- See Also:
-
TZOFFSETTO
New timezone offset property name.- See Also:
-
TZURL
URL for timezone definition property name.- See Also:
-
ACTION
Alarm action property name.- See Also:
-
REPEAT
Repeat rule property name.- See Also:
-
TRIGGER
Alarm trigger property name.- See Also:
-
REQUEST_STATUS
Request status property name.- See Also:
-
DTEND
End date property name.- See Also:
-
DURATION
Duration property name.- See Also:
-
ATTACH
Attachment property name.- See Also:
-
ATTENDEE
Attendee property name.- See Also:
-
CATEGORIES
Categories property name.- See Also:
-
COMMENT
Comment property name.- See Also:
-
CONTACT
Contact property name.- See Also:
-
EXDATE
Exclusion date property name.- See Also:
-
EXRULE
Exclusion rule property name.- See Also:
-
RELATED_TO
Relationship property name.- See Also:
-
RESOURCE_TYPE
Resource type property name.- See Also:
-
RESOURCES
Resources property name.- See Also:
-
RDATE
Recurrence date property name.- See Also:
-
RRULE
Recurrence rule property name.- See Also:
-
EXPERIMENTAL_PREFIX
Prefix for non-standard properties.- See Also:
-
COUNTRY
VVENUE country property name.- See Also:
-
EXTENDED_ADDRESS
VVENUE extended address property name.- See Also:
-
LOCALITY
VVENUE locality property name.- See Also:
-
NAME
VVENUE name property name.- See Also:
-
POSTALCODE
VVENUE postal code property name.- See Also:
-
REGION
VVENUE region property name.- See Also:
-
STREET_ADDRESS
VVENUE street address property name.- See Also:
-
TEL
VVENUE telephone property name.- See Also:
-
ACKNOWLEDGED
Acknowledged Property taken from http://tools.ietf.org/html/draft-daboo-valarm-extensions-04- See Also:
-
PROXIMITY
- See Also:
-
CALENDAR_ADDRESS
Participant cua property name.- See Also:
-
LOCATION_TYPE
Location type property name.- See Also:
-
PARTICIPANT_TYPE
Participant type.- See Also:
-
STRUCTURED_DATA
Structured data property name.- See Also:
-
STYLED_DESCRIPTION
Styled description property name.- See Also:
-
TZUNTIL
- See Also:
-
TZID_ALIAS_OF
- See Also:
-
XML
- See Also:
-
-
Constructor Details
-
Property
Constructor.- Parameters:
aName- property name
-
Property
-
Property
- Parameters:
aName- a property identifieraList- a list of initial parameters
-
Property
-
-
Method Details
-
toString
-
getFluentTarget
- Specified by:
getFluentTargetin interfaceFluentProperty
-
getName
-
getPrefix
Returns the property prefix for applicable property types.- Returns:
- a string prefix, or null if not applicable
-
setPrefix
-
getParameterList
- Returns:
- Returns the underlying parameter list.
-
setParameters
-
add
Add a parameter to the property's parameter list.- Parameters:
parameter- the parameter to add- Returns:
- a reference to the property to support method chaining
-
remove
Remove a parameter from the property's parameter list.- Parameters:
parameter- the parameter to remove- Returns:
- a reference to the property to support method chaining
-
removeAll
Remove all parameters with the specified name from the property's parameter list.- Parameters:
parameterName- the name of parameters to remove- Returns:
- a reference to the property to support method chaining
-
replace
Add a parameter to the property's parameter list whilst removing all other parameters with the same name.- Parameters:
parameter- the parameter to add- Returns:
- a reference to the property to support method chaining
-
getParameters
Convenience method for retrieving a list of named parameters.- Parameters:
name- name of parameters to retrieve- Returns:
- a parameter list containing only parameters with the specified name
-
getParameter
Convenience method for retrieving a single parameter.- Parameters:
name- name of the parameter to retrieve- Returns:
- the first parameter from the parameter list with the specified name
-
getParameter
-
getRequiredParameter
Retrieve a single required parameter.- Type Parameters:
P-- Parameters:
name-- Returns:
-
getRequiredParameter
-
setValue
Sets the current value of the property.- Parameters:
aValue- a string representation of the property value- Throws:
IllegalArgumentException- possibly thrown by setting the value of certain properties
-
validate
Perform validation on a property.- Throws:
ValidationException- where the property is not in a valid state
-
equals
-
hashCode
public int hashCode() -
newFactory
Returns a new property factory used to create deep copies.- Returns:
- a property factory instance
-
copy
Create a (deep) copy of this property. -
compareTo
- Specified by:
compareToin interfaceComparable<Property>
-