org.jfree.repository.dummy

Class DummyContentItem

Implemented Interfaces:
ContentEntity, ContentItem

public class DummyContentItem
extends java.lang.Object
implements ContentItem

Creation-Date: 13.11.2006, 17:16:02
Author:
Thomas Morgner

Constructor Summary

DummyContentItem(ContentLocation parent, String name)

Method Summary

boolean
delete()
Object
getAttribute(String domain, String key)
Object
getContentId()
InputStream
getInputStream()
String
getMimeType()
String
getName()
OutputStream
getOutputStream()
ContentLocation
getParent()
Repository
getRepository()
boolean
isReadable()
boolean
isWriteable()
boolean
setAttribute(String domain, String key, Object value)

Constructor Details

DummyContentItem

public DummyContentItem(ContentLocation parent,
                        String name)

Method Details

delete

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

getAttribute

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

getContentId

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

getInputStream

public InputStream getInputStream()
            throws ContentIOException,
                   IOException
Specified by:
getInputStream in interface ContentItem

getMimeType

public String getMimeType()
            throws ContentIOException
Specified by:
getMimeType in interface ContentItem

getName

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

getOutputStream

public OutputStream getOutputStream()
            throws ContentIOException,
                   IOException
Specified by:
getOutputStream in interface ContentItem

getParent

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

getRepository

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

isReadable

public boolean isReadable()
Specified by:
isReadable in interface ContentItem

isWriteable

public boolean isWriteable()
Specified by:
isWriteable in interface ContentItem

setAttribute

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