1+ import { ValueMapping , TermMapping , TermWrapper , ObjectMapping } from "rdfjs-wrapper" ;
2+
3+ export class Address extends TermWrapper {
4+
5+ get streetAddress ( ) : string | undefined {
6+ return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#street-address" , ValueMapping . literalToString ) ;
7+ }
8+ set streetAddress ( value : string ) {
9+ this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#street-address" , value , TermMapping . stringToLiteral ) ;
10+ }
11+ get locality ( ) : string | undefined {
12+ return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#locality" , ValueMapping . literalToString ) ;
13+ }
14+ set locality ( value : string ) {
15+ this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#locality" , value , TermMapping . stringToLiteral ) ;
16+ }
17+ get postalCode ( ) : string | undefined {
18+ return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#postal-code" , ValueMapping . literalToString ) ;
19+ }
20+ set postalCode ( value : string ) {
21+ this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#postal-code" , value , TermMapping . stringToLiteral ) ;
22+ }
23+ get region ( ) : string | undefined {
24+ return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#region" , ValueMapping . literalToString ) ;
25+ }
26+ set region ( value : string ) {
27+ this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#region" , value , TermMapping . stringToLiteral ) ;
28+ }
29+ get countryName ( ) : string | undefined {
30+ return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#country-name" , ValueMapping . literalToString ) ;
31+ }
32+ set countryName ( value : string ) {
33+ this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#country-name" , value , TermMapping . stringToLiteral ) ;
34+ }
35+ }
0 commit comments