| java.lang.Object uk.org.ponder.conversion.VectorCapableParser
VectorCapableParser | public class VectorCapableParser (Code) | | An "aggregating" object parser/renderer that is capable of dealing with
vector (array, list) values by repeated invokation of a LeafObjectParser for
each parse/render.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
isLOSType | public static boolean isLOSType(Object o)(Code) | | Determines whether the supplied object is some kind of "List of Strings"
type, either String[] or StringList.
|
parse | public Object parse(Object stringlist, Object target, Class elemtype, ReflectiveCache reflectivecache)(Code) | | Converts some form of multiple Strings into some form of multiple Objects.
Parameters: stringlist - Some form of String collection - either a String[] array,or any kind of Collection with String elements. isLOSTypewill return true for this argument. Parameters: target - Some kind of collection or arrayEnumerationConverter.isDenumerable will return true forthis argument. The elements of this "collection" will be filledwith parsed values. Either a List or Array of Object according to whether the secondparameter represents a Class or is null. |
render | public void render(Object torenders, Object toreceive, BeanResolver resolver, ReflectiveCache reflectivecache)(Code) | | Converts some form of multiple objects into some form of multiple Strings.
Parameters: torenders - Either some form of Object array or a Collection. Parameters: The - object into which the rendered objects are to be placed asStrings - either a String[] array (of the correct size!) or aCollection. |
|
|