|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.millstone.base.data.util.FilesystemContainer.FileItem
A Item wrapper for files in a filesystem.
Nested Class Summary |
Nested classes inherited from class org.millstone.base.data.Item |
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer |
Method Summary | |
boolean |
addItemProperty(java.lang.Object id,
Property property)
Filesystem container does not support adding new properties. |
boolean |
equals(java.lang.Object obj)
|
Resource |
getIcon()
|
Property |
getItemProperty(java.lang.Object id)
Gets the Property corresponding to the given Property ID stored in the Item. |
java.util.Collection |
getItemPropertyIds()
Gets the collection of IDs of all Properties stored in the Item. |
java.lang.String |
getName()
|
long |
getSize()
|
int |
hashCode()
|
java.util.Date |
lastModified()
|
boolean |
removeItemProperty(java.lang.Object id)
Filesystem container does not support removing properties. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public Property getItemProperty(java.lang.Object id)
Item
null
is returned.
getItemProperty
in interface Item
id
- identifier of the Property to get
null
public java.util.Collection getItemPropertyIds()
Item
getItemPropertyIds
in interface Item
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.Date lastModified()
public java.lang.String getName()
public Resource getIcon()
public long getSize()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean addItemProperty(java.lang.Object id, Property property) throws java.lang.UnsupportedOperationException
addItemProperty
in interface Item
id
- ID of the new Propertyproperty
- the Property to be added and associated with
id
true
if the operation succeeded,
false
if not
java.lang.UnsupportedOperationException
- if the operation is not supported.Item.addItemProperty(Object, Property)
public boolean removeItemProperty(java.lang.Object id) throws java.lang.UnsupportedOperationException
removeItemProperty
in interface Item
id
- ID of the Property to be removed
true
if the operation succeeded
false
if not
java.lang.UnsupportedOperationException
- if the operation is not supported.Item.removeItemProperty(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |