public class FileData extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
UNDEFINED_SIZE
If file size cannot be determined in some rare cases this constant should be used.
|
| Constructor and Description |
|---|
FileData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalData(AdditionalData data) |
Map<Class<? extends AdditionalData>,AdditionalData> |
getAdditionalData() |
<T extends AdditionalData> |
getAdditionalData(Class<T> key) |
String |
getAuthor()
The author of the last modification.
|
String |
getBranch()
Branch where the file can be found.
|
String |
getComment()
The comment for the file.
|
Date |
getModifiedAt()
The last modification time.
|
String |
getName()
The full path of the file from the root folder.
|
Path |
getPath() |
long |
getSize()
The file size in bytes.
|
String |
getUniqueId() |
String |
getVersion()
The version of the file.
|
boolean |
isDeleted()
The mark that the file was deleted.
|
void |
setAuthor(String author) |
void |
setBranch(String branch) |
void |
setComment(String comment) |
void |
setDeleted(boolean deleted) |
void |
setModifiedAt(Date modifiedAt) |
void |
setName(String name) |
void |
setPath(Path path) |
void |
setSize(long size) |
void |
setUniqueId(String uniqueId) |
void |
setVersion(String version) |
public static final long UNDEFINED_SIZE
public String getName()
public void setName(String name)
public long getSize()
public void setSize(long size)
public String getAuthor()
public void setAuthor(String author)
public String getComment()
public void setComment(String comment)
public Date getModifiedAt()
public void setModifiedAt(Date modifiedAt)
public String getVersion()
public void setVersion(String version)
public boolean isDeleted()
public void setDeleted(boolean deleted)
public String getBranch()
public void setBranch(String branch)
public String getUniqueId()
public void setUniqueId(String uniqueId)
public void addAdditionalData(AdditionalData data)
public <T extends AdditionalData> T getAdditionalData(Class<T> key)
public Map<Class<? extends AdditionalData>,AdditionalData> getAdditionalData()
public Path getPath()
public void setPath(Path path)
Copyright © 2004–2021 OpenL Tablets. All rights reserved.