/** * Immutable person * * @param builder */ private Person(Builder builder) { _code = builder._code; _message = builder._message; _uuid = builder._uuid; _firstname = builder._firstname; _middelname = builder._middelname; _lastname = builder._lastname; _callname = builder._callname; _nameForAddressing = builder._nameForAddressing; _gender = builder._gender; _birthdate = builder._birthdate; _birthplace = builder._birthplace; _birthRegisteringAuthority = builder._birthRegisteringAuthority; _registerInformation = builder._registerInformation; _address = builder._address; _otherAddress = builder._otherAddress; _movingDate = builder._movingDate; // Now name and address have been set _postalLabel = new util.Converters().ToPostalLabel(this); _contact = builder._contact; _nextOfKinContact = builder._nextOfKinContact; _effect = builder._effect; _relations = builder._relations; _tilstand = builder._tilstand; _tidspunkt = builder._tidspunkt; _relationsWithPerson = builder._relationsWithPerson; }
private Tilstand(Builder builder) { _civilStatusKode = builder._civilStatusKode; _civilTilstandsVirkning = builder._civilTilstandsVirkning; _livStatusKode = builder._livStatusKode; _livTilstandsVirkning = builder._livTilstandsVirkning; }
private Relationship(Builder builder) { _comment = builder._comment; _referenceUrn = builder._referenceUrn; _referenceUuid = builder._referenceUuid; _effect = builder._effect; _type = builder._type; }
private CprCitizenData(Builder builder) { _isMemberOfTheChurch = builder._isMemberOfTheChurch; _isResearcherProtected = builder._isResearcherProtected; _isSocialSecurityNumberValid = builder._isSocialSecurityNumberValid; _isNameAdressProtected = builder._isNameAdressProtected; _isPhoneNumberProtected = builder._isPhoneNumberProtected; _personNationalityCode = builder._personNationalityCode; _socialSecurityNumber = builder._socialSecurityNumber; _virkning = builder._virkning; }
public Builder virkning(IVirkning newVirkning) { _virkning = newVirkning; return(this); }
public Builder effect(IVirkning newEffect) { _effect = newEffect; return(this); }
public Builder livTilstandsVirkning(IVirkning virkning) { _livTilstandsVirkning = virkning; return(this); }
public Builder civilTilstandsVirkning(IVirkning virkning) { _civilTilstandsVirkning = virkning; return(this); }