java.lang.Object
net.fortuna.ical4j.model.Content
net.fortuna.ical4j.model.Component
net.fortuna.ical4j.model.component.VResource
- All Implemented Interfaces:
Serializable,Comparable<Component>,FluentComponent,PropertyContainer,PropertyListAccessor,Prototype<Component>
$Id$ [May 1 2017]
Defines an iCalendar VRESOURCE component.
Component name: VRESOURCE
Purpose: This component provides a typed reference to external
information about a resource or optionally a plain text typed
value. Typically a resource is anything that might be required or
used by a calendar entity and possibly has a directory entry.
Conformance: This component can be specified multiple times in a
"VEVENT", "VTODO", "VJOURNAL", "VFREEBUSY" or "PARTICIPANT"
calendar component.
Description: When used in a component this component provides
information about resources used for the event such as rooms,
projectors, conferencing capabilities.
The RESOURCE-TYPE value registry provides a place in which
resource types may be registered.
STRUCTURED-DATA properties if present may refer to representations
of the resource - such as a vCard.
Format Definition:
This component is defined by the following notation:
resourcec = "BEGIN" ":" "VRESOURCE" CRLF
resprop
"END" ":" "VRESOURCE" CRLF
resprop = ; the elements herein may appear in any order,
; and the order is not significant.
uid
(name)
(description)
(geo)
(restype)
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, properties, VALARM, VAVAILABILITY, VEVENT, VFREEBUSY, VJOURNAL, VLOCATION, VRESOURCE, VTIMEZONE, VTODO, VVENUEFields inherited from interface net.fortuna.ical4j.model.PropertyContainer
ADD_IF_NOT_PRESENT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.VResource(PropertyList properties) Constructor.VResource(PropertyList properties, ComponentList<Component> components) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal Optional<Description>Returns the optional description property.getGeo()Returns the optional ResourceType property.protected ComponentFactory<VResource>Returns a new component factory used to create deep copies.validate(boolean recurse) Perform validation on a component.Methods inherited from class net.fortuna.ical4j.model.Component
calculateRecurrenceSet, compareTo, copy, equals, getFluentTarget, getName, getProperties, getPropertyList, getUid, getValue, hashCode, setPropertyList, 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
add, addAll, remove, removeAll, removeIf, replace, withMethods inherited from interface net.fortuna.ical4j.model.PropertyListAccessor
getProperties, getProperty, getProperty, getRequiredProperty, getRequiredProperty
-
Constructor Details
-
VResource
public VResource()Default constructor. -
VResource
Constructor.- Parameters:
properties- a list of properties
-
VResource
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 vresource
-
getResourceType
Returns the optional ResourceType property.- Returns:
- the ResourceType property or null if not specified
-
getNameProp
- Returns:
- the optional name property for a vresource
-
getStructuredData
- Returns:
- the optional structured data properties
-
newFactory
Description copied from class:ComponentReturns a new component factory used to create deep copies.- Specified by:
newFactoryin classComponent- Returns:
- a component factory instance
-