1- import { ValueMapping , TermMapping , TermWrapper , ObjectMapping } from "rdfjs-wrapper" ;
1+ import { TermWrapper , ValueMapping , TermMapping } from "rdfjs-wrapper" ;
22
33export class Address extends TermWrapper {
44
55 get streetAddress ( ) : string | undefined {
66 return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#street-address" , ValueMapping . literalToString ) ;
77 }
8- set streetAddress ( value : string ) {
8+ set streetAddress ( value : string | undefined ) {
99 this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#street-address" , value , TermMapping . stringToLiteral ) ;
1010 }
1111 get locality ( ) : string | undefined {
1212 return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#locality" , ValueMapping . literalToString ) ;
1313 }
14- set locality ( value : string ) {
14+ set locality ( value : string | undefined ) {
1515 this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#locality" , value , TermMapping . stringToLiteral ) ;
1616 }
1717 get postalCode ( ) : string | undefined {
1818 return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#postal-code" , ValueMapping . literalToString ) ;
1919 }
20- set postalCode ( value : string ) {
20+ set postalCode ( value : string | undefined ) {
2121 this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#postal-code" , value , TermMapping . stringToLiteral ) ;
2222 }
2323 get region ( ) : string | undefined {
2424 return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#region" , ValueMapping . literalToString ) ;
2525 }
26- set region ( value : string ) {
26+ set region ( value : string | undefined ) {
2727 this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#region" , value , TermMapping . stringToLiteral ) ;
2828 }
2929 get countryName ( ) : string | undefined {
3030 return this . singularNullable ( "http://www.w3.org/2006/vcard/ns#country-name" , ValueMapping . literalToString ) ;
3131 }
32- set countryName ( value : string ) {
32+ set countryName ( value : string | undefined ) {
3333 this . overwriteNullable ( "http://www.w3.org/2006/vcard/ns#country-name" , value , TermMapping . stringToLiteral ) ;
3434 }
35- }
35+ }
0 commit comments