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