Exemple #1
0
        /**
         * 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;
        }
Exemple #2
0
 public Builder tilstand(ITilstand newTilstand)
 {
     _tilstand = newTilstand;
     return(this);
 }