org.jfree.repository.stream

Class StreamContentLocation

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(String name)
Creates a new data item in the current location.
ContentLocation
createLocation(String name)
boolean
delete()
boolean
exists(String name)
Object
getAttribute(String domain, String key)
Object
getContentId()
ContentEntity
getEntry(String name)
String
getName()
ContentLocation
getParent()
Repository
getRepository()
ContentEntity[]
listContents()
boolean
setAttribute(String domain, String key, Object value)

Constructor Details

StreamContentLocation

public StreamContentLocation(StreamRepository repository)

Method Details

createItem

public ContentItem createItem(String name)
            throws ContentCreationException
Creates a new data item in the current location. This method must never return null.
Specified by:
createItem in interface ContentLocation
Parameters:
name -
Returns:
Throws:
ContentCreationException - if the item could not be created.

createLocation

public ContentLocation createLocation(String name)
            throws ContentCreationException
Specified by:
createLocation in interface ContentLocation

delete

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

exists

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

getAttribute

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

getContentId

public Object getContentId()
Specified by:
getContentId in interface ContentEntity

getEntry

public ContentEntity getEntry(String name)
            throws ContentIOException
Specified by:
getEntry in interface ContentLocation

getName

public String getName()
Specified by:
getName in interface ContentEntity

getParent

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

getRepository

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

listContents

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

setAttribute

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