net.netheos.pcsapi.models
Class CFile

java.lang.Object
  extended by net.netheos.pcsapi.models.CFile
Direct Known Subclasses:
CBlob, CFolder

public abstract class CFile
extends Object

Represents a file (folder or blob) located in the cloud


Field Summary
protected  CMetadata metadata
           
protected  Date modificationDate
           
 
Constructor Summary
CFile(CPath path)
           
 
Method Summary
 CMetadata getMetadata()
          Get the file metadata
 Date getModificationDate()
          Get the last modification date
 CPath getPath()
          Get the file path
 boolean isBlob()
          Indicates if the file is a blob
 boolean isFolder()
          Indicates if the file is a folder
 void setMetadata(CMetadata metadata)
           
 void setModificationDate(Date modificationDate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

modificationDate

protected Date modificationDate

metadata

protected CMetadata metadata
Constructor Detail

CFile

public CFile(CPath path)
Method Detail

getPath

public CPath getPath()
Get the file path

Returns:
The path

getModificationDate

public Date getModificationDate()
Get the last modification date

Returns:
The date or null if not available

setModificationDate

public void setModificationDate(Date modificationDate)

getMetadata

public CMetadata getMetadata()
Get the file metadata

Returns:
The metadata or null if not available

setMetadata

public void setMetadata(CMetadata metadata)

isFolder

public boolean isFolder()
Indicates if the file is a folder

Returns:
true if the file is a folder, false otherwise

isBlob

public boolean isBlob()
Indicates if the file is a blob

Returns:
true if the file is a blob, false otherwise

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.