public class CloudwordsFile extends Object
Project
, the reference material for a Project
, etc.Constructor and Description |
---|
CloudwordsFile() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getContentPath()
Get the API-accessible path to download the actual binary content of this file from
Cloudwords.
|
Date |
getCreatedDate()
Get the
CloudwordsFile created date. |
String |
getFileContents()
Get the String representation of the content inside the binary file.
|
String |
getFilename()
Get the file name.
|
Integer |
getId()
Get the Cloudwords ID.
|
String |
getPath()
Get the API-accessible path to this CloudwordsFile's metadata.
|
Long |
getSizeInKilobytes()
Get the size of the binary content in kilobytes.
|
int |
hashCode() |
void |
setContentPath(String contentPath)
Set the content path.
|
void |
setCreatedDate(Date createdDate)
Set the
CloudwordsFile created date. |
void |
setFileContents(String fileContents)
Set the String representation of the content inside the binary file.
|
void |
setFilename(String filename)
Set the file name.
|
void |
setId(Integer id)
Set the Cloudwords ID.
|
void |
setPath(String path)
Set the API-accessible path to this CloudwordsFile's metadata.
|
void |
setSizeInKilobytes(Long sizeInKilobytes)
Set the size of the binary content in kilobytes.
|
String |
toString() |
public Integer getId()
public void setId(Integer id)
id
- The ID of this resourcepublic String getFilename()
public void setFilename(String filename)
filename
- public String getContentPath()
CloudwordsFile
public void setContentPath(String contentPath)
contentPath
- The URL to the binary content of this CloudwordsFile
public Long getSizeInKilobytes()
public void setSizeInKilobytes(Long sizeInKilobytes)
sizeInKilobytes
- size in kilobytespublic String getFileContents()
public void setFileContents(String fileContents)
fileContents
- The list of contents in the binary file, up to a certain number of characterspublic Date getCreatedDate()
CloudwordsFile
created date. Please note that the Date object contains the
full time, date and time zone information.
Please refer to the API documentation for more information on date handling.
CloudwordsFile
was created.public void setCreatedDate(Date createdDate)
CloudwordsFile
created date. (Note: CloudwordsFile
created date is a
read-only field with the Cloudwords API - setting it and sending it to the API will have no
effect.)createdDate
- The date this CloudwordsFile
was created.public String getPath()
CloudwordsFile
. Please refer to the API documentation
for more detail.CloudwordsFile
public void setPath(String path)
CloudwordsFile
representation returned from the API).path
- The URL to this CloudwordsFile
Copyright © 2016. All rights reserved.