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 final String getBaseName()
Gets the file name without extension.
public final Date getCreated()
Date of created.
public final boolean getExists()
Returns if specified Guid file exists.
public final String getExtension()
Gets the file extension.
public final int getFileType()
File Location Type - Undefined, Local, Network.
public final String getGUID()
Unique identifier for file - absolute or relative path, resource or URL.
public final Date getLastModified()
Date of last modified.
public final String getName()
Name of file.
public final long getSize()
Size of file.
public final void setCreated(Date value)
Date of created.
public final void setFileType(int value)
File Location Type - Undefined, Local, Network.
public final void setGUID(String value)
Unique identifier for file - absolute or relative path, resource or URL.
public final void setLastModified(Date value)
Date of last modified.
public final void setName(String value)
Name of file.
public final void setSize(long value)
Size of file.
public static FileDescription to_FileDescription(String guid)
Implicit conversion from string to FileDescription.
guid
- File guid.Copyright © 2019. All rights reserved.