Package net.ontopia.topicmaps.impl.utils
Class ArgumentValidator
java.lang.Object
net.ontopia.topicmaps.impl.utils.ArgumentValidator
- Direct Known Subclasses:
PredicateSignature
INTERNAL: Instances of this class represent a signature of some
predicate/function/object that takes a positional list of arguments
and can validate whether a given list of arguments are valid
according to the signature.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArgumentValidator(String signature) INTERNAL: Creates a validator for the signature represented by this string. -
Method Summary
Modifier and TypeMethodDescriptiongetArgument(int ix) INTERNAL: Returns an Argument object representing the argument at this position in the signature.static StringgetClassList(Object[] classes) INTERNAL: Returns a nicely formatted list of class names.static StringgetClassName(Class klass) INTERNAL: Returns a string name for the class.static StringgetClassName(Object object) INTERNAL: Returns a string name for the class of this object.Class[]getTypes(int ix) voidinterpretCharacter(char ch, Argument curarg) INTERNAL: Interprets the given character and updates the argument to record the information in the character.static StringmakeSignature(Object[] types) INTERNAL: Turns a list of class types into a signature string.
-
Field Details
-
arguments
-
typenames
-
-
Constructor Details
-
ArgumentValidator
INTERNAL: Creates a validator for the signature represented by this string.
-
-
Method Details
-
interpretCharacter
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
-
getTypes
-
getArgument
INTERNAL: Returns an Argument object representing the argument at this position in the signature. -
makeSignature
INTERNAL: Turns a list of class types into a signature string.- Parameters:
types- The list of class types.- Returns:
- The generated signature string.
-
getClassName
INTERNAL: Returns a string name for the class. -
getClassName
INTERNAL: Returns a string name for the class of this object. -
getClassList
INTERNAL: Returns a nicely formatted list of class names.
-