001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.model.control.contact.common.transfer; 018 019import com.echothree.util.common.transfer.BaseTransfer; 020import com.echothree.util.common.transfer.ListWrapper; 021 022public class PostalAddressLineTransfer 023 extends BaseTransfer { 024 025 private PostalAddressFormatTransfer postalAddressFormat; 026 private Integer postalAddressLineSortOrder; 027 private String prefix; 028 private Boolean alwaysIncludePrefix; 029 private String suffix; 030 private Boolean alwaysIncludeSuffix; 031 private Boolean collapseIfEmpty; 032 033 private ListWrapper<PostalAddressLineElementTransfer> postalAddressLineElements; 034 035 /** Creates a new instance of PostalAddressLineTransfer */ 036 public PostalAddressLineTransfer(PostalAddressFormatTransfer postalAddressFormat, Integer postalAddressLineSortOrder, 037 String prefix, Boolean alwaysIncludePrefix, String suffix, Boolean alwaysIncludeSuffix, Boolean collapseIfEmpty) { 038 this.postalAddressFormat = postalAddressFormat; 039 this.postalAddressLineSortOrder = postalAddressLineSortOrder; 040 this.prefix = prefix; 041 this.alwaysIncludePrefix = alwaysIncludePrefix; 042 this.suffix = suffix; 043 this.alwaysIncludeSuffix = alwaysIncludeSuffix; 044 this.collapseIfEmpty = collapseIfEmpty; 045 } 046 047 public PostalAddressFormatTransfer getPostalAddressFormat() { 048 return postalAddressFormat; 049 } 050 051 public void setPostalAddressFormat(PostalAddressFormatTransfer postalAddressFormat) { 052 this.postalAddressFormat = postalAddressFormat; 053 } 054 055 public Integer getPostalAddressLineSortOrder() { 056 return postalAddressLineSortOrder; 057 } 058 059 public void setPostalAddressLineSortOrder(Integer postalAddressLineSortOrder) { 060 this.postalAddressLineSortOrder = postalAddressLineSortOrder; 061 } 062 063 public String getPrefix() { 064 return prefix; 065 } 066 067 public void setPrefix(String prefix) { 068 this.prefix = prefix; 069 } 070 071 public Boolean getAlwaysIncludePrefix() { 072 return alwaysIncludePrefix; 073 } 074 075 public void setAlwaysIncludePrefix(Boolean alwaysIncludePrefix) { 076 this.alwaysIncludePrefix = alwaysIncludePrefix; 077 } 078 079 public String getSuffix() { 080 return suffix; 081 } 082 083 public void setSuffix(String suffix) { 084 this.suffix = suffix; 085 } 086 087 public Boolean getAlwaysIncludeSuffix() { 088 return alwaysIncludeSuffix; 089 } 090 091 public void setAlwaysIncludeSuffix(Boolean alwaysIncludeSuffix) { 092 this.alwaysIncludeSuffix = alwaysIncludeSuffix; 093 } 094 095 public Boolean getCollapseIfEmpty() { 096 return collapseIfEmpty; 097 } 098 099 public void setCollapseIfEmpty(Boolean collapseIfEmpty) { 100 this.collapseIfEmpty = collapseIfEmpty; 101 } 102 103 public ListWrapper<PostalAddressLineElementTransfer> getPostalAddressLineElements() { 104 return postalAddressLineElements; 105 } 106 107 public void setPostalAddressLineElements(ListWrapper<PostalAddressLineElementTransfer> postalAddressLineElements) { 108 this.postalAddressLineElements = postalAddressLineElements; 109 } 110 111}