public class Attachment extends Object
| 构造器和说明 |
|---|
Attachment(String name,
Path file)
附件对象构造对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.ofdrw.core.attachment.CT_Attachment |
getAttachment() |
LocalDate |
getCreationDate()
|
LocalDateTime |
getCreationDateTime()
【可选 属性】
获取 创建时间
|
Path |
getFile()
获取附件文件
|
String |
getFormat()
【可选 属性】
获取 附件格式
|
LocalDate |
getModDate()
|
LocalDateTime |
getModDateTime()
【可选 属性】
获取 修改时间
|
String |
getName()
【必选 属性】
获取 附件名称
|
String |
getUsage()
【可选 属性】
获取 附件用途
默认值为 none
|
Boolean |
getVisible()
【可选 属相】
获取 附件是否可见
默认值为 true
|
Attachment |
setCreationDate(LocalDate creationDate)
|
Attachment |
setCreationDate(LocalDateTime creationDate)
【可选 属性】
设置 创建时间
|
Attachment |
setFile(Path file)
设置附件文件
|
Attachment |
setFormat(String format)
【可选 属性】
设置 附件格式
|
Attachment |
setModDate(LocalDate modDate)
|
Attachment |
setModDateTime(LocalDateTime modDate)
【可选 属性】
设置 修改时间
|
Attachment |
setName(String attachmentName)
【必选 属性】
设置 附件名称
|
Attachment |
setUsage(String usage)
【可选 属性】
设置 附件用途
默认值为 none
|
Attachment |
setVisible(Boolean visible)
【可选 属相】
设置 附件是否可见
默认值为 true
|
public Attachment setName(String attachmentName)
attachmentName - 附件名称public String getName()
public Attachment setFormat(String format)
format - 附件格式public String getFormat()
@Deprecated public Attachment setCreationDate(LocalDate creationDate)
creationDate - 创建时间public Attachment setCreationDate(LocalDateTime creationDate)
creationDate - 创建时间@Deprecated public LocalDate getCreationDate()
public LocalDateTime getCreationDateTime()
@Deprecated public Attachment setModDate(LocalDate modDate)
modDate - 修改时间public Attachment setModDateTime(LocalDateTime modDate)
modDate - 修改时间@Deprecated public LocalDate getModDate()
public LocalDateTime getModDateTime()
public Attachment setVisible(Boolean visible)
默认值为 true
visible - 附件是否可见public Boolean getVisible()
默认值为 true
public Attachment setUsage(String usage)
默认值为 none
usage - 附件用途public String getUsage()
默认值为 none
public Path getFile()
public Attachment setFile(Path file)
file - 附件文件public org.ofdrw.core.attachment.CT_Attachment getAttachment()
Copyright © 2024. All rights reserved.