public class RecordArray extends RecordCollection
Parser tree component for parsing an array of bean objects, where
a bean object is mapped to a Record.
A RecordArray supports a single Record child.
lazy, valueAGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE| Constructor and Description |
|---|
RecordArray()
Constructs a new RecordArray.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Object> |
createAggregationType() |
Class<?> |
getArrayType()
Returns the class type of the array.
|
Object |
getValue(ParsingContext context)
Returns the unmarshalled property value.
|
void |
setArrayType(Class<?> arrayType)
Sets the class type of the array (e.g.
|
void |
setValue(ParsingContext context,
Object value)
Sets the property value for marshaling.
|
int |
type()
Returns the property type.
|
getCollection, hasContent, marshal, unmarshalclearValue, close, createValue, defines, getAccessor, getCount, getMaxOccurs, getMinOccurs, getNullValue, getOrder, getProperty, getSelector, getType, isIdentifier, isLazy, isMaxOccursReached, isRecordGroup, isSupportedChild, matchAny, matchNext, matchNext, registerLocals, reset, restoreState, setAccessor, setCount, setIdentifier, setLazy, setType, skip, toParamString, updateStategetParser, getSize, isOptional, matchesadd, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toString, updateReferencesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getSize, isOptional, matchesforEach, spliteratorpublic int type()
Propertytype in interface Propertytype in class RecordCollectionProperty.SIMPLE, Property.COMPLEX, Property.AGGREGATION_ARRAY, Property.COLLECTION,
Property.AGGREGATION_COLLECTION, or Property.MAPpublic Object getValue(ParsingContext context)
ParsergetValue in interface ParsergetValue in interface PropertygetValue in class RecordAggregationcontext - the ParsingContextpublic void setValue(ParsingContext context, Object value)
ParsersetValue in interface ParsersetValue in interface PropertysetValue in class RecordCollectioncontext - the ParsingContextvalue - the property valueprotected Collection<Object> createAggregationType()
createAggregationType in class RecordAggregationpublic Class<?> getArrayType()
public void setArrayType(Class<?> arrayType)
arrayType - the array class type