public class RecordCollection extends RecordAggregation
Parser tree component for parsing a collection of bean objects, where
a bean object is mapped to a Record or Group.
lazy, valueAGGREGATION_ARRAY, AGGREGATION_COLLECTION, AGGREGATION_MAP, COLLECTION, COMPLEX, MAP, SIMPLE| Constructor and Description |
|---|
RecordCollection()
Constructs a new RecordCollection.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Object> |
getCollection(ParsingContext context)
Returns the collection value being parsed.
|
boolean |
hasContent(ParsingContext context)
Returns whether this parser or any of its descendant have content for marshalling.
|
boolean |
marshal(MarshallingContext context)
Marshals a record.
|
void |
setValue(ParsingContext context,
Object value)
Sets the property value for marshaling.
|
int |
type()
Returns the property type.
|
boolean |
unmarshal(UnmarshallingContext context)
Unmarshals a record.
|
clearValue, close, createAggregationType, createValue, defines, getAccessor, getCount, getMaxOccurs, getMinOccurs, getNullValue, getOrder, getProperty, getSelector, getType, getValue, 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 boolean unmarshal(UnmarshallingContext context)
Parserunmarshal in interface Parserunmarshal in class DelegatingParsercontext - the UnmarshallingContextpublic boolean marshal(MarshallingContext context) throws IOException
Parsermarshal in interface Parsermarshal in class DelegatingParsercontext - the MarshallingContextIOException - if an I/O error occurspublic void setValue(ParsingContext context, Object value)
ParsersetValue in interface ParsersetValue in interface PropertysetValue in class RecordAggregationcontext - the ParsingContextvalue - the property valueprotected Collection<Object> getCollection(ParsingContext context)
context - the ParsingContextCollectionpublic int type()
Propertypublic boolean hasContent(ParsingContext context)
ParserhasContent in interface ParserhasContent in class DelegatingParsercontext - the ParsingContext