public class FileDescription extends Object
Properties of file to be signed.
Constructor and Description |
---|
FileDescription(String guid)
Create File Description object with specified file id - file name or remote resource name.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseName()
Gets the file name without extension.
|
Date |
getCreated()
Date of created.
|
boolean |
getExists()
Returns if specified Guid file exists.
|
String |
getExtension()
Gets the file extension.
|
int |
getFileType()
File Location Type - Undefined, Local, Network.
|
String |
getGUID()
Unique identifier for file - absolute or relative path, resource or URL.
|
Date |
getLastModified()
Date of last modified.
|
String |
getName()
Name of file.
|
long |
getSize()
Size of file.
|
void |
setCreated(Date value)
Date of created.
|
void |
setFileType(int value)
File Location Type - Undefined, Local, Network.
|
void |
setGUID(String value)
Unique identifier for file - absolute or relative path, resource or URL.
|
void |
setLastModified(Date value)
Date of last modified.
|
void |
setName(String value)
Name of file.
|
void |
setSize(long value)
Size of file.
|
static FileDescription |
to_FileDescription(String guid)
Implicit conversion from string to FileDescription.
|
String |
toString()
Overrides ToString method
|
public FileDescription(String guid)
Create File Description object with specified file id - file name or remote resource name.
guid
- Unique file or resource identifier. Short file name for Local Path.public String getBaseName()
Gets the file name without extension.
public Date getCreated()
Date of created.
public boolean getExists()
Returns if specified Guid file exists.
public String getExtension()
Gets the file extension.
public int getFileType()
File Location Type - Undefined, Local, Network.
public String getGUID()
Unique identifier for file - absolute or relative path, resource or URL.
public Date getLastModified()
Date of last modified.
public String getName()
Name of file.
public long getSize()
Size of file.
public void setCreated(Date value)
Date of created.
public void setFileType(int value)
File Location Type - Undefined, Local, Network.
public void setGUID(String value)
Unique identifier for file - absolute or relative path, resource or URL.
public void setLastModified(Date value)
Date of last modified.
public void setName(String value)
Name of file.
public void setSize(long value)
Size of file.
public static FileDescription to_FileDescription(String guid)
Implicit conversion from string to FileDescription.
guid
- File guid.Copyright © 2018. All rights reserved.