AbstractFieldDetails
Object Hierarchy:
Description:
public abstract class AbstractFieldDetails<
T> :
Object
Object representing any type of value that can have some vCard-like parameters associated with it.
Some contact details, like phone numbers or URLs, can have some extra details associated with them. For instance, a phone number
expressed in vcard notation as `tel;type=work,voice:(111) 555-1234` would be represented as a AbstractFieldDetails with value "(111) 555-
1234" and with parameters `['type': ('work', 'voice')]`.
The parameter name "type" with values "work", "home", or "other" are common amongst most vCard attributes (and thus most
AbstractFieldDetails-derived classes). A "type" of "pref" may be used to indicate a preferred
AbstractFieldDetails.value amongst many. See specific classes
for information on additional parameters and values specific to that class.
See RFC2426 for more details on pre-defined parameter names and values.
Since:
0.6.0
Namespace: Folks
Package: folks
Content:
Constants:
- public const unowned
string
PARAM_TYPE
Parameter name for classifying the type of value this field
contains.
- public const unowned
string
PARAM_TYPE_HOME
Parameter value for home-related field values.
- public const unowned
string
PARAM_TYPE_WORK
Parameter value for work-related field values.
- public const unowned
string
PARAM_TYPE_OTHER
Parameter value for miscellaneous field values.
Properties:
Creation methods:
Methods:
- public
Collection
<string
>? get_parameter_values (string
parameter_name)
Get the values for a parameter
- public void add_parameter (
string
parameter_name, string
parameter_value)
Add a new value for a parameter.
- public void set_parameter (
string
parameter_name, string
parameter_value)
Set the value of a parameter.
- public void extend_parameters (
MultiMap
<string
,string
> additional)
Extend the existing parameters.
- public void remove_parameter_all (
string
parameter_name)
Remove all instances of a parameter.
- public virtual
bool
equal (AbstractFieldDetails<T> that)
- public virtual
bool
parameters_equal (AbstractFieldDetails<T> that)
An equality function which only considers parameters.
- public virtual
bool
values_equal (AbstractFieldDetails<T> that)
An equality function which does not consider parameters.
- public virtual
uint
hash ()