org.YoUmail
Class AttachmentList

java.lang.Object
  extended byorg.YoUmail.AttachmentList

public class AttachmentList
extends java.lang.Object

附件集DTO

Version:
1.0 2004-1-26
Author:
topmint

Field Summary
private  java.util.ArrayList attachment
          用ArrayList存储附件集
 
Constructor Summary
AttachmentList()
           
 
Method Summary
 void add(Attachment attach)
          增加附件
 Attachment get(int index)
          返回指定的附件
 Attachment[] getAttachments()
          把存储的对象转换成附件对象
 int getSize()
          附件数
 int getTotalSize()
          合计大小
 void remove(int index)
          删除附件
 java.lang.String toString()
          描述上传附件情况,主要用于编辑时的附件栏显示
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attachment

private java.util.ArrayList attachment
用ArrayList存储附件集

Constructor Detail

AttachmentList

public AttachmentList()
Method Detail

getAttachments

public Attachment[] getAttachments()
把存储的对象转换成附件对象

Returns:
附件集

add

public void add(Attachment attach)
增加附件

Parameters:
attach -

remove

public void remove(int index)
删除附件

Parameters:
index - 索引

getTotalSize

public int getTotalSize()
合计大小

Returns:
合计大小

getSize

public int getSize()
附件数

Returns:
附件数

get

public Attachment get(int index)
返回指定的附件

Parameters:
index - 指定的索引
Returns:
附件

toString

public java.lang.String toString()
描述上传附件情况,主要用于编辑时的附件栏显示

Returns:
上传附件情况