org.eclipse.mylar.tasks.core
Class RepositoryAttachment

java.lang.Object
  extended by org.eclipse.mylar.tasks.core.AttributeContainer
      extended by org.eclipse.mylar.tasks.core.RepositoryAttachment
All Implemented Interfaces:
java.io.Serializable

public class RepositoryAttachment
extends AttributeContainer
implements java.io.Serializable

Author:
Rob Elves, Mik Kersten
See Also:
Serialized Form

Field Summary
private  java.lang.String creator
           
private  boolean isObsolete
           
private  boolean isPatch
           
private  TaskRepository repository
           
private static long serialVersionUID
           
 
Fields inherited from class org.eclipse.mylar.tasks.core.AttributeContainer
ERROR_NO_ATTRIBUTE_FACTORY
 
Constructor Summary
RepositoryAttachment(TaskRepository repository, AbstractAttributeFactory attributeFactory)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getCreator()
           
 java.lang.String getDateCreated()
          Get the time that this attachment was posted
 java.lang.String getDescription()
           
 int getId()
           
 TaskRepository getRepository()
           
 java.lang.String getUrl()
           
 boolean isObsolete()
           
 boolean isPatch()
           
 void setCreator(java.lang.String creator)
           
 void setObsolete(boolean isObsolete)
           
 void setPatch(boolean b)
           
 void setRepository(TaskRepository repository)
           
 
Methods inherited from class org.eclipse.mylar.tasks.core.AttributeContainer
addAttribute, addAttributeValue, getAttribute, getAttributes, getAttributeValue, getAttributeValues, removeAllAttributes, removeAttribute, setAttributeFactory, setAttributeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

private transient TaskRepository repository

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

isObsolete

private boolean isObsolete

creator

private java.lang.String creator

isPatch

private boolean isPatch
Constructor Detail

RepositoryAttachment

public RepositoryAttachment(TaskRepository repository,
                            AbstractAttributeFactory attributeFactory)
Method Detail

isObsolete

public boolean isObsolete()

setObsolete

public void setObsolete(boolean isObsolete)

getDateCreated

public java.lang.String getDateCreated()
Get the time that this attachment was posted

Returns:
The attachment's creation timestamp

getCreator

public java.lang.String getCreator()

setCreator

public void setCreator(java.lang.String creator)

getDescription

public java.lang.String getDescription()

getId

public int getId()

getUrl

public java.lang.String getUrl()

getContentType

public java.lang.String getContentType()

isPatch

public boolean isPatch()

setPatch

public void setPatch(boolean b)

getRepository

public TaskRepository getRepository()

setRepository

public void setRepository(TaskRepository repository)