public abstract class Property extends Content
UnsupportedOperationException
will be thrown by the copy()
method.Type | Property and Description |
---|---|
boolean |
isCalendar
Indicates whether this property is a calendar property.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION
Alarm action property name.
|
static java.lang.String |
ATTACH
Attachment property name.
|
static java.lang.String |
ATTENDEE
Attendee property name.
|
static java.lang.String |
BUSYTYPE
Busy type property name.
|
static java.lang.String |
CALSCALE
Calendar scale property name.
|
static java.lang.String |
CATEGORIES
Categories property name.
|
static java.lang.String |
CLASS
Classifier property name.
|
static java.lang.String |
COMMENT
Comment property name.
|
static java.lang.String |
COMPLETED
Completed date property name.
|
static java.lang.String |
CONTACT
Contact property name.
|
static java.lang.String |
COUNTRY
VVENUE country property name.
|
static java.lang.String |
CREATED
Creation date property name.
|
static java.lang.String |
DESCRIPTION
Description property name.
|
static java.lang.String |
DTEND
End date property name.
|
static java.lang.String |
DTSTAMP
Date-stamp property name.
|
static java.lang.String |
DTSTART
Start date property name.
|
static java.lang.String |
DUE
Due date property name.
|
static java.lang.String |
DURATION
Duration property name.
|
static java.lang.String |
EXDATE
Exclusion date property name.
|
static java.lang.String |
EXPERIMENTAL_PREFIX
Prefix for non-standard properties.
|
static java.lang.String |
EXRULE
Exclusion rule property name.
|
static java.lang.String |
EXTENDED_ADDRESS
VVENUE extended address property name.
|
static java.lang.String |
FREEBUSY
Free/busy property name.
|
static java.lang.String |
GEO
Geographic location property name.
|
static java.lang.String |
LAST_MODIFIED
Last modified date property name.
|
static java.lang.String |
LOCALITY
VVENUE locality property name.
|
static java.lang.String |
LOCATION
Location property name.
|
static java.lang.String |
LOCATION_TYPE
VVENUE location type property name.
|
static java.lang.String |
METHOD
iTIP method property name.
|
static java.lang.String |
NAME
VVENUE name property name.
|
static java.lang.String |
ORGANIZER
Organiser property name.
|
static java.lang.String |
PERCENT_COMPLETE
Percentage complete property name.
|
static java.lang.String |
POSTALCODE
VVENUE postal code property name.
|
static java.lang.String |
PRIORITY
Prority property name.
|
static java.lang.String |
PRODID
Product identifier property name.
|
static java.lang.String |
RDATE
Recurrence date property name.
|
static java.lang.String |
RECURRENCE_ID
Recurrence identifier property name.
|
static java.lang.String |
REGION
VVENUE region property name.
|
static java.lang.String |
RELATED_TO
Relationship property name.
|
static java.lang.String |
REPEAT
Repeat rule property name.
|
static java.lang.String |
REQUEST_STATUS
Request status property name.
|
static java.lang.String |
RESOURCES
Resources property name.
|
static java.lang.String |
RRULE
Recurrence rule property name.
|
static java.lang.String |
SEQUENCE
Sequence property name.
|
static java.lang.String |
STATUS
Status property name.
|
static java.lang.String |
STREET_ADDRESS
VVENUE street address property name.
|
static java.lang.String |
SUMMARY
Summary property name.
|
static java.lang.String |
TEL
VVENUE telephone property name.
|
static java.lang.String |
TRANSP
Transparency property name.
|
static java.lang.String |
TRIGGER
Alarm trigger property name.
|
static java.lang.String |
TZID
Timezone identifier property name.
|
static java.lang.String |
TZNAME
Timezone name property name.
|
static java.lang.String |
TZOFFSETFROM
Prior timezone offset property name.
|
static java.lang.String |
TZOFFSETTO
New timezone offset property name.
|
static java.lang.String |
TZURL
URL for timezone definition property name.
|
static java.lang.String |
UID
Unique identifier property name.
|
static java.lang.String |
URL
Uniform resource locator property name.
|
static java.lang.String |
VERSION
iCalendar version property name.
|
Modifier | Constructor and Description |
---|---|
protected |
Property(Property property)
Deprecated.
Use
copy() instead |
protected |
Property(java.lang.String aName,
ParameterList aList,
PropertyFactory factory) |
protected |
Property(java.lang.String aName,
PropertyFactory factory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Property |
copy()
Create a (deep) copy of this property.
|
boolean |
equals(java.lang.Object arg0) |
java.lang.String |
getName() |
Parameter |
getParameter(java.lang.String name)
Convenience method for retrieving a single parameter.
|
ParameterList |
getParameters() |
ParameterList |
getParameters(java.lang.String name)
Convenience method for retrieving a list of named parameters.
|
int |
hashCode() |
boolean |
isCalendarProperty()
Indicates whether this property is a calendar property.
|
abstract void |
setValue(java.lang.String aValue)
Sets the current value of the property.
|
java.lang.String |
toString() |
abstract void |
validate()
Perform validation on a property.
|
public static final java.lang.String PRODID
public static final java.lang.String VERSION
public static final java.lang.String CALSCALE
public static final java.lang.String METHOD
public static final java.lang.String BUSYTYPE
public static final java.lang.String CLASS
public static final java.lang.String CREATED
public static final java.lang.String DESCRIPTION
public static final java.lang.String DTSTART
public static final java.lang.String GEO
public static final java.lang.String LAST_MODIFIED
public static final java.lang.String LOCATION
public static final java.lang.String ORGANIZER
public static final java.lang.String PERCENT_COMPLETE
public static final java.lang.String PRIORITY
public static final java.lang.String DTSTAMP
public static final java.lang.String SEQUENCE
public static final java.lang.String STATUS
public static final java.lang.String SUMMARY
public static final java.lang.String TRANSP
public static final java.lang.String UID
public static final java.lang.String URL
public static final java.lang.String RECURRENCE_ID
public static final java.lang.String COMPLETED
public static final java.lang.String DUE
public static final java.lang.String FREEBUSY
public static final java.lang.String TZID
public static final java.lang.String TZNAME
public static final java.lang.String TZOFFSETFROM
public static final java.lang.String TZOFFSETTO
public static final java.lang.String TZURL
public static final java.lang.String ACTION
public static final java.lang.String REPEAT
public static final java.lang.String TRIGGER
public static final java.lang.String REQUEST_STATUS
public static final java.lang.String DTEND
public static final java.lang.String DURATION
public static final java.lang.String ATTACH
public static final java.lang.String ATTENDEE
public static final java.lang.String CATEGORIES
public static final java.lang.String COMMENT
public static final java.lang.String CONTACT
public static final java.lang.String EXDATE
public static final java.lang.String EXRULE
public static final java.lang.String RELATED_TO
public static final java.lang.String RESOURCES
public static final java.lang.String RDATE
public static final java.lang.String RRULE
public static final java.lang.String EXPERIMENTAL_PREFIX
public static final java.lang.String COUNTRY
public static final java.lang.String EXTENDED_ADDRESS
public static final java.lang.String LOCALITY
public static final java.lang.String LOCATION_TYPE
public static final java.lang.String NAME
public static final java.lang.String POSTALCODE
public static final java.lang.String REGION
public static final java.lang.String STREET_ADDRESS
public static final java.lang.String TEL
protected Property(java.lang.String aName, PropertyFactory factory)
aName
- property namefactory
- the factory used to create the property instanceprotected Property(java.lang.String aName, ParameterList aList, PropertyFactory factory)
aName
- a property identifieraList
- a list of initial parametersfactory
- the factory used to create the property instanceprotected Property(Property property) throws java.io.IOException, java.net.URISyntaxException, java.text.ParseException
copy()
insteadproperty
- a property to copyjava.net.URISyntaxException
- where the specified property contains an invalid URI valuejava.text.ParseException
- where the specified property has invalid datajava.io.IOException
- where an error occurs reading data from the specified propertypublic final java.lang.String toString()
toString
in class java.lang.Object
public boolean isCalendarProperty()
public final java.lang.String getName()
public final ParameterList getParameters()
public final ParameterList getParameters(java.lang.String name)
name
- name of parameters to retrievepublic final Parameter getParameter(java.lang.String name)
name
- name of the parameter to retrievepublic abstract void setValue(java.lang.String aValue) throws java.io.IOException, java.net.URISyntaxException, java.text.ParseException
aValue
- a string representation of the property valuejava.io.IOException
- possibly thrown by setting the value of certain propertiesjava.net.URISyntaxException
- possibly thrown by setting the value of certain propertiesjava.text.ParseException
- possibly thrown by setting the value of certain propertiespublic abstract void validate() throws ValidationException
ValidationException
- where the property is not in a valid statepublic final boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Property copy() throws java.io.IOException, java.net.URISyntaxException, java.text.ParseException
java.io.IOException
- where an error occurs reading property datajava.net.URISyntaxException
- where the property contains an invalid URI valuejava.text.ParseException
- where the property contains an invalid date value