|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.file.collectors.A_CmsResourceCollector
Provides some helpful base implementations for resource collector classes.
| Field Summary | |
protected int |
m_order
The collector order of this collector. |
| Constructor Summary | |
A_CmsResourceCollector()
Constructor to initialize some default values. |
|
| Method Summary | |
int |
compareTo(Object obj)
|
boolean |
equals(Object obj)
Two collectors are considered to be equal if they are sharing the same implementation class. |
protected String |
getCreateInFolder(CmsObject cms,
String param)
Returns the link to create a new XML content item in the folder pointed to by the parameter. |
int |
getOrder()
Returns the "order weight" of this collector. |
int |
hashCode()
|
void |
setOrder(int order)
Sets the "order weight" of this collector. |
protected List |
shrinkToFit(List result,
int maxSize)
Shrinks a List to fit a maximum size. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opencms.file.collectors.I_CmsResourceCollector |
getCollectorNames, getCreateLink, getCreateParam, getResults |
| Field Detail |
protected int m_order
| Constructor Detail |
public A_CmsResourceCollector()
| Method Detail |
public int compareTo(Object obj)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)public boolean equals(Object obj)
Object.equals(java.lang.Object)public int getOrder()
I_CmsResourceCollectorThe "order weight" is important because two collector classes may provide a collector with the same name. If this is the case, the collector implementation with the higher order number "overrules" the lower order number classs.
getOrder in interface I_CmsResourceCollectorI_CmsResourceCollector.getOrder()public int hashCode()
Object.hashCode()public void setOrder(int order)
I_CmsResourceCollector
setOrder in interface I_CmsResourceCollectororder - the order weight to setI_CmsResourceCollector.setOrder(int)
protected String getCreateInFolder(CmsObject cms,
String param)
throws CmsException
cms - the current CmsObjectparam - the folder name to use
CmsException - if something goes wrong
protected List shrinkToFit(List result,
int maxSize)
result - a ListmaxSize - the maximum size of the List
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||