p12f.exe.pasarelapagos.objects.data
Class DataFile

java.lang.Object
  extended byp12f.exe.pasarelapagos.objects.data.DataFile
All Implemented Interfaces:
java.io.Serializable

public class DataFile
extends java.lang.Object
implements java.io.Serializable

Clase que representa un fichero/directorio.

Author:
dbenitof
See Also:
Serialized Form

Constructor Summary
DataFile()
          Constructor vacío.
 
Method Summary
 java.util.List getDirectoryFiles()
           
 java.lang.String getFileName()
           
 java.lang.String getFilePath()
           
 long getFileSize()
           
 long getLastModified()
           
static DataFile getObject(java.lang.String xml)
          Convierte un XML en un objeto DataFile.
 java.lang.String getParentPath()
           
 boolean isCanRead()
           
 boolean isCanWrite()
           
 boolean isFile()
           
 boolean isHidden()
           
 void setCanRead(boolean canRead)
           
 void setCanWrite(boolean canWrite)
           
 void setDirectoryFiles(java.util.List directoryFiles)
           
 void setFile(boolean isFile)
           
 void setFileName(java.lang.String fileName)
           
 void setFilePath(java.lang.String filePath)
           
 void setFileSize(long fileSize)
           
 void setHidden(boolean isHidden)
           
 void setLastModified(long lastModified)
           
 void setParentPath(java.lang.String parentPath)
           
 java.lang.String toXML()
          Convierte un Objeto DataFile a XML.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFile

public DataFile()
Constructor vacío.

Method Detail

getFilePath

public java.lang.String getFilePath()
Returns:
the filePath

setFilePath

public void setFilePath(java.lang.String filePath)
Parameters:
filePath - the filePath to set

getParentPath

public java.lang.String getParentPath()
Returns:
the parentPath

setParentPath

public void setParentPath(java.lang.String parentPath)
Parameters:
parentPath - the parentPath to set

getFileName

public java.lang.String getFileName()
Returns:
the fileName

setFileName

public void setFileName(java.lang.String fileName)
Parameters:
fileName - the fileName to set

isCanRead

public boolean isCanRead()
Returns:
the canRead

setCanRead

public void setCanRead(boolean canRead)
Parameters:
canRead - the canRead to set

isCanWrite

public boolean isCanWrite()
Returns:
the canWrite

setCanWrite

public void setCanWrite(boolean canWrite)
Parameters:
canWrite - the canWrite to set

isFile

public boolean isFile()
Returns:
the isFile

setFile

public void setFile(boolean isFile)
Parameters:
isFile - the isFile to set

isHidden

public boolean isHidden()
Returns:
the isHidden

setHidden

public void setHidden(boolean isHidden)
Parameters:
isHidden - the isHidden to set

getLastModified

public long getLastModified()
Returns:
the lastModified

setLastModified

public void setLastModified(long lastModified)
Parameters:
lastModified - the lastModified to set

getDirectoryFiles

public java.util.List getDirectoryFiles()
Returns:
the directoryFiles

setDirectoryFiles

public void setDirectoryFiles(java.util.List directoryFiles)
Parameters:
directoryFiles - the directoryFiles to set

getFileSize

public long getFileSize()
Returns:
the fileSize

setFileSize

public void setFileSize(long fileSize)
Parameters:
fileSize - the fileSize to set

toXML

public java.lang.String toXML()
                       throws com.ejie.r01f.xml.marshalling.XOMarshallerException
Convierte un Objeto DataFile a XML.

Returns:
String que contiene el XML.
Throws:
com.ejie.r01f.xml.marshalling.XOMarshallerException

getObject

public static DataFile getObject(java.lang.String xml)
                          throws com.ejie.r01f.xml.marshalling.XOMarshallerException
Convierte un XML en un objeto DataFile.

Returns:
Objeto DataFile construido a partir del XML.
Throws:
com.ejie.r01f.xml.marshalling.XOMarshallerException