|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.repository.dummy.DummyContentLocation
public class DummyContentLocation
A dummy content location holds references to all dummy items. It does allow to create any items, but always reports itself as empty location. This implementation only serves as data-sink in case the generated content is not needed anywhere.
| Constructor Summary | |
|---|---|
DummyContentLocation(ContentLocation parent,
java.lang.String name)
Creates a new DummyContentLocation with the given parent and name. |
|
DummyContentLocation(Repository repository,
java.lang.String name)
Creates a new root DummyContentLocation with the given repository and name. |
|
| Method Summary | |
|---|---|
ContentItem |
createItem(java.lang.String name)
Creates a new data item in the current location. |
ContentLocation |
createLocation(java.lang.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(java.lang.String name)
A dummy location does not have children, therefore this method always returns false. |
java.lang.Object |
getAttribute(java.lang.String domain,
java.lang.String key)
Dummy locations do not have attributes, therefore this method always returns null. |
java.lang.Object |
getContentId()
Returns the full pathname of the location. |
ContentEntity |
getEntry(java.lang.String name)
Returns the content entity with the given name. |
java.lang.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(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
Dummy locations do not allow to set attributes, therefore this method always returns false. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyContentLocation(ContentLocation parent,
java.lang.String name)
parent - the parent location.name - the name of this location.
public DummyContentLocation(Repository repository,
java.lang.String name)
repository - the repository.name - the name of this location.| Method Detail |
|---|
public ContentEntity[] listContents()
throws ContentIOException
listContents in interface ContentLocationContentIOException - if an repository error occured.
public ContentEntity getEntry(java.lang.String name)
throws ContentIOException
getEntry in interface ContentLocationname - the name of the entity to be retrieved.
ContentIOException - if an repository error occured.
public ContentItem createItem(java.lang.String name)
throws ContentCreationException
createItem in interface ContentLocationname - the name of the new entity.
ContentCreationException - if the item could not be created.
public ContentLocation createLocation(java.lang.String name)
throws ContentCreationException
createLocation in interface ContentLocationname - the name of the new entity.
ContentCreationException - if the item could not be created.public boolean exists(java.lang.String name)
exists in interface ContentLocationname - the name of the item.
public java.lang.String getName()
getName in interface ContentEntitypublic java.lang.Object getContentId()
getContentId in interface ContentEntity
public java.lang.Object getAttribute(java.lang.String domain,
java.lang.String key)
getAttribute in interface ContentEntitydomain - the attribute domain.key - the name of the attribute.
public boolean setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
setAttribute in interface ContentEntitydomain - the attribute domain.key - the attribute namevalue - the new attribute value.
public ContentLocation getParent()
getParent in interface ContentEntitypublic Repository getRepository()
getRepository in interface ContentEntitypublic boolean delete()
delete in interface ContentEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||