diff options
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracComment.java')
-rw-r--r-- | org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracComment.java | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracComment.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracComment.java new file mode 100644 index 000000000..d1be7585f --- /dev/null +++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/model/TracComment.java @@ -0,0 +1,86 @@ +/******************************************************************************* + * Copyright (c) 2004 - 2006 Mylar committers and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + *******************************************************************************/ + +package org.eclipse.mylar.internal.trac.core.model; + +import java.util.Date; + +/** + * @author Steffen Pingel + */ +public class TracComment { + + private String author; + + private Date created; + + private String field; + + private String newValue; + + private String oldValue; + + private boolean permanent; + + public TracComment() { + } + + public String getAuthor() { + return author; + } + + public Date getCreated() { + return created; + } + + public String getField() { + return field; + } + + public String getNewValue() { + return newValue; + } + + public String getOldValue() { + return oldValue; + } + + public boolean isPermanent() { + return permanent; + } + + public void setAuthor(String author) { + this.author = author; + } + + public void setCreated(Date created) { + this.created = created; + } + + public void setField(String field) { + this.field = field; + } + + public void setNewValue(String newValue) { + this.newValue = newValue; + } + + public void setOldValue(String oldValue) { + this.oldValue = oldValue; + } + + public void setPermanent(boolean permanent) { + this.permanent = permanent; + } + + @Override + public String toString() { + return "[" + field + "] " + author + ": " + oldValue + " -> " + newValue; + } + +} |