org.pentaho.reporting.libraries.repository.dummy
public class DummyContentItem extends Object implements ContentItem, Serializable
Constructor Summary | |
---|---|
DummyContentItem(ContentLocation parent, String name)
Creates a new dummy item for the given parent and having the given name.
|
Method Summary | |
---|---|
boolean | delete()
A dummy location does not have content and therefore does not support the delete command.
|
Object | getAttribute(String domain, String key)
Dummy locations do not have attributes, therefore this method always returns null.
|
Object | getContentId()
Returns the full pathname of the location.
|
InputStream | getInputStream()
Returns an new empty input stream that does not allow to read a single byte from it.
|
String | getMimeType()
Returns the mime type for the content entity. |
String | getName()
Returns the name of the entry.
|
OutputStream | getOutputStream()
Returns a NullOutputStream that ignores all content given to it.
|
ContentLocation | getParent()
Returns the parent, if there is any.
|
Repository | getRepository()
Returns the parent repository for this location.
|
boolean | isReadable()
Claims that the item is readable.
|
boolean | isWriteable()
Claims that the item is writable.
|
boolean | setAttribute(String domain, String key, Object value)
Dummy locations do not allow to set attributes, therefore this method always returns false.
|
Parameters: parent the parent. name the name of the new item.
Returns: always false.
Parameters: domain the attribute domain. key the name of the attribute.
Returns: the value or null, if the content-entity does not have a value for this attribute.
Returns: the full pathname.
Returns: the input stream.
Returns: the mime type.
Throws: ContentIOException if an error occured.
Returns: the name, never null.
Returns: the output stream.
Returns: the parent.
Returns: the repository.
Returns: true.
Returns: true.
Parameters: domain the attribute domain. key the attribute name value the new attribute value.
Returns: false.