com.japisoft.resourcebrowser
Class BasicResourceItem
java.lang.Object
|
+--com.japisoft.resourcebrowser.BasicResourceItem
- All Implemented Interfaces:
- ResourceItem
- public class BasicResourceItem
- extends java.lang.Object
- implements ResourceItem
- Version:
- 1.0
- Author:
- (c) 2004 JAPISoft / http://www.japisoft.com
Constructor Summary |
BasicResourceItem(java.lang.String fullPath,
boolean file,
java.lang.Object source)
|
BasicResourceItem(java.lang.String fullPath,
java.lang.String name,
boolean file,
java.lang.Object source)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicResourceItem
public BasicResourceItem(java.lang.String fullPath,
boolean file,
java.lang.Object source)
BasicResourceItem
public BasicResourceItem(java.lang.String fullPath,
java.lang.String name,
boolean file,
java.lang.Object source)
getFileName
public java.lang.String getFileName()
- Specified by:
getFileName
in interface ResourceItem
- Returns:
- the name of the resource like the file name
getFullPath
public java.lang.String getFullPath()
- Specified by:
getFullPath
in interface ResourceItem
- Returns:
- the full path of the resource including the file name
isFile
public boolean isFile()
- Specified by:
isFile
in interface ResourceItem
- Returns:
true
if this resource is a file and false for a directory
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interface ResourceItem
- Returns:
true
if the resource cannot be written
setSize
public void setSize(long size)
getSize
public long getSize()
- Specified by:
getSize
in interface ResourceItem
- Returns:
- the size of the resource in bytes
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified
in interface ResourceItem
- Returns:
- the last modified date
getSource
public java.lang.Object getSource()
- Specified by:
getSource
in interface ResourceItem
- Returns:
- the source of the item. Rather for inner usage