RelatedProperty
This class represents the "RELATED" property
This class should be called with two arguments, the first an array of the parameters, and the second the value of the property
The only acceptable parameters of
RelatedProperty
areValueParameter
,LanguageParameter
,MediatypeParameter
,PIDParameter
,PrefParameter
,IndexParameter
,AltidParameter
,TypeParameter
andAnyParameter
If you do not wish that the property have any parameters, leave the first argument array empty
The value of
RelatedProperty
should be of typeURIType
orTextType
new RelatedProperty(
[new TypeParameter("relatedproperty", new ParameterValueType("friend"))],
new URIType("uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6"),
);
const relPropVal = new TextType(
"Please contact my assistant Jane Doe for any inquiries.",
);
new RelatedProperty(
[
new TypeParameter("relatedproperty", new ParameterValueType("co-worker")),
new ValueParameter(relPropVal),
],
relPropVal,
);