|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imemex.contentconverters.AbstractHierarchicalContentConvertedResourceView
public abstract class AbstractHierarchicalContentConvertedResourceView
This class implements a resource view plugin id scheme in which the plugin id of a view is given by a concatenation of the plugin id from its parent view with a suffix. Note that this works on resource view graphs that are tree-shaped. To avoid unnecessary repetition of the prefix in all views that are indirectly to a given start view, we do not store the whole id on each view explicitly, but rather compute it when necessary based on the top-level views' plugin ids. Note that this scheme helps save main memory for the object representation of a resource view graph. The storage of plugin ids in the catalog may, however, remain using the innefficient alternative of storing all prefixes many times. NOTE: the ids assigned in this scheme are not updateable for now. That is done to avoid performance issues on computation that needs to unroll the id, such as hashCode.
This abstract implementation provides
| Constructor Summary | |
|---|---|
AbstractHierarchicalContentConvertedResourceView(AbstractHierarchicalContentConvertedResourceView parent,
java.lang.String relativeContentConvertedId,
java.lang.String name)
Instantiates a new AbstractHierarchicalPluginIdentifiableResourceView providing all possible parameters. |
|
AbstractHierarchicalContentConvertedResourceView(java.lang.String relativeContentConvertedId,
java.lang.String name)
Instantiates a new AbstractHierarchicalPluginIdentifiableResourceView which has no parent. |
|
| Method Summary | |
|---|---|
int |
compareTo(ContentConvertedResourceView rv)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getContentConvertedId()
Collect and concatenate the content converted IDs of this resource view and all the resource views higher in the content conversion hierarchy. |
java.lang.String |
getName()
gets the Name component eta of this resource view |
int |
hashCode()
|
java.lang.String |
toString()
Concatenate content converted ID of this resource view with the string returned when calling Object.toString(). |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.imemex.idm.ResourceView |
|---|
getContent, getGroup, getTuple |
| Constructor Detail |
|---|
public AbstractHierarchicalContentConvertedResourceView(java.lang.String relativeContentConvertedId,
java.lang.String name)
relativeContentConvertedId - the relative content converted ID to
use.name - the name for this resource view.
public AbstractHierarchicalContentConvertedResourceView(AbstractHierarchicalContentConvertedResourceView parent,
java.lang.String relativeContentConvertedId,
java.lang.String name)
parent - parent resource view of this resource view.relativeContentConvertedId - the relative content converted ID to
use.name - the name for this resource view.| Method Detail |
|---|
public java.lang.String getName()
ResourceView
getName in interface ResourceViewpublic java.lang.String getContentConvertedId()
getContentConvertedId in interface ContentConvertedResourceViewthe - content converted ID of this resource view.
public int compareTo(ContentConvertedResourceView rv)
compareTo in interface java.lang.Comparable<ContentConvertedResourceView>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||