org.jfree.repository.dummy
Class DummyContentLocation

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

public class DummyContentLocation
extends java.lang.Object
implements ContentLocation

Creation-Date: 13.11.2006, 17:13:14

Author:
Thomas Morgner

Constructor Summary
DummyContentLocation(ContentLocation parent, java.lang.String name)
           
DummyContentLocation(Repository repository, java.lang.String name)
           
 
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

DummyContentLocation

public DummyContentLocation(ContentLocation parent,
                            java.lang.String name)

DummyContentLocation

public DummyContentLocation(Repository repository,
                            java.lang.String name)
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