|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.csp.tm.domain.attachment.Attachment
@Entity public class Attachment
| Constructor Summary | |
|---|---|
Attachment()
|
|
Attachment(String name)
|
|
| Method Summary | |
|---|---|
Date |
getAddedOn()
|
AttachmentContent |
getContent()
|
String |
getFormattedSize()
|
String |
getFormattedSize(Locale locale)
|
Long |
getId()
|
String |
getName()
|
String |
getShortName()
When dealing with name this is the one you want most of the time |
Long |
getSize()
|
String |
getType()
|
Attachment |
hardCopy()
will perform a deep copy of this Attachment. |
void |
setAddedOn(Date addedOn)
|
void |
setContent(AttachmentContent content)
|
void |
setName(String name)
sets the full name (including extensions). |
void |
setShortName(String shortName)
When dealing with names this is the one you want most of the time |
void |
setSize(Long size)
|
void |
setType(String strType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Attachment()
public Attachment(String name)
| Method Detail |
|---|
public Long getId()
public AttachmentContent getContent()
public void setContent(AttachmentContent content)
public String getName()
public void setName(String name)
String - name@NotBlank public String getShortName()
public void setShortName(String shortName)
shortName - represents the filename without extensionpublic final void setType(String strType)
public final String getType()
public final void setAddedOn(Date addedOn)
public final Date getAddedOn()
public Long getSize()
public void setSize(Long size)
public String getFormattedSize()
public String getFormattedSize(Locale locale)
public Attachment hardCopy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||