net.ontopia.topicmaps.query.impl.basic
Class StringModule.EndsWithPredicate

java.lang.Object
  extended by net.ontopia.topicmaps.query.impl.basic.StringModule.EndsWithPredicate
All Implemented Interfaces:
BasicPredicateIF, PredicateIF
Enclosing class:
StringModule

public class StringModule.EndsWithPredicate
extends java.lang.Object


Constructor Summary
StringModule.EndsWithPredicate()
           
 
Method Summary
 int getCost(boolean[] boundparams)
          INTERNAL.
 java.lang.String getName()
          INTERNAL: Returns the name of the predicate.
 java.lang.String getSignature()
          INTERNAL: Returns a string representing the signature of the predicate.
 QueryMatches satisfy(QueryMatches matches, java.lang.Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringModule.EndsWithPredicate

public StringModule.EndsWithPredicate()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: PredicateIF
INTERNAL: Returns the name of the predicate. This will usually be the name of the predicate within its module ('instance-of', '/=', 'starts-with'), but some virtual predicates cannot be reached from the syntax and may return names that will not parse.


getSignature

public java.lang.String getSignature()
Description copied from interface: PredicateIF
INTERNAL: Returns a string representing the signature of the predicate. The string consists of a whitespace-separated list of arguments, where each argument is made up of tokens representing the type or cardinality of that argument.

The instance-of predicate would have a signature of "t t", while /= would have ". .", and in would have ". .+". For full details, see topicmaps.impl.utils.ArgumentValidator.


satisfy

public QueryMatches satisfy(QueryMatches matches,
                            java.lang.Object[] arguments)
                     throws InvalidQueryException
Throws:
InvalidQueryException

getCost

public int getCost(boolean[] boundparams)
Description copied from interface: PredicateIF
INTERNAL.

Specified by:
getCost in interface PredicateIF


Copyright © 2000-2012 Ontopia.