org.jfree.repository

Interface ContentLocation

All Superinterfaces:
ContentEntity
Known Implementing Classes:
DummyContentLocation, FileContentLocation, StreamContentLocation, ZipContentLocation

public interface ContentLocation
extends ContentEntity

This represents a container in the repository. If the repository is a filesystem, this will be a directory.
Author:
Thomas Morgner

Method Summary

ContentItem
createItem(String name)
Creates a new data item in the current location.
ContentLocation
createLocation(String name)
boolean
exists(String name)
ContentEntity
getEntry(String name)
ContentEntity[]
listContents()

Methods inherited from interface org.jfree.repository.ContentEntity

delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute

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.
Parameters:
name -
Returns:
Throws:
ContentCreationException - if the item could not be created.

createLocation

public ContentLocation createLocation(String name)
            throws ContentCreationException

exists

public boolean exists(String name)

getEntry

public ContentEntity getEntry(String name)
            throws ContentIOException

listContents

public ContentEntity[] listContents()
            throws ContentIOException