public class ArgumentValidator extends Object
Modifier and Type | Field and Description |
---|---|
protected List<Argument> |
arguments |
protected static Map<Class<?>,String> |
typenames |
Constructor and Description |
---|
ArgumentValidator(String signature)
INTERNAL: Creates a validator for the signature represented by
this string.
|
Modifier and Type | Method and Description |
---|---|
Argument |
getArgument(int ix)
INTERNAL: Returns an Argument object representing the argument at
this position in the signature.
|
static String |
getClassList(Object[] classes)
INTERNAL: Returns a nicely formatted list of class names.
|
static String |
getClassName(Class klass)
INTERNAL: Returns a string name for the class.
|
static String |
getClassName(Object object)
INTERNAL: Returns a string name for the class of this object.
|
Class[] |
getTypes(int ix) |
void |
interpretCharacter(char ch,
Argument curarg)
INTERNAL: Interprets the given character and updates the argument
to record the information in the character.
|
static String |
makeSignature(Object[] types)
INTERNAL: Turns a list of class types into a signature string.
|
public ArgumentValidator(String signature)
public void interpretCharacter(char ch, Argument curarg)
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
public Class[] getTypes(int ix)
public Argument getArgument(int ix)
public static String makeSignature(Object[] types)
types
- The list of class types.public static String getClassName(Class klass)
public static String getClassName(Object object)