public class ElementDescriptor.ElementFile extends java.lang.Object implements XMLPersistent
Constructor and Description |
---|
ElementDescriptor.ElementFile(ElementDescriptor.ElementFile elementFile)
Create a new element file using specified element informations
|
ElementDescriptor.ElementFile(org.w3c.dom.Node node) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
long |
getDateModif() |
int |
getFileNumber() |
java.lang.String |
getLocalPath() |
java.lang.String |
getOnlinePath() |
boolean |
isDirectory() |
boolean |
isEmpty() |
boolean |
isExecutable() |
boolean |
isLink() |
boolean |
isSame(ElementDescriptor.ElementFile elementFile,
boolean compareOnlinePath,
boolean compareValidDateOnly)
Return true if the specified ElementFile is the same than current one.
|
boolean |
isWritable() |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
setDateModif(long dateModif) |
void |
setDirectory(boolean directory) |
void |
setExecutable(boolean executable) |
void |
setFileNumber(int fileNumber) |
void |
setLink(boolean link) |
void |
setWritable(boolean writable) |
java.lang.String |
toString() |
public ElementDescriptor.ElementFile(org.w3c.dom.Node node)
public ElementDescriptor.ElementFile(ElementDescriptor.ElementFile elementFile)
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent
public boolean isEmpty()
public boolean exists()
public java.lang.String getLocalPath()
public java.lang.String getOnlinePath()
public long getDateModif()
public boolean isLink()
public boolean isExecutable()
public boolean isWritable()
public boolean isDirectory()
public int getFileNumber()
public void setDateModif(long dateModif)
dateModif
- the dateModif to setpublic void setLink(boolean link)
link
- the link to setpublic void setExecutable(boolean executable)
executable
- the executable to setpublic void setWritable(boolean writable)
writable
- the writable to setpublic void setDirectory(boolean directory)
directory
- the directory to setpublic void setFileNumber(int fileNumber)
fileNumber
- the fileNumber to setpublic boolean isSame(ElementDescriptor.ElementFile elementFile, boolean compareOnlinePath, boolean compareValidDateOnly)
elementFile
- the element file to comparecompareOnlinePath
- specify if we compare online path informationcompareValidDateOnly
- true if we do compare only valid date (!= 0)public java.lang.String toString()
toString
in class java.lang.Object