net.ontopia.topicmaps.query.impl.utils
Class PredicateSignature

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.ArgumentValidator
      extended by net.ontopia.topicmaps.query.impl.utils.PredicateSignature

public class PredicateSignature
extends ArgumentValidator


Field Summary
 
Fields inherited from class net.ontopia.topicmaps.impl.utils.ArgumentValidator
arguments, typenames
 
Method Summary
static PredicateSignature getSignature(PredicateIF predicate)
           
 void interpretCharacter(char ch, Argument curarg)
          INTERNAL: Interprets the given character and updates the argument to record the information in the character.
 void validateArguments(java.lang.Object[] args, java.lang.String predicate, boolean strict)
          Validates the arguments to this predicate.
 void verifyBound(QueryMatches matches, java.lang.Object[] arguments, PredicateIF predicate)
          INTERNAL: Verifies that arguments which are required to be bound actually are bound.
 
Methods inherited from class net.ontopia.topicmaps.impl.utils.ArgumentValidator
getArgument, getClassList, getClassName, getClassName, getTypes, makeSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSignature

public static PredicateSignature getSignature(PredicateIF predicate)
                                       throws InvalidQueryException
Throws:
InvalidQueryException

interpretCharacter

public void interpretCharacter(char ch,
                               Argument curarg)
Description copied from class: ArgumentValidator
INTERNAL: Interprets the given character and updates the argument to record the information in the character.
 x    TMObjectIF (equivalent to mtarbvo)
 m    TopicMapIF
 t    TopicIF
 a    AssociationIF
 r    AssociationRoleIF
 b    TopicNameIF
 v    VariantNameIF
 o    OccurrenceIF
 l    LocatorIF

 p    Pair (tolog-specific)
 B    Boolean
 s    String
 n    Number (float + integer)
 i    Integer
 f    Float
 .    Object
 z    PredicateOptions (tolog-specific wizardry)

 ?    optional argument
 +    repeatable argument
 &    multiple values
 !    tolog: argument must be bound; webed: argument must have a value
 

Overrides:
interpretCharacter in class ArgumentValidator

validateArguments

public void validateArguments(java.lang.Object[] args,
                              java.lang.String predicate,
                              boolean strict)
                       throws InvalidQueryException
Validates the arguments to this predicate. If strict the types of arguments are also checked.

Throws:
InvalidQueryException

verifyBound

public void verifyBound(QueryMatches matches,
                        java.lang.Object[] arguments,
                        PredicateIF predicate)
                 throws InvalidQueryException
INTERNAL: Verifies that arguments which are required to be bound actually are bound.

Throws:
InvalidQueryException


Copyright © 2000-2012 Ontopia.