|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.manager.sort.NodeComparator
INodeManager
API in conjunction with ContentContext
and
ContextKey
. Also see javadoc for the com.bea.content.paging
package.
@Deprecated public class NodeComparator
Compares Nodes in ascending order (case-insensitive) based on the Node name.
If SearchCriteria is set then the Nodes are compared based on the criteria against their properties. The criteria is iterated through, until a property is found that compares to less than or greater than and that result is returned. If a property compares to be equal, the next criteria will be used. The NodeComparator can also be used for sorting standard properites as well as any explicit properties defined in the system. The following standard properties are supported for sorting : cm_uid, cm_parent_uid, cm_createdDate, cm_createdBy, cm_modifiedDate, cm_path and cm_objectClass
Field Summary | |
---|---|
protected SortCriteria[] |
sortCriteria
Deprecated The sort criteria used when sorting nodes. |
Constructor Summary | |
---|---|
NodeComparator()
Deprecated |
|
NodeComparator(SortCriteria[] sortCriteria)
Deprecated |
Method Summary | |
---|---|
int |
compare(Object obj1,
Object obj2)
Deprecated Compares its two arguments for order. |
int |
compareNodeName(Object obj1,
Object obj2)
Deprecated Compares its two arguments for order. |
int |
compareProperties(Object obj1,
Object obj2)
Deprecated Compares properties. |
boolean |
equals(Object obj)
Deprecated Indicates whether some other object is "equal to" this Comparator. |
int |
hashCode()
Deprecated Returns a hash code value for this comparator. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SortCriteria[] sortCriteria
Constructor Detail |
---|
public NodeComparator()
public NodeComparator(SortCriteria[] sortCriteria)
Method Detail |
---|
public int compare(Object obj1, Object obj2)
compare
in interface Comparator
public int compareNodeName(Object obj1, Object obj2)
In this case the arguments are nodes, and we're comparing node names.
obj1
- The first node to compare.obj2
- The second node to compare.
public int compareProperties(Object obj1, Object obj2)
obj1
- The first node to compare.obj2
- The second node to compare.
public boolean equals(Object obj)
comp1.equals(comp2)
implies that sgn(comp1.compare(o1,
o2))==sgn(comp2.compare(o1, o2)) for every object reference
o1 and o2.
equals
in interface Comparator
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |