org.pentaho.reporting.libraries.repository.dummy
public class DummyContentLocation extends Object implements ContentLocation, Serializable
Constructor Summary | |
---|---|
DummyContentLocation(ContentLocation parent, String name)
Creates a new DummyContentLocation with the given parent and name. | |
DummyContentLocation(Repository repository, String name)
Creates a new root DummyContentLocation with the given repository and name.
|
Method Summary | |
---|---|
ContentItem | createItem(String name)
Creates a new data item in the current location. |
ContentLocation | createLocation(String name)
Creates a new content location in the current location. |
boolean | delete()
A dummy location does not have content and therefore does not support the delete command.
|
boolean | exists(String name)
A dummy location does not have children, therefore this method always returns false.
|
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.
|
ContentEntity | getEntry(String name)
Returns the content entity with the given name. |
String | getName()
Returns the name of the entry.
|
ContentLocation | getParent()
Returns the parent, if there is any.
|
Repository | getRepository()
Returns the parent repository for this location.
|
ContentEntity[] | listContents()
Returns all content entities stored in this content-location. |
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 location. name the name of this location.
Parameters: repository the repository. name the name of this location.
Parameters: name the name of the new entity.
Returns: the newly created entity, never null.
Throws: ContentCreationException if the item could not be created.
Parameters: name the name of the new entity.
Returns: the newly created entity, never null.
Throws: ContentCreationException if the item could not be created.
Returns: always false.
Parameters: name the name of the item.
Returns: 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.
Parameters: name the name of the entity to be retrieved.
Returns: the content entity for this name, never null.
Throws: ContentIOException if an repository error occured.
Returns: the name, never null.
Returns: the parent.
Returns: the repository.
Returns: the content entities for this location, an empty array.
Throws: ContentIOException if an repository error occured.
Parameters: domain the attribute domain. key the attribute name value the new attribute value.
Returns: false.