VComponent class abstract
Common properties
Constructors
- VComponent(String name, [VComponent? parent])
Properties
- canReply → bool
-
Checks if this component can reply in its current state
no setter
-
children
→ List<
VComponent> -
The children of this component, empty when there a no children
final
- componentType → VComponentType
-
The type of the component, convenient for switch cases
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isVersion2 → bool
-
Checks if this version is
2.0
, which is assumed to be true unless a different version is specified.no setter - name → String
-
The name of the component like
VEVENT
orVCALENDAR
final - parent → VComponent?
-
The parent component, if any
final
- productId ↔ String?
-
Retrieves the product identifier that generated this iCalendar object
getter/setter pair
-
properties
→ List<
Property> -
The properties of the component
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version ↔ String?
-
Gets the version of this calendar, typically
2.0
getter/setter pair
Methods
-
checkMandatoryProperty(
String name) → void -
Checks if the property with the given
name
is present. -
checkValidity(
) → void - Classes can implement this to check the validity.
-
copy(
) → VComponent - Copies this component
-
findProperties(
String propertyName) → Iterable< Property> -
Retrieves all properties with the name
propertyName
-
getProperties<
T extends Property> (String propertyName) → Iterable< T> -
Retrieves all matching properties with the name
propertyName
. -
getProperty<
T extends Property> (String propertyName) → T? -
Retrieves the property with the
propertyName
-
instantiate(
{VComponent? parent}) → VComponent - Creates a new instance of this component
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeProperty(
String propertyName) → void -
Removes all properties with the specified
propertyName
-
render(
StringBuffer buffer) → void -
reply(
AttendeeProperty attendee, {VComponent? parent, String? comment}) → VComponent - Creates a reply for this component.
-
setOrRemoveProperties(
String propertyName, List< Property> ? props) → void -
Sets or removes the given
props
with the givenpropertyName
-
setOrRemoveProperty(
String propertyName, Property? property) → void -
Sets the given
property
when it is not null and otherwise removes the property with the givenpropertyName
. -
setProperties(
String propertyName, List< Property> props) → void -
Sets the given
props
by first removing any properties with the givenpropertyName
. -
setProperty(
Property property) → void -
Sets the property
property
, replacing other properties with theproperty.name
first. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String propertyName) → Property? -
Retrieves the first property with the name
propertyName
-
operator []=(
String propertyName, Property property) → void -
Sets the property
property
, replacing other properties with the givenpropertyName
first.
Static Methods
-
parse(
String text, {Property? customParser(String name, String definition)?}) → VComponent -
Parses the component from the specified
text
. -
parseLines(
List< String> lines, {Property? customParser(String name, String definition)?}) → VComponent -
Parses the component from the specified text
lines
. -
unfold(
String input) → List< String> -
Unfolds the given
input
text, usually with lines separated by\r\n
-
unfoldStandardCompliantLines(
List< String> input) → List<String> -
Unfolds the given
input
lines, originally separated by\r\n