Class VLocation
java.lang.Object
net.fortuna.ical4j.model.Component
net.fortuna.ical4j.model.component.VLocation
- All Implemented Interfaces:
Serializable,FluentComponent,PropertyContainer
$Id$ [May 1 2017]
Defines an iCalendar VLOCATION component.
Component name: VLOCATION
Purpose: This component provides rich information about the location
of an event using the structured data property or optionally a
plain text typed value.
Conformance: This component can be specified multiple times in a
"VEVENT", "VTODO", "VJOURNAL", "VFREEBUSY" or "PARTICIPANT"
calendar component.
Description: There may be a number of locations associated with an
event. This component provides detailed information about a
location.
When used in a component the value of this property provides
information about the event venue or of related services such as
parking, dining, stations etc..
STRUCTURED-DATA properties if present may refer to representations
of the location - such as a vCard.
Format Definition:
This component is defined by the following notation:
locationc = "BEGIN" ":" "VLOCATION" CRLF
locprop
"END" ":" "VLOCATION" CRLF
locprop = ; the elements herein may appear in any order,
; and the order is not significant.
uid
(name)
(description)
(geo)
(loctype)
sdataprop
iana-prop
The NAME property is defined in [RFC7986]
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class net.fortuna.ical4j.model.Component
AVAILABLE, BEGIN, components, END, EXPERIMENTAL_PREFIX, PARTICIPANT, VALARM, VAVAILABILITY, VEVENT, VFREEBUSY, VJOURNAL, VLOCATION, VRESOURCE, VTIMEZONE, VTODO, VVENUE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.VLocation(PropertyList<Property> properties) Constructor.VLocation(PropertyList<Property> properties, ComponentList<Component> components) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal DescriptionReturns the optional description property.final GeogetGeo()Returns the optional LocationType property.final Namefinal PropertyList<StructuredData>final UidgetUid()Returns the UID property of this component if available.validate(boolean recurse) Perform validation on a component.Methods inherited from class net.fortuna.ical4j.model.Component
calculateRecurrenceSet, copy, equals, getFluentTarget, getName, getProperties, getRequiredProperty, hashCode, toString, validate, validatePropertiesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fortuna.ical4j.model.FluentComponent
withPropertyMethods inherited from interface net.fortuna.ical4j.model.PropertyContainer
getProperties, getProperty
-
Constructor Details
-
VLocation
public VLocation()Default constructor. -
VLocation
Constructor.- Parameters:
properties- a list of properties
-
VLocation
Constructor.- Parameters:
properties- a list of properties
-
-
Method Details
-
validate
Perform validation on a component.- Specified by:
validatein classComponent- Parameters:
recurse- indicates whether to validate the component's properties- Throws:
ValidationException- where the component is not in a valid state
-
getDescription
Returns the optional description property.- Returns:
- the DESCRIPTION property or null if not specified
-
getGeo
- Returns:
- the optional geo property for a vlocation
-
getLocationType
Returns the optional LocationType property.- Returns:
- the LocationType property or null if not specified
-
getNameProp
- Returns:
- the optional name property for a vlocation
-
getUid
Returns the UID property of this component if available.- Returns:
- a Uid instance, or null if no UID property exists
-
getStructuredData
- Returns:
- the optional structured data properties
-