org.jfree.repository.stream
Class StreamContentLocation

java.lang.Object
  extended by org.jfree.repository.stream.StreamContentLocation
All Implemented Interfaces:
ContentEntity, ContentLocation

public class StreamContentLocation
extends java.lang.Object
implements ContentLocation

Creation-Date: 13.11.2006, 17:23:40

Author:
Thomas Morgner

Constructor Summary
StreamContentLocation(StreamRepository repository)
           
 
Method Summary
 ContentItem createItem(java.lang.String name)
          Creates a new data item in the current location.
 ContentLocation createLocation(java.lang.String name)
           
 boolean delete()
           
 boolean exists(java.lang.String name)
           
 java.lang.Object getAttribute(java.lang.String domain, java.lang.String key)
           
 java.lang.Object getContentId()
           
 ContentEntity getEntry(java.lang.String name)
           
 java.lang.String getName()
           
 ContentLocation getParent()
           
 Repository getRepository()
           
 ContentEntity[] listContents()
           
 boolean setAttribute(java.lang.String domain, java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamContentLocation

public StreamContentLocation(StreamRepository repository)
Method Detail

listContents

public ContentEntity[] listContents()
                             throws ContentIOException
Specified by:
listContents in interface ContentLocation
Throws:
ContentIOException

getEntry

public ContentEntity getEntry(java.lang.String name)
                       throws ContentIOException
Specified by:
getEntry in interface ContentLocation
Throws:
ContentIOException

createItem

public ContentItem createItem(java.lang.String name)
                       throws ContentCreationException
Description copied from interface: ContentLocation
Creates a new data item in the current location. This method must never return null.

Specified by:
createItem in interface ContentLocation
Returns:
Throws:
ContentCreationException - if the item could not be created.

createLocation

public ContentLocation createLocation(java.lang.String name)
                               throws ContentCreationException
Specified by:
createLocation in interface ContentLocation
Throws:
ContentCreationException

exists

public boolean exists(java.lang.String name)
Specified by:
exists in interface ContentLocation

getName

public java.lang.String getName()
Specified by:
getName in interface ContentEntity

getContentId

public java.lang.Object getContentId()
Specified by:
getContentId in interface ContentEntity

getAttribute

public java.lang.Object getAttribute(java.lang.String domain,
                                     java.lang.String key)
Specified by:
getAttribute in interface ContentEntity

setAttribute

public boolean setAttribute(java.lang.String domain,
                            java.lang.String key,
                            java.lang.Object value)
Specified by:
setAttribute in interface ContentEntity

getParent

public ContentLocation getParent()
Specified by:
getParent in interface ContentEntity

getRepository

public Repository getRepository()
Specified by:
getRepository in interface ContentEntity

delete

public boolean delete()
Specified by:
delete in interface ContentEntity