|
||||||||||
| 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)
Itemnull is returned.
getItemProperty in interface Itemid - identifier of the Property to get
nullpublic java.util.Collection getItemPropertyIds()
Item
getItemPropertyIds in interface Itempublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic 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.ObjectObject.toString()
public boolean addItemProperty(java.lang.Object id,
Property property)
throws java.lang.UnsupportedOperationException
addItemProperty in interface Itemid - 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 Itemid - 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 | |||||||||