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.core.common.transfer; 018 019import com.echothree.util.common.transfer.BaseTransfer; 020 021public class EntityTimeAttributeTransfer 022 extends BaseTransfer { 023 024 private EntityAttributeTransfer entityAttribute; 025 private EntityInstanceTransfer entityInstance; 026 private String timeAttribute; 027 private Long unformattedTimeAttribute; 028 029 /** Creates a new instance of EntityTimeAttributeTransfer */ 030 public EntityTimeAttributeTransfer(EntityAttributeTransfer entityAttribute, EntityInstanceTransfer entityInstance, String timeAttribute, 031 Long unformattedTimeAttribute) { 032 this.entityAttribute = entityAttribute; 033 this.entityInstance = entityInstance; 034 this.timeAttribute = timeAttribute; 035 this.unformattedTimeAttribute = unformattedTimeAttribute; 036 } 037 038 /** 039 * Returns the entityAttribute. 040 * @return the entityAttribute 041 */ 042 public EntityAttributeTransfer getEntityAttribute() { 043 return entityAttribute; 044 } 045 046 /** 047 * Sets the entityAttribute. 048 * @param entityAttribute the entityAttribute to set 049 */ 050 public void setEntityAttribute(EntityAttributeTransfer entityAttribute) { 051 this.entityAttribute = entityAttribute; 052 } 053 054 /** 055 * Returns the entityInstance. 056 * @return the entityInstance 057 */ 058 @Override 059 public EntityInstanceTransfer getEntityInstance() { 060 return entityInstance; 061 } 062 063 /** 064 * Sets the entityInstance. 065 * @param entityInstance the entityInstance to set 066 */ 067 @Override 068 public void setEntityInstance(EntityInstanceTransfer entityInstance) { 069 this.entityInstance = entityInstance; 070 } 071 072 /** 073 * Returns the timeAttribute. 074 * @return the timeAttribute 075 */ 076 public String getTimeAttribute() { 077 return timeAttribute; 078 } 079 080 /** 081 * Sets the timeAttribute. 082 * @param timeAttribute the timeAttribute to set 083 */ 084 public void setTimeAttribute(String timeAttribute) { 085 this.timeAttribute = timeAttribute; 086 } 087 088 /** 089 * Returns the unformattedTimeAttribute. 090 * @return the unformattedTimeAttribute 091 */ 092 public Long getUnformattedTimeAttribute() { 093 return unformattedTimeAttribute; 094 } 095 096 /** 097 * Sets the unformattedTimeAttribute. 098 * @param unformattedTimeAttribute the unformattedTimeAttribute to set 099 */ 100 public void setUnformattedTimeAttribute(Long unformattedTimeAttribute) { 101 this.unformattedTimeAttribute = unformattedTimeAttribute; 102 } 103 104}