org.exist.dom
Class Match

java.lang.Object
  extended byorg.exist.dom.Match
All Implemented Interfaces:
java.lang.Comparable

public class Match
extends java.lang.Object
implements java.lang.Comparable


Constructor Summary
Match(java.lang.String matchTerm, long nodeId)
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Used to sort matches.
 boolean equals(java.lang.Object other)
           
 java.lang.String getMatchingTerm()
           
 long getNodeId()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Match

public Match(java.lang.String matchTerm,
             long nodeId)
Method Detail

getMatchingTerm

public java.lang.String getMatchingTerm()

getNodeId

public long getNodeId()

equals

public boolean equals(java.lang.Object other)

compareTo

public int compareTo(java.lang.Object o)
Used to sort matches. Terms are compared by their string length to have the longest string first.

Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)


Copyright (C) Wolfgang Meier. All rights reserved.